diff --git a/.editorconfig b/.editorconfig
index 1c32a5e4c..108bfbbff 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -15,3 +15,6 @@ indent_size = 2
[Makefile]
indent_style = tab
+
+[CHANGELOG.md]
+trim_trailing_whitespace = false
diff --git a/.flake8 b/.flake8
index 465aeb718..550ef2a41 100644
--- a/.flake8
+++ b/.flake8
@@ -8,7 +8,10 @@ extend-ignore =
# formatting adds the whitespace. We let formatting be the source of truth in that case.
E203,
# flake8 runs all installed rules, but we only want a single B (see below) so we disable the rest
- B
+ B,
+ # E203 checks that `:` is not preceded by whitespace, but in some cases,
+ # formatting adds the whitespace. We let formatting be the source of truth in that case.
+ E203
extend-select =
B006 # forbid mutable default args
per-file-ignores =
@@ -21,6 +24,7 @@ per-file-ignores =
# IMP101: Do not import stripe
# breaking circular dependencies in overrides
+ stripe/tax/_form.py: IMP101
stripe/_file.py: IMP101
stripe/_account.py: IMP101
stripe/_person.py: IMP101
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
index 5d191dfb5..11d96803b 100644
--- a/.git-blame-ignore-revs
+++ b/.git-blame-ignore-revs
@@ -1,3 +1,5 @@
# .git-blame-ignore-revs
# mass formatted w/ ruff (2024-05-10)
c46b4b950ea77e9d18ab98885cda721b3de247c0
+# (beta) mass formatted w/ ruff (2024-05-13)
+11c92dc754cf1e93ed1910624c182aa244d3981c
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 24c60026c..59e67bec4 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -25,6 +25,10 @@
}
},
+ "[markdown]": {
+ "editor.formatOnSave": false,
+ },
+
// Tests
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
diff --git a/API_VERSION b/API_VERSION
index 93be1cef5..72fc940f3 100644
--- a/API_VERSION
+++ b/API_VERSION
@@ -1 +1 @@
-88aa59022b32620f4d66d6196e3b42d5a0f86bbb
\ No newline at end of file
+a3035d6cb25cc44d50589c1da75b21abbd3601ca
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6a77d91bf..58524e812 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,51 @@
+# Changelog
+
+## 14.2.0b1 - 2025-12-16
+This release changes the pinned API version to `2025-12-15.preview`.
+
+* [#1653](https://github.com/stripe/stripe-python/pull/1653) Add EventNotificationHandler
+ * This is a new, simplified way to handle event notifications (AKA thin event webhooks). Learn more in the docs: https://docs.stripe.com/webhooks/event-notification-handlers
+* [#1680](https://github.com/stripe/stripe-python/pull/1680) Update generated code for beta
+ * Add support for new resources `reserve.Hold`, `reserve.Plan`, and `reserve.Release`
+ * Add support for `list` and `retrieve` methods on resources `reserve.Hold` and `reserve.Release`
+ * Add support for `retrieve` method on resource `reserve.Plan`
+ * Change `Billing.CreditBalanceSummary.customer_account`, `Billing.CreditGrant.customer_account`, `BillingPortal.Session.customer_account`, `CashBalance.customer_account`, `Checkout.Session.customer_account`, `ConfirmationToken.PaymentMethodPreview.customer_account`, `CreditNote.customer_account`, `CustomerBalanceTransaction.customer_account`, `CustomerCashBalanceTransaction.customer_account`, `CustomerSession.customer_account`, `Discount.customer_account`, `Invoice.customer_account`, `InvoiceItem.customer_account`, `PaymentIntent.customer_account`, `PaymentMethod.customer_account`, `PromotionCode.customer_account`, `Quote.customer_account`, `QuotePreviewInvoice.customer_account`, `QuotePreviewSubscriptionSchedule.customer_account`, `SetupAttempt.customer_account`, `Subscription.customer_account`, `SubscriptionSchedule.customer_account`, `TaxId.Owner.customer_account`, and `TaxId.customer_account` to be required
+ * Change type of `V2.FinancialAddressGeneratedMicrodeposits.amounts` from `amount` to `an object`
+ * Change type of `PaymentIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.amount`, `PaymentIntentCreateParamsPaymentMethodOptionPaytoMandateOption.amount`, `PaymentIntentModifyParamsPaymentMethodOptionPaytoMandateOption.amount`, `SetupIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.amount`, `SetupIntentCreateParamsPaymentMethodOptionPaytoMandateOption.amount`, `SetupIntentModifyParamsPaymentMethodOptionPaytoMandateOption.amount`, and `checkout.SessionCreateParamsPaymentMethodOptionPaytoMandateOption.amount` from `longInteger` to `emptyable(longInteger)`
+ * Change type of `PaymentIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.amount_type`, `PaymentIntentCreateParamsPaymentMethodOptionPaytoMandateOption.amount_type`, `PaymentIntentModifyParamsPaymentMethodOptionPaytoMandateOption.amount_type`, `SetupIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.amount_type`, `SetupIntentCreateParamsPaymentMethodOptionPaytoMandateOption.amount_type`, `SetupIntentModifyParamsPaymentMethodOptionPaytoMandateOption.amount_type`, and `checkout.SessionCreateParamsPaymentMethodOptionPaytoMandateOption.amount_type` from `enum('fixed'|'maximum')` to `emptyable(enum('fixed'|'maximum'))`
+ * Change type of `PaymentIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.end_date`, `PaymentIntentCreateParamsPaymentMethodOptionPaytoMandateOption.end_date`, `PaymentIntentModifyParamsPaymentMethodOptionPaytoMandateOption.end_date`, `SetupIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.end_date`, `SetupIntentCreateParamsPaymentMethodOptionPaytoMandateOption.end_date`, `SetupIntentModifyParamsPaymentMethodOptionPaytoMandateOption.end_date`, and `checkout.SessionCreateParamsPaymentMethodOptionPaytoMandateOption.end_date` from `string` to `emptyable(string)`
+ * Change type of `PaymentIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.payment_schedule`, `PaymentIntentCreateParamsPaymentMethodOptionPaytoMandateOption.payment_schedule`, `PaymentIntentModifyParamsPaymentMethodOptionPaytoMandateOption.payment_schedule`, `SetupIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.payment_schedule`, `SetupIntentCreateParamsPaymentMethodOptionPaytoMandateOption.payment_schedule`, `SetupIntentModifyParamsPaymentMethodOptionPaytoMandateOption.payment_schedule`, and `checkout.SessionCreateParamsPaymentMethodOptionPaytoMandateOption.payment_schedule` from `enum` to `emptyable(enum)`
+ * Change type of `PaymentIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.payments_per_period`, `PaymentIntentCreateParamsPaymentMethodOptionPaytoMandateOption.payments_per_period`, `PaymentIntentModifyParamsPaymentMethodOptionPaytoMandateOption.payments_per_period`, `SetupIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.payments_per_period`, `SetupIntentCreateParamsPaymentMethodOptionPaytoMandateOption.payments_per_period`, `SetupIntentModifyParamsPaymentMethodOptionPaytoMandateOption.payments_per_period`, and `checkout.SessionCreateParamsPaymentMethodOptionPaytoMandateOption.payments_per_period` from `longInteger` to `emptyable(longInteger)`
+ * Change type of `PaymentIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.purpose`, `PaymentIntentCreateParamsPaymentMethodOptionPaytoMandateOption.purpose`, `PaymentIntentModifyParamsPaymentMethodOptionPaytoMandateOption.purpose`, `SetupIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.purpose`, `SetupIntentCreateParamsPaymentMethodOptionPaytoMandateOption.purpose`, `SetupIntentModifyParamsPaymentMethodOptionPaytoMandateOption.purpose`, and `checkout.SessionCreateParamsPaymentMethodOptionPaytoMandateOption.purpose` from `enum` to `emptyable(enum)`
+ * Change type of `SetupIntentConfirmParamsPaymentMethodOptionPaytoMandateOption.start_date`, `SetupIntentCreateParamsPaymentMethodOptionPaytoMandateOption.start_date`, `SetupIntentModifyParamsPaymentMethodOptionPaytoMandateOption.start_date`, and `checkout.SessionCreateParamsPaymentMethodOptionPaytoMandateOption.start_date` from `string` to `emptyable(string)`
+ * Change `Identity.VerificationSession.related_customer_account` to be required
+ * Add support for `async_workflows` on `PaymentIntent`
+ * Add support for `payto` on `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption`
+ * Add support for new value `payto` on enum `QuotePreviewInvoice.PaymentSetting.payment_method_types`
+ * Remove support for `requested` on `V2.Core.Account.Configuration.Customer.Capability.AutomaticIndirectTax`, `V2.Core.Account.Configuration.Merchant.Capability.AchDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AcssDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AffirmPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AfterpayClearpayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AlmaPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AmazonPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.AuBecsDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BacsDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BancontactPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BlikPayment`, `V2.Core.Account.Configuration.Merchant.Capability.BoletoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.CardPayment`, `V2.Core.Account.Configuration.Merchant.Capability.CartesBancairesPayment`, `V2.Core.Account.Configuration.Merchant.Capability.CashappPayment`, `V2.Core.Account.Configuration.Merchant.Capability.EpsPayment`, `V2.Core.Account.Configuration.Merchant.Capability.FpxPayment`, `V2.Core.Account.Configuration.Merchant.Capability.GbBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.GrabpayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.IdealPayment`, `V2.Core.Account.Configuration.Merchant.Capability.JcbPayment`, `V2.Core.Account.Configuration.Merchant.Capability.JpBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KakaoPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KlarnaPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KonbiniPayment`, `V2.Core.Account.Configuration.Merchant.Capability.KrCardPayment`, `V2.Core.Account.Configuration.Merchant.Capability.LinkPayment`, `V2.Core.Account.Configuration.Merchant.Capability.MobilepayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.MultibancoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.MxBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.NaverPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.OxxoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.P24Payment`, `V2.Core.Account.Configuration.Merchant.Capability.PayByBankPayment`, `V2.Core.Account.Configuration.Merchant.Capability.PaycoPayment`, `V2.Core.Account.Configuration.Merchant.Capability.PaynowPayment`, `V2.Core.Account.Configuration.Merchant.Capability.PromptpayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.RevolutPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.SamsungPayPayment`, `V2.Core.Account.Configuration.Merchant.Capability.SepaBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.SepaDebitPayment`, `V2.Core.Account.Configuration.Merchant.Capability.StripeBalance.Payout`, `V2.Core.Account.Configuration.Merchant.Capability.SwishPayment`, `V2.Core.Account.Configuration.Merchant.Capability.TwintPayment`, `V2.Core.Account.Configuration.Merchant.Capability.UsBankTransferPayment`, `V2.Core.Account.Configuration.Merchant.Capability.ZipPayment`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Local`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Wire`, `V2.Core.Account.Configuration.Recipient.Capability.Card`, `V2.Core.Account.Configuration.Recipient.Capability.StripeBalance.Payout`, `V2.Core.Account.Configuration.Recipient.Capability.StripeBalance.StripeTransfer`, `V2.Core.Account.Configuration.Storer.Capability.FinancialAddress.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Eur`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Gbp`, `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency.Usd`, `V2.Core.Account.Configuration.Storer.Capability.InboundTransfer.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.BankAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.Card`, `V2.Core.Account.Configuration.Storer.Capability.OutboundPayment.FinancialAccount`, `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer.BankAccount`, and `V2.Core.Account.Configuration.Storer.Capability.OutboundTransfer.FinancialAccount`
+ * Add support for new values `al_bank_account`, `am_bank_account`, `bn_bank_account`, `bw_bank_account`, `dz_bank_account`, `gy_bank_account`, `jm_bank_account`, `jo_bank_account`, `kw_bank_account`, `lk_bank_account`, `ma_bank_account`, `om_bank_account`, and `tz_bank_account` on enum `V2.Core.Account.Configuration.Recipient.DefaultOutboundDestination.type`
+ * Change type of `V2.Core.Account.Identity.BusinessDetail.AnnualRevenue.amount`, `V2.Core.Account.Identity.BusinessDetail.MonthlyEstimatedRevenue.amount`, `V2.MoneyManagement.Adjustment.amount`, `V2.MoneyManagement.InboundTransfer.amount`, `V2.MoneyManagement.OutboundPayment.amount`, `V2.MoneyManagement.OutboundPaymentQuote.EstimatedFee.amount`, `V2.MoneyManagement.OutboundPaymentQuote.amount`, `V2.MoneyManagement.OutboundTransfer.amount`, `V2.MoneyManagement.ReceivedCredit.amount`, `V2.MoneyManagement.ReceivedDebit.amount`, `V2.MoneyManagement.Transaction.amount`, `v2.FinancialAddressCreditSimulationCreditParams.amount`, `v2.core.AccountCreateParamsIdentityBusinessDetailAnnualRevenue.amount`, `v2.core.AccountCreateParamsIdentityBusinessDetailMonthlyEstimatedRevenue.amount`, `v2.core.AccountModifyParamsIdentityBusinessDetailAnnualRevenue.amount`, `v2.core.AccountModifyParamsIdentityBusinessDetailMonthlyEstimatedRevenue.amount`, `v2.core.AccountTokenCreateParamsIdentityBusinessDetailAnnualRevenue.amount`, `v2.core.AccountTokenCreateParamsIdentityBusinessDetailMonthlyEstimatedRevenue.amount`, `v2.money_management.InboundTransferCreateParams.amount`, `v2.money_management.OutboundPaymentCreateParams.amount`, `v2.money_management.OutboundPaymentQuoteCreateParams.amount`, and `v2.money_management.OutboundTransferCreateParams.amount` from `amount` to `an object`
+ * Add support for new values `at_stn`, `at_vat`, `be_vat`, `bg_vat`, `ca_gst_hst`, `cy_he`, `cy_vat`, `cz_vat`, `de_stn`, `dk_vat`, `ee_vat`, `es_vat`, `fi_vat`, `fr_rna`, `gr_afm`, `gr_vat`, `hr_mbs`, `hr_oib`, `hr_vat`, `hu_tin`, `hu_vat`, `ie_trn`, `ie_vat`, `lt_vat`, `lu_nif`, `lu_vat`, `lv_vat`, `mt_tin`, `mt_vat`, `my_itn`, `nl_rsin`, `nl_vat`, `nz_ird`, `pl_nip`, `pl_vat`, `ro_orc`, `ro_vat`, `se_vat`, `si_tin`, `si_vat`, `sk_dic`, and `sk_vat` on enums `V2.Core.Account.Identity.BusinessDetail.IdNumber.type`, `v2.core.AccountCreateParamsIdentityBusinessDetailIdNumber.type`, `v2.core.AccountModifyParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetailIdNumber.type`
+ * Remove support for value `hk_mbs` from enums `V2.Core.Account.Identity.BusinessDetail.IdNumber.type`, `v2.core.AccountCreateParamsIdentityBusinessDetailIdNumber.type`, `v2.core.AccountModifyParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityBusinessDetailIdNumber.type`
+ * Add support for new values `ar_cuil`, `at_stn`, `be_nrn`, `bg_ucn`, `bn_nric`, `ca_sin`, `ch_oasi`, `cl_rut`, `cn_pp`, `co_nuip`, `cr_ci`, `cy_tic`, `cz_rc`, `dk_cpr`, `do_cie`, `ec_ci`, `ee_ik`, `es_nif`, `fi_hetu`, `fr_nir`, `gb_nino`, `gr_afm`, `hr_oib`, `hu_ad`, `id_nik`, `ie_ppsn`, `is_kt`, `it_cf`, `jp_inc`, `ke_pin`, `li_peid`, `lt_ak`, `lu_nif`, `lv_pk`, `ng_nin`, `no_nin`, `nz_ird`, `pl_pesel`, `pt_nif`, `ro_cnp`, `se_pin`, `sk_dic`, `tr_tin`, `uy_dni`, and `za_id` on enums `V2.Core.Account.Identity.Individual.IdNumber.type`, `V2.Core.AccountPerson.IdNumber.type`, `v2.core.AccountCreateParamsIdentityIndividualIdNumber.type`, `v2.core.AccountModifyParamsIdentityIndividualIdNumber.type`, `v2.core.AccountPersonCreateParamsIdNumber.type`, `v2.core.AccountPersonModifyParamsIdNumber.type`, `v2.core.AccountPersonTokenCreateParamsIdNumber.type`, and `v2.core.AccountTokenCreateParamsIdentityIndividualIdNumber.type`
+ * Change `V2.Core.Account.Default.responsibilities` to be required
+ * Change `V2.Core.Account.Default.Responsibility.fees_collector` to be optional
+ * Change `V2.Core.Account.Default.Responsibility.losses_collector` to be optional
+ * Add support for `financial_connections_account` on `V2.Core.Vault.UsBankAccount` and `V2.MoneyManagement.PayoutMethod.BankAccount`
+ * Change type of `V2.MoneyManagement.FinancialAccount.Balance.available`, `V2.MoneyManagement.Transaction.BalanceImpact.available`, and `V2.MoneyManagement.TransactionEntry.BalanceImpact.available` from `amount` to `an object`
+ * Change type of `V2.MoneyManagement.FinancialAccount.Balance.inbound_pending`, `V2.MoneyManagement.Transaction.BalanceImpact.inbound_pending`, and `V2.MoneyManagement.TransactionEntry.BalanceImpact.inbound_pending` from `amount` to `an object`
+ * Change type of `V2.MoneyManagement.FinancialAccount.Balance.outbound_pending`, `V2.MoneyManagement.Transaction.BalanceImpact.outbound_pending`, and `V2.MoneyManagement.TransactionEntry.BalanceImpact.outbound_pending` from `amount` to `an object`
+ * Change type of `V2.MoneyManagement.InboundTransfer.From.debited`, `V2.MoneyManagement.OutboundPayment.From.debited`, `V2.MoneyManagement.OutboundPaymentQuote.From.debited`, and `V2.MoneyManagement.OutboundTransfer.From.debited` from `amount` to `an object`
+ * Change type of `V2.MoneyManagement.InboundTransfer.To.credited`, `V2.MoneyManagement.OutboundPayment.To.credited`, `V2.MoneyManagement.OutboundPaymentQuote.To.credited`, and `V2.MoneyManagement.OutboundTransfer.To.credited` from `amount` to `an object`
+ * Add support for `transfer` on `V2.MoneyManagement.ReceivedCredit.BalanceTransfer`
+ * Add support for new value `transfer` on enum `V2.MoneyManagement.ReceivedCredit.BalanceTransfer.type`
+ * Change `v2.core.AccountTokenCreateParams.identity` to be optional
+ * Change type of `v2.core.AccountListParams.applied_configurations` from `string` to `enum('customer'|'merchant'|'recipient'|'storer')`
+ * Add support for event notification `V2MoneyManagementPayoutMethodCreatedEvent` with related object `v2.money_management.PayoutMethod`
+ * Add support for error type `ControlledByAlternateResourceError`
+ * Remove support for error type `RateLimitError`
+ * Add support for error code `account_token_required_for_v2_account` on `QuotePreviewInvoice.LastFinalizationError`
+
## 14.1.0 - 2025-12-16
This release changes the pinned API version to `2025-12-15.clover`.
@@ -40,10 +88,46 @@ This release changes the pinned API version to `2025-12-15.clover`.
* [#1692](https://github.com/stripe/stripe-python/pull/1692) Updated bundled CA certificates
* [#1676](https://github.com/stripe/stripe-python/pull/1676) Add create_async method to EphemeralKey
+## 14.1.0b1 - 2025-11-18
+This release changes the pinned API version to `2025-11-17.preview`.
+
+* [#1663](https://github.com/stripe/stripe-python/pull/1663) Update generated code for beta
+ * Add support for new resources `v2.core.AccountPersonToken` and `v2.core.AccountToken`
+ * Remove support for resource `v2.payments.OffSessionPayment`
+ * Add support for `create` and `retrieve` methods on resources `v2.core.AccountPersonToken` and `v2.core.AccountToken`
+ * Remove support for `cancel`, `capture`, `create`, `list`, and `retrieve` methods on resource `v2.payments.OffSessionPayment`
+ * Change `Tax.Association.tax_transaction_attempts` to be required
+ * Add support for `specified_commercial_transactions_act_url` on `Account.BusinessProfile`, `AccountCreateParamsBusinessProfile`, and `AccountModifyParamsBusinessProfile`
+ * Add support for `paypay_payments` on `Account.Setting`, `AccountCreateParamsSetting`, and `AccountModifyParamsSetting`
+ * Change type of `billing.analytics.MeterUsageRetrieveParamsMeter.dimension_filters` from `string` to `array(string)`
+ * Change type of `billing.analytics.MeterUsageRetrieveParamsMeter.tenant_filters` from `string` to `array(string)`
+ * Add support for `car_rental_data`, `flight_data`, and `lodging_data` on `ChargeCaptureParamsPaymentDetail`, `ChargeModifyParamsPaymentDetail`, `PaymentIntentCaptureParamsPaymentDetail`, `PaymentIntentConfirmParamsPaymentDetail`, `PaymentIntentCreateParamsPaymentDetail`, and `PaymentIntentModifyParamsPaymentDetail`
+ * Add support for `supplementary_purchase_data` on `OrderCreateParamsPaymentSettingPaymentMethodOptionKlarna`, `OrderModifyParamsPaymentSettingPaymentMethodOptionKlarna`, `PaymentIntentConfirmParamsPaymentMethodOptionKlarna`, `PaymentIntentCreateParamsPaymentMethodOptionKlarna`, and `PaymentIntentModifyParamsPaymentMethodOptionKlarna`
+ * Add support for `allow_redisplay` and `customer_account` on `PaymentMethodListParams`
+ * Add support for `future_requirements` on `V2.Core.Account`
+ * Add support for `konbini_payments` and `script_statement_descriptor` on `V2.Core.Account.Configuration.Merchant`, `v2.core.AccountCreateParamsConfigurationMerchant`, and `v2.core.AccountModifyParamsConfigurationMerchant`
+ * Add support for `eur` on `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrency`, and `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrency`
+ * Add support for `requirements_collector` on `V2.Core.Account.Default.Responsibility`
+ * Add support for new value `ar_cuit` on enums `V2.Core.Account.Identity.BusinessDetail.IdNumber.type`, `v2.core.AccountCreateParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.AccountModifyParamsIdentityBusinessDetailIdNumber.type`
+ * Add support for new value `ar_dni` on enums `V2.Core.Account.Identity.Individual.IdNumber.type`, `V2.Core.AccountPerson.IdNumber.type`, `v2.core.AccountCreateParamsIdentityIndividualIdNumber.type`, `v2.core.AccountModifyParamsIdentityIndividualIdNumber.type`, `v2.core.AccountPersonCreateParamsIdNumber.type`, and `v2.core.AccountPersonModifyParamsIdNumber.type`
+ * Remove support for `collector` on `V2.Core.Account.Requirement`
+ * Add support for new value `holds_currencies.eur` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability`
+ * Add support for new values `payment_method` and `person` on enum `V2.Core.Account.Requirement.Entry.Reference.type`
+ * Remove support for value `resource` from enum `V2.Core.Account.Requirement.Entry.Reference.type`
+ * Remove support for value `future_requirements` from enum `V2.Core.Account.Requirement.Entry.RequestedReason.code`
+ * Add support for `changes` on `V2.Core.Event`
+ * Remove support for value `sepa_bank_account` from enums `V2.MoneyManagement.FinancialAddress.Credential.type` and `v2.money_management.FinancialAddressCreateParams.type`
+ * Add support for `account_token` on `v2.core.AccountCreateParams` and `v2.core.AccountModifyParams`
+ * Add support for new value `future_requirements` on enums `v2.core.AccountCreateParams.include`, `v2.core.AccountModifyParams.include`, and `v2.core.AccountRetrieveParams.include`
+ * Add support for `person_token` on `v2.core.AccountPersonCreateParams` and `v2.core.AccountPersonModifyParams`
+ * Add support for thin event `V2CoreHealthEventGenerationFailureResolvedEvent`
+ * Remove support for thin events `V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent`, `V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent`, `V2PaymentsOffSessionPaymentCanceledEvent`, `V2PaymentsOffSessionPaymentCreatedEvent`, `V2PaymentsOffSessionPaymentFailedEvent`, `V2PaymentsOffSessionPaymentRequiresCaptureEvent`, and `V2PaymentsOffSessionPaymentSucceededEvent` with related object `v2.payments.OffSessionPayment`
+* [#1670](https://github.com/stripe/stripe-python/pull/1670) Ramya/merge python beta
+
## 14.0.1 - 2025-11-21
* [#1684](https://github.com/stripe/stripe-python/pull/1684) Update generated code
* `stripe.error` module is now accessible globally. Fixes [#1682](https://github.com/stripe/stripe-python/issues/1682)
-* [#1681](https://github.com/stripe/stripe-python/pull/1681) Throw a specific error when accessing `payment_intent` property on `Invoice` object to ease debugging.
+* [#1681](https://github.com/stripe/stripe-python/pull/1681) Throw a specific error when accessing `payment_intent` property on `Invoice` object to ease debugging.
## 14.0.0 - 2025-11-18
This release changes the pinned API version to `2025-11-17.clover`.
@@ -76,12 +160,53 @@ This release changes the pinned API version to `2025-11-17.clover`.
* [#1662](https://github.com/stripe/stripe-python/pull/1662) Update generated code
* Add support for `capture_method` on `PaymentIntent.PaymentMethodOption.CardPresent`, `PaymentIntentConfirmParamsPaymentMethodOptionCardPresent`, `PaymentIntentCreateParamsPaymentMethodOptionCardPresent`, and `PaymentIntentModifyParamsPaymentMethodOptionCardPresent`
+## 13.2.0b1 - 2025-10-29
+
+This release changes the pinned API version to `2025-10-29.preview`.
+
+* [#1655](https://github.com/stripe/stripe-python/pull/1655) Update generated code for beta
+ * Add support for `crypto_storer` on `v2.core.AccountModifyParamsIdentityAttestationTermsOfService`
+* [#1624](https://github.com/stripe/stripe-python/pull/1624) Update generated code for beta
+ * Add support for `modify` method on resource `v2.money_management.FinancialAccount`
+ * Add support for `confirm_microdeposits`, `list`, and `send_microdeposits` methods on resource `v2.core.vault.UsBankAccount`
+ * Add support for `list` method on resource `v2.core.vault.GbBankAccount`
+ * Add support for new value `verification_data_not_found` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, `BankAccount.Requirement.Error.code`, `Capability.FutureRequirement.Error.code`, `Capability.Requirement.Error.code`, `Person.FutureRequirement.Error.code`, and `Person.Requirement.Error.code`
+ * Add support for `payment_portal_url` on `Charge.PaymentMethodDetail.Rechnung`, `PaymentAttemptRecord.PaymentMethodDetail.Rechnung`, and `PaymentRecord.PaymentMethodDetail.Rechnung`
+ * Add support for `tax_id_element` on `CustomerSession.Component` and `CustomerSessionCreateParamsComponent`
+ * Add support for `starting_after` on `PaymentAttemptRecordListParams`
+ * Add support for new value `solana` on enums `PaymentAttemptRecord.PaymentMethodDetail.Crypto.network` and `PaymentRecord.PaymentMethodDetail.Crypto.network`
+ * Add support for `reference` on `PaymentIntentAmountDetailsLineItem.PaymentMethodOption.Klarna`, `PaymentIntentCaptureParamsAmountDetailLineItemPaymentMethodOptionKlarna`, `PaymentIntentConfirmParamsAmountDetailLineItemPaymentMethodOptionKlarna`, `PaymentIntentCreateParamsAmountDetailLineItemPaymentMethodOptionKlarna`, `PaymentIntentIncrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionKlarna`, and `PaymentIntentModifyParamsAmountDetailLineItemPaymentMethodOptionKlarna`
+ * Change `PaymentIntent.PaymentDetail.customer_reference` to be required
+ * Change `PaymentIntent.PaymentDetail.order_reference` to be required
+ * Add support for `subscription_reference` on `PaymentIntentAmountDetailsLineItem.PaymentMethodOption.Klarna`
+ * Add support for `closed` on `V2.Core.Account` and `v2.core.AccountListParams`
+ * Add support for new value `payment_method` on enums `V2.Core.Account.Configuration.Customer.AutomaticIndirectTax.location_source`, `v2.core.AccountCreateParamsConfigurationCustomerAutomaticIndirectTax.location_source`, and `v2.core.AccountModifyParamsConfigurationCustomerAutomaticIndirectTax.location_source`
+ * Add support for `usd` on `V2.Core.Account.Configuration.Storer.Capability.HoldsCurrency`, `v2.core.AccountCreateParamsConfigurationStorerCapabilityHoldsCurrency`, and `v2.core.AccountModifyParamsConfigurationStorerCapabilityHoldsCurrency`
+ * Add support for new values `application_custom` and `application_express` on enums `V2.Core.Account.Default.Responsibility.fees_collector`, `v2.core.AccountCreateParamsDefaultResponsibility.fees_collector`, and `v2.core.AccountModifyParamsDefaultResponsibility.fees_collector`
+ * Add support for `representative_declaration` on `V2.Core.Account.Identity.Attestation`, `v2.core.AccountCreateParamsIdentityAttestation`, and `v2.core.AccountModifyParamsIdentityAttestation`
+ * Add support for new value `holds_currencies.usd` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability`
+ * Add support for `verification` on `V2.Core.Vault.UsBankAccount`
+ * Add support for `v1_id` on `EventsV2MoneyManagementTransactionCreatedEvent`
+ * Remove support for thin event `V2BillingBillSettingUpdatedEvent` with related object `v2.billing.BillSetting`
+ * Add support for error code `payment_intent_rate_limit_exceeded` on `QuotePreviewInvoice.LastFinalizationError`
+ * Add support for error codes `blocked_payout_method_crypto_wallet` and `unsupported_payout_method_crypto_wallet` on `BlockedByStripeError`
+ * Add support for error code `outbound_flow_from_closed_financial_account_unsupported` on `FeatureNotEnabledError`
+ * Add support for error code `limit_payout_method_crypto_wallet` on `QuotaExceededError`
+* [#1617](https://github.com/stripe/stripe-python/pull/1617) Update generated code for beta
+ * Add support for `last_seen_at` on `Terminal.Reader`
+ * Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.api_version`
+
## 13.1.2 - 2025-11-04
* [#1661](https://github.com/stripe/stripe-python/pull/1661) Add support for value `payment_record` to enum `InvoicePayment.payment.type`
## 13.1.1 - 2025-10-31
* [#1660](https://github.com/stripe/stripe-python/pull/1660) Fix `stripe-context` header not being included in paged list requests
+## 13.1.1b1 - 2025-10-03
+* [#1617](https://github.com/stripe/stripe-python/pull/1617) Update generated code for beta
+ * Add support for `last_seen_at` on `Terminal.Reader`
+ * Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.api_version`
+
## 13.1.0 - 2025-10-29
This release changes the pinned API version to `2025-10-29.clover`.
@@ -136,6 +261,71 @@ This release changes the pinned API version to `2025-10-29.clover`.
- lazily initialize subservices
- add module-level `__getattr__` functions to most `__init__.py` files
+## 13.1.0b1 - 2025-09-30
+This release changes the pinned API version to `2025-09-30.preview`. It is built on top of SDK version 13.0.0 which contains breaking changes. Please review the [changelog for 13.0.0](https://github.com/stripe/stripe-go/blob/master/CHANGELOG.md#1300---2025-09-30) if upgrading from older SDK versions.
+
+* [#1597](https://github.com/stripe/stripe-python/pull/1597) Update generated code for beta
+ * Add support for `attach_cadence` method on resource `Subscription`
+ * Add support for `billing_cadence` on `Invoice.CreatePreviewParams`, `Subscription.CreateParams`, `Subscription.ModifyParams`, and `Subscription`
+ * Add support for `billing_cadence_details` on `Invoice.Parent` and `QuotePreviewInvoice.Parent`
+ * Add support for new value `billing_cadence_details` on enums `Invoice.Parent.type` and `QuotePreviewInvoice.Parent.type`
+* [#1584](https://github.com/stripe/stripe-python/pull/1584) Update generated code for beta
+ * Add support for new resources `v2.billing.BillSettingVersion`, `v2.billing.BillSetting`, `v2.billing.Cadence`, `v2.billing.CollectionSettingVersion`, `v2.billing.CollectionSetting`, and `v2.billing.Profile`
+ * Add support for `create`, `list`, `modify`, and `retrieve` methods on resources `v2.billing.BillSetting`, `v2.billing.CollectionSetting`, and `v2.billing.Profile`
+ * Add support for `list` and `retrieve` methods on resources `v2.billing.BillSettingVersion` and `v2.billing.CollectionSettingVersion`
+ * Add support for `cancel`, `create`, `list`, `modify`, and `retrieve` methods on resource `v2.billing.Cadence`
+ * Add support for new value `crypto_wallet` on enum `V2.Core.Account.Configuration.Recipient.DefaultOutboundDestination.type`
+ * Add support for `profile` on `V2.Core.Account.Default`, `v2.core.Account.CreateParamsDefault`, and `v2.core.Account.ModifyParamsDefault`
+ * Add support for `i_p` on `V2.Core.Account.Identity.Attestation.DirectorshipDeclaration`, `V2.Core.Account.Identity.Attestation.OwnershipDeclaration`, `V2.Core.Account.Identity.Attestation.TermsOfService.Account`, `V2.Core.Account.Identity.Attestation.TermsOfService.Storer`, `V2.Core.Account.Identity.Individual.AdditionalTermsOfService.Account`, `V2.Core.Person.AdditionalTermsOfService.Account`, `v2.core.Account.CreateParamsIdentityAttestationTermsOfServiceAccount`, `v2.core.Account.CreateParamsIdentityAttestationTermsOfServiceStorer`, `v2.core.Account.ModifyParamsIdentityAttestationTermsOfServiceAccount`, `v2.core.Account.ModifyParamsIdentityAttestationTermsOfServiceStorer`, `v2.core.Person.CreateParamsAdditionalTermsOfServiceAccount`, and `v2.core.Person.ModifyParamsAdditionalTermsOfServiceAccount`
+ * Remove support for `ip` on `V2.Core.Account.Identity.Attestation.DirectorshipDeclaration`, `V2.Core.Account.Identity.Attestation.OwnershipDeclaration`, `V2.Core.Account.Identity.Attestation.TermsOfService.Account`, `V2.Core.Account.Identity.Attestation.TermsOfService.Storer`, `V2.Core.Account.Identity.Individual.AdditionalTermsOfService.Account`, `V2.Core.Person.AdditionalTermsOfService.Account`, `v2.core.Account.CreateParamsIdentityAttestationTermsOfServiceAccount`, `v2.core.Account.CreateParamsIdentityAttestationTermsOfServiceStorer`, `v2.core.Account.ModifyParamsIdentityAttestationTermsOfServiceAccount`, `v2.core.Account.ModifyParamsIdentityAttestationTermsOfServiceStorer`, `v2.core.Person.CreateParamsAdditionalTermsOfServiceAccount`, and `v2.core.Person.ModifyParamsAdditionalTermsOfServiceAccount`
+ * Remove support for `doing_business_as`, `product_description`, and `url` on `V2.Core.Account.Identity.BusinessDetail`, `v2.core.Account.CreateParamsIdentityBusinessDetail`, and `v2.core.Account.ModifyParamsIdentityBusinessDetail`
+ * Add support for `settlement_currency` on `V2.MoneyManagement.FinancialAddress`
+ * Add support for `sepa_bank_account` on `V2.MoneyManagement.FinancialAddress.Credential` and `V2.MoneyManagement.ReceivedCredit.BankTransfer`
+ * Add support for new value `sepa_bank_account` on enum `V2.MoneyManagement.FinancialAddress.Credential.type`
+ * Add support for `amount_details` and `payments_orchestration` on `V2.Payments.OffSessionPayment` and `v2.payments.OffSessionPayment.CreateParams`
+ * Add support for new value `authorization_expired` on enum `V2.Payments.OffSessionPayment.failure_reason`
+ * Add support for `retry_policy` on `V2.Payments.OffSessionPayment.RetryDetail` and `v2.payments.OffSessionPayment.CreateParamsRetryDetail`
+ * Add support for new values `heuristic` and `scheduled` on enums `V2.Payments.OffSessionPayment.RetryDetail.retry_strategy` and `v2.payments.OffSessionPayment.CreateParamsRetryDetail.retry_strategy`
+ * Change type of `V2.MoneyManagement.OutboundPaymentQuote.FxQuote.lock_duration` from `literal('five_minutes')` to `enum('five_minutes'|'none')`
+ * Change type of `V2.MoneyManagement.OutboundPaymentQuote.FxQuote.lock_expires_at` from `DateTime` to `nullable(DateTime)`
+ * Add support for new value `none` on enum `V2.MoneyManagement.OutboundPaymentQuote.FxQuote.lock_status`
+ * Add support for new value `crypto_wallet` on enums `V2.MoneyManagement.PayoutMethod.type`, `v2.money_management.OutboundSetupIntent.CreateParamsPayoutMethodDatum.type`, and `v2.money_management.OutboundSetupIntent.ModifyParamsPayoutMethodDatum.type`
+ * Add support for `origin_type` on `V2.MoneyManagement.ReceivedCredit.BankTransfer`
+ * Remove support for `payment_method_type` on `V2.MoneyManagement.ReceivedCredit.BankTransfer`
+ * Add support for `mandate_data` and `payment_method_options` on `v2.payments.OffSessionPayment.CreateParams`
+ * Add support for `type` on `v2.money_management.FinancialAddress.CreateParams`
+ * Remove support for `currency` on `v2.money_management.FinancialAddress.CreateParams`
+ * Add support for new values `financial_addressses.crypto_wallets`, `holds_currencies.usdc`, `outbound_payments.crypto_wallets`, and `outbound_transfers.crypto_wallets` on enum `EventsV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.updated_capability`
+ * Add support for thin event `V2BillingBillSettingUpdatedEvent` with related object `v2.billing.BillSetting`
+ * Add support for error type `RateLimitError`
+ * Add support for error code `invalid_payout_method_crypto_wallet` on `InvalidPayoutMethodError`
+* [#1555](https://github.com/stripe/stripe-python/pull/1555) Update generated code for beta
+ * Add support for new resources `billing.analytics.MeterUsageRow` and `billing.analytics.MeterUsage`
+ * Remove support for resources `billing.MeterUsageRow` and `billing.MeterUsage`
+ * Add support for `retrieve` method on resource `billing.analytics.MeterUsage`
+ * Remove support for `retrieve` method on resource `billing.MeterUsage`
+ * Add support for `report_payment_attempt_informational` method on resource `PaymentRecord`
+ * Add support for `minimum_balance_by_currency` on `BalanceSettings.ModifyParamsPaymentPayout` and `BalanceSettings.Payment.Payout`
+ * Remove support for values `saturday` and `sunday` from enums `BalanceSettings.ModifyParamsPaymentPayoutSchedule.weekly_payout_days` and `BalanceSettings.Payment.Payout.Schedule.weekly_payout_days`
+ * Change type of `BalanceSettings.ModifyParamsPaymentSettlementTiming.delay_days_override` from `longInteger` to `emptyable(longInteger)`
+ * Change `BalanceSettings.ModifyParams.payments` to be optional
+ * Add support for `delay_days_override` on `BalanceSettings.Payment.SettlementTiming`
+ * Add support for `automatic_tax` and `invoice_creation` on `checkout.Session.ModifyParams`
+ * Add support for `unit_label` on `checkout.Session.ModifyParamsLineItemPriceDatumProductDatum`
+ * Add support for `invoice_settings` on `checkout.Session.ModifyParamsSubscriptionDatum`
+ * Change `Checkout.Session.CollectedInformation.business_name` to be required
+ * Add support for `intended_submission_method` on `Dispute.ModifyParams` and `Dispute`
+ * Change type of `Dispute.SmartDispute.recommended_evidence` from `string` to `array(string)`
+ * Add support for `pix` on `Invoice.CreateParamsPaymentSettingPaymentMethodOption`, `Invoice.ModifyParamsPaymentSettingPaymentMethodOption`, `Invoice.PaymentSetting.PaymentMethodOption`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption`, `Subscription.CreateParamsPaymentSettingPaymentMethodOption`, `Subscription.ModifyParamsPaymentSettingPaymentMethodOption`, and `Subscription.PaymentSetting.PaymentMethodOption`
+ * Add support for new value `pix` on enums `Invoice.CreateParamsPaymentSetting.payment_method_types`, `Invoice.ModifyParamsPaymentSetting.payment_method_types`, `Invoice.PaymentSetting.payment_method_types`, `QuotePreviewInvoice.PaymentSetting.payment_method_types`, `Subscription.CreateParamsPaymentSetting.payment_method_types`, `Subscription.ModifyParamsPaymentSetting.payment_method_types`, and `Subscription.PaymentSetting.payment_method_types`
+ * Add support for `billing_schedules` on `Invoice.CreatePreviewParamsSubscriptionDetail`, `Subscription.CreateParams`, `Subscription.ModifyParams`, and `Subscription`
+ * Add support for `paypay` on `PaymentAttemptRecord.PaymentMethodDetail` and `PaymentRecord.PaymentMethodDetail`
+ * Add support for `wallet` on `PaymentAttemptRecord.PaymentMethodDetail.Card` and `PaymentRecord.PaymentMethodDetail.Card`
+ * Change type of `PaymentAttemptRecord.ProcessorDetail.Custom.payment_reference` and `PaymentRecord.ProcessorDetail.Custom.payment_reference` from `string` to `nullable(string)`
+ * Add support for `flexible` on `QuotePreviewSubscriptionSchedule.BillingMode`
+ * Add support for `billed_until` on `SubscriptionItem`
+ * Add support for error codes `financial_connections_account_pending_account_numbers` and `financial_connections_account_unavailable_account_numbers` on `QuotePreviewInvoice.LastFinalizationError`
+
## 13.0.1 - 2025-10-03
* [#1626](https://github.com/stripe/stripe-python/pull/1626) Make the new nested params classes correctly importable
- For example, In SDK `v13.0.0`, `from stripe.params.checkout import SessionCreateParamsDiscount` would raise an error when it shouldn't have. This is fixed.
@@ -272,6 +462,42 @@ This release changes the pinned API version to `2025-09-30.clover` and contains
* Add support for new value `2025-09-30.clover` on enum `WebhookEndpoint.CreateParams.api_version`
* Add support for error codes `financial_connections_account_pending_account_numbers` and `financial_connections_account_unavailable_account_numbers` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError`
+## 12.6.0b1 - 2025-08-27
+This release changes the pinned API version to `2025-08-27.preview`.
+
+* [#1542](https://github.com/stripe/stripe-python/pull/1542) Update generated code for beta
+ * Add support for `list` and `retrieve` methods on resource `InvoicePayment`
+ * Add support for `list` method on resource `Mandate`
+ * Add support for `applied` on `V2.Core.Account.Configuration.Customer`, `V2.Core.Account.Configuration.Merchant`, `V2.Core.Account.Configuration.Recipient`, `V2.Core.Account.Configuration.Storer`, `v2.core.Account.ModifyParamsConfigurationCustomer`, `v2.core.Account.ModifyParamsConfigurationMerchant`, `v2.core.Account.ModifyParamsConfigurationRecipient`, and `v2.core.Account.ModifyParamsConfigurationStorer`
+ * Add support for new values `ao_nif`, `az_tin`, `bd_etin`, `cr_cpj`, `cr_nite`, `do_rcn`, `gt_nit`, `kz_bin`, `mz_nuit`, `pe_ruc`, `pk_ntn`, `sa_crn`, and `sa_tin` on enums `V2.Core.Account.Identity.BusinessDetail.IdNumber.type`, `v2.core.Account.CreateParamsIdentityBusinessDetailIdNumber.type`, and `v2.core.Account.ModifyParamsIdentityBusinessDetailIdNumber.type`
+ * Add support for new values `ao_nif`, `az_tin`, `bd_brc`, `bd_etin`, `bd_nid`, `cr_cpf`, `cr_dimex`, `cr_nite`, `do_rcn`, `gt_nit`, `kz_iin`, `mz_nuit`, `pe_dni`, `pk_cnic`, `pk_snic`, and `sa_tin` on enums `V2.Core.Account.Identity.Individual.IdNumber.type`, `V2.Core.Person.IdNumber.type`, `v2.core.Account.CreateParamsIdentityIndividualIdNumber.type`, `v2.core.Account.ModifyParamsIdentityIndividualIdNumber.type`, `v2.core.Person.CreateParamsIdNumber.type`, and `v2.core.Person.ModifyParamsIdNumber.type`
+ * Change type of `Billing.AlertTriggered.value` from `longInteger` to `decimal_string`
+ * Add support for `display_name` on `V2.MoneyManagement.FinancialAccount` and `v2.money_management.FinancialAccount.CreateParams`
+ * Add support for new value `currency_conversion` on enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.category`
+ * Add support for `currency_conversion` on `V2.MoneyManagement.Transaction.Flow` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow`
+ * Add support for new value `currency_conversion` on enums `V2.MoneyManagement.Transaction.Flow.type` and `V2.MoneyManagement.TransactionEntry.TransactionDetail.Flow.type`
+ * Add support for `payments` on `BalanceSettings.ModifyParams` and `BalanceSettings`
+ * Remove support for `debit_negative_balances`, `payouts`, and `settlement_timing` on `BalanceSettings.ModifyParams` and `BalanceSettings`
+ * Add support for `mandate` on `Charge.PaymentMethodDetail.Pix`, `PaymentAttemptRecord.PaymentMethodDetail.Pix`, and `PaymentRecord.PaymentMethodDetail.Pix`
+ * Add support for `coupon_data` on `checkout.Session.CreateParamsDiscount`
+ * Add support for `mandate_options` on `Checkout.Session.PaymentMethodOption.Pix`, `PaymentIntent.ConfirmParamsPaymentMethodOptionPix`, `PaymentIntent.CreateParamsPaymentMethodOptionPix`, `PaymentIntent.ModifyParamsPaymentMethodOptionPix`, `PaymentIntent.PaymentMethodOption.Pix`, and `checkout.Session.CreateParamsPaymentMethodOptionPix`
+ * Change type of `Checkout.Session.PaymentMethodOption.Pix.setup_future_usage`, `PaymentIntent.ConfirmParamsPaymentMethodOptionPix.setup_future_usage`, `PaymentIntent.CreateParamsPaymentMethodOptionPix.setup_future_usage`, `PaymentIntent.ModifyParamsPaymentMethodOptionPix.setup_future_usage`, `PaymentIntent.PaymentMethodOption.Pix.setup_future_usage`, and `checkout.Session.CreateParamsPaymentMethodOptionPix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
+ * Add support for `amount` on `Mandate.MultiUse`, `PaymentAttemptRecord`, and `PaymentRecord`
+ * Add support for `currency` on `Mandate.MultiUse`
+ * Add support for `pix` on `Mandate.PaymentMethodDetail`, `SetupAttempt.PaymentMethodDetail`, `SetupIntent.ConfirmParamsPaymentMethodOption`, `SetupIntent.CreateParamsPaymentMethodOption`, `SetupIntent.ModifyParamsPaymentMethodOption`, and `SetupIntent.PaymentMethodOption`
+ * Add support for `limit` on `PaymentAttemptRecord.ListParams`
+ * Add support for `amount_authorized`, `amount_refunded`, and `application` on `PaymentAttemptRecord` and `PaymentRecord`
+ * Add support for `processor_details` on `PaymentAttemptRecord`, `PaymentRecord.ReportPaymentParams`, and `PaymentRecord`
+ * Remove support for `payment_reference` on `PaymentAttemptRecord`, `PaymentRecord.ReportPaymentParams`, and `PaymentRecord`
+ * Add support for `installments` on `PaymentAttemptRecord.PaymentMethodDetail.Alma` and `PaymentRecord.PaymentMethodDetail.Alma`
+ * Add support for `transaction_id` on `PaymentAttemptRecord.PaymentMethodDetail.Alma`, `PaymentAttemptRecord.PaymentMethodDetail.AmazonPay`, `PaymentAttemptRecord.PaymentMethodDetail.Billie`, `PaymentAttemptRecord.PaymentMethodDetail.KakaoPay`, `PaymentAttemptRecord.PaymentMethodDetail.KrCard`, `PaymentAttemptRecord.PaymentMethodDetail.NaverPay`, `PaymentAttemptRecord.PaymentMethodDetail.Payco`, `PaymentAttemptRecord.PaymentMethodDetail.RevolutPay`, `PaymentAttemptRecord.PaymentMethodDetail.SamsungPay`, `PaymentAttemptRecord.PaymentMethodDetail.Satispay`, `PaymentRecord.PaymentMethodDetail.Alma`, `PaymentRecord.PaymentMethodDetail.AmazonPay`, `PaymentRecord.PaymentMethodDetail.Billie`, `PaymentRecord.PaymentMethodDetail.KakaoPay`, `PaymentRecord.PaymentMethodDetail.KrCard`, `PaymentRecord.PaymentMethodDetail.NaverPay`, `PaymentRecord.PaymentMethodDetail.Payco`, `PaymentRecord.PaymentMethodDetail.RevolutPay`, `PaymentRecord.PaymentMethodDetail.SamsungPay`, and `PaymentRecord.PaymentMethodDetail.Satispay`
+ * Add support for `location` and `reader` on `PaymentAttemptRecord.PaymentMethodDetail.Paynow` and `PaymentRecord.PaymentMethodDetail.Paynow`
+ * Add support for `latest_active_mandate` on `PaymentMethod`
+ * Change `Payout.payout_method` to be required
+ * Add support for `metadata` and `period` on `QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem`
+ * Add support for `pix_display_qr_code` on `SetupIntent.NextAction`
+ * Add support for `reader_security` on `Terminal.Configuration`, `terminal.Configuration.CreateParams`, and `terminal.Configuration.ModifyParams`
+ * Add support for error codes `customer_session_expired` and `india_recurring_payment_mandate_canceled` on `QuotePreviewInvoice.LastFinalizationError`
## 12.5.1 - 2025-09-05
* [#1563](https://github.com/stripe/stripe-python/pull/1563) fix: Paginate backwards if `starting_after == None`
@@ -310,6 +536,39 @@ This release changes the pinned API version to `2025-09-30.clover` and contains
```
Refer to the [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for help upgrading.
+## 12.5.0b2 - 2025-08-08
+* [#1545](https://github.com/stripe/stripe-python/pull/1545) Bring back invoice payments APIs that were missing in the public preview SDKs
+ * Add support for new resource `InvoicePayment`
+ * Add support for `list` and `retrieve` methods on resource `InvoicePayment`
+
+## 12.5.0b1 - 2025-07-30
+This release changes the pinned API version to `2025-07-30.preview`.
+
+* [#1535](https://github.com/stripe/stripe-python/pull/1535) Update generated code for beta
+ * Add support for new resources `billing.MeterUsageRow`, `billing.MeterUsage`, and `terminal.OnboardingLink`
+ * Add support for `retrieve` method on resource `billing.MeterUsage`
+ * Add support for `create` method on resource `terminal.OnboardingLink`
+ * Add support for `monthly_payout_days` and `weekly_payout_days` on `BalanceSettings.ModifyParamsPayoutSchedule` and `BalanceSettings.Payout.Schedule`
+ * Remove support for `monthly_anchor` and `weekly_anchor` on `BalanceSettings.ModifyParamsPayoutSchedule` and `BalanceSettings.Payout.Schedule`
+ * Add support for `delay_days_override` on `BalanceSettings.ModifyParamsSettlementTiming`
+ * Remove support for `delay_days` on `BalanceSettings.ModifyParamsSettlementTiming`
+ * Add support for `update_discounts` on `checkout.Session.CreateParamsPermission`
+ * Add support for `discounts` and `subscription_data` on `checkout.Session.ModifyParams`
+ * Add support for `smart_disputes` on `Dispute`
+ * Add support for `upi` on `Invoice.CreateParamsPaymentSettingPaymentMethodOption`, `Invoice.ModifyParamsPaymentSettingPaymentMethodOption`, `Invoice.PaymentSetting.PaymentMethodOption`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption`, `Subscription.CreateParamsPaymentSettingPaymentMethodOption`, `Subscription.ModifyParamsPaymentSettingPaymentMethodOption`, and `Subscription.PaymentSetting.PaymentMethodOption`
+ * Add support for new value `upi` on enums `Invoice.CreateParamsPaymentSetting.payment_method_types`, `Invoice.ModifyParamsPaymentSetting.payment_method_types`, `Invoice.PaymentSetting.payment_method_types`, `QuotePreviewInvoice.PaymentSetting.payment_method_types`, `Subscription.CreateParamsPaymentSetting.payment_method_types`, `Subscription.ModifyParamsPaymentSetting.payment_method_types`, and `Subscription.PaymentSetting.payment_method_types`
+ * Add support for `transaction_id` on `PaymentAttemptRecord.PaymentMethodDetail.Cashapp` and `PaymentRecord.PaymentMethodDetail.Cashapp`
+ * Add support for `amount_details` on `PaymentIntent.CaptureParams`, `PaymentIntent.ConfirmParams`, `PaymentIntent.CreateParams`, `PaymentIntent.IncrementAuthorizationParams`, and `PaymentIntent.ModifyParams`
+ * Add support for `payment_details` on `PaymentIntent.IncrementAuthorizationParams`
+ * Add support for `storer` on `V2.Core.Account.Identity.Attestation.TermsOfService`, `v2.core.Account.CreateParamsIdentityAttestationTermsOfService`, and `v2.core.Account.ModifyParamsIdentityAttestationTermsOfService`
+ * Add support for `collection_options` on `V2.Core.AccountLink.UseCase.AccountOnboarding`, `V2.Core.AccountLink.UseCase.AccountUpdate`, `v2.core.AccountLink.CreateParamsUseCaseAccountOnboarding`, and `v2.core.AccountLink.CreateParamsUseCaseAccountUpdate`
+ * Change type of `V2.Core.AccountLink.UseCase.AccountOnboarding.configurations`, `V2.Core.AccountLink.UseCase.AccountUpdate.configurations`, `v2.core.AccountLink.CreateParamsUseCaseAccountOnboarding.configurations`, and `v2.core.AccountLink.CreateParamsUseCaseAccountUpdate.configurations` from `literal('recipient')` to `enum('customer'|'merchant'|'recipient'|'storer')`
+ * Add support for `bank_account_type` on `V2.MoneyManagement.PayoutMethod.BankAccount`
+ * Add support for thin event `V2CoreAccountLinkReturnedEvent`
+ * Add support for thin event `V2MoneyManagementPayoutMethodUpdatedEvent` with related object `v2.money_management.PayoutMethod`
+ * Remove support for thin event `V2CoreAccountLinkCompletedEvent`
+ * Remove support for thin event `V2OffSessionPaymentRequiresCaptureEvent` with related object `v2.payments.OffSessionPayment`
+
## 12.4.0 - 2025-07-30
This release changes the pinned API version to `2025-07-30.basil`.
@@ -335,6 +594,58 @@ This release changes the pinned API version to `2025-07-30.basil`.
* Add support for new value `2025-07-30.basil` on enum `WebhookEndpoint.CreateParams.api_version`
* [#1537](https://github.com/stripe/stripe-python/pull/1537) Fix timeout type hint in RequestsClient
+## 12.4.0b2 - 2025-07-09
+* [#1536](https://github.com/stripe/stripe-python/pull/1536) Pull in V2 FinancialAccount changes for June release
+ * Add support for `close` and `create` methods on resource `v2.money_management.FinancialAccount`
+ * Add support for new value `storer` on enums `V2.Core.Account.applied_configurations` and `v2.core.Account.CloseParams.applied_configurations`
+ * Add support for `storer` on `V2.Core.Account.Configuration`, `v2.core.Account.CreateParamsConfiguration`, and `v2.core.Account.ModifyParamsConfiguration`
+ * Add support for new values `financial_addresses.bank_accounts`, `holds_currencies.gbp`, `inbound_transfers.financial_accounts`, `outbound_payments.bank_accounts`, `outbound_payments.cards`, `outbound_payments.financial_accounts`, `outbound_transfers.bank_accounts`, and `outbound_transfers.financial_accounts` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.capability`
+ * Add support for new value `storer` on enum `V2.Core.Account.Requirement.Entry.Impact.RestrictsCapability.configuration`
+ * Add support for `status_details` on `V2.MoneyManagement.FinancialAccount`
+ * Add support for `status` on `v2.money_management.FinancialAccount.ListParams`
+ * Add support for new value `configuration.storer` on enums `v2.core.Account.CreateParams.include`, `v2.core.Account.ModifyParams.include`, and `v2.core.Account.RetrieveParams.include`
+ * Add support for thin events `V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationStorerUpdatedEvent` with related object `v2.core.Account`
+ * Add support for error types `AlreadyExistsError` and `NonZeroBalanceError`
+
+## 12.4.0b1 - 2025-07-01
+This release changes the pinned API version to `2025-06-30.preview`.
+
+* [#1520](https://github.com/stripe/stripe-python/pull/1520) Update generated code for beta
+ * Change type of `Invoice.CreatePreviewParamsScheduleDetail.billing_mode`, `Invoice.CreatePreviewParamsSubscriptionDetail.billing_mode`, `Quote.CreateParamsSubscriptionDatum.billing_mode`, `Quote.SubscriptionDatum.billing_mode`, `Subscription.CreateParams.billing_mode`, `SubscriptionSchedule.CreateParams.billing_mode`, and `checkout.Session.CreateParamsSubscriptionDatum.billing_mode` from `enum('classic'|'flexible')` to `billing_mode`
+ * Add support for `submission_method` on `Dispute.EvidenceDetail`
+ * Add support for `on_demand` and `subscriptions` on `Order.CreateParamsPaymentSettingPaymentMethodOptionKlarna` and `Order.ModifyParamsPaymentSettingPaymentMethodOptionKlarna`
+ * Change type of `Order.CreateParamsPaymentSettingPaymentMethodOptionKlarna.setup_future_usage`, `Order.ModifyParamsPaymentSettingPaymentMethodOptionKlarna.setup_future_usage`, and `Order.Payment.Setting.PaymentMethodOption.Klarna.setup_future_usage` from `literal('none')` to `enum('none'|'off_session'|'on_session')`
+ * Add support for `crypto` on `PaymentAttemptRecord.PaymentMethodDetail` and `PaymentRecord.PaymentMethodDetail`
+ * Add support for new value `buut` on enums `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bank` and `PaymentRecord.PaymentMethodDetail.Ideal.bank`
+ * Add support for new value `BUUTNL2A` on enums `PaymentAttemptRecord.PaymentMethodDetail.Ideal.bic` and `PaymentRecord.PaymentMethodDetail.Ideal.bic`
+ * Change type of `PaymentIntent.ConfirmParamsPaymentMethodOptionGopay.setup_future_usage`, `PaymentIntent.CreateParamsPaymentMethodOptionGopay.setup_future_usage`, `PaymentIntent.ModifyParamsPaymentMethodOptionGopay.setup_future_usage`, and `PaymentIntent.PaymentMethodOption.Gopay.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
+ * Change `Quote.SubscriptionDatum.billing_mode`, `QuotePreviewSubscriptionSchedule.billing_mode`, `Subscription.billing_mode`, and `SubscriptionSchedule.billing_mode` to be required
+ * Add support for new value `crypto` on enum `QuotePreviewInvoice.PaymentSetting.payment_method_types`
+ * Change type of `QuotePreviewSubscriptionSchedule.billing_mode`, `Subscription.billing_mode`, and `SubscriptionSchedule.billing_mode` from `enum('classic'|'flexible')` to `SubscriptionsResourceBillingMode`
+ * Change type of `Subscription.MigrateParams.billing_mode` from `literal('flexible')` to `billing_mode_migrate`
+ * Remove support for `billing_mode_details` on `Subscription`
+ * Add support for new value `xx` on enums `V2.Core.Account.Configuration.Customer.AutomaticIndirectTax.Location.country`, `V2.Core.Account.Configuration.Customer.Shipping.Address.country`, `V2.Core.Account.Configuration.Merchant.Support.Address.country`, `V2.Core.Account.Identity.BusinessDetail.Address.country`, `V2.Core.Account.Identity.BusinessDetail.ScriptAddress.Kana.country`, `V2.Core.Account.Identity.BusinessDetail.ScriptAddress.Kanji.country`, `V2.Core.Account.Identity.Individual.AdditionalAddress.country`, `V2.Core.Account.Identity.Individual.Address.country`, `V2.Core.Account.Identity.Individual.ScriptAddress.Kana.country`, `V2.Core.Account.Identity.Individual.ScriptAddress.Kanji.country`, `V2.Core.Account.Identity.country`, `V2.Core.Person.AdditionalAddress.country`, `V2.Core.Person.Address.country`, `V2.Core.Person.ScriptAddress.Kana.country`, `V2.Core.Person.ScriptAddress.Kanji.country`, `V2.MoneyManagement.FinancialAccount.country`, `v2.core.Account.CreateParamsConfigurationCustomerShippingAddress.country`, `v2.core.Account.CreateParamsConfigurationMerchantSupportAddress.country`, `v2.core.Account.CreateParamsIdentity.country`, `v2.core.Account.CreateParamsIdentityBusinessDetailAddress.country`, `v2.core.Account.CreateParamsIdentityBusinessDetailScriptAddressKana.country`, `v2.core.Account.CreateParamsIdentityBusinessDetailScriptAddressKanji.country`, `v2.core.Account.CreateParamsIdentityIndividualAdditionalAddress.country`, `v2.core.Account.CreateParamsIdentityIndividualAddress.country`, `v2.core.Account.CreateParamsIdentityIndividualScriptAddressKana.country`, `v2.core.Account.CreateParamsIdentityIndividualScriptAddressKanji.country`, `v2.core.Account.ModifyParamsConfigurationCustomerShippingAddress.country`, `v2.core.Account.ModifyParamsConfigurationMerchantSupportAddress.country`, `v2.core.Account.ModifyParamsIdentity.country`, `v2.core.Account.ModifyParamsIdentityBusinessDetailAddress.country`, `v2.core.Account.ModifyParamsIdentityBusinessDetailScriptAddressKana.country`, `v2.core.Account.ModifyParamsIdentityBusinessDetailScriptAddressKanji.country`, `v2.core.Account.ModifyParamsIdentityIndividualAdditionalAddress.country`, `v2.core.Account.ModifyParamsIdentityIndividualAddress.country`, `v2.core.Account.ModifyParamsIdentityIndividualScriptAddressKana.country`, `v2.core.Account.ModifyParamsIdentityIndividualScriptAddressKanji.country`, `v2.core.Person.CreateParamsAdditionalAddress.country`, `v2.core.Person.CreateParamsAddress.country`, `v2.core.Person.CreateParamsScriptAddressKana.country`, `v2.core.Person.CreateParamsScriptAddressKanji.country`, `v2.core.Person.ModifyParamsAdditionalAddress.country`, `v2.core.Person.ModifyParamsAddress.country`, `v2.core.Person.ModifyParamsScriptAddressKana.country`, and `v2.core.Person.ModifyParamsScriptAddressKanji.country`
+ * Add support for new value `unsupported_entity_type` on enums `V2.Core.Account.Configuration.Customer.Capability.AutomaticIndirectTax.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AchDebitPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AcssDebitPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AffirmPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AfterpayClearpayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AlmaPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AmazonPayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.AuBecsDebitPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.BacsDebitPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.BancontactPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.BlikPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.BoletoPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.CardPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.CartesBancairesPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.CashappPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.EpsPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.FpxPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.GbBankTransferPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.GrabpayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.IdealPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.JcbPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.JpBankTransferPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.KakaoPayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.KlarnaPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.KonbiniPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.KrCardPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.LinkPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.MobilepayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.MultibancoPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.MxBankTransferPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.NaverPayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.OxxoPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.P24Payment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.PayByBankPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.PaycoPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.PaynowPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.PromptpayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.RevolutPayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.SamsungPayPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.SepaBankTransferPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.SepaDebitPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.StripeBalance.Payout.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.SwishPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.TwintPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.UsBankTransferPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Merchant.Capability.ZipPayment.StatusDetail.code`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Local.StatusDetail.code`, `V2.Core.Account.Configuration.Recipient.Capability.BankAccount.Wire.StatusDetail.code`, `V2.Core.Account.Configuration.Recipient.Capability.Card.StatusDetail.code`, `V2.Core.Account.Configuration.Recipient.Capability.StripeBalance.Payout.StatusDetail.code`, and `V2.Core.Account.Configuration.Recipient.Capability.StripeBalance.StripeTransfer.StatusDetail.code`
+ * Add support for `proof_of_address` on `V2.Core.Account.Identity.BusinessDetail.Document`, `v2.core.Account.CreateParamsIdentityBusinessDetailDocument`, and `v2.core.Account.ModifyParamsIdentityBusinessDetailDocument`
+ * Add support for new value `xx` on enums `V2.Core.Account.Identity.Individual.nationalities`, `V2.Core.Person.nationalities`, `v2.core.Account.CreateParamsIdentityIndividual.nationalities`, `v2.core.Account.ModifyParamsIdentityIndividual.nationalities`, `v2.core.Person.CreateParams.nationalities`, and `v2.core.Person.ModifyParams.nationalities`
+ * Add support for `metadata` on `V2.MoneyManagement.FinancialAccount`
+ * Remove support for `description` on `V2.MoneyManagement.FinancialAccount`
+ * Add support for new value `pending` on enum `V2.MoneyManagement.FinancialAccount.status`
+ * Remove support for `attempts` on `V2.Payments.OffSessionPayment`
+ * Change type of `V2.Payments.OffSessionPayment.TransferDatum.amount` from `integer` to `nullable(integer)`
+ * Add support for `from_account`, `outbound_payment`, and `outbound_transfer` on `V2.MoneyManagement.ReceivedCredit.BalanceTransfer`
+ * Change type of `V2.MoneyManagement.ReceivedCredit.BalanceTransfer.type` from `literal('payout_v1')` to `enum('outbound_payment'|'outbound_transfer'|'payout_v1')`
+ * Change type of `V2.MoneyManagement.ReceivedCredit.BalanceTransfer.payout_v1` from `string` to `nullable(string)`
+ * Change `v2.payments.OffSessionPayment.CreateParamsTransferDatum.amount` to be optional
+ * Add support for error codes `recipient_feature_not_active`, `storer_capability_missing`, and `storer_capability_not_active` on `FeatureNotEnabledError`
+ * Remove support for error code `outbound_payment_recipient_feature_not_active` on `FeatureNotEnabledError`
+ * Add support for error code `insufficient_funds` on `InsufficientFundsError`
+ * Remove support for error codes `outbound_payment_insufficient_funds` and `outbound_transfer_insufficient_funds` on `InsufficientFundsError`
+ * Add support for error codes `recipient_amount_limit_exceeded` and `recipient_count_limit_exceeded` on `QuotaExceededError`
+ * Remove support for error codes `outbound_payment_recipient_amount_limit_exceeded` and `outbound_payment_recipient_count_limit_exceeded` on `QuotaExceededError`
+ * Add support for error code `recipient_email_does_not_exist` on `RecipientNotNotifiableError`
+ * Remove support for error code `outbound_payment_recipient_email_does_not_exist` on `RecipientNotNotifiableError`
+
## 12.3.0 - 2025-07-01
This release changes the pinned API version to `2025-06-30.basil`.
@@ -374,6 +685,56 @@ This release changes the pinned API version to `2025-06-30.basil`.
* Add support for snapshot event `terminal.reader.action_updated` with resource `terminal.Reader`
* [#1534](https://github.com/stripe/stripe-python/pull/1534) Fix the link to releases page from readme
+## 12.3.0b2 - 2025-06-26
+* [#1531](https://github.com/stripe/stripe-python/pull/1531) Pull in OffSessionPayment changes for the May release
+
+## 12.3.0b1 - 2025-05-29
+This release changes the pinned API version to `2025-05-28.preview`.
+
+* [#1509](https://github.com/stripe/stripe-python/pull/1509) Update generated code for beta
+ ### Breaking changes
+ * Remove support for deprecated previews
+ * Remove support for resources `billing.MeterErrorReport`, `gift_cards.Card`, `gift_cards.Transaction`, and `privacy.RedactionJobRootObjects`
+ * Remove support for `create`, `list`, `modify`, `retrieve`, and `validate` methods on resource `gift_cards.Card`
+ * Remove support for `cancel`, `confirm`, `create`, `list`, `modify`, and `retrieve` methods on resource `gift_cards.Transaction`
+ * Remove support for `provisioning` on `Product.CreateParams` and `Product`
+ * Remove support for snapshot event `billing.meter_error_report.triggered` with resource `billing.MeterErrorReport`
+ * Remove support for error codes `gift_card_balance_insufficient`, `gift_card_code_exists`, and `gift_card_inactive` on `QuotePreviewInvoice.LastFinalizationError` and `StripeError`
+ * Remove support for values `credits_attributed_to_debits` and `legacy_prorations` from enums `Invoice.CreatePreviewParamsScheduleDetail.billing_mode`, `Invoice.CreatePreviewParamsSubscriptionDetail.billing_mode`, `Quote.CreateParamsSubscriptionDatum.billing_mode`, `Quote.SubscriptionDatum.billing_mode`, `QuotePreviewSubscriptionSchedule.billing_mode`, `Subscription.CreateParams.billing_mode`, `Subscription.billing_mode`, `SubscriptionSchedule.CreateParams.billing_mode`, `SubscriptionSchedule.billing_mode`, and `checkout.Session.CreateParamsSubscriptionDatum.billing_mode`
+ * Change type of `checkout.Session.ModifyParamsLineItem.quantity` from `emptyable(longInteger)` to `longInteger`
+ * Change `CreditNote.post_payment_amount` to be required
+ * Change `CreditNote.pre_payment_amount` to be required
+ * Remove support for `credits` on `Order.CreateParams`, `Order.ModifyParams`, and `Order`
+ * Remove support for `amount_remaining` on `Order`
+ * Remove support for `amount_credit` on `Order.TotalDetail`
+ * Change type of `PaymentAttemptRecord.metadata` and `PaymentRecord.metadata` from `nullable(map(string: string))` to `map(string: string)`
+ * Remove support for `async_workflows` on `PaymentIntent.CaptureParams`, `PaymentIntent.ConfirmParams`, `PaymentIntent.CreateParams`, `PaymentIntent.DecrementAuthorizationParams`, `PaymentIntent.IncrementAuthorizationParams`, `PaymentIntent.ModifyParams`, and `PaymentIntent`
+ * Change type of `PaymentRecord.ReportPaymentAttemptCanceledParams.metadata`, `PaymentRecord.ReportPaymentAttemptFailedParams.metadata`, `PaymentRecord.ReportPaymentAttemptGuaranteedParams.metadata`, `PaymentRecord.ReportPaymentAttemptParams.metadata`, and `PaymentRecord.ReportPaymentParams.metadata` from `map(string: string)` to `emptyable(map(string: string))`
+ * Change type of `Privacy.RedactionJob.objects` from `$Privacy.RedactionJobRootObjects` to `RedactionResourceRootObjects`
+ * Change type of `Privacy.RedactionJob.status` from `string` to `enum`
+ * Change type of `Privacy.RedactionJob.validation_behavior` from `string` to `enum('error'|'fix')`
+ * Change type of `Privacy.RedactionJobValidationError.code` from `string` to `enum`
+ * Change type of `Privacy.RedactionJobValidationError.erroring_object` from `map(string: string)` to `RedactionResourceErroringObject`
+ * Remove support for `status_details` and `status` on `Tax.Association`
+
+ ### Other changes
+ * Add support for `migrate` method on resource `Subscription`
+ * Add support for `distance`, `pickup_location_name`, `return_location_name`, and `vehicle_identification_number` on `Charge.CaptureParamsPaymentDetailCarRental`, `Charge.ModifyParamsPaymentDetailCarRental`, `PaymentIntent.CaptureParamsPaymentDetailCarRental`, `PaymentIntent.ConfirmParamsPaymentDetailCarRental`, `PaymentIntent.CreateParamsPaymentDetailCarRental`, `PaymentIntent.ModifyParamsPaymentDetailCarRental`, and `PaymentIntent.PaymentDetail.CarRental`
+ * Add support for `driver_identification_number` and `driver_tax_number` on `Charge.CaptureParamsPaymentDetailCarRentalDriver`, `Charge.ModifyParamsPaymentDetailCarRentalDriver`, `PaymentIntent.CaptureParamsPaymentDetailCarRentalDriver`, `PaymentIntent.ConfirmParamsPaymentDetailCarRentalDriver`, `PaymentIntent.CreateParamsPaymentDetailCarRentalDriver`, `PaymentIntent.ModifyParamsPaymentDetailCarRentalDriver`, and `PaymentIntent.PaymentDetail.CarRental.Driver`
+ * Add support for new values `classic` and `flexible` on enums `Invoice.CreatePreviewParamsScheduleDetail.billing_mode`, `Invoice.CreatePreviewParamsSubscriptionDetail.billing_mode`, `Quote.CreateParamsSubscriptionDatum.billing_mode`, `Quote.SubscriptionDatum.billing_mode`, `QuotePreviewSubscriptionSchedule.billing_mode`, `Subscription.CreateParams.billing_mode`, `Subscription.billing_mode`, `SubscriptionSchedule.CreateParams.billing_mode`, `SubscriptionSchedule.billing_mode`, and `checkout.Session.CreateParamsSubscriptionDatum.billing_mode`
+ * Add support for `institution` on `FinancialConnections.Account`
+ * Add support for `countries` on `FinancialConnections.Institution`
+ * Change type of `Invoice.CreatePreviewParamsSubscriptionDetail.cancel_at`, `Subscription.CreateParams.cancel_at`, and `Subscription.ModifyParams.cancel_at` from `DateTime` to `DateTime | enum('max_period_end'|'min_period_end')`
+ * Add support for `location` and `reader` on `PaymentAttemptRecord.PaymentMethodDetail.Affirm`, `PaymentAttemptRecord.PaymentMethodDetail.WechatPay`, `PaymentRecord.PaymentMethodDetail.Affirm`, and `PaymentRecord.PaymentMethodDetail.WechatPay`
+ * Add support for `hooks` on `PaymentIntent.CaptureParams`, `PaymentIntent.ConfirmParams`, `PaymentIntent.CreateParams`, `PaymentIntent.DecrementAuthorizationParams`, `PaymentIntent.IncrementAuthorizationParams`, `PaymentIntent.ModifyParams`, and `PaymentIntent`
+ * Add support for `card_present` on `PaymentIntentAmountDetailsLineItem.PaymentMethodOption`
+ * Add support for `livemode` on `Privacy.RedactionJob`
+ * Add support for `billing_thresholds` on `QuotePreviewSubscriptionSchedule.DefaultSetting`, `QuotePreviewSubscriptionSchedule.Phase.Item`, and `QuotePreviewSubscriptionSchedule.Phase`
+ * Add support for `billing_mode_details` on `Subscription`
+ * Add support for `tax_transaction_attempts` on `Tax.Association`
+ * Add support for `confirm_config` on `Terminal.Reader.Action.ConfirmPaymentIntent` and `terminal.Reader.ConfirmPaymentIntentParams`
+ * Add support for error code `forwarding_api_upstream_error` on `QuotePreviewInvoice.LastFinalizationError`
+
## 12.2.0 - 2025-05-29
This release changes the pinned API version to `2025-05-28.basil`.
@@ -410,6 +771,22 @@ This release changes the pinned API version to `2025-06-30.basil`.
* Add support for error code `forwarding_api_upstream_error` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, and `StripeError`
* [#1511](https://github.com/stripe/stripe-python/pull/1511) Adds CONTRIBUTING.md
+## 12.2.0b1 - 2025-04-30
+This release changes the pinned API version to `2025-04-30.preview`.
+* [#1501](https://github.com/stripe/stripe-python/pull/1501) Update generated code for beta
+ * Add support for `billing_mode` on `Invoice.CreatePreviewParamsScheduleDetail`, `Invoice.CreatePreviewParamsSubscriptionDetail`, `InvoiceService.CreatePreviewParamsScheduleDetail`, `InvoiceService.CreatePreviewParamsSubscriptionDetail`, `Quote.SubscriptionDatum`, `QuotePreviewSubscriptionSchedule`, `SubscriptionSchedule`, `Subscription`, `checkout.Session.CreateParamsSubscriptionDatum`, and `checkout.SessionService.CreateParamsSubscriptionDatum`
+ * Add support for new value `balance_settings.updated` on enum `Event.type`
+ * Add support for new value `balance_settings.updated` on enums `WebhookEndpoint.ModifyParams.enabled_events` and `WebhookEndpointService.UpdateParams.enabled_events`
+* [#1498](https://github.com/stripe/stripe-python/pull/1498) Update generated code for beta
+ * Add support for new values `aw_tin`, `az_tin`, `bd_bin`, `bf_ifu`, `bj_ifu`, `cm_niu`, `cv_nif`, `et_tin`, `kg_tin`, and `la_tin` on enums `Checkout.Session.CollectedInformation.TaxId.type`, `Checkout.Session.CustomerDetail.TaxId.type`, `Invoice.CustomerTaxId.type`, `Order.TaxDetail.TaxId.type`, `QuotePreviewInvoice.CustomerTaxId.type`, `Tax.Calculation.CustomerDetail.TaxId.type`, `Tax.Transaction.CustomerDetail.TaxId.type`, and `TaxId.type`
+ * Change `Checkout.Session.AutomaticTax.provider`, `Invoice.AutomaticTax.provider`, `Quote.AutomaticTax.provider`, and `QuotePreviewInvoice.AutomaticTax.provider` to be required
+ * Add support for `account_number` on `ConfirmationToken.PaymentMethodPreview.AcssDebit` and `PaymentMethod.AcssDebit`
+ * Add support for new values `aw_tin`, `az_tin`, `bd_bin`, `bf_ifu`, `bj_ifu`, `cm_niu`, `cv_nif`, `et_tin`, `kg_tin`, and `la_tin` on enums `Customer.CreateParams.type`, `Customer.CreateParamsTaxIdDatum.type`, `CustomerService.CreateParamsTaxIdDatum.type`, `CustomerTaxIdService.CreateParams.type`, `Invoice.CreatePreviewParamsCustomerDetailTaxId.type`, `InvoiceService.CreatePreviewParamsCustomerDetailTaxId.type`, `Order.CreateParamsTaxDetailTaxId.type`, `Order.ModifyParamsTaxDetailTaxId.type`, `OrderService.CreateParamsTaxDetailTaxId.type`, `OrderService.UpdateParamsTaxDetailTaxId.type`, `TaxId.CreateParams.type`, `TaxIdService.CreateParams.type`, `tax.Calculation.CreateParamsCustomerDetailTaxId.type`, and `tax.CalculationService.CreateParamsCustomerDetailTaxId.type`
+ * Change type of `InvoiceLineItem.Parent.SubscriptionItemDetail.subscription` from `string` to `nullable(string)`
+ * Add support for `billing_mode` on `Quote.CreateParamsSubscriptionDatum`, `QuoteService.CreateParamsSubscriptionDatum`, `Subscription.CreateParams`, `SubscriptionSchedule.CreateParams`, `SubscriptionScheduleService.CreateParams`, and `SubscriptionService.CreateParams`
+ * Add support for `bf`, `cm`, and `cv` on `Tax.Registration.CountryOption`, `tax.Registration.CreateParamsCountryOption`, and `tax.RegistrationService.CreateParamsCountryOption`
+ * Add support for new value `2025-04-30.basil` on enums `WebhookEndpoint.CreateParams.api_version` and `WebhookEndpointService.CreateParams.api_version`
+
## 12.1.0 - 2025-04-30
This release changes the pinned API version to `2025-04-30.basil`.
@@ -438,6 +815,144 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `aw`, `az`, `bd`, `bf`, `bj`, `cm`, `cv`, `et`, `in`, `kg`, `la`, and `ph` on `Tax.Registration.CountryOption`, `tax.Registration.CreateParamsCountryOption`, and `tax.RegistrationService.CreateParamsCountryOption`
* Add support for new value `2025-04-30.basil` on enums `WebhookEndpoint.CreateParams.api_version` and `WebhookEndpointService.CreateParams.api_version`
+## 12.1.0b3 - 2025-04-17
+* [#1495](https://github.com/stripe/stripe-python/pull/1495) Update generated code for beta
+ * Add support for new resources `FxQuote` and `PaymentIntentAmountDetailsLineItem`
+ * Add support for `create`, `list`, and `retrieve` methods on resource `FxQuote`
+ * Remove support for `attach_payment_intent` method on resource `Invoice`
+ * Add support for `registration_date` on `Account.Company`, `Account.CreateParamsCompany`, `Account.UpdateParamsCompany`, and `Token.CreateParamsAccountCompany`
+ * Add support for `customer_reference` and `order_reference` on `Charge.CaptureParamsPaymentDetail`, `Charge.UpdateParamsPaymentDetail`, `PaymentIntent.CaptureParamsPaymentDetail`, `PaymentIntent.ConfirmParamsPaymentDetail`, `PaymentIntent.CreateParamsPaymentDetail`, `PaymentIntent.PaymentDetail`, and `PaymentIntent.UpdateParamsPaymentDetail`
+ * Add support for `tax_id` on `Charge.BillingDetail`, `ConfirmationToken.CreateParamsPaymentMethodDatumBillingDetail`, `ConfirmationToken.PaymentMethodPreview.BillingDetail`, `PaymentIntent.ConfirmParamsPaymentMethodDatumBillingDetail`, `PaymentIntent.CreateParamsPaymentMethodDatumBillingDetail`, `PaymentIntent.UpdateParamsPaymentMethodDatumBillingDetail`, `PaymentMethod.BillingDetail`, `PaymentMethod.CreateParamsBillingDetail`, `PaymentMethod.UpdateParamsBillingDetail`, `SetupIntent.ConfirmParamsPaymentMethodDatumBillingDetail`, `SetupIntent.CreateParamsPaymentMethodDatumBillingDetail`, `SetupIntent.UpdateParamsPaymentMethodDatumBillingDetail`, and `treasury.OutboundPayment.CreateParamsDestinationPaymentMethodDatumBillingDetail`
+ * Add support for `price_data` on `checkout.Session.UpdateParamsLineItem`
+ * Change type of `checkout.Session.UpdateParamsLineItem.quantity` from `longInteger` to `emptyable(longInteger)`
+ * Add support for `script` on `Coupon.CreateParams` and `Coupon`
+ * Add support for `type` on `Coupon`
+ * Add support for new value `fx_quote.expired` on enum `Event.type`
+ * Add support for new value `affirm` on enums `Invoice.CreateParamsPaymentSetting.payment_method_types`, `Invoice.PaymentSetting.payment_method_types`, `Invoice.UpdateParamsPaymentSetting.payment_method_types`, `QuotePreviewInvoice.PaymentSetting.payment_method_types`, `Subscription.CreateParamsPaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, and `Subscription.UpdateParamsPaymentSetting.payment_method_types`
+ * Add support for `fx_quote` on `PaymentIntent.ConfirmParams`, `PaymentIntent.CreateParams`, `PaymentIntent.UpdateParams`, `PaymentIntent`, `Transfer.CreateParams`, and `Transfer`
+ * Add support for `discount_amount`, `line_items`, `shipping`, and `tax` on `PaymentIntent.AmountDetail`
+ * Add support for `pix` on `PaymentMethodConfiguration.CreateParams`, `PaymentMethodConfiguration.UpdateParams`, and `PaymentMethodConfiguration`
+ * Add support for `us_cfpb_data` on `Person` and `Token.CreateParamsPerson`
+ * Add support for `pending_reason` on `Refund`
+ * Add support for `aw`, `az`, `bd`, `bj`, `et`, `kg`, `la`, and `ph` on `TaxRegistration.CountryOption` and `tax.Registration.CreateParamsCountryOption`
+ * Add support for new value `fx_quote.expired` on enums `WebhookEndpoint.CreateParams.enabled_events` and `WebhookEndpoint.UpdateParams.enabled_events`
+ * Add support for snapshot event `fx_quote.expired` with resource `FxQuote`
+
+## 12.1.0b2 - 2025-04-10
+* [#1489](https://github.com/stripe/stripe-python/pull/1489) Update generated code for beta
+
+ ### Breaking changes
+ * Change type of `V2MoneyManagementReceivedDebit.status_transitions` from `an object` to `nullable(an object)`
+ * Remove support for values `bank_accounts.local_uk`, `bank_accounts.wire_uk`, `cards_uk`, and `crypto_wallets_v2` from enum `EventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability`
+
+ ### Additions
+ * Add support for new resources `Privacy.RedactionJobRootObjects`, `Privacy.RedactionJobValidationError`, and `Privacy.RedactionJob`
+ * Add support for `cancel`, `create`, `list`, `modify`, `retrieve`, `run`, and `validate` methods on resource `RedactionJob`
+ * Add support for `list` and `retrieve` methods on resource `RedactionJobValidationError`
+ * Add support for `minority_owned_business_designation` on `Account.BusinessProfile`, `Account.CreateParamsBusinessProfile`, and `Account.UpdateParamsBusinessProfile`
+ * Add support for new value `verification_legal_entity_structure_mismatch` on enums `Account.FutureRequirement.Error.code`, `Account.Requirement.Error.code`, `AccountCapability.FutureRequirement.Error.code`, `AccountCapability.Requirement.Error.code`, `AccountPerson.FutureRequirement.Error.code`, `AccountPerson.Requirement.Error.code`, `BankAccount.FutureRequirement.Error.code`, and `BankAccount.Requirement.Error.code`
+ * Add support for `export_tax_transactions` and `payment_disputes` on `AccountSession.CreateParamsComponent`
+ * Add support for new value `tax_id_prohibited` on enums `Invoice.LastFinalizationError.code`, `PaymentIntent.LastPaymentError.code`, `QuotePreviewInvoice.LastFinalizationError.code`, `SetupAttempt.SetupError.code`, `SetupIntent.LastSetupError.code`, and `StripeError.code`
+ * Add support for new value `fixed_term_loan` on enum `CapitalFinancingOffer.type`
+ * Add support for `wallet_options` on `CheckoutSession` and `checkout.Session.CreateParams`
+ * Add support for new values `privacy.redaction_job.canceled`, `privacy.redaction_job.created`, `privacy.redaction_job.ready`, `privacy.redaction_job.succeeded`, and `privacy.redaction_job.validation_error` on enum `Event.type`
+ * Add support for `klarna` on `PaymentMethodDomain`
+ * Change type of `TaxCalculationLineItem.reference` from `nullable(string)` to `string`
+ * Add support for `in` on `TaxRegistration.CountryOption` and `tax.Registration.CreateParamsCountryOption`
+ * Add support for new values `privacy.redaction_job.canceled`, `privacy.redaction_job.created`, `privacy.redaction_job.ready`, `privacy.redaction_job.succeeded`, and `privacy.redaction_job.validation_error` on enums `WebhookEndpoint.CreateParams.enabled_events` and `WebhookEndpoint.UpdateParams.enabled_events`
+* [#1490](https://github.com/stripe/stripe-python/pull/1490) Handle external account
+ - Changes `external_account` field in `external_account_service.create` from `string` to a union type.
+
+## 12.1.0b1 - 2025-04-02
+* [#1455](https://github.com/stripe/stripe-python/pull/1455), [#1477](https://github.com/stripe/stripe-python/pull/1477), [#1482](https://github.com/stripe/stripe-python/pull/1482) Update generated code for beta
+
+This release changes the pinned API version to `2025-03-31.preview`
+
+### Breaking changes:
+* Remove support for `AmountOverpaid` on `InvoicePayment`
+* Remove support for values `out_of_band_payment` and `payment_record` from enum `InvoicePayment.Payment.type`
+* Remove support for `RateCardSubscriptionDetails` on `InvoiceItemParent`
+* Remove support for `ApplicationFeeAmount`, `PaidOutOfBand`, and `Paid` on `QuotePreviewInvoice`
+* Remove support for `billing_thresholds` on `QuotePreviewSubscriptionSchedule.DefaultSetting`, `QuotePreviewSubscriptionSchedule.Phase.Item`, and `QuotePreviewSubscriptionSchedule.Phase`
+* Remove support for `coupon` on `QuotePreviewSubscriptionSchedule.Phase`
+* Change type of `QuotePreviewInvoice.Parent.SubscriptionDetail.subscription` from `string` to `expandable($Subscription)`
+* Change `CheckoutSession.Permission.update` to be optional
+* Change type of `PaymentAttemptRecord.PaymentMethodDetail.type` and `PaymentRecord.PaymentMethodDetail.type` from `literal('custom')` to `string`
+* Change type of `PaymentAttemptRecord.payment_record` from `string` to `nullable(string)`
+* Change `PaymentAttemptRecord.PaymentMethodDetail.custom` and `PaymentRecord.PaymentMethodDetail.custom` to be optional
+* Change type of `PaymentRecord.latest_payment_attempt_record` from `string` to `nullable(string)`
+* Change type of `Order.CreateParamsPaymentSettingPaymentMethodOptionWechatPay.client` and `Order.UpdateParamsPaymentSettingPaymentMethodOptionWechatPay.client` to be optional
+
+### Additions
+* Add support for `payment_method_options` on `ConfirmationToken.CreateParams`
+* Add support for `installments` on `ConfirmationToken.PaymentMethodOption.Card`
+* Add support for `billie` on `PaymentIntent.ConfirmParamsPaymentMethodOption`, `PaymentIntent.CreateParamsPaymentMethodOption`, `PaymentIntent.PaymentMethodOption`, and `PaymentIntent.UpdateParamsPaymentMethodOption`
+* Add support for `update_line_items` on `CheckoutSession.Permission` and `checkout.Session.CreateParamsPermission`
+* Add support for `new resources` BalanceSettings
+* Add support for `modify` and `retrieve` methods on resource `BalanceSettings`
+* Add support for `create`, `delete`, `list`, `modify`, and `retrieve` methods on a new `ExternalAccountService` to access cards and bank accounts made available in the new path `v1/external_accounts`
+* Add support for `stripe_balance_payments` on `Account.Capability`, `Account.CreateParamsCapability`, and `Account.UpdateParamsCapability`
+* Add support for new values `stripe_balance_payment_debit_reversal` and `stripe_balance_payment_debit` on enum `BalanceTransaction.type`
+* Add support for `customer_account` on `BillingCreditBalanceSummary`, `BillingCreditGrant`, `BillingPortalSession`, `CheckoutSession`, `ConfirmationToken.PaymentMethodPreview`, `CreditNote.ListParams`, `CreditNote`, `CustomerBalanceTransaction`, `CustomerCashBalanceTransaction`, `CustomerCashBalance`, `CustomerPaymentMethod`, `CustomerSession.CreateParams`, `CustomerSession`, `CustomerTaxId.Owner`, `CustomerTaxId`, `Customer`, `Discount`, `FinancialConnectionsAccount.AccountHolder`, `FinancialConnectionsSession.AccountHolder`, `Invoice.CreateParams`, `Invoice.CreatePreviewParams`, `Invoice.ListParams`, `InvoiceItem.CreateParams`, `InvoiceItem.ListParams`, `InvoiceItem`, `Invoice`, `PaymentIntent.CreateParams`, `PaymentIntent.ListParams`, `PaymentIntent.UpdateParams`, `PaymentIntent`, `PaymentMethod.AttachParams`, `PaymentMethod`, `PromotionCode.CreateParams`, `PromotionCode.ListParams`, `PromotionCode`, `Quote.CreateParams`, `Quote.ListParams`, `Quote.UpdateParams`, `QuotePreviewInvoice`, `QuotePreviewSubscriptionSchedule`, `Quote`, `SetupAttempt`, `SetupIntent.CreateParams`, `SetupIntent.ListParams`, `SetupIntent.UpdateParams`, `SetupIntent`, `Subscription.CreateParams`, `Subscription.ListParams`, `SubscriptionSchedule.CreateParams`, `SubscriptionSchedule.ListParams`, `SubscriptionSchedule`, `Subscription`, `TaxId.CreateParamsOwner`, `TaxId.ListParamsOwner`, `TaxId.Owner`, `TaxId`, `billing.CreditBalanceSummary.RetrieveParams`, `billing.CreditBalanceTransaction.ListParams`, `billing.CreditGrant.CreateParams`, `billing.CreditGrant.ListParams`, `billingportal.Session.CreateParams`, `checkout.Session.CreateParams`, `checkout.Session.ListParams`, `financialconnections.Account.ListParamsAccountHolder`, and `financialconnections.Session.CreateParamsAccountHolder`
+* Add support for `stripe_balance` on `Charge.PaymentMethodDetail`, `ConfirmationToken.CreateParamsPaymentMethodDatum`, `ConfirmationToken.PaymentMethodPreview`, `CustomerPaymentMethod`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.ConfirmParamsPaymentMethodDatum`, `PaymentIntent.ConfirmParamsPaymentMethodOption`, `PaymentIntent.CreateParamsPaymentMethodDatum`, `PaymentIntent.CreateParamsPaymentMethodOption`, `PaymentIntent.PaymentMethodOption`, `PaymentIntent.UpdateParamsPaymentMethodDatum`, `PaymentIntent.UpdateParamsPaymentMethodOption`, `PaymentMethod.CreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupAttempt.PaymentMethodDetail`, `SetupIntent.ConfirmParamsPaymentMethodDatum`, `SetupIntent.CreateParamsPaymentMethodDatum`, and `SetupIntent.UpdateParamsPaymentMethodDatum`
+* Add support for `update_shipping_details` on `CheckoutSession.Permission` and `checkout.Session.CreateParamsPermission`
+* Add support for `provider` on `CheckoutSession.AutomaticTax`, `Invoice.AutomaticTax`, `Quote.AutomaticTax`, and `QuotePreviewInvoice.AutomaticTax`
+* Add support for `tax_calculation_reference` on `CreditNoteLineItem`, `CreditNotePreviewLines`, `InvoiceLineItem`, `LineItem`, `PaymentLinkLineItem`, `QuoteComputedUpfrontLineItems`, `QuoteLineItem`, and `SessionLineItem`
+* Add support for `context` on `Event`
+* Add support for `related_customer_account` on `IdentityVerificationSession`, `identity.VerificationSession.CreateParams`, and `identity.VerificationSession.ListParams`
+* Add support for `payout_method` on `Payout.CreateParams` and `Payout`
+* Add support for `confirmation_secret`, `parent`, and `total_taxes` on `QuotePreviewInvoice`
+* Add support for new values `forwarding_api_retryable_upstream_error`, `setup_intent_mobile_wallet_unsupported`, `v2_account_disconnection_unsupported`, and `v2_account_missing_configuration` on enum `QuotePreviewInvoice.LastFinalizationError.code`
+* Add support for new values `klarna`, `nz_bank_account`, and `stripe_balance` on enum `QuotePreviewInvoice.PaymentSetting.payment_method_types`
+* Add support for `id` and `text` on `TerminalReader.Action.CollectInput.Input.Selection.Choice`, `TerminalReader.Action.CollectInput.Input.Selection`, and `terminal.Reader.CollectInputsParamsInputSelectionChoice`
+* Add support for `network_data` on `IssuingDisputeSettlementDetail`
+* Add support for `interchange_fees_amount`, `net_total_amount`, `network_fees_amount`, `other_fees_amount`, `other_fees_count`, and `transaction_amount` on `IssuingSettlement`
+* Add support for `reported_by` on `PaymentAttemptRecord`
+
+#### New APIs for Money CardManagement
+
+* Add support for new resources `V2.FinancialAddressCreditSimulation`, `V2.FinancialAddressGeneratedMicrodeposits`, `V2.MoneyManagement.Adjustment`, `V2.MoneyManagement.FinancialAccount`, `V2.MoneyManagement.FinancialAddress`, `V2.MoneyManagement.InboundTransfer`, `V2.MoneyManagement.OutboundPaymentQuote`, `V2.MoneyManagement.OutboundPayment`, `V2.MoneyManagement.OutboundSetupIntent`, `V2.MoneyManagement.OutboundTransfer`, `V2.MoneyManagement.PayoutMethod`, `V2.MoneyManagement.PayoutMethodsBankAccountSpec`, `V2.MoneyManagement.ReceivedCredit`, `V2.MoneyManagement.ReceivedDebit`, `V2.MoneyManagement.TransactionEntry`, and `V2.MoneyManagement.Transaction`
+* Add support for `create` method on resource `V2.MoneyManagement.OutboundPaymentQuote`
+* Add support for `list` and `retrieve` methods on resources `V2.MoneyManagement.Adjustment`, `V2.MoneyManagement.FinancialAccount`, `V2.MoneyManagement.ReceivedCredit`, `V2.MoneyManagement.ReceivedDebit`, `V2.MoneyManagement.TransactionEntry`, and `V2.MoneyManagement.Transaction`
+* Add support for `create`, `list`, and `retrieve` methods on resources `V2.MoneyManagement.FinancialAddress` and `V2.MoneyManagement.InboundTransfer`
+* Add support for `cancel`, `create`, `list`, and `retrieve` methods on resources `V2.MoneyManagement.OutboundPayment` and `V2.MoneyManagement.OutboundTransfer`
+* Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `V2.MoneyManagement.PayoutMethod`
+* Add support for `cancel`, `create`, `list`, `modify`, and `retrieve` methods on resource `V2.MoneyManagement.OutboundSetupIntent`
+* Add support for `retrieve` method on resource `V2.MoneyManagement.PayoutMethodsBankAccountSpec`
+* Add support for `acknowledge_confirmation_of_payee`, `archive`, `create`, `initiate_confirmation_of_payee`, and `retrieve` methods on resource `V2.Core.Vault.GbBankAccount`
+* Add support for `archive`, `create`, `modify`, and `retrieve` methods on resource `V2.Core.Vault.UsBankAccount`
+* Add support for new values `account_number`, `fedwire_routing_number`, and `routing_number` on enum `InvalidPaymentMethod.invalid_param`
+* Add support for new thin event `V2MoneyManagementFinancialAccountCreatedEvent` with related object `V2.MoneyManagement.FinancialAccount`
+* Add support for new thin events `V2MoneyManagementFinancialAddressActivatedEvent` and `V2MoneyManagementFinancialAddressFailedEvent` with related object `V2.MoneyManagement.FinancialAddress`
+* Add support for new thin events `V2MoneyManagementInboundTransferAvailableEvent`, `V2MoneyManagementInboundTransferBankDebitFailedEvent`, `V2MoneyManagementInboundTransferBankDebitProcessingEvent`, `V2MoneyManagementInboundTransferBankDebitQueuedEvent`, `V2MoneyManagementInboundTransferBankDebitReturnedEvent`, and `V2MoneyManagementInboundTransferBankDebitSucceededEvent` with related object `V2.MoneyManagement.InboundTransfer`
+* Add support for new thin events `V2MoneyManagementOutboundPaymentCanceledEvent`, `V2MoneyManagementOutboundPaymentCreatedEvent`, `V2MoneyManagementOutboundPaymentFailedEvent`, `V2MoneyManagementOutboundPaymentPostedEvent`, and `V2MoneyManagementOutboundPaymentReturnedEvent` with related object `V2.MoneyManagement.OutboundPayment`
+* Add support for new thin events `V2MoneyManagementOutboundTransferCanceledEvent`, `V2MoneyManagementOutboundTransferCreatedEvent`, `V2MoneyManagementOutboundTransferFailedEvent`, `V2MoneyManagementOutboundTransferPostedEvent`, and `V2MoneyManagementOutboundTransferReturnedEvent` with related object `V2.MoneyManagement.OutboundTransfer`
+* Add support for new thin events `V2MoneyManagementReceivedCreditAvailableEvent`, `V2MoneyManagementReceivedCreditFailedEvent`, `V2MoneyManagementReceivedCreditReturnedEvent`, and `V2MoneyManagementReceivedCreditSucceededEvent` with related object `V2.MoneyManagement.ReceivedCredit`
+* Add support for new thin events `V2MoneyManagementReceivedDebitCanceledEvent`, `V2MoneyManagementReceivedDebitFailedEvent`, `V2MoneyManagementReceivedDebitPendingEvent`, `V2MoneyManagementReceivedDebitSucceededEvent`, and `V2MoneyManagementReceivedDebitUpdatedEvent` with related object `V2.MoneyManagement.ReceivedDebit`
+* Add support for new error types `AlreadyCanceledError`, `BlockedByStripeError`, `ControlledByDashboardError`, `FeatureNotEnabledError`, `FinancialAccountNotOpenError`, `InsufficientFundsError`, `InvalidPayoutMethodError`, `NotCancelableError`, and `RecipientNotNotifiableError`
+
+#### New APIs for Accounts v2 in private preview
+See [SaaS platform payments with subscription billing using Accounts v2](https://docs.stripe.com/connect/accounts-v2/saas-platform-payments-billing)
+
+* Add support for new resources `V2.Core.AccountLink`, `V2.Core.Account`, `V2.Core.Person`, `V2.Core.Vault.GbBankAccount`, `V2.Core.Vault.UsBankAccount`
+* Add support for `close`, `create`, `list`, `modify`, and `retrieve` methods on resource `V2.Core.Account`
+* Add support for `create` method on resource `V2.Core.AccountLink`
+* Add support for new thin events `V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationCustomerUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientUpdatedEvent`, `V2CoreAccountIncludingIdentityUpdatedEvent`, and `V2CoreAccountIncludingRequirementsUpdatedEvent`
+* Add support for new thin event `V2CoreAccountLinkCompletedEvent` with related object `V2.Core.AccountLink`
+* Add support for new thin events `V2CoreAccountPersonCreatedEvent`, `V2CoreAccountPersonDeletedEvent`, and `V2CoreAccountPersonUpdatedEvent` with related object `V2.Core.Person`
+
+### Changes
+* Change `CustomerSession.CreateParams.customer`, `InvoiceItem.CreateParams.customer`, `PaymentMethod.AttachParams.customer`, `Subscription.CreateParams.customer`, `billing.CreditBalanceSummary.RetrieveParams.customer`, `billing.CreditBalanceTransaction.ListParams.customer`, `billing.CreditGrant.CreateParams.customer`, and `billingportal.Session.CreateParams.customer` to be optional
+* Change type of `Invoice.Parent.SubscriptionDetail.PauseCollection.behavior` and `QuotePreviewInvoice.Parent.SubscriptionDetail.PauseCollection.behavior` from `string` to `enum('keep_as_draft'|'mark_uncollectible'|'void')`
+* Change `CreditNote.refunds` to be required
+* Change `Invoice.amount_overpaid` and `QuotePreviewInvoice.amount_overpaid` to be required
+* Change type of `InvoicePayment.is_default` from `nullable(boolean)` to `boolean`
+* Change type of `PaymentAttemptRecord.PaymentMethodDetail.custom` and `PaymentRecord.PaymentMethodDetail.custom` from `nullable(PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails)` to `PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails`
+* Change `PaymentRecord.ReportPaymentParams.payment_reference` to be optional
+
+* [#1476](https://github.com/stripe/stripe-python/pull/1476) Update add_beta_version logic
+ * ⚠️ stripe.add_beta_version` will use the highest version number used for a beta feature instead of raising an `Exception` on a conflict as it had done previously.
+
## 12.0.1 - 2025-04-21
* [#1499](https://github.com/stripe/stripe-python/pull/1499) Encode bools with lower case
- Serializes boolean query parameter values to `true`/`false` (lower case) before sending to the Stripe API for compatibility with Stripe V2 endpoints
@@ -543,6 +1058,13 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Rename `ThinEvent.related_object.type_` to `ThinEvent.related_object.type`
* This was an unintentional typo before. The property name now correctly matches the value you get back from the API
+## 11.7.0b1 - 2025-03-18
+* [#1469](https://github.com/stripe/stripe-python/pull/1469) Beta SDK updates between Open API versions 1473 and 1505
+
+ * Add support for `target_date` on parameter classes `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit`, `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit`, `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit`, and `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit` and resource classes `stripe.Order.Payment.Settings.PaymentMethodOptions.AcssDebit` and `stripe.Order.Payment.Settings.PaymentMethodOptions.SepaDebit`
+ * Add support for `succeed_input_collection` and `timeout_input_collection` on resource `stripe.terminal.Reader`
+* [#1467](https://github.com/stripe/stripe-python/pull/1467) Merge python-beta
+
## 11.6.0 - 2025-02-24
* [#1450](https://github.com/stripe/stripe-python/pull/1450) Update generated code
* Add support for `target_date` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsAcssDebit`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsAuBecsDebit`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsBacsDebit`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsSepaDebit`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccount`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsAcssDebit`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsAuBecsDebit`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsBacsDebit`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsSepaDebit`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccount`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsAcssDebit`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsAuBecsDebit`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsBacsDebit`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsSepaDebit`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccount`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsAcssDebit`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsAuBecsDebit`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsBacsDebit`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSepaDebit`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptionsUsBankAccount` and resource classes `stripe.PaymentIntent.PaymentMethodOptions.AcssDebit`, `stripe.PaymentIntent.PaymentMethodOptions.AuBecsDebit`, `stripe.PaymentIntent.PaymentMethodOptions.BacsDebit`, `stripe.PaymentIntent.PaymentMethodOptions.SepaDebit`, `stripe.PaymentIntent.PaymentMethodOptions.UsBankAccount`, `stripe.checkout.Session.PaymentMethodOptions.AcssDebit`, `stripe.checkout.Session.PaymentMethodOptions.AuBecsDebit`, `stripe.checkout.Session.PaymentMethodOptions.BacsDebit`, `stripe.checkout.Session.PaymentMethodOptions.SepaDebit`, and `stripe.checkout.Session.PaymentMethodOptions.UsBankAccount`
@@ -593,6 +1115,16 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1442](https://github.com/stripe/stripe-python/pull/1442) Fix V2 ListObject.data type hint
- Change `stripe.v2.ListObject.data` type hint from `List[StripeObject]` to `List[T]` where T is the specific stripe object contained within the list
+## 11.6.0b1 - 2025-02-07
+* [#1449](https://github.com/stripe/stripe-python/pull/1449) Update generated code for beta
+ * Add support for `rejected_reason` on resource class `stripe.Account.RiskControls`
+ * Add support for `product_tax_code_selector` on parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `brand_product` on resource classes `stripe.Charge.PaymentMethodDetails.AmazonPay.Funding.Card` and `stripe.Charge.PaymentMethodDetails.RevolutPay.Funding.Card`
+ * Add support for `prices` on parameter classes `stripe.billing.CreditBalanceSummary.RetrieveParamsFilterApplicabilityScope` and `stripe.billing.CreditGrant.CreateParamsApplicabilityConfigScope` and resource class `stripe.billing.CreditGrant.ApplicabilityConfig.Scope`
+ * Add support for `restrictions` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card`
+ * Change type of `political_exposure` on `stripe.Account.CreatePersonParams`, `stripe.Account.ModifyPersonParams`, and `stripe.Token.CreateParamsPerson` from `str` to `Literal['existing', 'none']`
+ * Change type of `price_type` on `stripe.billing.CreditGrant.ApplicabilityConfig.Scope` from `Literal['metered']` to `Optional[Literal['metered']]`
+
## 11.5.0 - 2025-01-27
* [#1443](https://github.com/stripe/stripe-python/pull/1443) Update generated code
* Add support for `pay_by_bank_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
@@ -629,6 +1161,48 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1442](https://github.com/stripe/stripe-python/pull/1442) Fix V2 ListObject.data type hint
- Change `stripe.v2.ListObject.data` type hint from `List[StripeObject]` to `List[T]` where T is the specific stripe object contained within the list
+## 11.5.0b3 - 2025-01-23
+* [#1447](https://github.com/stripe/stripe-python/pull/1447) Update generated code for beta
+ * Remove support for `stripe_account` on resource classes `stripe.terminal.Reader.Action.CollectPaymentMethod`, `stripe.terminal.Reader.Action.ConfirmPaymentIntent`, `stripe.terminal.Reader.Action.ProcessPaymentIntent`, and `stripe.terminal.Reader.Action.RefundPayment`
+
+## 11.5.0b2 - 2025-01-17
+* [#1439](https://github.com/stripe/stripe-python/pull/1439) Update generated code for beta
+ * Add support for `pay_by_bank_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `directorship_declaration` on parameter classes `stripe.Account.CreateParamsCompany` and `stripe.Token.CreateParamsAccountCompany`
+ * Add support for `proof_of_ultimate_beneficial_ownership` on parameter class `stripe.Account.CreateParamsDocuments`
+ * Add support for `financial_account` on resource class `stripe.AccountSession.Components`
+ * Add support for `issuing_card` on resource class `stripe.AccountSession.Components`
+ * Add support for `tax_threshold_monitoring` on parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `pay_by_bank` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptions`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration`
+ * Add support for `discounts` on resource `stripe.checkout.Session`
+ * Add support for `jpy` on parameter classes `stripe.terminal.Configuration.CreateParamsTipping` and `stripe.terminal.Configuration.ModifyParamsTipping` and resource class `stripe.terminal.Configuration.Tipping`
+ * Add support for `always_invoice` on enums `stripe.billing_portal.Configuration.Features.SubscriptionCancel.proration_behavior`, `stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionCancel.proration_behavior`, and `stripe.billing_portal.Configuration.ModifyParamsFeaturesSubscriptionCancel.proration_behavior`
+ * Add support for `SD` on enums `stripe.checkout.Session.ShippingAddressCollection.allowed_countries`, `stripe.checkout.Session.CreateParamsShippingAddressCollection.allowed_countries`, `stripe.PaymentLink.ShippingAddressCollection.allowed_countries`, `stripe.PaymentLink.CreateParamsShippingAddressCollection.allowed_countries`, and `stripe.PaymentLink.ModifyParamsShippingAddressCollection.allowed_countries`
+ * Add support for `pay_by_bank` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`
+ * Add support for `2025-01-27.acacia` on enum `stripe.WebhookEndpoint.CreateParams.api_version`
+
+## 11.5.0b1 - 2025-01-09
+* [#1433](https://github.com/stripe/stripe-python/pull/1433) Update generated code for beta
+ * Add support for `directorship_declaration` on resource class `stripe.Account.Company`
+ * Add support for `ownership_exemption_reason` on resource class `stripe.Account.Company` and parameter classes `stripe.Account.CreateParamsCompany` and `stripe.Token.CreateParamsAccountCompany`
+ * Add support for `brand_product` on resource `stripe.Card` and resource classes `stripe.Source.Card`, `stripe.Source.CardPresent`, and `stripe.Source.ThreeDSecure`
+ * Add support for `advice_code` on resource classes `stripe.Charge.Outcome`, `stripe.Invoice.LastFinalizationError`, `stripe.PaymentIntent.LastPaymentError`, `stripe.QuotePreviewInvoice.LastFinalizationError`, `stripe.SetupAttempt.SetupError`, and `stripe.SetupIntent.LastSetupError`
+ * Add support for `country` on resource classes `stripe.Charge.PaymentMethodDetails.Paypal`, `stripe.ConfirmationToken.PaymentMethodPreview.Paypal`, and `stripe.PaymentMethod.Paypal`
+ * Add support for `phone_number_collection` on parameter class `stripe.PaymentLink.ModifyParams`
+ * Add support for `nickname` on parameter classes `stripe.treasury.FinancialAccount.CreateParams` and `stripe.treasury.FinancialAccount.ModifyParams` and resource `stripe.treasury.FinancialAccount`
+ * Add support for `forwarding_settings` on parameter class `stripe.treasury.FinancialAccount.ModifyParams`
+ * Add support for `_cls_close` on resource `stripe.treasury.FinancialAccount`
+ * Add support for `close` on resource `stripe.treasury.FinancialAccount`
+ * Add support for `is_default` on resource `stripe.treasury.FinancialAccount`
+ * Add support for `destination_payment_method_data` on parameter class `stripe.treasury.OutboundTransfer.CreateParams`
+ * Add support for `financial_account` on resource class `stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails`
+ * Add support for `outbound_transfer` on resource class `stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails`
+ * Remove support for `always_invoice` on enums `stripe.billing_portal.Configuration.Features.SubscriptionCancel.proration_behavior`, `stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionCancel.proration_behavior`, and `stripe.billing_portal.Configuration.ModifyParamsFeaturesSubscriptionCancel.proration_behavior`
+ * Add support for `al_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `financial_account` on enum `stripe.treasury.OutboundTransfer.DestinationPaymentMethodDetails.type`
+ * Add support for `outbound_transfer` on enums `stripe.treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails.type` and `stripe.treasury.ReceivedCredit.ListParamsLinkedFlows.source_flow_type`
+ * Change type of `pretax_credit_amounts` on `stripe.CreditNote` and `stripe.CreditNoteLineItem` from `Optional[List[PretaxCreditAmount]]` to `List[PretaxCreditAmount]`
+
## 11.4.1 - 2024-12-19
* [#1438](https://github.com/stripe/stripe-python/pull/1438) Fix regression when using httpx HTTP client
@@ -700,6 +1274,56 @@ This release changes the pinned API version to `2025-04-30.basil`.
- Fixes an issue where `StripeError.http_body` may be None even when `json_body` is a valid dictionary.
* [#1431](https://github.com/stripe/stripe-python/pull/1431) fix deprecation warning in httpx @ 0.28
+## 11.4.0b3 - 2024-12-12
+* [#1429](https://github.com/stripe/stripe-python/pull/1429) Update generated code for beta
+ * Add support for `allow_redisplay` on resources `stripe.Card` and `stripe.Source`
+ * Add support for `account` on resource classes `stripe.terminal.Reader.Action.CollectPaymentMethod`, `stripe.terminal.Reader.Action.ConfirmPaymentIntent`, `stripe.terminal.Reader.Action.ProcessPaymentIntent`, and `stripe.terminal.Reader.Action.RefundPayment`
+ * Remove support for `amount_refunded` on resource `stripe.PaymentRecord`
+ * Add support for `am_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `ao_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `ba_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `bb_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `bs_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `cd_nif` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `gn_nif` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `kh_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `me_pib` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `mk_vat` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `mr_nif` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `np_pan` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `sn_ninea` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `sr_fin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `tj_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `ug_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `zm_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `zw_tin` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Add support for `network_fallback` on enum `stripe.issuing.Authorization.RequestHistory.reason`
+
+## 11.4.0b2 - 2024-12-05
+* [#1426](https://github.com/stripe/stripe-python/pull/1426) Update generated code for beta
+ * Add support for `automatic_indirect_tax` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `disabled_reason` on resource classes `stripe.Invoice.AutomaticTax`, `stripe.QuotePreviewInvoice.AutomaticTax`, `stripe.QuotePreviewSubscriptionSchedule.DefaultSettings.AutomaticTax`, `stripe.QuotePreviewSubscriptionSchedule.Phase.AutomaticTax`, `stripe.Subscription.AutomaticTax`, `stripe.SubscriptionSchedule.DefaultSettings.AutomaticTax`, and `stripe.SubscriptionSchedule.Phase.AutomaticTax`
+ * Add support for `reference_prefix` on parameter classes `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsBacsDebitMandateOptions`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsSepaDebitMandateOptions`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsBacsDebitMandateOptions`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSepaDebitMandateOptions` and resource classes `stripe.Order.Payment.Settings.PaymentMethodOptions.SepaDebit.MandateOptions`, `stripe.PaymentIntent.PaymentMethodOptions.BacsDebit.MandateOptions`, `stripe.PaymentIntent.PaymentMethodOptions.SepaDebit.MandateOptions`, `stripe.SetupIntent.PaymentMethodOptions.BacsDebit.MandateOptions`, `stripe.SetupIntent.PaymentMethodOptions.SepaDebit.MandateOptions`, `stripe.checkout.Session.PaymentMethodOptions.BacsDebit.MandateOptions`, and `stripe.checkout.Session.PaymentMethodOptions.SepaDebit.MandateOptions`
+ * Add support for `trial_period_days` on parameter class `stripe.PaymentLink.ModifyParamsSubscriptionData`
+ * Add support for `payout_minimum_balance_hold` on enum `stripe.BalanceTransaction.type`
+ * Add support for `payout_minimum_balance_release` on enum `stripe.BalanceTransaction.type`
+
+## 11.4.0b1 - 2024-11-21
+* [#1425](https://github.com/stripe/stripe-python/pull/1425) Update generated code for beta
+ * Add support for `network_advice_code` on resource classes `stripe.Charge.Outcome`, `stripe.Invoice.LastFinalizationError`, `stripe.PaymentIntent.LastPaymentError`, `stripe.QuotePreviewInvoice.LastFinalizationError`, `stripe.SetupAttempt.SetupError`, and `stripe.SetupIntent.LastSetupError`
+ * Add support for `network_decline_code` on resource classes `stripe.Charge.Outcome`, `stripe.Invoice.LastFinalizationError`, `stripe.PaymentIntent.LastPaymentError`, `stripe.QuotePreviewInvoice.LastFinalizationError`, `stripe.SetupAttempt.SetupError`, and `stripe.SetupIntent.LastSetupError`
+ * Add support for `funding` on resource classes `stripe.Charge.PaymentMethodDetails.AmazonPay` and `stripe.Charge.PaymentMethodDetails.RevolutPay`
+ * Add support for `amount_requested` on resource class `stripe.Charge.PaymentMethodDetails.Card`
+ * Add support for `partial_authorization` on resource class `stripe.Charge.PaymentMethodDetails.Card`
+ * Add support for `adjustable_quantity` on resource `stripe.LineItem`
+ * Add support for `display` on resource `stripe.LineItem`
+ * Add support for `metadata` on resource `stripe.LineItem` and parameter class `stripe.checkout.Session.CreateParamsLineItem`
+ * Add support for `request_partial_authorization` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsCard`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsCard`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsCard` and resource class `stripe.PaymentIntent.PaymentMethodOptions.Card`
+ * Add support for `payment_method_options` on parameter class `stripe.PaymentIntent.IncrementAuthorizationParams`
+ * Add support for `line_items` on parameter classes `stripe.checkout.Session.CreateParamsPermissionsUpdate` and `stripe.checkout.Session.ModifyParams` and resource class `stripe.checkout.Session.Permissions.Update`
+ * Change type of `schedule_at_period_end` on `stripe.billing_portal.Configuration.Features.SubscriptionUpdate` from `Optional[ScheduleAtPeriodEnd]` to `ScheduleAtPeriodEnd`
+ * Add support for `invoice.overpaid` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+
## 11.3.0 - 2024-11-20
* [#1424](https://github.com/stripe/stripe-python/pull/1424) This release changes the pinned API version to `2024-11-20.acacia`.
* Add support for `authorizer` on parameter classes `stripe.Account.CreatePersonParamsRelationship`, `stripe.Account.ListPersonsParamsRelationship`, `stripe.Account.ModifyPersonParamsRelationship`, `stripe.Account.PersonsParamsRelationship`, and `stripe.Token.CreateParamsPersonRelationship` and resource class `stripe.Person.Relationship`
@@ -724,6 +1348,71 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Change type of `amount` on `stripe.issuing.Authorization.CreateParams` from `int` to `NotRequired[int]`
* Change type of `origin_payment_method` on `stripe.treasury.InboundTransfer` from `str` to `Optional[str]`
+## 11.3.0b3 - 2024-11-14
+* [#1422](https://github.com/stripe/stripe-python/pull/1422) Update generated code for beta
+ * Add support for `account_holder_address` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Iban`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.SortCode`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Spei`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Zengin`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Iban`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.SortCode`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Zengin`
+ * Add support for `bank_address` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Iban`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.SortCode`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Spei`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Zengin`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Iban`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.SortCode`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Zengin`
+ * Add support for `account_holder_name` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Spei` and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei`
+ * Add support for `subscribe` on enum `stripe.PaymentLink.ModifyParams.submit_type`
+
+## 11.3.0b2 - 2024-11-07
+* [#1421](https://github.com/stripe/stripe-python/pull/1421) Update generated code for beta
+ * Add support for `card_management` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardFeatures`
+ * Add support for `card_spend_dispute_management` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardFeatures`
+ * Add support for `cardholder_management` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardFeatures`
+ * Add support for `spend_control_management` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardFeatures`
+ * Add support for `disable_stripe_user_authentication` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardsListFeatures`
+ * Add support for `account_holder_address` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Aba`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Swift`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Aba`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Swift`
+ * Add support for `account_holder_name` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Aba`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Swift`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Aba`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Swift`
+ * Add support for `account_type` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Aba`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Swift`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Aba`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Swift`
+ * Add support for `bank_address` on resource classes `stripe.FundingInstructions.BankTransfer.FinancialAddress.Aba`, `stripe.FundingInstructions.BankTransfer.FinancialAddress.Swift`, `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Aba`, and `stripe.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Swift`
+ * Add support for `payment_record` on parameter class `stripe.Invoice.AttachPaymentParams` and resource class `stripe.InvoicePayment.Payment`
+ * Add support for `amount_overpaid` on resources `stripe.Invoice` and `stripe.QuotePreviewInvoice`
+ * Add support for resource `stripe.PaymentAttemptRecord`
+ * Add support for `submit_type` on parameter class `stripe.PaymentLink.ModifyParams`
+ * Add support for resource `stripe.PaymentRecord`
+ * Add support for `adaptive_pricing` on parameter class `stripe.checkout.Session.CreateParams` and resource `stripe.checkout.Session`
+ * Add support for `mandate_options` on parameter classes `stripe.checkout.Session.CreateParamsPaymentMethodOptionsBacsDebit` and `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSepaDebit` and resource classes `stripe.checkout.Session.PaymentMethodOptions.BacsDebit` and `stripe.checkout.Session.PaymentMethodOptions.SepaDebit`
+ * Add support for `request_decremental_authorization` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card`
+ * Add support for `request_extended_authorization` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card`
+ * Add support for `request_incremental_authorization` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card`
+ * Add support for `request_multicapture` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card`
+ * Add support for `request_overcapture` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptionsCard` and resource class `stripe.checkout.Session.PaymentMethodOptions.Card`
+ * Add support for `capture_method` on parameter classes `stripe.checkout.Session.CreateParamsPaymentMethodOptionsKakaoPay`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsKrCard`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsNaverPay`, `stripe.checkout.Session.CreateParamsPaymentMethodOptionsPayco`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSamsungPay`
+ * Add support for `merchant_amount` on parameter class `stripe.issuing.Authorization.CreateParams`
+ * Add support for `merchant_currency` on parameter class `stripe.issuing.Authorization.CreateParams`
+ * Add support for resource `stripe.issuing.FraudLiabilityDebit`
+ * Remove support for `money_movement` on parameter class `stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures`
+ * Remove support for `out_of_band_payment` on parameter class `stripe.Invoice.AttachPaymentParams` and resource class `stripe.InvoicePayment.Payment`
+ * Change type of `disabled_reason` on `stripe.Account.FutureRequirements` and `stripe.Account.Requirements` from `str` to `Literal['action_required.requested_capabilities', 'listed', 'other', 'platform_paused', 'rejected.fraud', 'rejected.incomplete_verification', 'rejected.listed', 'rejected.other', 'rejected.platform_fraud', 'rejected.platform_other', 'rejected.platform_terms_of_service', 'rejected.terms_of_service', 'requirements.past_due', 'requirements.pending_verification', 'under_review']`
+ * Change type of `disable_stripe_user_authentication` on `stripe.AccountSession.Components.AccountManagement.Features`, `stripe.AccountSession.Components.AccountOnboarding.Features`, `stripe.AccountSession.Components.Balances.Features`, `stripe.AccountSession.Components.NotificationBanner.Features`, and `stripe.AccountSession.Components.Payouts.Features` from `Optional[bool]` to `bool`
+ * Add support for `li_vat` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, `stripe.QuotePreviewInvoice.CustomerTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type`
+ * Add support for `invoice.payment_attempt_required` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+ * Add support for `issuing_fraud_liability_debit.created` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+ * Add support for `custom` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types`
+ * Add support for `service_tax` on enums `stripe.Invoice.AddLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.Invoice.UpdateLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.InvoiceLineItem.ModifyParamsTaxAmountTaxRateData.tax_type`, `stripe.tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Calculation.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.CalculationLineItem.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.TaxRate.tax_type`, `stripe.TaxRate.CreateParams.tax_type`, and `stripe.TaxRate.ModifyParams.tax_type`
+ * Add support for `payment_record` on enum `stripe.InvoicePayment.Payment.type`
+ * Add support for `link` on enums `stripe.PaymentIntent.PaymentMethodOptions.Card.network`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsCard.network`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsCard.network`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsCard.network`, `stripe.SetupIntent.PaymentMethodOptions.Card.network`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsCard.network`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsCard.network`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsCard.network`, `stripe.Subscription.PaymentSettings.PaymentMethodOptions.Card.network`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsCard.network`, and `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsCard.network`
+ * Change type of `amount` on `stripe.issuing.Authorization.CreateParams` from `int` to `NotRequired[int]`
+ * Change type of `origin_payment_method` on `stripe.treasury.InboundTransfer` from `str` to `Optional[str]`
+
+## 11.3.0b1 - 2024-10-29
+* [#1417](https://github.com/stripe/stripe-python/pull/1417) Update generated code for beta
+ * Add support for `id_bank_transfer_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `bank_bca_onboarding` on parameter class `stripe.Account.CreateParamsSettings` and resource class `stripe.Account.Settings`
+ * Add support for `send_money` on parameter class `stripe.AccountSession.CreateParamsComponentsRecipientsFeatures`
+ * Add support for `id_bank_transfer` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.Invoice.PaymentSettings.PaymentMethodOptions`, `stripe.PaymentIntent.PaymentMethodOptions`, `stripe.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions`, `stripe.Refund.DestinationDetails`, `stripe.SetupAttempt.PaymentMethodDetails`, and `stripe.Subscription.PaymentSettings.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.Invoice.CreateParamsPaymentSettingsPaymentMethodOptions`, `stripe.Invoice.ModifyParamsPaymentSettingsPaymentMethodOptions`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptions`, and `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptions`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration`
+ * Add support for `_cls_trigger_action` on resource `stripe.PaymentIntent`
+ * Add support for `trigger_action` on resource `stripe.PaymentIntent`
+ * Add support for `gopay` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration`
+ * Add support for `qris` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration`
+ * Add support for `shopeepay` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration`
+ * Add support for `id_bank_transfer` on enums `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types`
+ * Change type of `enhanced_eligibility_types` on `stripe.Dispute` from `Optional[List[Literal['visa_compelling_evidence_3']]]` to `List[Literal['visa_compelling_evidence_3']]`
+ * Change type of `enhanced_evidence` on `stripe.Dispute.Evidence` from `Optional[EnhancedEvidence]` to `EnhancedEvidence`
+ * Change type of `enhanced_eligibility` on `stripe.Dispute.EvidenceDetails` from `Optional[EnhancedEligibility]` to `EnhancedEligibility`
+ * Remove support for `payout_statement_descriptor_profanity` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
+
## 11.2.0 - 2024-10-29
* [#1411](https://github.com/stripe/stripe-python/pull/1411) This release changes the pinned API version to `2024-10-28.acacia`.
* Add support for resource `stripe.v2.EventDestinations`
@@ -758,6 +1447,87 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `state_retail_delivery_fee` on enums `stripe.tax.Registration.CountryOptions.Us.type` and `stripe.tax.Registration.CreateParamsCountryOptionsUs.type`
* Add support for `2024-10-28.acacia` on enum `stripe.WebhookEndpoint.CreateParams.api_version`
+## 11.2.0b3 - 2024-10-18
+* [#1413](https://github.com/stripe/stripe-python/pull/1413) Update generated code for beta
+ * Add support for `alma_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `gopay_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `kakao_pay_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `kr_card_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `naver_pay_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `payco_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `qris_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `samsung_pay_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `shopeepay_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `treasury_evolve` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `treasury_fifth_third` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `treasury_goldman_sachs` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `alma` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.PaymentIntent.PaymentMethodOptions`, and `stripe.Refund.DestinationDetails`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration`
+ * Add support for `gopay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod`
+ * Add support for `qris` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod`
+ * Add support for `shopeepay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod`
+ * Add support for `amazon_pay` on resource `stripe.PaymentMethodDomain`
+ * Add support for `schedule_at_period_end` on parameter classes `stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionUpdate` and `stripe.billing_portal.Configuration.ModifyParamsFeaturesSubscriptionUpdate` and resource class `stripe.billing_portal.Configuration.Features.SubscriptionUpdate`
+ * Add support for `metadata` on parameter class `stripe.forwarding.Request.CreateParams`
+ * Add support for `external_reference` on parameter class `stripe.tax.Form.ListParamsPayee` and resource class `stripe.tax.Form.Payee`
+ * Add support for `au_serr` on resource `stripe.tax.Form`
+ * Add support for `ca_mrdp` on resource `stripe.tax.Form`
+ * Add support for `eu_dac7` on resource `stripe.tax.Form`
+ * Add support for `gb_mrdp` on resource `stripe.tax.Form`
+ * Add support for `nz_mrdp` on resource `stripe.tax.Form`
+ * Add support for `pln` on parameter classes `stripe.terminal.Configuration.CreateParamsTipping` and `stripe.terminal.Configuration.ModifyParamsTipping` and resource class `stripe.terminal.Configuration.Tipping`
+ * Add support for `bank` on parameter classes `stripe.treasury.FinancialAccount.CreateParamsFeaturesFinancialAddressesAba`, `stripe.treasury.FinancialAccount.ModifyParamsFeaturesFinancialAddressesAba`, and `stripe.treasury.FinancialAccount.UpdateFeaturesParamsFinancialAddressesAba` and resource class `stripe.treasury.FinancialAccountFeatures.FinancialAddresses.Aba`
+ * Change type of `business_profile` on `stripe.billing_portal.Configuration.CreateParams` from `Configuration.CreateParamsBusinessProfile` to `NotRequired[Configuration.CreateParamsBusinessProfile]`
+ * Add support for `alma` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`
+ * Add support for `gopay` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`
+ * Add support for `qris` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`
+ * Add support for `shopeepay` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, `stripe.PaymentLink.ModifyParams.payment_method_types`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`
+ * Add support for `auto` on enum `stripe.Customer.ModifyParamsTax.validate_location`
+ * Add support for `jp_credit_transfer` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types`
+ * Add support for `kakao_pay` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types`
+ * Add support for `kr_card` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types`
+ * Add support for `naver_pay` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types`
+ * Add support for `payco` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types`
+ * Add support for `au_serr` on enums `stripe.tax.Form.type` and `stripe.tax.Form.ListParams.type`
+ * Add support for `ca_mrdp` on enums `stripe.tax.Form.type` and `stripe.tax.Form.ListParams.type`
+ * Add support for `eu_dac7` on enums `stripe.tax.Form.type` and `stripe.tax.Form.ListParams.type`
+ * Add support for `gb_mrdp` on enums `stripe.tax.Form.type` and `stripe.tax.Form.ListParams.type`
+ * Add support for `nz_mrdp` on enums `stripe.tax.Form.type` and `stripe.tax.Form.ListParams.type`
+ * Add support for `external_reference` on enums `stripe.tax.Form.Payee.type` and `stripe.tax.Form.ListParamsPayee.type`
+ * Remove support for `expired` on enums `stripe.issuing.Authorization.status` and `stripe.issuing.Authorization.ListParams.status`
+
+## 11.2.0b2 - 2024-10-08
+* [#1396](https://github.com/stripe/stripe-python/pull/1396) Update generated code for beta
+ * Add support for `groups` on parameter class `stripe.Account.CreateParams` and resource `stripe.Account`
+ * Add support for `disable_stripe_user_authentication` on resource classes `stripe.AccountSession.Components.AccountManagement.Features`, `stripe.AccountSession.Components.AccountOnboarding.Features`, `stripe.AccountSession.Components.Balances.Features`, `stripe.AccountSession.Components.NotificationBanner.Features`, and `stripe.AccountSession.Components.Payouts.Features` and parameter classes `stripe.AccountSession.CreateParamsComponentsAccountManagementFeatures`, `stripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures`, `stripe.AccountSession.CreateParamsComponentsBalancesFeatures`, `stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures`, `stripe.AccountSession.CreateParamsComponentsNotificationBannerFeatures`, and `stripe.AccountSession.CreateParamsComponentsPayoutsFeatures`
+ * Add support for `card_spend_dispute_management` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardsListFeatures`
+ * Add support for `spend_control_management` on parameter class `stripe.AccountSession.CreateParamsComponentsIssuingCardsListFeatures`
+ * Add support for `kakao_pay` and `kr_card` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.Mandate.PaymentMethodDetails`, `stripe.PaymentIntent.PaymentMethodOptions`, and `stripe.SetupAttempt.PaymentMethodDetails`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod`
+ * Add support for `naver_pay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod`
+ * Add support for `payco` and `samsung_pay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod`
+ * Add support for `line_items` on parameter classes `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsPaypal`, `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsPaypal`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsPaypal`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsPaypal`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsPaypal` and resource classes `stripe.Order.Payment.Settings.PaymentMethodOptions.Paypal` and `stripe.PaymentIntent.PaymentMethodOptions.Paypal`
+ * Add support for `flat_amount` on resource `stripe.TaxRate` and resource class `stripe.tax.Calculation.TaxBreakdown.TaxRateDetails`
+ * Add support for `rate_type` on resource `stripe.TaxRate` and resource class `stripe.tax.Calculation.TaxBreakdown.TaxRateDetails`
+ * Add support for `metadata` on resource `stripe.forwarding.Request`
+ * Add support for `_cls_submit_card` on resource `stripe.issuing.Card`
+ * Add support for `submit_card` on resource `stripe.issuing.Card`
+ * Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on resource class `stripe.tax.Registration.CountryOptions` and parameter class `stripe.tax.Registration.CreateParamsCountryOptions`
+ * Add support for `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `stripe.checkout.Session.CollectedInformation.TaxId.type`, `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, `stripe.QuotePreviewInvoice.CustomerTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type`
+ * Add support for `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`
+ * Add support for `refund.failed` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+ * Add support for `payout_statement_descriptor_profanity` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
+ * Add support for `retail_delivery_fee` on enums `stripe.Invoice.AddLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.Invoice.UpdateLinesParamsLineTaxAmountTaxRateData.tax_type`, `stripe.InvoiceLineItem.ModifyParamsTaxAmountTaxRateData.tax_type`, `stripe.tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Calculation.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.CalculationLineItem.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetails.tax_type`, `stripe.TaxRate.tax_type`, `stripe.TaxRate.CreateParams.tax_type`, and `stripe.TaxRate.ModifyParams.tax_type`
+ * Add support for `expired` on enums `stripe.issuing.Authorization.status` and `stripe.issuing.Authorization.ListParams.status`
+ * Add support for `state_retail_delivery_fee` on enums `stripe.tax.Registration.CountryOptions.Us.type` and `stripe.tax.Registration.CreateParamsCountryOptionsUs.type`
+
+## 11.2.0b1 - 2024-10-03
+* [#1407](https://github.com/stripe/stripe-python/pull/1407) Updates beta branch with changes in master & update generated code
+ * Add support for `reporting_chart` on parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `total_pretax_credit_amounts` on resource `stripe.QuotePreviewInvoice`
+ * Add support for `allow_redisplay` on parameter class `stripe.terminal.Reader.CollectPaymentMethodParamsCollectConfig`
+ * Remove support for `from_schedule` on resource class `stripe.Quote.SubscriptionData`
+ * Move `raw_request` and related methods from `_raw_request` module to the `StripeClient` class
+ * Remove `_preview` module; use raw request methods in the `StripeClient` class instead
+
## 11.1.1 - 2024-10-18
* [#1414](https://github.com/stripe/stripe-python/pull/1414) Deserialize into correct v2 EventData types
* Fixes a bug where v2 EventData was not being deserialized into the appropriate type for `V1BillingMeterErrorReportTriggeredEvent` and `V1BillingMeterNoMeterFoundEvent`
@@ -803,6 +1573,14 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Change type of `default_allowed_updates` on `stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionUpdate` from `Union[Literal[''], List[Literal['price', 'promotion_code', 'quantity']]]` to `NotRequired[Literal['']|List[Literal['price', 'promotion_code', 'quantity']]]`
* Change type of `products` on `stripe.billing_portal.Configuration.CreateParamsFeaturesSubscriptionUpdate` from `Union[Literal[''], List[Configuration.CreateParamsFeaturesSubscriptionUpdateProduct]]` to `NotRequired[Literal['']|List[Configuration.CreateParamsFeaturesSubscriptionUpdateProduct]]`
+## 10.13.0b1 - 2024-09-18
+* [#1395](https://github.com/stripe/stripe-python/pull/1395) Update generated code for beta
+ * Add support for `send_money` on parameter class `stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures`
+ * Add support for `transfer_balance` on parameter class `stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures`
+ * Add support for `automatically_finalizes_at` on resource `stripe.QuotePreviewInvoice`
+ * Remove support for resource `stripe.QuotePhase`
+ * Add support for `rechnung` on enums `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types`
+ * Add support for `terminal_reader_invalid_location_for_activation` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code`
## 10.12.0 - 2024-09-18
* [#1394](https://github.com/stripe/stripe-python/pull/1394) Update generated code
@@ -816,6 +1594,19 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `amazon_pay` on enum `stripe.Dispute.PaymentMethodDetails.type`
* Add support for `terminal_reader_invalid_location_for_activation` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
+## 10.12.0b1 - 2024-09-13
+* [#1389](https://github.com/stripe/stripe-python/pull/1389) Update generated code for beta
+ * Add support for `template` on resource class `stripe.QuotePreviewInvoice.Rendering`
+ * Add support for resource `stripe.issuing.DisputeSettlementDetail`
+ * Add support for resource `stripe.issuing.Settlement`
+ * Add support for `settlement` on parameter class `stripe.issuing.Transaction.ListParams` and resource `stripe.issuing.Transaction`
+ * Remove support for `list` on resource `stripe.QuotePhase`
+ * Add support for `rechnung` on enum `stripe.checkout.Session.CreateParams.payment_method_types`
+ * Add support for `issuing_dispute_settlement_detail.created` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+ * Add support for `issuing_dispute_settlement_detail.updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+ * Add support for `issuing_settlement.created` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+ * Add support for `issuing_settlement.updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+
## 10.11.0 - 2024-09-12
* [#1391](https://github.com/stripe/stripe-python/pull/1391) Update generated code
* Add support for `template` on parameter classes `stripe.Customer.CreateParamsInvoiceSettingsRenderingOptions`, `stripe.Customer.ModifyParamsInvoiceSettingsRenderingOptions`, `stripe.Invoice.CreateParamsRendering`, and `stripe.Invoice.ModifyParamsRendering` and resource classes `stripe.Customer.InvoiceSettings.RenderingOptions` and `stripe.Invoice.Rendering`
@@ -826,6 +1617,25 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Change type of `tax_rates` on `stripe.InvoiceLineItem` from `Optional[List[TaxRate]]` to `List[TaxRate]`
* Change type of `status_details` on `stripe.test_helpers.TestClock` from `Optional[StatusDetails]` to `StatusDetails`
+## 10.11.0b1 - 2024-09-05
+* [#1387](https://github.com/stripe/stripe-python/pull/1387) Update generated code for beta
+ * Add support for `recipients` on parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for resource `stripe.billing.MeterErrorReport`
+ * Add support for `business_name` on resource class `stripe.checkout.Session.CollectedInformation`
+ * Add support for `tax_ids` on resource class `stripe.checkout.Session.CollectedInformation`
+ * Add support for `billing.meter_error_report.triggered` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+ * Add support for `mb_way` on enums `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types`
+* [#1386](https://github.com/stripe/stripe-python/pull/1386) Merge from master
+* [#1384](https://github.com/stripe/stripe-python/pull/1384) Merge from master after the changes to not pass api_mode from individual methods
+* [#1380](https://github.com/stripe/stripe-python/pull/1380) Update generated code for beta
+ * Add support for `email` on resource class `stripe.checkout.Session.CollectedInformation`
+ * Add support for `phone` on resource class `stripe.checkout.Session.CollectedInformation`
+ * Add support for `regulatory_reporting_file` on parameter classes `stripe.issuing.CreditUnderwritingRecord.CorrectParams`, `stripe.issuing.CreditUnderwritingRecord.CreateFromProactiveReviewParams`, and `stripe.issuing.CreditUnderwritingRecord.ReportDecisionParams` and resource `stripe.issuing.CreditUnderwritingRecord`
+ * Add support for resource `stripe.terminal.ReaderCollectedData`
+ * Remove support for `rechnung` on parameter class `stripe.PaymentMethod.ModifyParams`
+ * Add support for `mb_way` on enum `stripe.checkout.Session.CreateParams.payment_method_types`
+ * Add support for `terminal_reader_collected_data_invalid` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
+
## 10.10.0 - 2024-09-05
* [#1376](https://github.com/stripe/stripe-python/pull/1376) Update generated code
* Add support for `subscription` on parameter class `stripe.billing.Alert.CreateParamsFilter`
@@ -838,6 +1648,25 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `hr_oib` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type`
* Add support for `issuing_regulatory_reporting` on enums `stripe.File.purpose`, `stripe.File.CreateParams.purpose`, and `stripe.File.ListParams.purpose`
+## 10.9.0b2 - 2024-08-22
+* [#1377](https://github.com/stripe/stripe-python/pull/1377) Update generated code for beta
+ * Add support for `mb_way_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `mb_way` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod`
+ * Remove support for `phases` on parameter classes `stripe.Quote.CreateParams` and `stripe.Quote.ModifyParams`
+ * Remove support for `from_schedule` on parameter class `stripe.Quote.CreateParamsSubscriptionData`
+ * Add support for `mb_way` on enums `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`
+ * Add support for `hr_oib` on enums `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+ * Remove support for `accepted` on enum `stripe.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3.status`
+ * Remove support for `partner_rejected` on enum `stripe.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3.status`
+ * Remove support for `submitted` on enum `stripe.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3.status`
+
+## 10.9.0b1 - 2024-08-15
+* [#1375](https://github.com/stripe/stripe-python/pull/1375) Update generated code for beta
+ * Add support for `capital_financing` on parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `permissions` on parameter class `stripe.checkout.Session.CreateParams` and resource `stripe.checkout.Session`
+ * Add support for `collected_information` on parameter class `stripe.checkout.Session.ModifyParams` and resource `stripe.checkout.Session`
+ * Add support for `shipping_options` on parameter class `stripe.checkout.Session.ModifyParams`
+
## 10.8.0 - 2024-08-15
* [#1373](https://github.com/stripe/stripe-python/pull/1373) Update generated code
* Add support for `authorization_code` on resource class `stripe.Charge.PaymentMethodDetails.Card`
@@ -847,6 +1676,15 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `chips` on resource classes `stripe.treasury.OutboundPayment.TrackingDetails.UsDomesticWire` and `stripe.treasury.OutboundTransfer.TrackingDetails.UsDomesticWire` and parameter classes `stripe.treasury.OutboundPayment.UpdateParamsTrackingDetailsUsDomesticWire` and `stripe.treasury.OutboundTransfer.UpdateParamsTrackingDetailsUsDomesticWire`
* Change type of `imad` on `stripe.treasury.OutboundPayment.TrackingDetails.UsDomesticWire` and `stripe.treasury.OutboundTransfer.TrackingDetails.UsDomesticWire` from `str` to `Optional[str]`
+## 10.8.0b1 - 2024-08-12
+* [#1372](https://github.com/stripe/stripe-python/pull/1372) Update generated code for beta
+ * Add support for `capital_financing` on resource class `stripe.AccountSession.Components`
+ * Add support for `payto` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptions` and resource class `stripe.checkout.Session.PaymentMethodOptions`
+ * ⚠️ Remove support for `risk_correlation_id` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsRechnung`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsRechnung`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsRechnung` and resource class `stripe.PaymentIntent.PaymentMethodOptions.Rechnung`
+ * Add support for `custom` on enums `stripe.checkout.Session.ui_mode` and `stripe.checkout.Session.CreateParams.ui_mode`
+ * Add support for `payto` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types`
+ * Add support for `invalid_mandate_reference_prefix_format` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code`
+
## 10.7.0 - 2024-08-08
* [#1371](https://github.com/stripe/stripe-python/pull/1371) Update generated code
* Add support for `type` on resource classes `stripe.Charge.PaymentMethodDetails.CardPresent.Offline`, `stripe.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Offline`, `stripe.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Offline`, and `stripe.SetupAttempt.PaymentMethodDetails.CardPresent.Offline`
@@ -868,6 +1706,20 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Change type of `interval` on `stripe.Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan`, `stripe.Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsCardInstallmentsPlan`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsCardInstallmentsPlan`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsCardInstallmentsPlan` from `Literal['month']` to `NotRequired[Literal['month']]`
* Change type of `account` on `stripe.Person.AdditionalTosAcceptances` from `Account` to `Optional[Account]`
+## 10.7.0b1 - 2024-08-01
+* [#1370](https://github.com/stripe/stripe-python/pull/1370) Update generated code for beta
+ * Add support for `app_install` on parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `app_viewport` on parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `_cls_attach_payment` on resource `stripe.Invoice`
+ * Add support for `attach_payment` on resource `stripe.Invoice`
+ * Add support for `lines_invalid` on resource class `stripe.Quote.StatusDetails.Stale.LastReason`
+ * Add support for `last_price_migration_error` on resources `stripe.QuotePreviewSubscriptionSchedule`, `stripe.Subscription`, and `stripe.SubscriptionSchedule`
+ * Remove support for `partner_rejected_details` on resource class `stripe.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3`
+ * Add support for `customer.subscription.price_migration_failed` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+ * Add support for `subscription_schedule.price_migration_failed` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+ * Add support for `lines_invalid` on enum `stripe.Quote.StatusDetails.Stale.LastReason.type`
+ * Add support for `charge_exceeds_transaction_limit` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code`
+
## 10.6.0 - 2024-08-01
* [#1369](https://github.com/stripe/stripe-python/pull/1369) Update generated code
* Add support for resource `stripe.billing.Alert`
@@ -875,6 +1727,23 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `billing.alert.triggered` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
* Add support for `charge_exceeds_transaction_limit` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
+## 10.6.0b1 - 2024-07-25
+* [#1361](https://github.com/stripe/stripe-python/pull/1361) Update generated code for beta
+ * Add support for `capital` on parameter class `stripe.Account.CreateParamsSettings` and resource class `stripe.Account.Settings`
+ * Add support for `payment` on resource `stripe.InvoicePayment`
+ * Add support for `async_workflows` on parameter classes `stripe.PaymentIntent.CaptureParams`, `stripe.PaymentIntent.ConfirmParams`, `stripe.PaymentIntent.CreateParams`, `stripe.PaymentIntent.DecrementAuthorizationParams`, `stripe.PaymentIntent.IncrementAuthorizationParams`, and `stripe.PaymentIntent.ModifyParams` and resource `stripe.PaymentIntent`
+ * Add support for `payto` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration`
+ * Add support for resource `stripe.billing.Alert`
+ * Add support for resource `stripe.tax.Association`
+ * Add support for `display_name` on parameter classes `stripe.treasury.FinancialAccount.CreateParams` and `stripe.treasury.FinancialAccount.ModifyParams` and resource `stripe.treasury.FinancialAccount`
+ * Remove support for `charge` on resource `stripe.InvoicePayment`
+ * Remove support for `payment_intent` on resource `stripe.InvoicePayment`
+ * Add support for `issuing.account_closed_for_not_providing_business_model_clarification` on enum `stripe.AccountNotice.reason`
+ * Add support for `issuing.account_closed_for_not_providing_url_clarification` on enum `stripe.AccountNotice.reason`
+ * Add support for `issuing.account_closed_for_not_providing_use_case_clarification` on enum `stripe.AccountNotice.reason`
+ * Add support for `billing.alert.triggered` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+ * Add support for `multibanco` on enum `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`
+
## 10.5.0 - 2024-07-25
* [#1368](https://github.com/stripe/stripe-python/pull/1368) Update generated code
* Add support for `tax_registrations` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents`
@@ -899,6 +1768,16 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `stripe_s700` on enums `stripe.terminal.Reader.device_type` and `stripe.terminal.Reader.ListParams.device_type`
* [#1360](https://github.com/stripe/stripe-python/pull/1360) Update changelog
+## 10.4.0b1 - 2024-07-11
+* [#1356](https://github.com/stripe/stripe-python/pull/1356) Update generated code for beta
+ * Change type of `payment_element` on `stripe.CustomerSession.Components` from `Optional[PaymentElement]` to `PaymentElement`
+ * Add support for `not_qualified` on enum `stripe.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3.status`
+ * Remove support for `billing_policy_remote_function_response_invalid` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code`
+ * Remove support for `billing_policy_remote_function_timeout` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code`
+ * Remove support for `billing_policy_remote_function_unexpected_status_code` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code`
+ * Remove support for `billing_policy_remote_function_unreachable` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code`
+ * Remove support for `payment_intent_fx_quote_invalid` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code`
+
## 10.3.0 - 2024-07-11
* [#1358](https://github.com/stripe/stripe-python/pull/1358) Update generated code
* Add support for `payment_method_options` on resource `stripe.ConfirmationToken`
@@ -909,12 +1788,28 @@ This release changes the pinned API version to `2025-04-30.basil`.
* ⚠️ Remove support for `payment_intent_fx_quote_invalid` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`. The property was mistakenly released last week.
* [#1357](https://github.com/stripe/stripe-python/pull/1357) don't auto-organize imports
+## 10.3.0b1 - 2024-07-05
+* [#1355](https://github.com/stripe/stripe-python/pull/1355) Update generated code for beta
+ * ⚠️ Remove support for `payment_method_update` on resource class `stripe.CustomerSession.Components.PaymentElement.Features` and parameter class `stripe.CustomerSession.CreateParamsComponentsPaymentElementFeatures`. Users are expected to completely migrate from using payment_method_update.
+ * Add support for `payment_method_allow_redisplay_filters`, `payment_method_redisplay`, `payment_method_save_usage` on resource class `stripe.CustomerSession.Components.PaymentElement.Features` and parameter class `stripe.CustomerSession.CreateParamsComponentsPaymentElementFeatures`
+ * Add support for `institution` on parameter classes `stripe.Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.SetupIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.Subscription.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, `stripe.Subscription.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters`, and `stripe.financial_connections.Session.CreateParamsFilters` and resource classes `stripe.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters`, `stripe.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters`, `stripe.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters`, `stripe.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters`, `stripe.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters`, `stripe.checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters`, and `stripe.financial_connections.Session.Filters`
+ * Add support for resource `stripe.financial_connections.Institution`
+ * Add support for `balance` on enums `stripe.financial_connections.Account.subscriptions`, `stripe.financial_connections.Account.SubscribeParams.features`, and `stripe.financial_connections.Account.UnsubscribeParams.features`
+ * Add support for `financial_connections_institution_unavailable` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
+ * Add support for `payment_intent_fx_quote_invalid` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code`
+
## 10.2.0 - 2024-07-05
* [#1354](https://github.com/stripe/stripe-python/pull/1354) Update generated code
* Add support for `_cls_add_lines`, `_cls_remove_lines`, `_cls_update_lines`, `add_lines`, `remove_lines`, `update_lines` on resource `stripe.Invoice`
* Add support for `posted_at` on parameter class `stripe.tax.Transaction.CreateFromCalculationParams` and resource `stripe.tax.Transaction`
* Add support for `payment_intent_fx_quote_invalid` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
+## 10.2.0b1 - 2024-06-27
+* [#1349](https://github.com/stripe/stripe-python/pull/1349) Update generated code for beta
+ * Add support for `filters` on resource class `stripe.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections`
+ * Remove support for `payment_method_set_as_default` on resource class `stripe.CustomerSession.Components.PaymentElement.Features` and parameter class `stripe.CustomerSession.CreateParamsComponentsPaymentElementFeatures`
+ * Add support for `ch_uid` on enums `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+
## 10.1.0 - 2024-06-27
* [#1353](https://github.com/stripe/stripe-python/pull/1353) Update generated code
* Add support for `email_type` on parameter classes `stripe.CreditNote.CreateParams`, `stripe.CreditNote.PreviewLinesParams`, and `stripe.CreditNote.PreviewParams`
@@ -956,6 +1851,10 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `tax_id_collection` on parameter class `stripe.PaymentLink.ModifyParams`
* Add support for `mobilepay` on enums `stripe.PaymentLink.payment_method_types`, `stripe.PaymentLink.CreateParams.payment_method_types`, and `stripe.PaymentLink.ModifyParams.payment_method_types`
+## 9.12.0b1 - 2024-06-13
+* [#1343](https://github.com/stripe/stripe-python/pull/1343) Update generated code for beta
+ * Add support for `de_stn` on enums `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, and `stripe.QuotePreviewInvoice.CustomerTaxId.type`
+
## 9.11.0 - 2024-06-13
* [#1342](https://github.com/stripe/stripe-python/pull/1342) Update generated code
* Add support for `multibanco_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
@@ -968,11 +1867,21 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `multibanco` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`
* Add support for `twint` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`
+## 9.11.0b1 - 2024-06-06
+* [#1339](https://github.com/stripe/stripe-python/pull/1339) Update generated code for beta
+ * Add support for `twint` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions` and resource class `stripe.PaymentIntent.PaymentMethodOptions`
+ * Add support for `swish` on enum `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`
+
## 9.10.0 - 2024-06-06
* [#1340](https://github.com/stripe/stripe-python/pull/1340) Update generated code
* Add support for `gb_bank_transfer_payments`, `jp_bank_transfer_payments`, `mx_bank_transfer_payments`, `sepa_bank_transfer_payments`, `us_bank_transfer_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
* Add support for `swish` on enums `stripe.Invoice.PaymentSettings.payment_method_types`, `stripe.Invoice.CreateParamsPaymentSettings.payment_method_types`, `stripe.Invoice.ModifyParamsPaymentSettings.payment_method_types`, `stripe.Subscription.PaymentSettings.payment_method_types`, `stripe.Subscription.CreateParamsPaymentSettings.payment_method_types`, and `stripe.Subscription.ModifyParamsPaymentSettings.payment_method_types`
+## 9.10.0b1 - 2024-05-30
+* [#1334](https://github.com/stripe/stripe-python/pull/1334) Update generated code for beta
+ * Add support for `en-RO` on enums `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale` and `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale`
+ * Add support for `ro-RO` on enums `stripe.Order.CreateParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale` and `stripe.Order.ModifyParamsPaymentSettingsPaymentMethodOptionsKlarna.preferred_locale`
+
## 9.9.0 - 2024-05-30
* [#1335](https://github.com/stripe/stripe-python/pull/1335) Add method to list invoice line items
* Add methods `list_lines()` and `list_lines_async()` on the class `Invoice` to list the invoice line items
@@ -988,12 +1897,22 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `ro-RO` on enums `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsKlarna.preferred_locale`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsKlarna.preferred_locale`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsKlarna.preferred_locale`
* Change type of `features` on `stripe.issuing.PhysicalBundle` from `Optional[Features]` to `Features`
+## 9.9.0b1 - 2024-05-23
+* [#1331](https://github.com/stripe/stripe-python/pull/1331) Update generated code for beta
+ * Change type of `refund` on `stripe.CreditNote.CreateParamsRefund`, `stripe.CreditNote.PreviewParamsRefund`, and `stripe.CreditNote.PreviewLinesParamsRefund` from `str` to `NotRequired[str]`
+ * Add support for `terminal_reader_invalid_location_for_payment` on enum `stripe.QuotePreviewInvoice.LastFinalizationError.code`
+
## 9.8.0 - 2024-05-23
* [#1332](https://github.com/stripe/stripe-python/pull/1332) Update generated code
* Add support for `external_account_collection` on resource classes `stripe.AccountSession.Components.Balances.Features` and `stripe.AccountSession.Components.Payouts.Features` and parameter classes `stripe.AccountSession.CreateParamsComponentsBalancesFeatures` and `stripe.AccountSession.CreateParamsComponentsPayoutsFeatures`
* Add support for `payment_method_remove` on resource class `stripe.checkout.Session.SavedPaymentMethodOptions`
* Add support for `terminal_reader_invalid_location_for_payment` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
+## 9.8.0b1 - 2024-05-16
+* [#1327](https://github.com/stripe/stripe-python/pull/1327) Update generated code for beta
+
+* [#1330](https://github.com/stripe/stripe-python/pull/1330) (beta) swap from `black` to `ruff` for formatting
+
## 9.7.0 - 2024-05-16
* [#1328](https://github.com/stripe/stripe-python/pull/1328) Update generated code
* Add support for `fee_source` on resource `stripe.ApplicationFee`
@@ -1012,6 +1931,10 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Change type of `countries` on `stripe.financial_connections.Session.CreateParamsFilters` from `List[str]` to `NotRequired[List[str]]`
* [#1329](https://github.com/stripe/stripe-python/pull/1329) Switch from `black` to `ruff` for formatting
+## 9.7.0b1 - 2024-05-09
+* [#1321](https://github.com/stripe/stripe-python/pull/1321) Update generated code for beta
+ * No new beta features. Merging changes from the main branch.
+
## 9.6.0 - 2024-05-09
* [#1323](https://github.com/stripe/stripe-python/pull/1323) Update generated code
* Add support for `allow_redisplay` on resource class `stripe.ConfirmationToken.PaymentMethodPreview` and resource `stripe.PaymentMethod`
@@ -1022,6 +1945,15 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `treasury.outbound_payment.tracking_details_updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
* Add support for `treasury.outbound_transfer.tracking_details_updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+## 9.6.0b1 - 2024-05-02
+* [#1318](https://github.com/stripe/stripe-python/pull/1318) Update generated code for beta
+ * Add support for `rechnung_payments` on resource class `stripe.Account.Capabilities` and parameter class `stripe.Account.CreateParamsCapabilities`
+ * Add support for `rechnung` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, and `stripe.PaymentIntent.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`, and resource `stripe.PaymentMethod`
+ * Add support for `multibanco` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptions` and resource class `stripe.checkout.Session.PaymentMethodOptions`
+ * Add support for `multibanco` on enum `stripe.checkout.Session.CreateParams.payment_method_types`
+ * Add support for `rechnung` on enums `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`
+ * Change type of `transactions` on `stripe.gift_cards.Card` from `ListObject[Transaction]` to `Optional[ListObject[Transaction]]`
+
## 9.5.0 - 2024-05-02
* [#1317](https://github.com/stripe/stripe-python/pull/1317) Update generated code
* Add support for `paypal` on resource class `stripe.Dispute.PaymentMethodDetails`
@@ -1033,6 +1965,13 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Change type of `metadata` on `stripe.entitlements.Feature.ModifyParams` from `Dict[str, str]` to `Literal['']|Dict[str, str]`
* [#1319](https://github.com/stripe/stripe-python/pull/1319) Fix type change entries in Python Changelog
+## 9.5.0b1 - 2024-04-25
+* [#1308](https://github.com/stripe/stripe-python/pull/1308) Update generated code for beta
+ * Add support for `payment_method_settings` on parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `cancel_subscription_schedule` on parameter classes `stripe.Quote.CreateParamsLine` and `stripe.Quote.ModifyParamsLine` and resource `stripe.QuoteLine`
+ * Add support for `amazon_pay` on enum `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`
+ * Add support for `revolut_pay` on enum `stripe.QuotePreviewInvoice.PaymentSettings.payment_method_types`
+
## 9.4.0 - 2024-04-25
* [#1316](https://github.com/stripe/stripe-python/pull/1316) Update generated code
* Add support for `amazon_pay` on resource classes `stripe.Mandate.PaymentMethodDetails` and `stripe.SetupAttempt.PaymentMethodDetails`
@@ -1048,6 +1987,26 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Remove support for inadvertently released identity verification features `email` and `phone` on parameter classes `stripe.identity.VerificationSession.CreateParamsOptions` and `stripe.identity.VerificationSession.ModifyParamsOptions`
* [#1307](https://github.com/stripe/stripe-python/pull/1307) Bump aiohttp from 3.9.2 to 3.9.4
+## 9.4.0b1 - 2024-04-18
+* [#1302](https://github.com/stripe/stripe-python/pull/1302) Update generated code for beta
+ * Add support for `balances` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `payouts_list` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `capital_overview` on parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `tax_registrations` on parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `tax_settings` on parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `external_account_collection` on parameter class `stripe.AccountSession.CreateParamsComponentsFinancialAccountFeatures`
+ * Add support for `allow_redisplay` on parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.Customer.ListPaymentMethodsParams`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`
+ * Add support for `subscription_trial_from_plan` on parameter classes `stripe.Invoice.UpcomingLinesParams` and `stripe.Invoice.UpcomingParams`
+ * Add support for `swish` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration`
+ * Add support for `payment_method_data` on parameter class `stripe.checkout.Session.CreateParams`
+ * Add support for `saved_payment_method_options` on parameter class `stripe.checkout.Session.CreateParams` and resource `stripe.checkout.Session`
+ * Add support for `mobilepay` on parameter class `stripe.checkout.Session.CreateParamsPaymentMethodOptions` and resource class `stripe.checkout.Session.PaymentMethodOptions`
+ * Remove support for `config` on parameter class `stripe.forwarding.Request.CreateParams` and resource `stripe.forwarding.Request`
+ * Change type of fields `stripe.AccountSession.Components.PaymentDetails.Features` and `stripe.AccountSession.Components.Payments.Features` from `Optional[bool]` to `bool` of `destination_on_behalf_of_charge_management`
+ * Change type of field `stripe.billing.MeterEvent.CreateParams` from `int` to `NotRequired[int]` of `timestamp`
+ * Add support for `mobilepay` on enum `stripe.checkout.Session.CreateParams.payment_method_types`
+ * Add support for `other` on enums `stripe.issuing.Authorization.CaptureParamsPurchaseDetailsFuel.unit`, `stripe.issuing.Transaction.CreateForceCaptureParamsPurchaseDetailsFuel.unit`, and `stripe.issuing.Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel.unit`
+
## 9.3.0 - 2024-04-18
* [#1305](https://github.com/stripe/stripe-python/pull/1305) Update generated code
* Add support for `allow_redisplay` on parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.Customer.ListPaymentMethodsParams`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethod.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData`
@@ -1073,6 +2032,28 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Change type of `timestamp` on `stripe.billing.MeterEvent.CreateParams` from `int` to `NotRequired[int]`
* Add support for `entitlements.active_entitlement_summary.updated` on enums `stripe.Event.type`, `stripe.WebhookEndpoint.CreateParams.enabled_events`, and `stripe.WebhookEndpoint.ModifyParams.enabled_events`
+## 9.2.0b1 - 2024-04-11
+* [#1296](https://github.com/stripe/stripe-python/pull/1296) Update generated code for beta
+ * Add support for `external_account_collection` on resource class `stripe.AccountSession.Components.AccountOnboarding.Features` and parameter class `stripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures`
+ * Add support for `account_management` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `notification_banner` on resource class `stripe.AccountSession.Components` and parameter class `stripe.AccountSession.CreateParamsComponents`
+ * Add support for `amazon_pay` on resource classes `stripe.Charge.PaymentMethodDetails`, `stripe.ConfirmationToken.PaymentMethodPreview`, `stripe.PaymentIntent.PaymentMethodOptions`, `stripe.Refund.DestinationDetails`, `stripe.SetupIntent.PaymentMethodOptions`, and `stripe.checkout.Session.PaymentMethodOptions`, parameter classes `stripe.ConfirmationToken.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptions`, `stripe.PaymentIntent.CreateParamsPaymentMethodData`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptions`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData`, `stripe.PaymentIntent.ModifyParamsPaymentMethodOptions`, `stripe.PaymentMethod.CreateParams`, `stripe.PaymentMethodConfiguration.CreateParams`, `stripe.PaymentMethodConfiguration.ModifyParams`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData`, `stripe.SetupIntent.ConfirmParamsPaymentMethodOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodData`, `stripe.SetupIntent.CreateParamsPaymentMethodOptions`, `stripe.SetupIntent.ModifyParamsPaymentMethodData`, `stripe.SetupIntent.ModifyParamsPaymentMethodOptions`, and `stripe.checkout.Session.CreateParamsPaymentMethodOptions`, and resources `stripe.PaymentMethod` and `stripe.PaymentMethodConfiguration`
+ * Add support for `capture_method` on parameter classes `stripe.PaymentIntent.ConfirmParamsPaymentMethodOptionsRevolutPay`, `stripe.PaymentIntent.CreateParamsPaymentMethodOptionsRevolutPay`, and `stripe.PaymentIntent.ModifyParamsPaymentMethodOptionsRevolutPay` and resource class `stripe.PaymentIntent.PaymentMethodOptions.RevolutPay`
+ * Change type of field `stripe.billing.MeterEventAdjustment` from `Cancel` to `Optional[Cancel]` of `cancel`
+ * Change type of field `stripe.billing.MeterEventAdjustment.Cancel` from `str` to `Optional[str]` of `identifier`
+ * Change type of field `stripe.billing.MeterEventAdjustment.CreateParamsCancel` from `str` to `NotRequired[str]` of `identifier`
+ * Change type of field `stripe.billing.MeterEventAdjustment.CreateParams` from `MeterEventAdjustment.CreateParamsCancel` to `NotRequired[MeterEventAdjustment.CreateParamsCancel]` of `cancel`
+ * Change type of field `stripe.billing.MeterEventAdjustment.CreateParams` from `NotRequired[Literal['cancel']]` to `Literal['cancel']` of `type`
+ * Add support for `bh_vat` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, `stripe.QuotePreviewInvoice.CustomerTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type`
+ * Add support for `kz_bin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, `stripe.QuotePreviewInvoice.CustomerTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type`
+ * Add support for `ng_tin` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, `stripe.QuotePreviewInvoice.CustomerTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type`
+ * Add support for `om_vat` on enums `stripe.checkout.Session.CustomerDetails.TaxId.type`, `stripe.Customer.CreateParamsTaxIdDatum.type`, `stripe.Customer.CreateTaxIdParams.type`, `stripe.Invoice.CustomerTaxId.type`, `stripe.Invoice.CreatePreviewParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingParamsCustomerDetailsTaxId.type`, `stripe.Invoice.UpcomingLinesParamsCustomerDetailsTaxId.type`, `stripe.Order.TaxDetails.TaxId.type`, `stripe.Order.CreateParamsTaxDetailsTaxId.type`, `stripe.Order.ModifyParamsTaxDetailsTaxId.type`, `stripe.QuotePreviewInvoice.CustomerTaxId.type`, `stripe.tax.Calculation.CustomerDetails.TaxId.type`, `stripe.tax.Calculation.CreateParamsCustomerDetailsTaxId.type`, `stripe.tax.Transaction.CustomerDetails.TaxId.type`, `stripe.TaxId.type`, and `stripe.TaxId.CreateParams.type`
+ * Add support for `amazon_pay` on enums `stripe.checkout.Session.CreateParams.payment_method_types`, `stripe.ConfirmationToken.PaymentMethodPreview.type`, `stripe.ConfirmationToken.CreateParamsPaymentMethodData.type`, `stripe.Customer.ListPaymentMethodsParams.type`, `stripe.PaymentIntent.ConfirmParamsPaymentMethodData.type`, `stripe.PaymentIntent.CreateParamsPaymentMethodData.type`, `stripe.PaymentIntent.ModifyParamsPaymentMethodData.type`, `stripe.PaymentMethod.type`, `stripe.PaymentMethod.CreateParams.type`, `stripe.PaymentMethod.ListParams.type`, `stripe.SetupIntent.ConfirmParamsPaymentMethodData.type`, `stripe.SetupIntent.CreateParamsPaymentMethodData.type`, and `stripe.SetupIntent.ModifyParamsPaymentMethodData.type`
+ * Add support for `billing_policy_remote_function_response_invalid` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
+ * Add support for `billing_policy_remote_function_timeout` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
+ * Add support for `billing_policy_remote_function_unexpected_status_code` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
+ * Add support for `billing_policy_remote_function_unreachable` on enums `stripe.Invoice.LastFinalizationError.code`, `stripe.PaymentIntent.LastPaymentError.code`, `stripe.QuotePreviewInvoice.LastFinalizationError.code`, `stripe.SetupAttempt.SetupError.code`, and `stripe.SetupIntent.LastSetupError.code`
+
## 9.1.0 - 2024-04-11
* [#1300](https://github.com/stripe/stripe-python/pull/1300) Update generated code
* Add support for `external_account_collection` on resource class `stripe.AccountSession.Components.AccountOnboarding.Features` and parameter class `stripe.AccountSession.CreateParamsComponentsAccountOnboardingFeatures`
@@ -1148,9 +2129,6 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Remove the deprecated value `obligation` for `ReportRun.CreateParamsParameters.reporting_category` and `ReportRunService.CreateParamsParameters.reporting_category`
* Remove the legacy field `rendering_options` on parameter classes `stripe.Invoice.CreateParams` and `stripe.Invoice.ModifyParams` and resource `stripe.Invoice`. Use `rendering` instead.
-
-
-
## 8.11.0 - 2024-04-09
* [#1295](https://github.com/stripe/stripe-python/pull/1295) Update generated code
* Add support for `fees`, `losses`, `requirement_collection` & `stripe_dashboard` on resource class `stripe.Account.Controller`
@@ -1166,6 +2144,37 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1299](https://github.com/stripe/stripe-python/pull/1299) Fix README.md
* [#1292](https://github.com/stripe/stripe-python/pull/1292) Tweak changelog for python async note
+## 8.11.0b1 - 2024-04-04
+* [#1293](https://github.com/stripe/stripe-python/pull/1293) Update generated code for beta
+ * Add support for `risk_controls` on parameter class `stripe.Account.CreateParams` and resource `stripe.Account`
+ * Add support for `promotion_code` on parameter classes `stripe.Invoice.AddLinesParamsLineDiscount`, `stripe.Invoice.CreateParamsDiscount`, `stripe.Invoice.ModifyParamsDiscount`, `stripe.Invoice.UpdateLinesParamsLineDiscount`, `stripe.InvoiceItem.CreateParamsDiscount`, `stripe.InvoiceItem.ModifyParamsDiscount`, `stripe.InvoiceLineItem.ModifyParamsDiscount`, `stripe.Quote.CreateParamsDiscount`, `stripe.Quote.CreateParamsLineActionAddDiscount`, `stripe.Quote.CreateParamsLineItemDiscount`, `stripe.Quote.CreateParamsPhaseLineItemDiscount`, `stripe.Quote.ModifyParamsDiscount`, `stripe.Quote.ModifyParamsLineActionAddDiscount`, `stripe.Quote.ModifyParamsLineItemDiscount`, and `stripe.Quote.ModifyParamsPhaseLineItemDiscount`
+ * Add support for `zip` on parameter classes `stripe.PaymentMethodConfiguration.CreateParams` and `stripe.PaymentMethodConfiguration.ModifyParams` and resource `stripe.PaymentMethodConfiguration`
+ * Add support for `offline` on resource class `stripe.SetupAttempt.PaymentMethodDetails.CardPresent`
+ * Add support for `card_present` on parameter classes `stripe.SetupIntent.ConfirmParamsPaymentMethodOptions`, `stripe.SetupIntent.CreateParamsPaymentMethodOptions`, and `stripe.SetupIntent.ModifyParamsPaymentMethodOptions` and resource class `stripe.SetupIntent.PaymentMethodOptions`
+ * Add support for `modify` on resource `stripe.entitlements.Feature`
+ * Add support for `email` on resource `stripe.identity.VerificationReport`, parameter classes `stripe.identity.VerificationSession.CreateParamsOptions` and `stripe.identity.VerificationSession.ModifyParamsOptions`, and resource classes `stripe.identity.VerificationSession.Options` and `stripe.identity.VerificationSession.VerifiedOutputs`
+ * Add support for `phone` on resource `stripe.identity.VerificationReport`, parameter classes `stripe.identity.VerificationSession.CreateParamsOptions` and `stripe.identity.VerificationSession.ModifyParamsOptions`, and resource classes `stripe.identity.VerificationSession.Options` and `stripe.identity.VerificationSession.VerifiedOutputs`
+ * Add support for `verification_flow` on resources `stripe.identity.VerificationReport` and `stripe.identity.VerificationSession` and parameter class `stripe.identity.VerificationSession.CreateParams`
+ * Add support for `provided_details` on parameter classes `stripe.identity.VerificationSession.CreateParams` and `stripe.identity.VerificationSession.ModifyParams` and resource `stripe.identity.VerificationSession`
+ * Add support for `allowed_merchant_countries` on parameter classes `stripe.issuing.Card.CreateParamsSpendingControls`, `stripe.issuing.Card.ModifyParamsSpendingControls`, `stripe.issuing.Cardholder.CreateParamsSpendingControls`, and `stripe.issuing.Cardholder.ModifyParamsSpendingControls` and resource classes `stripe.issuing.Card.SpendingControls` and `stripe.issuing.Cardholder.SpendingControls`
+ * Add support for `blocked_merchant_countries` on parameter classes `stripe.issuing.Card.CreateParamsSpendingControls`, `stripe.issuing.Card.ModifyParamsSpendingControls`, `stripe.issuing.Cardholder.CreateParamsSpendingControls`, and `stripe.issuing.Cardholder.ModifyParamsSpendingControls` and resource classes `stripe.issuing.Card.SpendingControls` and `stripe.issuing.Cardholder.SpendingControls`
+ * Change type of field `stripe.checkout.Session.CreateParamsPaymentMethodOptionsSwish` from `Literal['']|str` to `str` of `reference`
+ * Add support for `verification_flow` on enums `stripe.identity.VerificationReport.type` and `stripe.identity.VerificationSession.type`
+ * Add support for `email_unverified_other` on enum `stripe.identity.VerificationSession.LastError.code`
+ * Add support for `email_verification_declined` on enum `stripe.identity.VerificationSession.LastError.code`
+ * Add support for `phone_unverified_other` on enum `stripe.identity.VerificationSession.LastError.code`
+ * Add support for `phone_verification_declined` on enum `stripe.identity.VerificationSession.LastError.code`
+ * Add support for `mobile_phone_reader` on enums `stripe.terminal.Reader.device_type` and `stripe.terminal.Reader.ListParams.device_type`
+ * Change type of field `stripe.identity.VerificationSession.CreateParams` from `Literal['document', 'id_number']` to `NotRequired[Literal['document', 'id_number']]` of `type`
+ * Change type of fields `stripe.Invoice`, `stripe.InvoiceLineItem`, `stripe.QuotePreviewInvoice`, `stripe.Subscription`, and `stripe.SubscriptionItem` from `Optional[List[ExpandableField[Discount]]]` to `List[ExpandableField[Discount]]` of `discounts`
+ * Change type of field `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode` from `Optional[str]` to `str` of `data`
+ * Change type of field `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode` from `Optional[str]` to `str` of `image_url_png`
+ * Change type of field `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode` from `Optional[str]` to `str` of `image_url_svg`
+ * Change type of field `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode` from `Optional[str]` to `str` of `hosted_instructions_url`
+ * Change type of field `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode` from `Optional[str]` to `str` of `mobile_auth_url`
+ * Change type of field `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode` from `Optional[QrCode]` to `QrCode` of `qr_code`
+ * Change type of fields `stripe.QuoteLine.Action.AddItem`, `stripe.QuoteLine.Action.SetItem`, `stripe.QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem`, `stripe.QuotePreviewSubscriptionSchedule.Phase.Item`, `stripe.QuotePreviewSubscriptionSchedule.Phase`, `stripe.SubscriptionSchedule.Phase.AddInvoiceItem`, `stripe.SubscriptionSchedule.Phase.Item`, and `stripe.SubscriptionSchedule.Phase` from `Optional[List[Discount]]` to `List[Discount]` of `discounts`
+
## 8.10.0 - 2024-04-04
* [#1288](https://github.com/stripe/stripe-python/pull/1288) Port **async support** from beta to the stable channel. To use it, add an `_async` suffix to any request-making method.
@@ -1206,6 +2215,12 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Change type of `qr_code` on `stripe.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode` from `Optional[QrCode]` to `QrCode`
* [#1289](https://github.com/stripe/stripe-python/pull/1289) Bump aiohttp from 3.9.0 to 3.9.2
+## 8.10.0b1 - 2024-03-28
+* [#1277](https://github.com/stripe/stripe-python/pull/1277) Update generated code for beta
+ * Add support for `financial_account_transactions`, `financial_account`, `issuing_card`, and `issuing_cards_list` on `AccountSession.CreateParamsComponents` and `AccountSessionService.CreateParamsComponents`
+ * Remove support for `subscription_billing_cycle_anchor`, `subscription_cancel_at_period_end`, `subscription_cancel_at`, `subscription_cancel_now`, `subscription_default_tax_rates`, `subscription_items`, `subscription_prebilling`, `subscription_proration_behavior`, `subscription_proration_date`, `subscription_resume_at`, `subscription_start_date`, and `subscription_trial_end` on `Invoice.CreatePreviewParams` and `InvoiceService.CreatePreviewParams`
+
+* [#1283](https://github.com/stripe/stripe-python/pull/1283) Fix unneccessary quotes
## 8.9.0 - 2024-03-28
* [#1276](https://github.com/stripe/stripe-python/pull/1276) Update generated code
@@ -1221,6 +2236,12 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1278](https://github.com/stripe/stripe-python/pull/1278) Types: remove unnecessary quotes
* [#1279](https://github.com/stripe/stripe-python/pull/1279) Update README.md
+## 8.9.0b1 - 2024-03-21
+* [#1272](https://github.com/stripe/stripe-python/pull/1272) Update generated code for beta
+ * Add support for new resources `Entitlements.ActiveEntitlementSummary` and `Entitlements.ActiveEntitlement`
+ * Add support for `list` method on resource `ActiveEntitlement`
+* [#1271](https://github.com/stripe/stripe-python/pull/1271) Support AIOHTTPClient init without running event loop
+
## 8.8.0 - 2024-03-21
* [#1273](https://github.com/stripe/stripe-python/pull/1273) Update generated code
* Add support for new resources `ConfirmationToken` and `Forwarding.Request`
@@ -1237,7 +2258,14 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for new value `mobilepay` on enums `PaymentIntentService.ConfirmParamsPaymentMethodData.type`, `PaymentIntentService.CreateParamsPaymentMethodData.type`, `PaymentIntentService.UpdateParamsPaymentMethodData.type`, `SetupIntentService.ConfirmParamsPaymentMethodData.type`, `SetupIntentService.CreateParamsPaymentMethodData.type`, and `SetupIntentService.UpdateParamsPaymentMethodData.type`
* Add support for new value `mobilepay` on enum `PaymentMethod.type`
-
+## 8.8.0b1 - 2024-03-14
+* [#1270](https://github.com/stripe/stripe-python/pull/1270) Update generated code for beta
+ * Add support for new resources `Billing.MeterEventAdjustment`, `Billing.MeterEvent`, and `Billing.Meter`
+ * Add support for `create`, `deactivate`, `list`, `modify`, `reactivate`, and `retrieve` methods on resource `Meter`
+ * Add support for `create` method on resources `MeterEventAdjustment` and `MeterEvent`
+ * Add support for `create` test helper method on resource `ConfirmationToken`
+ * Add support for `add_lines`, `remove_lines`, and `update_lines` methods on resource `Invoice`
+* [#1266](https://github.com/stripe/stripe-python/pull/1266) Beta: record usage of async interface
## 8.7.0 - 2024-03-14
* [#1269](https://github.com/stripe/stripe-python/pull/1269) Update generated code
@@ -1247,6 +2275,9 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for resource `stripe.issuing.PhysicalBundle`
* Change type from `float` to `Literal['']|float` of `application_fee_percent` on fields `stripe.Subscription.CreateParams`, `stripe.Subscription.ModifyParams`, `SubscriptionService.UpdateParams`, and `SubscriptionService.CreateParams`
+## 8.7.0b1 - 2024-03-07
+* [#1265](https://github.com/stripe/stripe-python/pull/1265) Update generated code for beta
+ * Add support for new value `billing_period_end` on enums `Quote.CreateParamsLineEndsAt.type`, `QuoteLine.EndsAt.type`, and `Quote.ModifyParamsLineEndsAt.type`
## 8.6.0 - 2024-03-07
* [#1267](https://github.com/stripe/stripe-python/pull/1267) Update generated code
@@ -1256,6 +2287,12 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `sepa_debit` on `Invoice.PaymentSettings.PaymentMethodOptions`, `InvoiceCreateParams.PaymentSettings.PaymentMethodOptions`, and `InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions`
* [#1268](https://github.com/stripe/stripe-python/pull/1268) Update README.md
+## 8.6.0b1 - 2024-02-29
+* [#1251](https://github.com/stripe/stripe-python/pull/1251) Update generated code for beta
+ * Remove support for resource `Entitlements.Event`
+* [#1264](https://github.com/stripe/stripe-python/pull/1264) Remove unconditional import of TCPConnector from aiohttp in _http_client
+* [#1259](https://github.com/stripe/stripe-python/pull/1259) Add helper to add beta version
+
## 8.5.0 - 2024-02-29
* [#1255](https://github.com/stripe/stripe-python/pull/1255) Update generated code
* Change `identity.VerificationReport.type` to be required
@@ -1268,6 +2305,23 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1260](https://github.com/stripe/stripe-python/pull/1260) Update README to use add_beta_version
* [#1250](https://github.com/stripe/stripe-python/pull/1250) Fix type of ErrorObject.code
+## 8.5.0b3 - 2024-02-27
+* [#1262](https://github.com/stripe/stripe-python/pull/1262) Beta: fix ssl for AIOHTTP client
+
+## 8.5.0b2 - 2024-02-27
+* **Python async** - In this beta release, async support is now "feature complete". If you notice missing async support for something, it's probably a bug! Usage instructions for the async interface are available in the [README.md](https://github.com/stripe/stripe-python/blob/beta/README.md#async).
+ * [#1253](https://github.com/stripe/stripe-python/pull/1253) Beta: Support 'allow_sync_methods=False' in HTTPXClient
+ * [#1254](https://github.com/stripe/stripe-python/pull/1254) Beta: add AIOHTTP http client
+ * [#1247](https://github.com/stripe/stripe-python/pull/1247) Make `ListObject.auto_paging_iter()` implement `AsyncIterator`
+
+## 8.5.0b1 - 2024-02-22
+* [#1246](https://github.com/stripe/stripe-python/pull/1246) Update generated code for beta
+
+* [#1239](https://github.com/stripe/stripe-python/pull/1239) Beta: Collapse HTTPClientAsync into HTTPClient
+ * ⚠️ Removes the `stripe.default_http_client_async` global and the `stripe.HTTPClientAsync` class.
+ * To set your own async-enabled http client, set `stripe.default_http_client` to a subclass of `stripe.HTTPClient` such as `stripe.HTTPXClient` that implements `.request_async`, `.sleep_async`, `.request_stream_async`, and `.close_async`.
+ * The default http client of the library is still `RequestsClient` for synchronous methods, that "falls back" to a `HTTPXClient` when asynchronous methods are called.
+
## 8.4.0 - 2024-02-22
* [#1241](https://github.com/stripe/stripe-python/pull/1241) Update generated code
- Add `InvoiceLineItem.modify` method.
@@ -1277,6 +2331,13 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1243](https://github.com/stripe/stripe-python/pull/1243) Remove http client base
* [#1242](https://github.com/stripe/stripe-python/pull/1242) Testing: unify http client mock
+## 8.4.0b1 - 2024-02-16
+* [#1235](https://github.com/stripe/stripe-python/pull/1235) Update generated code for beta
+ * Add support for `payto` and `twint` payment methods throughout the API
+ * Add support for `decrement_authorization` method on resource `PaymentIntent`
+* [#1236](https://github.com/stripe/stripe-python/pull/1236) Beta: StripeStreamResponseAsync.read helper
+* [#1233](https://github.com/stripe/stripe-python/pull/1233) Beta: async streaming
+
## 8.3.0 - 2024-02-15
* [#1230](https://github.com/stripe/stripe-python/pull/1230) Update generated code
* Add support for `networks` on `Card`, `PaymentMethod.CreateParamsCard`, `PaymentMethod.ModifyParamsCard`, and `Token.CreateParamsCard`
@@ -1289,6 +2350,11 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Bugfix: remove support for `CreditNoteLineItem.list`, `CustomerCashBalanceTransaction.list`, and `CustomerCashBalanceTransaction.retrieve`. These methods were included in the library unintentionally and never functioned.
* [#1232](https://github.com/stripe/stripe-python/pull/1232) Improve types in _http_client.py
+## 8.3.0b1 - 2024-02-08
+* [#1226](https://github.com/stripe/stripe-python/pull/1226) Update generated code for beta
+ * Add support for `payment_method_options` on `ConfirmationToken`
+* [#1228](https://github.com/stripe/stripe-python/pull/1228) Beta: add `_async` methods for StripeClient
+
## 8.2.0 - 2024-02-08
* [#1225](https://github.com/stripe/stripe-python/pull/1225) Update generated code
* Add support for `invoices` on `Account.Settings`
@@ -1299,6 +2365,17 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1223](https://github.com/stripe/stripe-python/pull/1223) Move StripeClient usage collection onto StripeService
* [#1220](https://github.com/stripe/stripe-python/pull/1220) Measure StripeClient usage
+## 8.2.0b1 - 2024-02-05
+* [#1218](https://github.com/stripe/stripe-python/pull/1218) Update generated code for beta
+ * Add support for new resources `Entitlements.Event` and `Entitlements.Feature`
+ * Add support for `create` method on resource `Event`
+ * Add support for `create` and `list` methods on resource `Feature`
+* [#1171](https://github.com/stripe/stripe-python/pull/1171) Beta: codegenned async methods on resources
+* [#1219](https://github.com/stripe/stripe-python/pull/1219) Beta: more async infrastructure
+* [#1210](https://github.com/stripe/stripe-python/pull/1210) Beta: better support for trio in HTTPClientAsync
+ * Fixes support for `trio` on HttpClientAsync.
+* [#1209](https://github.com/stripe/stripe-python/pull/1209) Beta: Fix HTTPXClient retries
+
## 8.1.0 - 2024-02-01
* [#1213](https://github.com/stripe/stripe-python/pull/1213) Update generated code
* Add support for `swish` payment method throughout the API
@@ -1306,6 +2383,11 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `jurisdiction_level` on resource `TaxRate`
* Change type from `str` to `Literal["offline", "online"]` of `status` on field `terminal.Reader`
+## 8.1.0b1 - 2024-01-25
+* [#1198](https://github.com/stripe/stripe-python/pull/1198) Update generated code for beta
+ * Add support for `create_preview` method on resource `Invoice`
+* [#1211](https://github.com/stripe/stripe-python/pull/1211) Merge master into beta
+
## 8.0.0 - 2024-01-25
* [#1206](https://github.com/stripe/stripe-python/pull/1206) stripe-python v8 release
This release introduces `StripeClient` and a service-based call pattern. This new interface allows you to easily call Stripe APIs and has several benefits over the existing resource-based pattern:
@@ -1364,6 +2446,14 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `promotion_code` on `Invoice.UpcomingLinesParams.discounts[]`, `Invoice.UpcomingLinesParams.invoice_items[].discounts[]`, `Invoice.UpcomingParams.discounts[]`, and `Invoice.UpcomingParams.invoice_items[].discounts[]`
* Add support for `account_type` on `PaymentMethod.UpdateParams.us_bank_account`
+## 7.14.0b1 - 2024-01-18
+* [#1197](https://github.com/stripe/stripe-python/pull/1197) Update generated code for beta
+ Release specs are identical.
+* [#1192](https://github.com/stripe/stripe-python/pull/1192) Update generated code for beta
+ * Add support for new value `nn` on enum `ConfirmationToken.PaymentMethodPreview.Ideal.bank`
+ * Add support for new value `NNBANL2G` on enum `ConfirmationToken.PaymentMethodPreview.Ideal.bic`
+ * Change `Invoice.AutomaticTax.liability`, `Invoice.issuer`, and `Subscription.AutomaticTax.liability` to be required
+
## 7.13.0 - 2024-01-18
* [#1193](https://github.com/stripe/stripe-python/pull/1193) Update generated code
* Add support for providing details about `BankAccount`, `Card`, and `CardToken` on `Account.CreateExternalAccountParams.external_account` and `Account.CreateParams.external_account`
@@ -1378,6 +2468,11 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `customer_balance` on `PaymentMethodConfiguration.CreateParams`, `PaymentMethodConfiguration.UpdateParams`, and `PaymentMethodConfiguration`
* Add support for `invoice_settings` on `Subscription.CreateParams` and `Subscription.UpdateParams`
+## 7.13.0b1 - 2024-01-12
+* [#1189](https://github.com/stripe/stripe-python/pull/1189) Update generated code for beta
+* [#1191](https://github.com/stripe/stripe-python/pull/1191) Beta: report `raw_request` usage
+* [#1165](https://github.com/stripe/stripe-python/pull/1165) Beta: raw_request_async with HTTPX
+
## 7.12.0 - 2024-01-12
* [#1188](https://github.com/stripe/stripe-python/pull/1188) Update generated code
* Add support for new resource `CustomerSession`
@@ -1387,6 +2482,10 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Remove support for value `obligation` from enum `Reporting.ReportRunCreateParams.parameters.reporting_category`
* Add support for `billing_cycle_anchor_config` on `SubscriptionCreateParams` and `Subscription`
+## 7.12.0b1 - 2024-01-04
+* [#1187](https://github.com/stripe/stripe-python/pull/1187) Update generated code for beta
+ * Updated stable APIs to the latest version
+
## 7.11.0 - 2024-01-04
* [#1186](https://github.com/stripe/stripe-python/pull/1186) Update generated code
* Add support for `retrieve` on resource `tax.Registration`
@@ -1396,6 +2495,8 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Change type from `Optional[Features]` to `Features` of `features` on fields `AccountSession.Components.PaymentDetails`, `AccountSession.Components.Payments`, and `AccountSession.Components.Payouts`
* Change type from `Optional[InvoiceSettings]` to `InvoiceSettings` of `invoice_settings` on field `SubscriptionSchedule.DefaultSettings`
+## 7.11.0b1 - 2023-12-22
+* [#1177](https://github.com/stripe/stripe-python/pull/1177) Update generated code for beta
## 7.10.0 - 2023-12-22
* [#1176](https://github.com/stripe/stripe-python/pull/1176) Update generated code
@@ -1421,6 +2522,10 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1184](https://github.com/stripe/stripe-python/pull/1184) Remove api_base from RequestOptions type
* [#1178](https://github.com/stripe/stripe-python/pull/1178) Support accessing reserved word resource properties via attribute
+## 7.10.0b1 - 2023-12-14
+* [#1166](https://github.com/stripe/stripe-python/pull/1166) Update generated code for beta
+* [#1164](https://github.com/stripe/stripe-python/pull/1164) Beta: revert broken logger
+
## 7.9.0 - 2023-12-14
* [#1161](https://github.com/stripe/stripe-python/pull/1161) Update generated code
@@ -1432,6 +2537,10 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1101](https://github.com/stripe/stripe-python/pull/1101) Mark defunct and internal methods as deprecated
* [#1169](https://github.com/stripe/stripe-python/pull/1169) Add more types to _http_client.py
+## 7.9.0b1 - 2023-12-08
+* [#1163](https://github.com/stripe/stripe-python/pull/1163) Update generated code for beta
+ * Add support for `retrieve` method on resource `FinancialConnections.Transaction`
+
## 7.8.2 - 2023-12-11
* [#1168](https://github.com/stripe/stripe-python/pull/1168) Do not raise a DeprecationWarning in `stripe.app_info`
@@ -1481,6 +2590,9 @@ This release changes the pinned API version to `2025-04-30.basil`.
stripe.APIError
```
+## 7.8.0b1 - 2023-11-30
+* [#1148](https://github.com/stripe/stripe-python/pull/1148) Update generated code for beta
+
## 7.7.0 - 2023-11-30
* [#1147](https://github.com/stripe/stripe-python/pull/1147) Update generated code
* Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier`
@@ -1496,6 +2608,11 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for new values `climate.order.canceled`, `climate.order.created`, `climate.order.delayed`, `climate.order.delivered`, `climate.order.product_substituted`, `climate.product.created`, and `climate.product.pricing_updated` on enums `WebhookEndpoint.CreateParams.enabled_events[]` and `WebhookEndpoint.ModifyParams.enabled_events[]`
* [#1145](https://github.com/stripe/stripe-python/pull/1145) Refactor integration test
+## 7.7.0b1 - 2023-11-21
+* [#1141](https://github.com/stripe/stripe-python/pull/1141) Update generated code for beta
+* Rename `receipient` to `recipient` beneath `PaymentDetails` on `Charge` and `PaymentIntent` APIs.* Add support for `electronic_commerce_indicator` on resource classes `Charge.PaymentMethodDetails.Card.ThreeDSecure` and `SetupAttempt.PaymentMethodDetails.Card.ThreeDSecure`
+* Add support for `components` on parameter class `CustomerSession.CreateParams` and resource `CustomerSession`
+
## 7.6.0 - 2023-11-21
* [#1138](https://github.com/stripe/stripe-python/pull/1138) Update generated code
* Add support for `electronic_commerce_indicator` on resource classes `Charge.PaymentMethodDetails.Card.ThreeDSecure` and `SetupAttempt.PaymentMethodDetails.Card.ThreeDSecure`
@@ -1509,6 +2626,15 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `requested_at` on resource class `issuing.Authorization.RequestHistory`
* Add support for `authorization_code` on resource class `issuing.Transaction.NetworkData`
+## 7.6.0b1 - 2023-11-16
+* [#1128](https://github.com/stripe/stripe-python/pull/1128) Update generated code for beta
+ * Add support for `issuing_card` and `issuing_cards_list` on `AccountSession.CreateParamsComponents`
+ * Add support for `event_details` and `subscription` on `payment_details` types
+ * Add support for `affiliate` and `delivery` on `payment_details.flight`, `payment_details.lodging`, and `payment_details.car_rental` types
+ * Add support for `drivers` on `payment_details.car_rental` types
+ * Add support for `passengers` on `payment_details.flight` and `payment_details.lodging` types
+ * Add support for `created` on `CustomerSession`
+
## 7.5.0 - 2023-11-16
* [#1127](https://github.com/stripe/stripe-python/pull/1127) Update generated code
* Add support for `bacs_debit_payments` on `Account.CreateParamsSettings`
@@ -1527,12 +2653,19 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1125](https://github.com/stripe/stripe-python/pull/1125) Add support for Python 3.11/3.12
* [#1123](https://github.com/stripe/stripe-python/pull/1123) Move to python3 venv and update vscode settings
+## 7.5.0b1 - 2023-11-10
+* [#1120](https://github.com/stripe/stripe-python/pull/1120) Update generated code for beta
+
## 7.4.0 - 2023-11-09
* [#1119](https://github.com/stripe/stripe-python/pull/1119) Update generated code
* Add support for new value `terminal_reader_hardware_fault` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
* Add support for `metadata` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, and `QuoteUpdateParams.subscription_data`
* [#1121](https://github.com/stripe/stripe-python/pull/1121) [types] Remove `None` from optional param types
+## 7.4.0b1 - 2023-11-02
+* [#1110](https://github.com/stripe/stripe-python/pull/1110) Update generated code for beta
+ * Add support for `attach_payment_intent` method on resource `Invoice`
+
## 7.3.0 - 2023-11-02
* [#1112](https://github.com/stripe/stripe-python/pull/1112) Update generated code
* Add support for new resource `Tax.Registration`
@@ -1556,16 +2689,51 @@ This release changes the pinned API version to `2025-04-30.basil`.
# Changelog
+
+## 7.2.0b1 - 2023-10-26
+* [#1107](https://github.com/stripe/stripe-python/pull/1107) Update generated code for beta
+ * Add support for new resource `Margin`
+ * Add support for `create`, `list`, `modify`, and `retrieve` methods on resource `Margin`
+
+## 7.1.0b1 - 2023-10-17
+* [#1084](https://github.com/stripe/stripe-python/pull/1084) Update generated code for beta
+ - Update pinned API version to `2023-10-16`
+* [#1083](https://github.com/stripe/stripe-python/pull/1083) Update generated code for beta
+
## 7.0.0 - 2023-10-16
* This release changes the pinned API version to `2023-10-16`. Please read the [API Changelog](https://docs.stripe.com/changelog/2023-10-16) and carefully review the API changes before upgrading `stripe-python`.
* [#1085](https://github.com/stripe/stripe-python/pull/1085) Update generated code
- Updated pinned API version
+## 6.8.0b3 - 2023-10-13
+
+
+## 6.8.0b2 - 2023-10-11
+* [#1073](https://github.com/stripe/stripe-python/pull/1073) Update generated code for beta
+ Release specs are identical.
+* [#1061](https://github.com/stripe/stripe-python/pull/1061) Types: inner resource classes
+
+## 6.8.0b1 - 2023-10-05
+* [#1066](https://github.com/stripe/stripe-python/pull/1066) Update generated code for beta
+ * Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
+ * Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
+ * Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote`
+* [#1059](https://github.com/stripe/stripe-python/pull/1059) Update generated code for beta
+ * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
+
## 6.7.0 - 2023-10-05
* [#1065](https://github.com/stripe/stripe-python/pull/1065) Update generated code
* Add support for new resource `Issuing.Token`
* Add support for `list`, `modify`, and `retrieve` methods on resource `Token`
+## 6.7.0b2 - 2023-09-28
+* [#1059](https://github.com/stripe/stripe-python/pull/1059) Update generated code for beta
+ * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
+* [#997](https://github.com/stripe/stripe-python/pull/997) Remove developer_message support
+
+## 6.7.0b1 - 2023-09-21
+* [#1053](https://github.com/stripe/stripe-python/pull/1053) Update generated code for beta
+
## 6.6.0 - 2023-09-21
* [#1056](https://github.com/stripe/stripe-python/pull/1056) Update generated code
@@ -1573,6 +2741,13 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1057](https://github.com/stripe/stripe-python/pull/1057) Add optional types to non-required fields
* [#1054](https://github.com/stripe/stripe-python/pull/1054) Types: add deleted field
+## 6.6.0b1 - 2023-09-14
+* [#1048](https://github.com/stripe/stripe-python/pull/1048) Update generated code for beta
+ * Add support for new resource `ConfirmationToken`
+ * Add support for `retrieve` method on resource `ConfirmationToken`
+ * Add support for `create` method on resource `Issuing.CardDesign`
+ * Add support for `reject_testmode` test helper method on resource `Issuing.CardDesign`
+
## 6.5.0 - 2023-09-14
* [#1052](https://github.com/stripe/stripe-python/pull/1052) Update generated code
* Add support for new resource `PaymentMethodConfiguration`
@@ -1584,6 +2759,12 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1030](https://github.com/stripe/stripe-python/pull/1030) Explicitly define CRUDL methods in each resource
* [#1050](https://github.com/stripe/stripe-python/pull/1050) Generate explicit nested resource class methods
+## 6.5.0b1 - 2023-09-07
+* [#1045](https://github.com/stripe/stripe-python/pull/1045) Update generated code for beta
+ * Release specs are identical.
+* [#1034](https://github.com/stripe/stripe-python/pull/1034) Update generated code for beta
+ * Remove support for `submit_card` test helper method on resource `Issuing.Card`
+
## 6.4.0 - 2023-09-07
* [#1033](https://github.com/stripe/stripe-python/pull/1033) Update generated code
* Add support for new resource `PaymentMethodDomain`
@@ -1595,6 +2776,10 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1042](https://github.com/stripe/stripe-python/pull/1042) Require typing_extensions >= 4.0.0
* [#1026](https://github.com/stripe/stripe-python/pull/1026) Types: annotate resource properties
+## 6.3.0b1 - 2023-08-31
+* [#1029](https://github.com/stripe/stripe-python/pull/1029) Update generated code for beta
+ * Rename `Quote.preview_invoices` and `Quote.preview_subscription_schedules` to `Quote.list_preview_invoices` and `Quote.list_preview_schedules`.
+
## 6.2.0 - 2023-08-31
* [#1024](https://github.com/stripe/stripe-python/pull/1024) Update generated code
* Add support for new resource `AccountSession`
@@ -1605,6 +2790,12 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1016](https://github.com/stripe/stripe-python/pull/1016) Update generated code
* [#1020](https://github.com/stripe/stripe-python/pull/1020) Adds type annotations, and dependency on `typing_extensions`.
+## 6.1.0b2 - 2023-08-23
+* [#1006](https://github.com/stripe/stripe-python/pull/1006) [#1017](https://github.com/stripe/stripe-python/pull/1017) Update generated code for beta
+* [#1020](https://github.com/stripe/stripe-python/pull/1020) Adds type_annotations, and dependency on `typing_extensions`.
+
+## 6.1.0b1 - 2023-08-23
+ * Updated stable APIs to the latest version
## 6.0.0 - 2023-08-16
**⚠️ ACTION REQUIRED: the breaking change in this release likely affects you ⚠️**
@@ -1646,26 +2837,111 @@ This release changes the pinned API version to `2025-04-30.basil`.
* [#1015](https://github.com/stripe/stripe-python/pull/1015) ⚠️Assert types of pagination responses
* Pagination will raise an exception if the API response is not of the correct type. This should never happen in production use but may break tests that use mock data.
+## 5.6.0b3 - 2023-08-03
+* [#1004](https://github.com/stripe/stripe-python/pull/1004) Update generated code for beta
+ * Add support for `submit_card` test helper method on resource `Issuing.Card`
+* [#999](https://github.com/stripe/stripe-python/pull/999) Update generated code for beta
+
+* [#997](https://github.com/stripe/stripe-python/pull/997) Remove developer_message support
+
+## 5.6.0b2 - 2023-07-28
+* [#995](https://github.com/stripe/stripe-python/pull/995) Update generated code for beta
+ * Add support for new resource `Tax.Form`
+ * Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
+* [#992](https://github.com/stripe/stripe-python/pull/992) Update generated code for beta
+
+## 5.6.0b1 - 2023-07-13
+* [#991](https://github.com/stripe/stripe-python/pull/991) Update generated code for beta
+ Release specs are identical.
+* [#989](https://github.com/stripe/stripe-python/pull/989) Update generated code for beta
+ * Add support for new resource `PaymentMethodConfiguration`
+ * Add support for `create`, `list`, `modify`, and `retrieve` methods on resource `PaymentMethodConfiguration`
+* [#985](https://github.com/stripe/stripe-python/pull/985) Update generated code for beta
+
+* [#986](https://github.com/stripe/stripe-python/pull/986) Consolidate beta SDKs section
+
## 5.5.0 - 2023-07-13
* [#990](https://github.com/stripe/stripe-python/pull/990) Update generated code
* Add support for new resource `Tax.Settings`
* Add support for `modify` and `retrieve` methods on resource `Settings`
+## 5.5.0b5 - 2023-06-22
+* [#982](https://github.com/stripe/stripe-python/pull/982) Update generated code for beta
+ * Add support for new resource `CustomerSession`
+ * Add support for `create` method on resource `CustomerSession`
+* [#979](https://github.com/stripe/stripe-python/pull/979) Update generated code for beta
+* [#976](https://github.com/stripe/stripe-python/pull/976) Update generated code for beta
+
+## 5.5.0b4 - 2023-06-02
+* [#973](https://github.com/stripe/stripe-python/pull/973) Update generated code for beta
+* [#969](https://github.com/stripe/stripe-python/pull/969) Update generated code for beta
+* [#971](https://github.com/stripe/stripe-python/pull/971) Handle developer message in preview error responses
+
+## 5.5.0b3 - 2023-05-19
+* [#966](https://github.com/stripe/stripe-python/pull/966) Update generated code for beta
+ * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account`
+* [#965](https://github.com/stripe/stripe-python/pull/965) Add raw_request
+* [#964](https://github.com/stripe/stripe-python/pull/964) Update generated code for beta
+* [#961](https://github.com/stripe/stripe-python/pull/961) Update generated code for beta
+
+## 5.5.0b2 - 2023-04-13
+* [#954](https://github.com/stripe/stripe-python/pull/954) Update generated code for beta
+ * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
+* [#953](https://github.com/stripe/stripe-python/pull/953) Update generated code for beta
+
+## 5.5.0b1 - 2023-03-30
+* [#950](https://github.com/stripe/stripe-python/pull/950) Update generated code for beta
+
## 5.4.0 - 2023-03-30
* [#951](https://github.com/stripe/stripe-python/pull/951) Update generated code
* Remove support for `create` method on resource `Tax.Transaction`
* This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `create_from_calculation` method.
+## 5.4.0b1 - 2023-03-23
+* [#941](https://github.com/stripe/stripe-python/pull/941) Update generated code for beta (new)
+ * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
+ * Add support for `collect_inputs` method on resource `Terminal.Reader`
+
## 5.3.0 - 2023-03-23
* [#947](https://github.com/stripe/stripe-python/pull/947) Update generated code
* Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
* Add support for `create` and `list_line_items` methods on resource `Calculation`
* Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
+## 5.3.0b4 - 2023-03-16
+* [#940](https://github.com/stripe/stripe-python/pull/940) Update generated code for beta (new)
+ * Add support for `create_from_calculation` method on resource `Tax.Transaction`
+* [#938](https://github.com/stripe/stripe-python/pull/938) Update generated code for beta (new)
+ * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
+ * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
+ * Remove support for `retrieve` method on resource `FinancingSummary`
+
+## 5.3.0b3 - 2023-03-09
+* [#936](https://github.com/stripe/stripe-python/pull/936) API Updates for beta branch
+ * Updated stable APIs to the latest version
+ * Remove support for `list_transactions` method on resource `Tax.Transaction`
+
+## 5.3.0b2 - 2023-03-03
+* [#935](https://github.com/stripe/stripe-python/pull/935) API Updates for beta branch
+ * Updated stable APIs to the latest version
+ * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
+ * Add support for `list` and `retrieve` methods on resource `CardBundle`
+ * Add support for `list`, `modify`, and `retrieve` methods on resource `CardDesign`
+
+## 5.3.0b1 - 2023-02-23
+* [#931](https://github.com/stripe/stripe-python/pull/931) API Updates for beta branch
+ * Updated stable APIs to the latest version
+
## 5.2.0 - 2023-02-16
* [#924](https://github.com/stripe/stripe-python/pull/924) API Updates
* Add support for `refund_payment` method on resource `Terminal.Reader`
+## 5.2.0b1 - 2023-02-02
+* [#921](https://github.com/stripe/stripe-python/pull/921) API Updates for beta branch
+ * Updated stable APIs to the latest version
+ * Add support for new resource `FinancialConnections.Transaction`
+ * Add support for `list` method on resource `Transaction`
+
## 5.1.1 - 2023-02-06
* [#923](https://github.com/stripe/stripe-python/pull/923) Bugfix: revert "Pass params into logger.{info,debug}"
@@ -1674,6 +2950,45 @@ This release changes the pinned API version to `2025-04-30.basil`.
* Add support for `resume` method on resource `Subscription`
* [#913](https://github.com/stripe/stripe-python/pull/913) Pass params into logger.{info,debug}
+## 5.1.0b7 - 2023-01-26
+* [#917](https://github.com/stripe/stripe-python/pull/917) API Updates for beta branch
+ * Updated stable APIs to the latest version
+ * Add support for `list_transactions` method on resource `Tax.Transaction`
+
+## 5.1.0b6 - 2023-01-19
+* [#915](https://github.com/stripe/stripe-python/pull/915) API Updates for beta branch
+ * Updated stable APIs to the latest version
+ * Add support for `Tax.Settings` resource.
+
+## 5.1.0b5 - 2023-01-12
+* [#914](https://github.com/stripe/stripe-python/pull/914) API Updates for beta branch
+ * Updated stable APIs to the latest version
+ * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
+ * Add support for `tax.Registration` resource
+
+## 5.1.0b4 - 2023-01-05
+* [#912](https://github.com/stripe/stripe-python/pull/912) API Updates for beta branch
+ * Updated stable APIs to the latest version
+ * Add support for `mark_stale_quote` method on resource `Quote`
+
+## 5.1.0b3 - 2022-12-22
+* [#910](https://github.com/stripe/stripe-python/pull/910) API Updates for beta branch
+ * Updated stable APIs to the latest version
+ * Move `stripe.TaxCalculation` and `stripe.TaxTranscation` to `stripe.tax.Calculation` and `stripe.tax.Transaction`.
+
+## 5.1.0b2 - 2022-12-15
+* [#906](https://github.com/stripe/stripe-python/pull/906) API Updates for beta branch
+ * Updated stable APIs to the latest version
+ * Add support for new resources `QuoteLine`, `TaxCalculation`, and `TaxTransaction`
+ * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
+ * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
+
+## 5.1.0b1 - 2022-12-08
+* [#902](https://github.com/stripe/stripe-python/pull/902) API Updates for beta branch
+ * Updated stable APIs to the latest version
+* [#898](https://github.com/stripe/stripe-python/pull/898) API Updates for beta branch
+ * Updated stable APIs to the latest version
+
## 5.0.0 - 2022-11-16
Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://docs.stripe.com/changelog/2022-11-15.
@@ -1686,25 +3001,17 @@ Breaking changes that arose during code generation of the library that we postpo
* [#888](https://github.com/stripe/stripe-python/pull/888) Do not run Coveralls if secret token is not available
* [#875](https://github.com/stripe/stripe-python/pull/875) hide misleading ssl security warning in python>=2.7.9
-### ⚠️ Changed
-- Dropped support for Python version 3.4 and 3.5 (#881). We now support Python 2.7 or 3.6+.
-- Fixed mistyped names for two OAuth exceptions: `UnsupportedGrantTypError`->`UnsupportedGrantTypeError` and `UnsupportedResponseTypError`->`UnsupportedResponseTypeError` (#872).
-
-### Deprecated
-- Deprecate `save` method on resources (#887). Use `modify` instead.
- ```python
- # Before
- customer = stripe.Customer.retrieve("cus_123")
- customer.email = "example@test.com"
- customer.save()
-
- # After
- stripe.Customer.modify("cus_123", email="example@test.com")
- ```
+## 4.3.0b3 - 2022-11-02
+* [#890](https://github.com/stripe/stripe-python/pull/890) API Updates for beta branch
+ * Updated beta APIs to the latest stable version
+* [#885](https://github.com/stripe/stripe-python/pull/885) Update changelog for the Gift Card API
+* [#884](https://github.com/stripe/stripe-python/pull/884) API Updates for beta branch
+ * Updated stable APIs to the latest version
-### ⚠️ Removed
-- Removed `Orders` resource (#882).
-- Removed `SKU` resource (#883).
+## 4.3.0b1 - 2022-09-26
+* [#878](https://github.com/stripe/stripe-python/pull/878) API Updates for beta branch
+ * Updated stable APIs to the latest version
+ * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
## 4.2.0 - 2022-09-23
* [#877](https://github.com/stripe/stripe-python/pull/877) API Updates
@@ -1713,12 +3020,32 @@ Breaking changes that arose during code generation of the library that we postpo
* [#867](https://github.com/stripe/stripe-python/pull/867) API Updates
* Update links in documentation to be absolute.
+## 4.2.0b2 - 2022-08-26
+* [#869](https://github.com/stripe/stripe-python/pull/869) API Updates for beta branch
+ * Updated stable APIs to the latest version
+ * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
+
+## 4.2.0b1 - 2022-08-23
+* [#866](https://github.com/stripe/stripe-python/pull/866) API Updates for beta branch
+ - Updated stable APIs to the latest version
+ - `Stripe-Version` beta headers are not pinned by-default and need to be manually specified, please refer to [beta SDKs README section](https://github.com/stripe/stripe-dotnet/blob/master/README.md#beta-sdks)
+
## 4.1.0 - 2022-08-19
* [#861](https://github.com/stripe/stripe-python/pull/861) API Updates
* Add support for new resource `CustomerCashBalanceTransaction`
* [#860](https://github.com/stripe/stripe-python/pull/860) Add a support section to the readme
* [#717](https://github.com/stripe/stripe-python/pull/717) Fix test TestCharge.test_is_saveable().
+## 4.1.0b2 - 2022-08-11
+* [#859](https://github.com/stripe/stripe-python/pull/859) API Updates for beta branch
+ - Updated stable APIs to the latest version
+ - Add `refund_payment` method to Terminal resource
+
+## 4.1.0b1 - 2022-08-03
+* [#848](https://github.com/stripe/stripe-python/pull/848) API Updates for beta branch
+ - Updated stable APIs to the latest version
+ - Added the `Order` resource support
+
## 4.0.2 - 2022-08-03
* [#855](https://github.com/stripe/stripe-python/pull/855) Fix issue where auto_paging_iter failed on nested list objects.
@@ -1737,21 +3064,19 @@ Breaking changes that arose during code generation of the library that we postpo
* [#836](https://github.com/stripe/stripe-python/pull/836) API Updates. Add Price.create tests.
* [#835](https://github.com/stripe/stripe-python/pull/835) API Updates. Use auto-generation for credit_note and invoice methods.
-### ⚠️ Removed
-- Removed deprecated `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `IssuerFraudRecord`, `Recipient`, `RecipientTransfer`, and `ThreeDSecure` classes.
-- Removed deprecated `Charge.update_dispute` and `Charge.close_dispute` methods that were using legacy REST API endpoint. Prefer [Dispute.modify](https://stripe.com/docs/api/disputes/update?lang=python) and [Dispute.close](https://stripe.com/docs/api/disputes/close?lang=python)
-- Removed deprecated `Card.details` method and `CardDetails` resource. The REST API endpoint is not longer supported.
-- Removed the deprecated `Source.source_transactions` method. Prefer `SubscriptionItem.list_source_transactions`
-- Removed the deprecated `SubscriptionItem.usage_record_summaries` method. Prefer `SubscriptionItem.list_usage_record_summaries`
-- Removed the deprecated `Charge.refund` method. Prefer [Refund.create](https://stripe.com/docs/api/refunds/create)
-
-### ⚠️ Changed
-- To be consistent with other resource methods, `ApplicationFee.refund` returns an instance of `ApplicationFee` and doesn't mutate the instance of `ApplicationFee`.
-- To be consistent with other resource methods, the `Customer.delete_discount` no longer resets the `discount` property to `None` and returns the deleted discount instead. If you were relying on this behavior, reset the discount property manually:
-- The `LineItem` resource now inherits from `StripeObject` as it has no methods of it's own.
-- To be consistent with other resource methods, the `Subscription.delete_discount` returns an instance of deleted discount and doesn't mutate the instance of `Subscription`.
-- Update the CA certificate bundle.
-- Request sending logic unified across standard and custom methods (https://github.com/stripe/stripe-python/pull/832)
+## 3.6.0b1 - 2022-07-22
+* [#843](https://github.com/stripe/stripe-python/pull/843) API Updates for beta branch
+ - Updated stable APIs to the latest version
+ - Add `QuotePhase` resource
+* [#840](https://github.com/stripe/stripe-python/pull/840) API Updates for beta branch
+ - Updated stable APIs to the latest version
+ - Add `SubscriptionSchedule.amend` method.
+* [#837](https://github.com/stripe/stripe-python/pull/837) API Updates for beta branch
+ - Include `server_side_confirmation_beta=v1` beta
+ - Add `secretKeyConfirmation` to `PaymentIntent`
+* [#834](https://github.com/stripe/stripe-python/pull/834) API Updates for beta branch
+ - Updated stable APIs to the latest version
+* [#826](https://github.com/stripe/stripe-python/pull/826) Use the generated API version
## 3.5.0 - 2022-06-30
* [#831](https://github.com/stripe/stripe-python/pull/831) API Updates
@@ -1781,7 +3106,6 @@ Breaking changes that arose during code generation of the library that we postpo
* [#806](https://github.com/stripe/stripe-python/pull/806) Start testing on pypy-3.8
* [#811](https://github.com/stripe/stripe-python/pull/811) Add sanitize_id method
-
## 3.0.0 - 2022-05-09
* [#809](https://github.com/stripe/stripe-python/pull/809) Release of major version v3.0.0. The [migration guide](https://github.com/stripe/stripe-python/wiki/Migration-Guide-for-v3) contains more information.
(⚠️ = breaking changes):
@@ -2529,11 +3853,6 @@ Pull requests included in this release:
* PEP8ified the codebase and enforced with a test.
* Proper encoding of timezone aware datetimes
-### Backwards incompatible changes
-* The `to_dict` and `values` methods on resources no longer recursively convert objects to plain `dict`s. All resources now inherit from `dict` but are functionally different in that you cannot set a value to an empty string and cannot delete items.
-* The `previous_metadata` attribute on resources is now protected.
-* Timezone aware `datetime` objects passed to the API will now be encoded in a way that does not depend on the local system time. If you are passing timezone-aware datetimes to our API and your server time is not already in UTC, this will change the value passed to our API.
-
## 1.10.8 - 2013-12-02
* Add stripe.ApplicationFee resource
@@ -2610,3 +3929,4 @@ Pull requests included in this release:
## 1.6.1 - 2011-09-14
* Parameters with value None are no longer included in API requests
+
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 16739433e..abf60f206 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2140
\ No newline at end of file
+v2143
\ No newline at end of file
diff --git a/VERSION b/VERSION
index 7b3b6e02b..bacf940a2 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-14.1.0
+14.2.0b1
diff --git a/examples/event_notification_handler_endpoint.py b/examples/event_notification_handler_endpoint.py
new file mode 100644
index 000000000..6a794a03d
--- /dev/null
+++ b/examples/event_notification_handler_endpoint.py
@@ -0,0 +1,55 @@
+"""
+event_notification_handler_endpoint.py - receive and process event notifications (AKA thin events) like "v1.billing.meter.error_report_triggered" using EventNotificationHandler.
+
+In this example, we:
+ - write a fallback callback to handle unrecognized event notifications
+ - create a StripeClient called client
+ - Initialize an EventNotificationHandler with the client, webhook secret, and fallback callback
+ - register a specific handler for the "v1.billing.meter.error_report_triggered" event notification type
+ - use handler.handle() to process the received notification webhook body
+"""
+
+import os
+from flask import Flask, request, jsonify
+
+from stripe import StripeClient, UnhandledNotificationDetails
+from stripe.v2.core import EventNotification
+from stripe.events import V1BillingMeterErrorReportTriggeredEventNotification
+
+app = Flask(__name__)
+api_key = os.environ.get("STRIPE_API_KEY", "")
+webhook_secret = os.environ.get("WEBHOOK_SECRET", "")
+
+
+def fallback_callback(
+ notif: EventNotification,
+ client: StripeClient,
+ details: UnhandledNotificationDetails,
+):
+ print(f"Got an unhandled event of type {notif.type}!")
+
+
+client = StripeClient(api_key)
+handler = client.notification_handler(webhook_secret, fallback_callback)
+
+
+# can be anywhere in your codebase
+@handler.on_v1_billing_meter_error_report_triggered
+def handle_meter_error(
+ notif: V1BillingMeterErrorReportTriggeredEventNotification,
+ client: StripeClient,
+):
+ event = notif.fetch_event()
+ print(f"Err! No meter found: {event.data.developer_message_summary}")
+
+
+@app.route("/webhook", methods=["POST"])
+def webhook():
+ webhook_body = request.data
+ sig_header = request.headers.get("Stripe-Signature")
+
+ try:
+ handler.handle(webhook_body, sig_header)
+ return jsonify(success=True), 200
+ except Exception as e:
+ return jsonify(error=str(e)), 500
diff --git a/pyproject.toml b/pyproject.toml
index d0e73c616..a6ec98dcf 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "stripe"
-version = "14.1.0"
+version = "14.2.0b1"
readme = "README.md"
description = "Python bindings for the Stripe API"
authors = [{ name = "Stripe", email = "support@stripe.com" }]
diff --git a/stripe/__init__.py b/stripe/__init__.py
index e4a93185d..e1a009d83 100644
--- a/stripe/__init__.py
+++ b/stripe/__init__.py
@@ -106,6 +106,38 @@ def set_app_info(
}
+# Add a beta version to the API version.
+def add_beta_version(
+ beta_name: str,
+ beta_version: str,
+):
+ global api_version
+ # Validate beta_version format
+ if not beta_version.startswith("v") or not beta_version[1:].isdigit():
+ raise ValueError(
+ f"Invalid beta_version format: {beta_version}. Expected format is 'v' followed by a number (e.g., 'v3')."
+ )
+
+ # Check if beta_name already exists
+ beta_entry = f"; {beta_name}="
+ if beta_entry in api_version:
+ start_index = api_version.index(beta_entry) + len(beta_entry)
+ end_index = api_version.find(";", start_index)
+ end_index = end_index if end_index != -1 else len(api_version)
+ existing_version = int(api_version[(start_index + 1) : end_index])
+ new_version = int(beta_version[1:])
+ if new_version <= existing_version:
+ return # Keep the higher version, no update needed
+ # Remove the existing beta entry
+ api_version = (
+ api_version[: api_version.index(beta_entry)]
+ + api_version[end_index:]
+ )
+
+ # Add the new beta version
+ api_version = f"{api_version}; {beta_name}={beta_version}"
+
+
# The beginning of the section generated from our OpenAPI spec
from importlib import import_module
@@ -115,6 +147,7 @@ def set_app_info(
apps as apps,
billing as billing,
billing_portal as billing_portal,
+ capital as capital,
checkout as checkout,
climate as climate,
entitlements as entitlements,
@@ -124,8 +157,10 @@ def set_app_info(
identity as identity,
issuing as issuing,
params as params,
+ privacy as privacy,
radar as radar,
reporting as reporting,
+ reserve as reserve,
sigma as sigma,
tax as tax,
terminal as terminal,
@@ -147,6 +182,10 @@ def set_app_info(
from stripe._account_login_link_service import (
AccountLoginLinkService as AccountLoginLinkService,
)
+ from stripe._account_notice import AccountNotice as AccountNotice
+ from stripe._account_notice_service import (
+ AccountNoticeService as AccountNoticeService,
+ )
from stripe._account_person_service import (
AccountPersonService as AccountPersonService,
)
@@ -192,6 +231,7 @@ def set_app_info(
)
from stripe._billing_service import BillingService as BillingService
from stripe._capability import Capability as Capability
+ from stripe._capital_service import CapitalService as CapitalService
from stripe._card import Card as Card
from stripe._cash_balance import CashBalance as CashBalance
from stripe._charge import Charge as Charge
@@ -279,12 +319,26 @@ def set_app_info(
from stripe._error import (
APIConnectionError as APIConnectionError,
APIError as APIError,
+ AlreadyCanceledError as AlreadyCanceledError,
+ AlreadyExistsError as AlreadyExistsError,
AuthenticationError as AuthenticationError,
+ BlockedByStripeError as BlockedByStripeError,
CardError as CardError,
+ ControlledByAlternateResourceError as ControlledByAlternateResourceError,
+ ControlledByDashboardError as ControlledByDashboardError,
+ FeatureNotEnabledError as FeatureNotEnabledError,
+ FinancialAccountNotOpenError as FinancialAccountNotOpenError,
IdempotencyError as IdempotencyError,
+ InsufficientFundsError as InsufficientFundsError,
+ InvalidPaymentMethodError as InvalidPaymentMethodError,
+ InvalidPayoutMethodError as InvalidPayoutMethodError,
InvalidRequestError as InvalidRequestError,
+ NonZeroBalanceError as NonZeroBalanceError,
+ NotCancelableError as NotCancelableError,
PermissionError as PermissionError,
+ QuotaExceededError as QuotaExceededError,
RateLimitError as RateLimitError,
+ RecipientNotNotifiableError as RecipientNotNotifiableError,
SignatureVerificationError as SignatureVerificationError,
StripeError as StripeError,
StripeErrorWithParamCode as StripeErrorWithParamCode,
@@ -295,11 +349,18 @@ def set_app_info(
OAuthErrorObject as OAuthErrorObject,
)
from stripe._event import Event as Event
+ from stripe._event_notification_handler import (
+ StripeEventNotificationHandler as StripeEventNotificationHandler,
+ UnhandledNotificationDetails as UnhandledNotificationDetails,
+ )
from stripe._event_service import EventService as EventService
from stripe._exchange_rate import ExchangeRate as ExchangeRate
from stripe._exchange_rate_service import (
ExchangeRateService as ExchangeRateService,
)
+ from stripe._external_account_service import (
+ ExternalAccountService as ExternalAccountService,
+ )
from stripe._file import File as File
from stripe._file_link import FileLink as FileLink
from stripe._file_link_service import FileLinkService as FileLinkService
@@ -313,6 +374,8 @@ def set_app_info(
from stripe._funding_instructions import (
FundingInstructions as FundingInstructions,
)
+ from stripe._fx_quote import FxQuote as FxQuote
+ from stripe._fx_quote_service import FxQuoteService as FxQuoteService
from stripe._http_client import (
AIOHTTPClient as AIOHTTPClient,
HTTPClient as HTTPClient,
@@ -352,11 +415,18 @@ def set_app_info(
from stripe._login_link import LoginLink as LoginLink
from stripe._mandate import Mandate as Mandate
from stripe._mandate_service import MandateService as MandateService
+ from stripe._margin import Margin as Margin
+ from stripe._margin_service import MarginService as MarginService
from stripe._nested_resource_class_methods import (
nested_resource_class_methods as nested_resource_class_methods,
)
from stripe._oauth import OAuth as OAuth
from stripe._oauth_service import OAuthService as OAuthService
+ from stripe._order import Order as Order
+ from stripe._order_line_item_service import (
+ OrderLineItemService as OrderLineItemService,
+ )
+ from stripe._order_service import OrderService as OrderService
from stripe._payment_attempt_record import (
PaymentAttemptRecord as PaymentAttemptRecord,
)
@@ -407,6 +477,7 @@ def set_app_info(
from stripe._plan_service import PlanService as PlanService
from stripe._price import Price as Price
from stripe._price_service import PriceService as PriceService
+ from stripe._privacy_service import PrivacyService as PrivacyService
from stripe._product import Product as Product
from stripe._product_feature import ProductFeature as ProductFeature
from stripe._product_feature_service import (
@@ -421,9 +492,23 @@ def set_app_info(
from stripe._quote_computed_upfront_line_items_service import (
QuoteComputedUpfrontLineItemsService as QuoteComputedUpfrontLineItemsService,
)
+ from stripe._quote_line import QuoteLine as QuoteLine
from stripe._quote_line_item_service import (
QuoteLineItemService as QuoteLineItemService,
)
+ from stripe._quote_line_service import QuoteLineService as QuoteLineService
+ from stripe._quote_preview_invoice import (
+ QuotePreviewInvoice as QuotePreviewInvoice,
+ )
+ from stripe._quote_preview_invoice_service import (
+ QuotePreviewInvoiceService as QuotePreviewInvoiceService,
+ )
+ from stripe._quote_preview_subscription_schedule import (
+ QuotePreviewSubscriptionSchedule as QuotePreviewSubscriptionSchedule,
+ )
+ from stripe._quote_preview_subscription_schedule_service import (
+ QuotePreviewSubscriptionScheduleService as QuotePreviewSubscriptionScheduleService,
+ )
from stripe._quote_service import QuoteService as QuoteService
from stripe._radar_service import RadarService as RadarService
from stripe._refund import Refund as Refund
@@ -431,6 +516,7 @@ def set_app_info(
from stripe._reporting_service import ReportingService as ReportingService
from stripe._request_options import RequestOptions as RequestOptions
from stripe._requestor_options import RequestorOptions as RequestorOptions
+ from stripe._reserve_service import ReserveService as ReserveService
from stripe._reserve_transaction import (
ReserveTransaction as ReserveTransaction,
)
@@ -544,6 +630,7 @@ def set_app_info(
"apps": ("stripe.apps", True),
"billing": ("stripe.billing", True),
"billing_portal": ("stripe.billing_portal", True),
+ "capital": ("stripe.capital", True),
"checkout": ("stripe.checkout", True),
"climate": ("stripe.climate", True),
"entitlements": ("stripe.entitlements", True),
@@ -553,8 +640,10 @@ def set_app_info(
"identity": ("stripe.identity", True),
"issuing": ("stripe.issuing", True),
"params": ("stripe.params", True),
+ "privacy": ("stripe.privacy", True),
"radar": ("stripe.radar", True),
"reporting": ("stripe.reporting", True),
+ "reserve": ("stripe.reserve", True),
"sigma": ("stripe.sigma", True),
"tax": ("stripe.tax", True),
"terminal": ("stripe.terminal", True),
@@ -570,6 +659,8 @@ def set_app_info(
"AccountLink": ("stripe._account_link", False),
"AccountLinkService": ("stripe._account_link_service", False),
"AccountLoginLinkService": ("stripe._account_login_link_service", False),
+ "AccountNotice": ("stripe._account_notice", False),
+ "AccountNoticeService": ("stripe._account_notice_service", False),
"AccountPersonService": ("stripe._account_person_service", False),
"AccountService": ("stripe._account_service", False),
"AccountSession": ("stripe._account_session", False),
@@ -601,6 +692,7 @@ def set_app_info(
"BillingPortalService": ("stripe._billing_portal_service", False),
"BillingService": ("stripe._billing_service", False),
"Capability": ("stripe._capability", False),
+ "CapitalService": ("stripe._capital_service", False),
"Card": ("stripe._card", False),
"CashBalance": ("stripe._cash_balance", False),
"Charge": ("stripe._charge", False),
@@ -676,12 +768,26 @@ def set_app_info(
"EphemeralKeyService": ("stripe._ephemeral_key_service", False),
"APIConnectionError": ("stripe._error", False),
"APIError": ("stripe._error", False),
+ "AlreadyCanceledError": ("stripe._error", False),
+ "AlreadyExistsError": ("stripe._error", False),
"AuthenticationError": ("stripe._error", False),
+ "BlockedByStripeError": ("stripe._error", False),
"CardError": ("stripe._error", False),
+ "ControlledByAlternateResourceError": ("stripe._error", False),
+ "ControlledByDashboardError": ("stripe._error", False),
+ "FeatureNotEnabledError": ("stripe._error", False),
+ "FinancialAccountNotOpenError": ("stripe._error", False),
"IdempotencyError": ("stripe._error", False),
+ "InsufficientFundsError": ("stripe._error", False),
+ "InvalidPaymentMethodError": ("stripe._error", False),
+ "InvalidPayoutMethodError": ("stripe._error", False),
"InvalidRequestError": ("stripe._error", False),
+ "NonZeroBalanceError": ("stripe._error", False),
+ "NotCancelableError": ("stripe._error", False),
"PermissionError": ("stripe._error", False),
+ "QuotaExceededError": ("stripe._error", False),
"RateLimitError": ("stripe._error", False),
+ "RecipientNotNotifiableError": ("stripe._error", False),
"SignatureVerificationError": ("stripe._error", False),
"StripeError": ("stripe._error", False),
"StripeErrorWithParamCode": ("stripe._error", False),
@@ -689,9 +795,18 @@ def set_app_info(
"ErrorObject": ("stripe._error_object", False),
"OAuthErrorObject": ("stripe._error_object", False),
"Event": ("stripe._event", False),
+ "StripeEventNotificationHandler": (
+ "stripe._event_notification_handler",
+ False,
+ ),
+ "UnhandledNotificationDetails": (
+ "stripe._event_notification_handler",
+ False,
+ ),
"EventService": ("stripe._event_service", False),
"ExchangeRate": ("stripe._exchange_rate", False),
"ExchangeRateService": ("stripe._exchange_rate_service", False),
+ "ExternalAccountService": ("stripe._external_account_service", False),
"File": ("stripe._file", False),
"FileLink": ("stripe._file_link", False),
"FileLinkService": ("stripe._file_link_service", False),
@@ -702,6 +817,8 @@ def set_app_info(
),
"ForwardingService": ("stripe._forwarding_service", False),
"FundingInstructions": ("stripe._funding_instructions", False),
+ "FxQuote": ("stripe._fx_quote", False),
+ "FxQuoteService": ("stripe._fx_quote_service", False),
"AIOHTTPClient": ("stripe._http_client", False),
"HTTPClient": ("stripe._http_client", False),
"HTTPXClient": ("stripe._http_client", False),
@@ -730,12 +847,17 @@ def set_app_info(
"LoginLink": ("stripe._login_link", False),
"Mandate": ("stripe._mandate", False),
"MandateService": ("stripe._mandate_service", False),
+ "Margin": ("stripe._margin", False),
+ "MarginService": ("stripe._margin_service", False),
"nested_resource_class_methods": (
"stripe._nested_resource_class_methods",
False,
),
"OAuth": ("stripe._oauth", False),
"OAuthService": ("stripe._oauth_service", False),
+ "Order": ("stripe._order", False),
+ "OrderLineItemService": ("stripe._order_line_item_service", False),
+ "OrderService": ("stripe._order_service", False),
"PaymentAttemptRecord": ("stripe._payment_attempt_record", False),
"PaymentAttemptRecordService": (
"stripe._payment_attempt_record_service",
@@ -781,6 +903,7 @@ def set_app_info(
"PlanService": ("stripe._plan_service", False),
"Price": ("stripe._price", False),
"PriceService": ("stripe._price_service", False),
+ "PrivacyService": ("stripe._privacy_service", False),
"Product": ("stripe._product", False),
"ProductFeature": ("stripe._product_feature", False),
"ProductFeatureService": ("stripe._product_feature_service", False),
@@ -792,7 +915,22 @@ def set_app_info(
"stripe._quote_computed_upfront_line_items_service",
False,
),
+ "QuoteLine": ("stripe._quote_line", False),
"QuoteLineItemService": ("stripe._quote_line_item_service", False),
+ "QuoteLineService": ("stripe._quote_line_service", False),
+ "QuotePreviewInvoice": ("stripe._quote_preview_invoice", False),
+ "QuotePreviewInvoiceService": (
+ "stripe._quote_preview_invoice_service",
+ False,
+ ),
+ "QuotePreviewSubscriptionSchedule": (
+ "stripe._quote_preview_subscription_schedule",
+ False,
+ ),
+ "QuotePreviewSubscriptionScheduleService": (
+ "stripe._quote_preview_subscription_schedule_service",
+ False,
+ ),
"QuoteService": ("stripe._quote_service", False),
"RadarService": ("stripe._radar_service", False),
"Refund": ("stripe._refund", False),
@@ -800,6 +938,7 @@ def set_app_info(
"ReportingService": ("stripe._reporting_service", False),
"RequestOptions": ("stripe._request_options", False),
"RequestorOptions": ("stripe._requestor_options", False),
+ "ReserveService": ("stripe._reserve_service", False),
"ReserveTransaction": ("stripe._reserve_transaction", False),
"Reversal": ("stripe._reversal", False),
"Review": ("stripe._review", False),
diff --git a/stripe/_account.py b/stripe/_account.py
index 30582b94d..2d4bd8396 100644
--- a/stripe/_account.py
+++ b/stripe/_account.py
@@ -183,6 +183,10 @@ class SupportAddress(StripeObject):
"""
Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
"""
+ specified_commercial_transactions_act_url: Optional[str]
+ """
+ A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan.
+ """
support_address: Optional[SupportAddress]
"""
A publicly available mailing address for sending support issues to.
@@ -238,6 +242,12 @@ class Capabilities(StripeObject):
"""
The status of the BECS Direct Debit (AU) payments capability of the account, or whether the account can directly process BECS Direct Debit (AU) charges.
"""
+ automatic_indirect_tax: Optional[
+ Literal["active", "inactive", "pending"]
+ ]
+ """
+ The status of the automatic_indirect_tax capability of the account.
+ """
bacs_debit_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.
@@ -304,10 +314,26 @@ class Capabilities(StripeObject):
"""
The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
"""
+ gopay_payments: Optional[Literal["active", "inactive", "pending"]]
+ """
+ The status of the Gopay capability of the account, or whether the account can directly process Gopay payments.
+ """
grabpay_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.
"""
+ id_bank_transfer_payments: Optional[
+ Literal["active", "inactive", "pending"]
+ ]
+ """
+ The status of the Indonesia Bank Transfer payments capability of the account, or whether the account can directly process Indonesia Bank Transfer charges.
+ """
+ id_bank_transfer_payments_bca: Optional[
+ Literal["active", "inactive", "pending"]
+ ]
+ """
+ The status of Bank BCA onboarding of the account.
+ """
ideal_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
@@ -402,6 +428,14 @@ class Capabilities(StripeObject):
"""
The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
"""
+ paypal_payments: Optional[Literal["active", "inactive", "pending"]]
+ """
+ The status of the PayPal payments capability of the account, or whether the account can directly process PayPal charges.
+ """
+ paypay_payments: Optional[Literal["active", "inactive", "pending"]]
+ """
+ The status of the Paypay capability of the account, or whether the account can directly process Paypay payments.
+ """
payto_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the PayTo capability of the account, or whether the account can directly process PayTo charges.
@@ -414,6 +448,14 @@ class Capabilities(StripeObject):
"""
The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
"""
+ qris_payments: Optional[Literal["active", "inactive", "pending"]]
+ """
+ The status of the Qris capability of the account, or whether the account can directly process Qris payments.
+ """
+ rechnung_payments: Optional[Literal["active", "inactive", "pending"]]
+ """
+ The status of the Rechnung capability of the account, or whether the account can directly process Rechnung payments.
+ """
revolut_pay_payments: Optional[
Literal["active", "inactive", "pending"]
]
@@ -440,10 +482,20 @@ class Capabilities(StripeObject):
"""
The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
"""
+ shopeepay_payments: Optional[Literal["active", "inactive", "pending"]]
+ """
+ The status of the ShopeePay capability of the account, or whether the account can directly process ShopeePay payments.
+ """
sofort_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges.
"""
+ stripe_balance_payments: Optional[
+ Literal["active", "inactive", "pending"]
+ ]
+ """
+ The status of the stripe_balance payments capability of the account, or whether the account can directly process stripe_balance charges.
+ """
swish_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the Swish capability of the account, or whether the account can directly process Swish payments.
@@ -468,6 +520,22 @@ class Capabilities(StripeObject):
"""
The status of the banking capability, or whether the account can have bank accounts.
"""
+ treasury_evolve: Optional[Literal["active", "inactive", "pending"]]
+ """
+ The status of the treasury_evolve capability of the account.
+ """
+ treasury_fifth_third: Optional[
+ Literal["active", "inactive", "pending"]
+ ]
+ """
+ The status of the treasury_fifth_third capability of the account.
+ """
+ treasury_goldman_sachs: Optional[
+ Literal["active", "inactive", "pending"]
+ ]
+ """
+ The status of the treasury_goldman_sachs capability of the account.
+ """
twint_payments: Optional[Literal["active", "inactive", "pending"]]
"""
The status of the TWINT capability of the account, or whether the account can directly process TWINT charges.
@@ -779,12 +847,33 @@ class Document(StripeObject):
}
class Controller(StripeObject):
+ class Application(StripeObject):
+ loss_liable: bool
+ """
+ `true` if the Connect application is responsible for negative balances and should manage credit and fraud risk on the account.
+ """
+ onboarding_owner: bool
+ """
+ `true` if the Connect application is responsible for onboarding the account.
+ """
+ pricing_controls: bool
+ """
+ `true` if the Connect application is responsible for paying Stripe fees on pricing-control eligible products.
+ """
+
+ class Dashboard(StripeObject):
+ type: Literal["express", "full", "none"]
+ """
+ Whether this account has access to the full Stripe dashboard (`full`), to the Express dashboard (`express`), or to no dashboard (`none`).
+ """
+
class Fees(StripeObject):
payer: Literal[
"account",
"application",
"application_custom",
"application_express",
+ "application_unified_accounts_beta",
]
"""
A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
@@ -802,6 +891,8 @@ class StripeDashboard(StripeObject):
A value indicating the Stripe dashboard this account has access to independent of the Connect application.
"""
+ application: Optional[Application]
+ dashboard: Optional[Dashboard]
fees: Optional[Fees]
is_controller: Optional[bool]
"""
@@ -818,6 +909,8 @@ class StripeDashboard(StripeObject):
The controller type. Can be `application`, if a Connect application controls the account, or `account`, if the account controls itself.
"""
_inner_class_types = {
+ "application": Application,
+ "dashboard": Dashboard,
"fees": Fees,
"losses": Losses,
"stripe_dashboard": StripeDashboard,
@@ -880,6 +973,7 @@ class Error(StripeObject):
"invalid_url_website_other",
"invalid_value_other",
"unsupported_business_type",
+ "verification_data_not_found",
"verification_directors_mismatch",
"verification_document_address_mismatch",
"verification_document_address_missing",
@@ -1061,6 +1155,7 @@ class Error(StripeObject):
"invalid_url_website_other",
"invalid_value_other",
"unsupported_business_type",
+ "verification_data_not_found",
"verification_directors_mismatch",
"verification_document_address_mismatch",
"verification_document_address_missing",
@@ -1179,6 +1274,38 @@ class Error(StripeObject):
"""
_inner_class_types = {"alternatives": Alternative, "errors": Error}
+ class RiskControls(StripeObject):
+ class Charges(StripeObject):
+ pause_requested: bool
+ """
+ Whether a pause of the risk control has been requested.
+ """
+
+ class Payouts(StripeObject):
+ pause_requested: bool
+ """
+ Whether a pause of the risk control has been requested.
+ """
+
+ charges: Charges
+ payouts: Payouts
+ rejected_reason: Optional[
+ Literal[
+ "credit",
+ "fraud",
+ "fraud_no_intent_to_fulfill",
+ "fraud_other",
+ "fraud_payment_method_casher",
+ "fraud_payment_method_tester",
+ "other",
+ "terms_of_service",
+ ]
+ ]
+ """
+ Represents the rejected reason of the account. Empty if account is not rejected, or rejected by Stripe. Please see [this page for more details](https://docs.stripe.com/connect/)
+ """
+ _inner_class_types = {"charges": Charges, "payouts": Payouts}
+
class Settings(StripeObject):
class BacsDebitPayments(StripeObject):
display_name: Optional[str]
@@ -1190,6 +1317,16 @@ class BacsDebitPayments(StripeObject):
The Bacs Direct Debit Service user number for this account. For payments made with Bacs Direct Debit, this number is a unique identifier of the account with our banking partners.
"""
+ class BankBcaOnboarding(StripeObject):
+ account_holder_name: Optional[str]
+ """
+ Bank BCA business account holder name.
+ """
+ business_account_number: Optional[str]
+ """
+ Bank BCA business account number.
+ """
+
class Branding(StripeObject):
icon: Optional[ExpandableField["File"]]
"""
@@ -1208,6 +1345,16 @@ class Branding(StripeObject):
A CSS hex color value representing the secondary branding color for this account
"""
+ class Capital(StripeObject):
+ payout_destination: Optional[Dict[str, str]]
+ """
+ Per-currency mapping of user-selected destination accounts used to pay out loans.
+ """
+ payout_destination_selector: Optional[Dict[str, List[str]]]
+ """
+ Per-currency mapping of all destination accounts eligible to receive loan payouts.
+ """
+
class CardIssuing(StripeObject):
class TosAcceptance(StripeObject):
date: Optional[int]
@@ -1344,12 +1491,24 @@ class Schedule(StripeObject):
"""
_inner_class_types = {"schedule": Schedule}
+ class PaypayPayments(StripeObject):
+ goods_type: Optional[Literal["digital_content", "other"]]
+ """
+ Whether your business sells digital content or not.
+ """
+
class SepaDebitPayments(StripeObject):
creditor_id: Optional[str]
"""
SEPA creditor identifier that identifies the company making the payment.
"""
+ class TaxForms(StripeObject):
+ consented_to_paperless_delivery: bool
+ """
+ Whether the account opted out of receiving their tax forms by postal delivery.
+ """
+
class Treasury(StripeObject):
class TosAcceptance(StripeObject):
date: Optional[int]
@@ -1369,25 +1528,33 @@ class TosAcceptance(StripeObject):
_inner_class_types = {"tos_acceptance": TosAcceptance}
bacs_debit_payments: Optional[BacsDebitPayments]
+ bank_bca_onboarding: Optional[BankBcaOnboarding]
branding: Branding
+ capital: Optional[Capital]
card_issuing: Optional[CardIssuing]
card_payments: CardPayments
dashboard: Dashboard
invoices: Optional[Invoices]
payments: Payments
payouts: Optional[Payouts]
+ paypay_payments: Optional[PaypayPayments]
sepa_debit_payments: Optional[SepaDebitPayments]
+ tax_forms: Optional[TaxForms]
treasury: Optional[Treasury]
_inner_class_types = {
"bacs_debit_payments": BacsDebitPayments,
+ "bank_bca_onboarding": BankBcaOnboarding,
"branding": Branding,
+ "capital": Capital,
"card_issuing": CardIssuing,
"card_payments": CardPayments,
"dashboard": Dashboard,
"invoices": Invoices,
"payments": Payments,
"payouts": Payouts,
+ "paypay_payments": PaypayPayments,
"sepa_debit_payments": SepaDebitPayments,
+ "tax_forms": TaxForms,
"treasury": Treasury,
}
@@ -1484,6 +1651,7 @@ class TosAcceptance(StripeObject):
Whether the funds in this account can be paid out.
"""
requirements: Optional[Requirements]
+ risk_controls: Optional[RiskControls]
settings: Optional[Settings]
"""
Options for customizing how the account functions within Stripe.
@@ -2590,6 +2758,7 @@ async def create_person_async(
"future_requirements": FutureRequirements,
"groups": Groups,
"requirements": Requirements,
+ "risk_controls": RiskControls,
"settings": Settings,
"tos_acceptance": TosAcceptance,
}
diff --git a/stripe/_account_notice.py b/stripe/_account_notice.py
new file mode 100644
index 000000000..0338c413f
--- /dev/null
+++ b/stripe/_account_notice.py
@@ -0,0 +1,214 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._stripe_object import StripeObject
+from stripe._updateable_api_resource import UpdateableAPIResource
+from stripe._util import sanitize_id
+from typing import ClassVar, Dict, Optional, cast
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params._account_notice_list_params import (
+ AccountNoticeListParams,
+ )
+ from stripe.params._account_notice_modify_params import (
+ AccountNoticeModifyParams,
+ )
+ from stripe.params._account_notice_retrieve_params import (
+ AccountNoticeRetrieveParams,
+ )
+
+
+class AccountNotice(
+ ListableAPIResource["AccountNotice"],
+ UpdateableAPIResource["AccountNotice"],
+):
+ """
+ A notice to a Connected account. Notice can be sent by Stripe on your behalf or you can opt to send the notices yourself.
+
+ See the [guide to send notices](https://docs.stripe.com/issuing/compliance-us/issuing-regulated-customer-notices) to your connected accounts.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["account_notice"]] = "account_notice"
+
+ class Email(StripeObject):
+ plain_text: str
+ """
+ Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
+ """
+ recipient: str
+ """
+ Email address of the recipient.
+ """
+ subject: str
+ """
+ Subject of the email.
+ """
+
+ class LinkedObjects(StripeObject):
+ capability: Optional[str]
+ """
+ Associated [Capability](https://docs.stripe.com/api/capabilities)
+ """
+ issuing_credit_underwriting_record: Optional[str]
+ """
+ Associated [Credit Underwriting Record](https://docs.stripe.com/api/issuing/credit_underwriting_record)
+ """
+ issuing_dispute: Optional[str]
+ """
+ Associated [Issuing Dispute](https://docs.stripe.com/api/issuing/disputes)
+ """
+
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ deadline: Optional[int]
+ """
+ When present, the deadline for sending the notice to meet the relevant regulations.
+ """
+ email: Optional[Email]
+ """
+ Information about the email when sent.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ linked_objects: Optional[LinkedObjects]
+ """
+ Information about objects related to the notice.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ object: Literal["account_notice"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ reason: Literal[
+ "issuing.account_closed_for_inactivity",
+ "issuing.account_closed_for_not_providing_business_model_clarification",
+ "issuing.account_closed_for_not_providing_url_clarification",
+ "issuing.account_closed_for_not_providing_use_case_clarification",
+ "issuing.account_closed_for_terms_of_service_violation",
+ "issuing.application_rejected_for_failure_to_verify",
+ "issuing.credit_application_rejected",
+ "issuing.credit_increase_application_rejected",
+ "issuing.credit_limit_decreased",
+ "issuing.credit_line_closed",
+ "issuing.dispute_lost",
+ "issuing.dispute_submitted",
+ "issuing.dispute_won",
+ ]
+ """
+ Reason the notice is being sent. The reason determines what copy the notice must contain. See the [regulated customer notices](https://docs.stripe.com/issuing/compliance-us/issuing-regulated-customer-notices) guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.
+ """
+ sent_at: Optional[int]
+ """
+ Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent.
+ """
+
+ @classmethod
+ def list(
+ cls, **params: Unpack["AccountNoticeListParams"]
+ ) -> ListObject["AccountNotice"]:
+ """
+ Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["AccountNoticeListParams"]
+ ) -> ListObject["AccountNotice"]:
+ """
+ Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def modify(
+ cls, id: str, **params: Unpack["AccountNoticeModifyParams"]
+ ) -> "AccountNotice":
+ """
+ Updates an AccountNotice object.
+ """
+ url = "%s/%s" % (cls.class_url(), sanitize_id(id))
+ return cast(
+ "AccountNotice",
+ cls._static_request(
+ "post",
+ url,
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def modify_async(
+ cls, id: str, **params: Unpack["AccountNoticeModifyParams"]
+ ) -> "AccountNotice":
+ """
+ Updates an AccountNotice object.
+ """
+ url = "%s/%s" % (cls.class_url(), sanitize_id(id))
+ return cast(
+ "AccountNotice",
+ await cls._static_request_async(
+ "post",
+ url,
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["AccountNoticeRetrieveParams"]
+ ) -> "AccountNotice":
+ """
+ Retrieves an AccountNotice object.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["AccountNoticeRetrieveParams"]
+ ) -> "AccountNotice":
+ """
+ Retrieves an AccountNotice object.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ _inner_class_types = {"email": Email, "linked_objects": LinkedObjects}
diff --git a/stripe/_account_notice_service.py b/stripe/_account_notice_service.py
new file mode 100644
index 000000000..44604204a
--- /dev/null
+++ b/stripe/_account_notice_service.py
@@ -0,0 +1,148 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._account_notice import AccountNotice
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.params._account_notice_list_params import (
+ AccountNoticeListParams,
+ )
+ from stripe.params._account_notice_retrieve_params import (
+ AccountNoticeRetrieveParams,
+ )
+ from stripe.params._account_notice_update_params import (
+ AccountNoticeUpdateParams,
+ )
+
+
+class AccountNoticeService(StripeService):
+ def list(
+ self,
+ params: Optional["AccountNoticeListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[AccountNotice]":
+ """
+ Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
+ """
+ return cast(
+ "ListObject[AccountNotice]",
+ self._request(
+ "get",
+ "/v1/account_notices",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["AccountNoticeListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[AccountNotice]":
+ """
+ Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
+ """
+ return cast(
+ "ListObject[AccountNotice]",
+ await self._request_async(
+ "get",
+ "/v1/account_notices",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ account_notice: str,
+ params: Optional["AccountNoticeRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "AccountNotice":
+ """
+ Retrieves an AccountNotice object.
+ """
+ return cast(
+ "AccountNotice",
+ self._request(
+ "get",
+ "/v1/account_notices/{account_notice}".format(
+ account_notice=sanitize_id(account_notice),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ account_notice: str,
+ params: Optional["AccountNoticeRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "AccountNotice":
+ """
+ Retrieves an AccountNotice object.
+ """
+ return cast(
+ "AccountNotice",
+ await self._request_async(
+ "get",
+ "/v1/account_notices/{account_notice}".format(
+ account_notice=sanitize_id(account_notice),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ account_notice: str,
+ params: "AccountNoticeUpdateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "AccountNotice":
+ """
+ Updates an AccountNotice object.
+ """
+ return cast(
+ "AccountNotice",
+ self._request(
+ "post",
+ "/v1/account_notices/{account_notice}".format(
+ account_notice=sanitize_id(account_notice),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ account_notice: str,
+ params: "AccountNoticeUpdateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "AccountNotice":
+ """
+ Updates an AccountNotice object.
+ """
+ return cast(
+ "AccountNotice",
+ await self._request_async(
+ "post",
+ "/v1/account_notices/{account_notice}".format(
+ account_notice=sanitize_id(account_notice),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/_account_session.py b/stripe/_account_session.py
index 4b750934e..6f8ac6b51 100644
--- a/stripe/_account_session.py
+++ b/stripe/_account_session.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._createable_api_resource import CreateableAPIResource
from stripe._stripe_object import StripeObject
-from typing import ClassVar, cast
+from typing import ClassVar, Optional, cast
from typing_extensions import Literal, Unpack, TYPE_CHECKING
if TYPE_CHECKING:
@@ -91,6 +91,39 @@ class Features(StripeObject):
features: Features
_inner_class_types = {"features": Features}
+ class CapitalFinancing(StripeObject):
+ class Features(StripeObject):
+ pass
+
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: Features
+ _inner_class_types = {"features": Features}
+
+ class CapitalFinancingApplication(StripeObject):
+ class Features(StripeObject):
+ pass
+
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: Features
+ _inner_class_types = {"features": Features}
+
+ class CapitalFinancingPromotion(StripeObject):
+ class Features(StripeObject):
+ pass
+
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: Features
+ _inner_class_types = {"features": Features}
+
class DisputesList(StripeObject):
class Features(StripeObject):
capture_payments: bool
@@ -415,6 +448,9 @@ class Features(StripeObject):
account_management: AccountManagement
account_onboarding: AccountOnboarding
balances: Balances
+ capital_financing: Optional[CapitalFinancing]
+ capital_financing_application: Optional[CapitalFinancingApplication]
+ capital_financing_promotion: Optional[CapitalFinancingPromotion]
disputes_list: DisputesList
documents: Documents
financial_account: FinancialAccount
@@ -435,6 +471,9 @@ class Features(StripeObject):
"account_management": AccountManagement,
"account_onboarding": AccountOnboarding,
"balances": Balances,
+ "capital_financing": CapitalFinancing,
+ "capital_financing_application": CapitalFinancingApplication,
+ "capital_financing_promotion": CapitalFinancingPromotion,
"disputes_list": DisputesList,
"documents": Documents,
"financial_account": FinancialAccount,
diff --git a/stripe/_api_requestor.py b/stripe/_api_requestor.py
index 52f0f3162..e196fd9cc 100644
--- a/stripe/_api_requestor.py
+++ b/stripe/_api_requestor.py
@@ -36,7 +36,10 @@
import stripe.oauth_error as oauth_error
from stripe._multipart_data_generator import MultipartDataGenerator
from urllib.parse import urlencode
-from stripe._encode import _api_encode, _json_encode_date_callback
+from stripe._encode import (
+ _api_encode,
+ _json_encode_date_callback,
+)
from stripe._stripe_response import (
StripeResponse,
StripeStreamResponse,
@@ -381,6 +384,37 @@ def specific_v2_api_error(self, rbody, rcode, resp, rheaders, error_data):
code,
)
# switchCases: The beginning of the section generated from our OpenAPI spec
+ elif type == "already_canceled":
+ return error.AlreadyCanceledError(**error_args)
+ elif type == "already_exists":
+ return error.AlreadyExistsError(**error_args)
+ elif type == "blocked_by_stripe":
+ return error.BlockedByStripeError(**error_args)
+ elif type == "controlled_by_alternate_resource":
+ return error.ControlledByAlternateResourceError(**error_args)
+ elif type == "controlled_by_dashboard":
+ return error.ControlledByDashboardError(**error_args)
+ elif type == "feature_not_enabled":
+ return error.FeatureNotEnabledError(**error_args)
+ elif type == "financial_account_not_open":
+ return error.FinancialAccountNotOpenError(**error_args)
+ elif type == "insufficient_funds":
+ return error.InsufficientFundsError(**error_args)
+ elif type == "invalid_payment_method":
+ return error.InvalidPaymentMethodError(
+ **error_args,
+ invalid_param=error_data.get("invalid_param"),
+ )
+ elif type == "invalid_payout_method":
+ return error.InvalidPayoutMethodError(**error_args)
+ elif type == "non_zero_balance":
+ return error.NonZeroBalanceError(**error_args)
+ elif type == "not_cancelable":
+ return error.NotCancelableError(**error_args)
+ elif type == "quota_exceeded":
+ return error.QuotaExceededError(**error_args)
+ elif type == "recipient_not_notifiable":
+ return error.RecipientNotNotifiableError(**error_args)
elif type == "temporary_session_expired":
return error.TemporarySessionExpiredError(**error_args)
# switchCases: The end of the section generated from our OpenAPI spec
diff --git a/stripe/_api_version.py b/stripe/_api_version.py
index 958a83ae0..5061061bc 100644
--- a/stripe/_api_version.py
+++ b/stripe/_api_version.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
- CURRENT = "2025-12-15.clover"
- CURRENT_MAJOR = "clover"
+ CURRENT = "2025-12-15.preview"
diff --git a/stripe/_bank_account.py b/stripe/_bank_account.py
index 49597e4ba..9aae072ef 100644
--- a/stripe/_bank_account.py
+++ b/stripe/_bank_account.py
@@ -83,6 +83,7 @@ class Error(StripeObject):
"invalid_url_website_other",
"invalid_value_other",
"unsupported_business_type",
+ "verification_data_not_found",
"verification_directors_mismatch",
"verification_document_address_mismatch",
"verification_document_address_missing",
@@ -214,6 +215,7 @@ class Error(StripeObject):
"invalid_url_website_other",
"invalid_value_other",
"unsupported_business_type",
+ "verification_data_not_found",
"verification_directors_mismatch",
"verification_document_address_mismatch",
"verification_document_address_missing",
diff --git a/stripe/_billing_service.py b/stripe/_billing_service.py
index 49fb9a4c9..e4b3f4ca4 100644
--- a/stripe/_billing_service.py
+++ b/stripe/_billing_service.py
@@ -6,6 +6,7 @@
if TYPE_CHECKING:
from stripe.billing._alert_service import AlertService
+ from stripe.billing._analytics_service import AnalyticsService
from stripe.billing._credit_balance_summary_service import (
CreditBalanceSummaryService,
)
@@ -21,6 +22,7 @@
_subservices = {
"alerts": ["stripe.billing._alert_service", "AlertService"],
+ "analytics": ["stripe.billing._analytics_service", "AnalyticsService"],
"credit_balance_summary": [
"stripe.billing._credit_balance_summary_service",
"CreditBalanceSummaryService",
@@ -47,6 +49,7 @@
class BillingService(StripeService):
alerts: "AlertService"
+ analytics: "AnalyticsService"
credit_balance_summary: "CreditBalanceSummaryService"
credit_balance_transactions: "CreditBalanceTransactionService"
credit_grants: "CreditGrantService"
diff --git a/stripe/_capability.py b/stripe/_capability.py
index e961576dc..b23abe29e 100644
--- a/stripe/_capability.py
+++ b/stripe/_capability.py
@@ -75,6 +75,7 @@ class Error(StripeObject):
"invalid_url_website_other",
"invalid_value_other",
"unsupported_business_type",
+ "verification_data_not_found",
"verification_directors_mismatch",
"verification_document_address_mismatch",
"verification_document_address_missing",
@@ -245,6 +246,7 @@ class Error(StripeObject):
"invalid_url_website_other",
"invalid_value_other",
"unsupported_business_type",
+ "verification_data_not_found",
"verification_directors_mismatch",
"verification_document_address_mismatch",
"verification_document_address_missing",
diff --git a/stripe/_capital_service.py b/stripe/_capital_service.py
new file mode 100644
index 000000000..d9b3ac39d
--- /dev/null
+++ b/stripe/_capital_service.py
@@ -0,0 +1,54 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.capital._financing_offer_service import FinancingOfferService
+ from stripe.capital._financing_summary_service import (
+ FinancingSummaryService,
+ )
+ from stripe.capital._financing_transaction_service import (
+ FinancingTransactionService,
+ )
+
+_subservices = {
+ "financing_offers": [
+ "stripe.capital._financing_offer_service",
+ "FinancingOfferService",
+ ],
+ "financing_summary": [
+ "stripe.capital._financing_summary_service",
+ "FinancingSummaryService",
+ ],
+ "financing_transactions": [
+ "stripe.capital._financing_transaction_service",
+ "FinancingTransactionService",
+ ],
+}
+
+
+class CapitalService(StripeService):
+ financing_offers: "FinancingOfferService"
+ financing_summary: "FinancingSummaryService"
+ financing_transactions: "FinancingTransactionService"
+
+ def __init__(self, requestor):
+ super().__init__(requestor)
+
+ def __getattr__(self, name):
+ try:
+ import_from, service = _subservices[name]
+ service_class = getattr(
+ import_module(import_from),
+ service,
+ )
+ setattr(
+ self,
+ name,
+ service_class(self._requestor),
+ )
+ return getattr(self, name)
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/_card.py b/stripe/_card.py
index ad341595d..4e0ffc9d7 100644
--- a/stripe/_card.py
+++ b/stripe/_card.py
@@ -78,6 +78,10 @@ class Networks(StripeObject):
"""
Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
"""
+ brand_product: Optional[str]
+ """
+ The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
+ """
country: Optional[str]
"""
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
diff --git a/stripe/_charge.py b/stripe/_charge.py
index 5b29946d7..b758323cd 100644
--- a/stripe/_charge.py
+++ b/stripe/_charge.py
@@ -336,6 +336,10 @@ class Card(StripeObject):
"""
Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
"""
+ brand_product: Optional[str]
+ """
+ The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
+ """
country: Optional[str]
"""
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
@@ -484,6 +488,12 @@ class Checks(StripeObject):
If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
"""
+ class DecrementalAuthorization(StripeObject):
+ status: Literal["available", "unavailable"]
+ """
+ Indicates whether or not the decremental authorization feature is supported.
+ """
+
class ExtendedAuthorization(StripeObject):
status: Literal["disabled", "enabled"]
"""
@@ -540,6 +550,17 @@ class Overcapture(StripeObject):
Indicates whether or not the authorized amount can be over-captured.
"""
+ class PartialAuthorization(StripeObject):
+ status: Literal[
+ "declined",
+ "fully_authorized",
+ "not_requested",
+ "partially_authorized",
+ ]
+ """
+ Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
+ """
+
class ThreeDSecure(StripeObject):
authentication_flow: Optional[
Literal["challenge", "frictionless"]
@@ -803,6 +824,10 @@ class ShippingAddress(StripeObject):
"""
The authorized amount.
"""
+ amount_requested: Optional[int]
+ """
+ The latest amount intended to be authorized by this charge.
+ """
authorization_code: Optional[str]
"""
Authorization code on the charge.
@@ -823,6 +848,7 @@ class ShippingAddress(StripeObject):
"""
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
"""
+ decremental_authorization: Optional[DecrementalAuthorization]
description: Optional[str]
"""
A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
@@ -887,6 +913,7 @@ class ShippingAddress(StripeObject):
This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
"""
overcapture: Optional[Overcapture]
+ partial_authorization: Optional[PartialAuthorization]
regulated_status: Optional[Literal["regulated", "unregulated"]]
"""
Status of a card based on the card issuer.
@@ -901,12 +928,14 @@ class ShippingAddress(StripeObject):
"""
_inner_class_types = {
"checks": Checks,
+ "decremental_authorization": DecrementalAuthorization,
"extended_authorization": ExtendedAuthorization,
"incremental_authorization": IncrementalAuthorization,
"installments": Installments,
"multicapture": Multicapture,
"network_token": NetworkToken,
"overcapture": Overcapture,
+ "partial_authorization": PartialAuthorization,
"three_d_secure": ThreeDSecure,
"wallet": Wallet,
}
@@ -1218,12 +1247,37 @@ class Giropay(StripeObject):
Giropay rarely provides this information so the attribute is usually empty.
"""
+ class Gopay(StripeObject):
+ pass
+
class Grabpay(StripeObject):
transaction_id: Optional[str]
"""
Unique transaction id generated by GrabPay
"""
+ class IdBankTransfer(StripeObject):
+ account_number: str
+ """
+ Account number of the bank account to transfer funds to.
+ """
+ bank: Literal["bca", "bni", "bri", "cimb", "permata"]
+ """
+ Bank where the account is located.
+ """
+ bank_code: Optional[str]
+ """
+ Local bank code of the bank.
+ """
+ bank_name: Optional[str]
+ """
+ Name of the bank associated with the bank account.
+ """
+ display_name: Optional[str]
+ """
+ Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
+ """
+
class Ideal(StripeObject):
bank: Optional[
Literal[
@@ -1705,6 +1759,58 @@ class SellerProtection(StripeObject):
Indicates whether the transaction is eligible for PayPal's seller protection.
"""
+ class Shipping(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ class VerifiedAddress(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
country: Optional[str]
"""
Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1727,11 +1833,40 @@ class SellerProtection(StripeObject):
"""
The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
"""
+ shipping: Optional[Shipping]
+ """
+ The shipping address for the customer, as supplied by the merchant at the point of payment
+ execution. This shipping address will not be updated if the merchant updates the shipping
+ address on the PaymentIntent after the PaymentIntent was successfully confirmed.
+ """
transaction_id: Optional[str]
"""
A unique ID generated by PayPal for this transaction.
"""
- _inner_class_types = {"seller_protection": SellerProtection}
+ verified_address: Optional[VerifiedAddress]
+ """
+ The shipping address for the customer, as supplied by the merchant at the point of payment
+ execution. This shipping address will not be updated if the merchant updates the shipping
+ address on the PaymentIntent after the PaymentIntent was successfully confirmed.
+ """
+ verified_email: Optional[str]
+ """
+ Owner's verified email. Values are verified or provided by PayPal directly
+ (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ """
+ verified_name: Optional[str]
+ """
+ Owner's verified full name. Values are verified or provided by PayPal directly
+ (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ """
+ _inner_class_types = {
+ "seller_protection": SellerProtection,
+ "shipping": Shipping,
+ "verified_address": VerifiedAddress,
+ }
+
+ class Paypay(StripeObject):
+ pass
class Payto(StripeObject):
bsb_number: Optional[str]
@@ -1756,6 +1891,10 @@ class Pix(StripeObject):
"""
Unique transaction id generated by BCB
"""
+ mandate: Optional[str]
+ """
+ ID of the multi use Mandate generated by the PaymentIntent
+ """
class Promptpay(StripeObject):
reference: Optional[str]
@@ -1763,6 +1902,15 @@ class Promptpay(StripeObject):
Bill reference generated by PromptPay
"""
+ class Qris(StripeObject):
+ pass
+
+ class Rechnung(StripeObject):
+ payment_portal_url: Optional[str]
+ """
+ Payment portal URL.
+ """
+
class RevolutPay(StripeObject):
class Funding(StripeObject):
class Card(StripeObject):
@@ -1770,6 +1918,10 @@ class Card(StripeObject):
"""
Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
"""
+ brand_product: Optional[str]
+ """
+ The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
+ """
country: Optional[str]
"""
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
@@ -1865,6 +2017,9 @@ class SepaDebit(StripeObject):
Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve).
"""
+ class Shopeepay(StripeObject):
+ pass
+
class Sofort(StripeObject):
bank_code: Optional[str]
"""
@@ -1910,6 +2065,16 @@ class Sofort(StripeObject):
class StripeAccount(StripeObject):
pass
+ class StripeBalance(StripeObject):
+ account: Optional[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: Literal["bank_account", "card", "fpx"]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
class Swish(StripeObject):
fingerprint: Optional[str]
"""
@@ -2011,7 +2176,9 @@ class Zip(StripeObject):
eps: Optional[Eps]
fpx: Optional[Fpx]
giropay: Optional[Giropay]
+ gopay: Optional[Gopay]
grabpay: Optional[Grabpay]
+ id_bank_transfer: Optional[IdBankTransfer]
ideal: Optional[Ideal]
interac_present: Optional[InteracPresent]
kakao_pay: Optional[KakaoPay]
@@ -2030,16 +2197,21 @@ class Zip(StripeObject):
payco: Optional[Payco]
paynow: Optional[Paynow]
paypal: Optional[Paypal]
+ paypay: Optional[Paypay]
payto: Optional[Payto]
pix: Optional[Pix]
promptpay: Optional[Promptpay]
+ qris: Optional[Qris]
+ rechnung: Optional[Rechnung]
revolut_pay: Optional[RevolutPay]
samsung_pay: Optional[SamsungPay]
satispay: Optional[Satispay]
sepa_credit_transfer: Optional[SepaCreditTransfer]
sepa_debit: Optional[SepaDebit]
+ shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_account: Optional[StripeAccount]
+ stripe_balance: Optional[StripeBalance]
swish: Optional[Swish]
twint: Optional[Twint]
type: str
@@ -2075,7 +2247,9 @@ class Zip(StripeObject):
"eps": Eps,
"fpx": Fpx,
"giropay": Giropay,
+ "gopay": Gopay,
"grabpay": Grabpay,
+ "id_bank_transfer": IdBankTransfer,
"ideal": Ideal,
"interac_present": InteracPresent,
"kakao_pay": KakaoPay,
@@ -2094,16 +2268,21 @@ class Zip(StripeObject):
"payco": Payco,
"paynow": Paynow,
"paypal": Paypal,
+ "paypay": Paypay,
"payto": Payto,
"pix": Pix,
"promptpay": Promptpay,
+ "qris": Qris,
+ "rechnung": Rechnung,
"revolut_pay": RevolutPay,
"samsung_pay": SamsungPay,
"satispay": Satispay,
"sepa_credit_transfer": SepaCreditTransfer,
"sepa_debit": SepaDebit,
+ "shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_account": StripeAccount,
+ "stripe_balance": StripeBalance,
"swish": Swish,
"twint": Twint,
"us_bank_account": UsBankAccount,
diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py
index 0e3d1a4f5..bdcc75018 100644
--- a/stripe/_confirmation_token.py
+++ b/stripe/_confirmation_token.py
@@ -99,6 +99,10 @@ class Plan(StripeObject):
class PaymentMethodPreview(StripeObject):
class AcssDebit(StripeObject):
+ account_number: Optional[str]
+ """
+ Account number of the bank account.
+ """
bank_name: Optional[str]
"""
Name of the bank associated with the bank account.
@@ -934,9 +938,18 @@ class Fpx(StripeObject):
class Giropay(StripeObject):
pass
+ class Gopay(StripeObject):
+ pass
+
class Grabpay(StripeObject):
pass
+ class IdBankTransfer(StripeObject):
+ bank: Optional[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ bank_code: Optional[str]
+ bank_name: Optional[str]
+ display_name: Optional[str]
+
class Ideal(StripeObject):
bank: Optional[
Literal[
@@ -1240,6 +1253,10 @@ class Paypal(StripeObject):
"""
Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
"""
+ fingerprint: Optional[str]
+ """
+ Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
+ """
payer_email: Optional[str]
"""
Owner's email. Values are provided by PayPal directly
@@ -1249,6 +1266,14 @@ class Paypal(StripeObject):
"""
PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
"""
+ verified_email: Optional[str]
+ """
+ Owner's verified email. Values are verified or provided by PayPal directly
+ (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ """
+
+ class Paypay(StripeObject):
+ pass
class Payto(StripeObject):
bsb_number: Optional[str]
@@ -1270,6 +1295,27 @@ class Pix(StripeObject):
class Promptpay(StripeObject):
pass
+ class Qris(StripeObject):
+ pass
+
+ class Rechnung(StripeObject):
+ class Dob(StripeObject):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+ dob: Optional[Dob]
+ _inner_class_types = {"dob": Dob}
+
class RevolutPay(StripeObject):
pass
@@ -1316,12 +1362,25 @@ class GeneratedFrom(StripeObject):
"""
_inner_class_types = {"generated_from": GeneratedFrom}
+ class Shopeepay(StripeObject):
+ pass
+
class Sofort(StripeObject):
country: Optional[str]
"""
Two-letter ISO code representing the country the bank account is located in.
"""
+ class StripeBalance(StripeObject):
+ account: Optional[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: Literal["bank_account", "card", "fpx"]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
class Swish(StripeObject):
pass
@@ -1382,6 +1441,10 @@ class Blocked(StripeObject):
"""
Account holder type: individual or company.
"""
+ account_number: Optional[str]
+ """
+ Account number of the bank account.
+ """
account_type: Optional[Literal["checking", "savings"]]
"""
Account type: checkings or savings. Defaults to checking if omitted.
@@ -1455,7 +1518,9 @@ class Zip(StripeObject):
eps: Optional[Eps]
fpx: Optional[Fpx]
giropay: Optional[Giropay]
+ gopay: Optional[Gopay]
grabpay: Optional[Grabpay]
+ id_bank_transfer: Optional[IdBankTransfer]
ideal: Optional[Ideal]
interac_present: Optional[InteracPresent]
kakao_pay: Optional[KakaoPay]
@@ -1474,14 +1539,19 @@ class Zip(StripeObject):
payco: Optional[Payco]
paynow: Optional[Paynow]
paypal: Optional[Paypal]
+ paypay: Optional[Paypay]
payto: Optional[Payto]
pix: Optional[Pix]
promptpay: Optional[Promptpay]
+ qris: Optional[Qris]
+ rechnung: Optional[Rechnung]
revolut_pay: Optional[RevolutPay]
samsung_pay: Optional[SamsungPay]
satispay: Optional[Satispay]
sepa_debit: Optional[SepaDebit]
+ shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
+ stripe_balance: Optional[StripeBalance]
swish: Optional[Swish]
twint: Optional[Twint]
type: Literal[
@@ -1506,7 +1576,9 @@ class Zip(StripeObject):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"interac_present",
"kakao_pay",
@@ -1525,14 +1597,19 @@ class Zip(StripeObject):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
@@ -1567,7 +1644,9 @@ class Zip(StripeObject):
"eps": Eps,
"fpx": Fpx,
"giropay": Giropay,
+ "gopay": Gopay,
"grabpay": Grabpay,
+ "id_bank_transfer": IdBankTransfer,
"ideal": Ideal,
"interac_present": InteracPresent,
"kakao_pay": KakaoPay,
@@ -1586,14 +1665,19 @@ class Zip(StripeObject):
"payco": Payco,
"paynow": Paynow,
"paypal": Paypal,
+ "paypay": Paypay,
"payto": Payto,
"pix": Pix,
"promptpay": Promptpay,
+ "qris": Qris,
+ "rechnung": Rechnung,
"revolut_pay": RevolutPay,
"samsung_pay": SamsungPay,
"satispay": Satispay,
"sepa_debit": SepaDebit,
+ "shopeepay": Shopeepay,
"sofort": Sofort,
+ "stripe_balance": StripeBalance,
"swish": Swish,
"twint": Twint,
"us_bank_account": UsBankAccount,
diff --git a/stripe/_coupon.py b/stripe/_coupon.py
index ef159f3f7..7bf7e6a19 100644
--- a/stripe/_coupon.py
+++ b/stripe/_coupon.py
@@ -16,6 +16,7 @@
from stripe.params._coupon_list_params import CouponListParams
from stripe.params._coupon_modify_params import CouponModifyParams
from stripe.params._coupon_retrieve_params import CouponRetrieveParams
+ from typing import Any
class Coupon(
@@ -44,6 +45,20 @@ class CurrencyOptions(StripeObject):
Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer.
"""
+ class Script(StripeObject):
+ configuration: Dict[str, "Any"]
+ """
+ The configuration values of the script. The keys and values are specific to the script implementation.
+ """
+ display_name: str
+ """
+ The name of the script used to calculate the discount.
+ """
+ id: str
+ """
+ The script implementation ID for this coupon.
+ """
+
amount_off: Optional[int]
"""
Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer.
@@ -105,10 +120,18 @@ class CurrencyOptions(StripeObject):
"""
Date after which the coupon can no longer be redeemed.
"""
+ script: Optional[Script]
+ """
+ Configuration of the [script](https://docs.stripe.com/billing/subscriptions/script-coupons) used to calculate the discount.
+ """
times_redeemed: int
"""
Number of times this coupon has been applied to a customer.
"""
+ type: Optional[Literal["amount_off", "percent_off", "script"]]
+ """
+ One of `amount_off`, `percent_off`, or `script`. Describes the type of coupon logic used to calculate the discount.
+ """
valid: bool
"""
Taking account of the above properties, whether this coupon can still be applied to a customer.
@@ -341,4 +364,5 @@ async def retrieve_async(
_inner_class_types = {
"applies_to": AppliesTo,
"currency_options": CurrencyOptions,
+ "script": Script,
}
diff --git a/stripe/_credit_note_line_item.py b/stripe/_credit_note_line_item.py
index 87c510da8..826e71e7b 100644
--- a/stripe/_credit_note_line_item.py
+++ b/stripe/_credit_note_line_item.py
@@ -52,6 +52,16 @@ class PretaxCreditAmount(StripeObject):
Type of the pretax credit amount referenced.
"""
+ class TaxCalculationReference(StripeObject):
+ calculation_id: Optional[str]
+ """
+ The calculation identifier for tax calculation response.
+ """
+ calculation_item_id: Optional[str]
+ """
+ The calculation identifier for tax calculation response line item.
+ """
+
class Tax(StripeObject):
class TaxRateDetails(StripeObject):
tax_rate: str
@@ -142,6 +152,10 @@ class TaxRateDetails(StripeObject):
"""
The number of units of product being credited.
"""
+ tax_calculation_reference: Optional[TaxCalculationReference]
+ """
+ The tax calculation identifiers of the line item.
+ """
tax_rates: List["TaxRate"]
"""
The tax rates which apply to the line item.
@@ -165,5 +179,6 @@ class TaxRateDetails(StripeObject):
_inner_class_types = {
"discount_amounts": DiscountAmount,
"pretax_credit_amounts": PretaxCreditAmount,
+ "tax_calculation_reference": TaxCalculationReference,
"taxes": Tax,
}
diff --git a/stripe/_customer_session.py b/stripe/_customer_session.py
index 581274e47..245e82af9 100644
--- a/stripe/_customer_session.py
+++ b/stripe/_customer_session.py
@@ -161,6 +161,31 @@ class PricingTable(StripeObject):
Whether the pricing table is enabled.
"""
+ class TaxIdElement(StripeObject):
+ class Features(StripeObject):
+ tax_id_redisplay: Literal["disabled", "enabled"]
+ """
+ Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
+
+ When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
+ """
+ tax_id_save: Literal["disabled", "enabled"]
+ """
+ Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
+
+ When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
+ """
+
+ enabled: bool
+ """
+ Whether the Tax ID Element is enabled.
+ """
+ features: Optional[Features]
+ """
+ This hash defines whether the Tax ID Element supports certain features.
+ """
+ _inner_class_types = {"features": Features}
+
buy_button: BuyButton
"""
This hash contains whether the buy button is enabled.
@@ -181,12 +206,17 @@ class PricingTable(StripeObject):
"""
This hash contains whether the pricing table is enabled.
"""
+ tax_id_element: Optional[TaxIdElement]
+ """
+ This hash contains whether the Tax ID Element is enabled and the features it supports.
+ """
_inner_class_types = {
"buy_button": BuyButton,
"customer_sheet": CustomerSheet,
"mobile_payment_element": MobilePaymentElement,
"payment_element": PaymentElement,
"pricing_table": PricingTable,
+ "tax_id_element": TaxIdElement,
}
client_secret: str
diff --git a/stripe/_dispute.py b/stripe/_dispute.py
index 2109b7de4..71f056937 100644
--- a/stripe/_dispute.py
+++ b/stripe/_dispute.py
@@ -351,6 +351,12 @@ class VisaCompliance(StripeObject):
"""
The number of times evidence has been submitted. Typically, you may only submit evidence once.
"""
+ submission_method: Optional[
+ Literal["manual", "not_submitted", "smart_disputes"]
+ ]
+ """
+ Whether the dispute was submitted manually, with Smart Disputes, or not submitted.
+ """
_inner_class_types = {"enhanced_eligibility": EnhancedEligibility}
class PaymentMethodDetails(StripeObject):
@@ -411,6 +417,18 @@ class Paypal(StripeObject):
"paypal": Paypal,
}
+ class SmartDisputes(StripeObject):
+ recommended_evidence: Optional[List[List[str]]]
+ """
+ Evidence that could be provided to improve the SmartDisputes packet
+ """
+ status: Literal[
+ "available", "processing", "requires_evidence", "unavailable"
+ ]
+ """
+ Smart Disputes auto representment packet availability status.
+ """
+
amount: int
"""
Disputed amount. Usually the amount of the charge, but it can differ (usually because of currency fluctuation or because only part of the order is disputed).
@@ -443,6 +461,17 @@ class Paypal(StripeObject):
"""
Unique identifier for the object.
"""
+ intended_submission_method: Optional[
+ Literal[
+ "manual",
+ "prefer_manual",
+ "prefer_smart_disputes",
+ "smart_disputes",
+ ]
+ ]
+ """
+ Intended submission method for the dispute.
+ """
is_charge_refundable: bool
"""
If true, it's still possible to refund the disputed payment. After the payment has been fully refunded, no further funds are withdrawn from your Stripe account as a result of this dispute.
@@ -472,6 +501,7 @@ class Paypal(StripeObject):
"""
Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `noncompliant`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://docs.stripe.com/disputes/categories).
"""
+ smart_disputes: Optional[SmartDisputes]
status: Literal[
"lost",
"needs_response",
@@ -714,4 +744,5 @@ async def retrieve_async(
"evidence": Evidence,
"evidence_details": EvidenceDetails,
"payment_method_details": PaymentMethodDetails,
+ "smart_disputes": SmartDisputes,
}
diff --git a/stripe/_error.py b/stripe/_error.py
index 76e26bb4a..ecba79e36 100644
--- a/stripe/_error.py
+++ b/stripe/_error.py
@@ -188,6 +188,80 @@ def __init__(self, message, sig_header, http_body=None):
# classDefinitions: The beginning of the section generated from our OpenAPI spec
+class AlreadyCanceledError(StripeError):
+ pass
+
+
+class AlreadyExistsError(StripeError):
+ pass
+
+
+class BlockedByStripeError(StripeError):
+ pass
+
+
+class ControlledByAlternateResourceError(StripeError):
+ pass
+
+
+class ControlledByDashboardError(StripeError):
+ pass
+
+
+class FeatureNotEnabledError(StripeError):
+ pass
+
+
+class FinancialAccountNotOpenError(StripeError):
+ pass
+
+
+class InsufficientFundsError(StripeError):
+ pass
+
+
+class InvalidPaymentMethodError(StripeError):
+ def __init__(
+ self,
+ message=None,
+ http_body=None,
+ http_status=None,
+ json_body=None,
+ headers=None,
+ code=None,
+ invalid_param=None,
+ ):
+ super().__init__(
+ message,
+ http_body,
+ http_status,
+ json_body,
+ headers,
+ code,
+ )
+ self.invalid_param = invalid_param
+
+
+class InvalidPayoutMethodError(StripeError):
+ pass
+
+
+class NonZeroBalanceError(StripeError):
+ pass
+
+
+class NotCancelableError(StripeError):
+ pass
+
+
+class QuotaExceededError(StripeError):
+ pass
+
+
+class RecipientNotNotifiableError(StripeError):
+ pass
+
+
class TemporarySessionExpiredError(StripeError):
pass
diff --git a/stripe/_event.py b/stripe/_event.py
index e203bf164..f13013153 100644
--- a/stripe/_event.py
+++ b/stripe/_event.py
@@ -46,6 +46,51 @@ class Data(StripeObject):
Object containing the names of the updated attributes and their values prior to the event (only included in events of type `*.updated`). If an array attribute has any updated elements, this object contains the entire array. In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements.
"""
+ class Reason(StripeObject):
+ class AutomationAction(StripeObject):
+ class StripeSendWebhookCustomEvent(StripeObject):
+ custom_data: Optional[Dict[str, str]]
+ """
+ Set of key-value pairs attached to the action when creating an Automation.
+ """
+
+ stripe_send_webhook_custom_event: Optional[
+ StripeSendWebhookCustomEvent
+ ]
+ trigger: str
+ """
+ The trigger name of the automation that triggered this action.
+ Please visit [Revenue and retention automations](https://docs.stripe.com/billing/automations#choose-a-trigger) for all possible trigger names.
+ """
+ type: Literal["stripe_send_webhook_custom_event"]
+ """
+ The type of the `automation_action`.
+ """
+ _inner_class_types = {
+ "stripe_send_webhook_custom_event": StripeSendWebhookCustomEvent,
+ }
+
+ class Request(StripeObject):
+ id: Optional[str]
+ """
+ ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe's automatic subscription handling). Request logs are available in the [dashboard](https://dashboard.stripe.com/logs), but currently not in the API.
+ """
+ idempotency_key: Optional[str]
+ """
+ The idempotency key transmitted during the request, if any. *Note: This property is populated only for events on or after May 23, 2017*.
+ """
+
+ automation_action: Optional[AutomationAction]
+ request: Optional[Request]
+ type: Literal["automation_action", "request"]
+ """
+ The type of the reason for the event.
+ """
+ _inner_class_types = {
+ "automation_action": AutomationAction,
+ "request": Request,
+ }
+
class Request(StripeObject):
id: Optional[str]
"""
@@ -89,6 +134,10 @@ class Request(StripeObject):
"""
Number of webhooks that haven't been successfully delivered (for example, to return a 20x response) to the URLs you specify.
"""
+ reason: Optional[Reason]
+ """
+ Information about the action that causes the event. Only present when the event is triggered by an API request or an [Automation](https://docs.stripe.com/billing/automations) action.
+ """
request: Optional[Request]
"""
Information on the API request that triggers the event.
@@ -100,6 +149,8 @@ class Request(StripeObject):
"account.external_account.deleted",
"account.external_account.updated",
"account.updated",
+ "account_notice.created",
+ "account_notice.updated",
"application_fee.created",
"application_fee.refund.updated",
"application_fee.refunded",
@@ -110,6 +161,16 @@ class Request(StripeObject):
"billing_portal.configuration.updated",
"billing_portal.session.created",
"capability.updated",
+ "capital.financing_offer.accepted",
+ "capital.financing_offer.accepted_other_offer",
+ "capital.financing_offer.canceled",
+ "capital.financing_offer.created",
+ "capital.financing_offer.expired",
+ "capital.financing_offer.fully_repaid",
+ "capital.financing_offer.paid_out",
+ "capital.financing_offer.rejected",
+ "capital.financing_offer.replacement_created",
+ "capital.financing_transaction.created",
"cash_balance.funds_available",
"charge.captured",
"charge.dispute.closed",
@@ -150,11 +211,15 @@ class Request(StripeObject):
"customer.source.deleted",
"customer.source.expiring",
"customer.source.updated",
+ "customer.subscription.collection_paused",
+ "customer.subscription.collection_resumed",
"customer.subscription.created",
+ "customer.subscription.custom_event",
"customer.subscription.deleted",
"customer.subscription.paused",
"customer.subscription.pending_update_applied",
"customer.subscription.pending_update_expired",
+ "customer.subscription.price_migration_failed",
"customer.subscription.resumed",
"customer.subscription.trial_will_end",
"customer.subscription.updated",
@@ -171,9 +236,12 @@ class Request(StripeObject):
"financial_connections.account.disconnected",
"financial_connections.account.reactivated",
"financial_connections.account.refreshed_balance",
+ "financial_connections.account.refreshed_inferred_balances",
"financial_connections.account.refreshed_ownership",
"financial_connections.account.refreshed_transactions",
"financial_connections.account.upcoming_account_number_expiry",
+ "financial_connections.session.updated",
+ "fx_quote.expired",
"identity.verification_session.canceled",
"identity.verification_session.created",
"identity.verification_session.processing",
@@ -188,6 +256,7 @@ class Request(StripeObject):
"invoice.overdue",
"invoice.overpaid",
"invoice.paid",
+ "invoice.payment.overpaid",
"invoice.payment_action_required",
"invoice.payment_attempt_required",
"invoice.payment_failed",
@@ -213,10 +282,15 @@ class Request(StripeObject):
"issuing_dispute.funds_rescinded",
"issuing_dispute.submitted",
"issuing_dispute.updated",
+ "issuing_dispute_settlement_detail.created",
+ "issuing_dispute_settlement_detail.updated",
+ "issuing_fraud_liability_debit.created",
"issuing_personalization_design.activated",
"issuing_personalization_design.deactivated",
"issuing_personalization_design.rejected",
"issuing_personalization_design.updated",
+ "issuing_settlement.created",
+ "issuing_settlement.updated",
"issuing_token.created",
"issuing_token.updated",
"issuing_transaction.created",
@@ -252,15 +326,26 @@ class Request(StripeObject):
"price.created",
"price.deleted",
"price.updated",
+ "privacy.redaction_job.canceled",
+ "privacy.redaction_job.created",
+ "privacy.redaction_job.ready",
+ "privacy.redaction_job.succeeded",
+ "privacy.redaction_job.validation_error",
"product.created",
"product.deleted",
"product.updated",
"promotion_code.created",
"promotion_code.updated",
+ "quote.accept_failed",
"quote.accepted",
+ "quote.accepting",
"quote.canceled",
"quote.created",
+ "quote.draft",
"quote.finalized",
+ "quote.reestimate_failed",
+ "quote.reestimated",
+ "quote.stale",
"radar.early_fraud_warning.created",
"radar.early_fraud_warning.updated",
"refund.created",
@@ -289,8 +374,10 @@ class Request(StripeObject):
"subscription_schedule.completed",
"subscription_schedule.created",
"subscription_schedule.expiring",
+ "subscription_schedule.price_migration_failed",
"subscription_schedule.released",
"subscription_schedule.updated",
+ "tax.form.updated",
"tax.settings.updated",
"tax_rate.created",
"tax_rate.updated",
@@ -412,4 +499,4 @@ async def retrieve_async(
await instance.refresh_async()
return instance
- _inner_class_types = {"data": Data, "request": Request}
+ _inner_class_types = {"data": Data, "reason": Reason, "request": Request}
diff --git a/stripe/_event_notification_handler.py b/stripe/_event_notification_handler.py
new file mode 100644
index 000000000..c39700041
--- /dev/null
+++ b/stripe/_event_notification_handler.py
@@ -0,0 +1,1037 @@
+from dataclasses import dataclass
+from typing_extensions import TYPE_CHECKING
+
+from typing import TypeVar, Callable, List
+
+# Import at runtime for isinstance check and type annotations
+from stripe.v2.core._event import EventNotification, UnknownEventNotification
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+
+ # event-notification-types: The beginning of the section generated from our OpenAPI spec
+ from stripe.events._v1_billing_meter_error_report_triggered_event import (
+ V1BillingMeterErrorReportTriggeredEventNotification,
+ )
+ from stripe.events._v1_billing_meter_no_meter_found_event import (
+ V1BillingMeterNoMeterFoundEventNotification,
+ )
+ from stripe.events._v2_core_account_closed_event import (
+ V2CoreAccountClosedEventNotification,
+ )
+ from stripe.events._v2_core_account_created_event import (
+ V2CoreAccountCreatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_customer_capability_status_updated_event import (
+ V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_customer_updated_event import (
+ V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_merchant_capability_status_updated_event import (
+ V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_merchant_updated_event import (
+ V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event import (
+ V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_recipient_updated_event import (
+ V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event import (
+ V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_storer_updated_event import (
+ V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_defaults_updated_event import (
+ V2CoreAccountIncludingDefaultsUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_identity_updated_event import (
+ V2CoreAccountIncludingIdentityUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_requirements_updated_event import (
+ V2CoreAccountIncludingRequirementsUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_link_returned_event import (
+ V2CoreAccountLinkReturnedEventNotification,
+ )
+ from stripe.events._v2_core_account_person_created_event import (
+ V2CoreAccountPersonCreatedEventNotification,
+ )
+ from stripe.events._v2_core_account_person_deleted_event import (
+ V2CoreAccountPersonDeletedEventNotification,
+ )
+ from stripe.events._v2_core_account_person_updated_event import (
+ V2CoreAccountPersonUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_updated_event import (
+ V2CoreAccountUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_event_destination_ping_event import (
+ V2CoreEventDestinationPingEventNotification,
+ )
+ from stripe.events._v2_core_health_event_generation_failure_resolved_event import (
+ V2CoreHealthEventGenerationFailureResolvedEventNotification,
+ )
+ from stripe.events._v2_money_management_adjustment_created_event import (
+ V2MoneyManagementAdjustmentCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_financial_account_created_event import (
+ V2MoneyManagementFinancialAccountCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_financial_account_updated_event import (
+ V2MoneyManagementFinancialAccountUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_financial_address_activated_event import (
+ V2MoneyManagementFinancialAddressActivatedEventNotification,
+ )
+ from stripe.events._v2_money_management_financial_address_failed_event import (
+ V2MoneyManagementFinancialAddressFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_available_event import (
+ V2MoneyManagementInboundTransferAvailableEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_failed_event import (
+ V2MoneyManagementInboundTransferBankDebitFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_processing_event import (
+ V2MoneyManagementInboundTransferBankDebitProcessingEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_queued_event import (
+ V2MoneyManagementInboundTransferBankDebitQueuedEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_returned_event import (
+ V2MoneyManagementInboundTransferBankDebitReturnedEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_succeeded_event import (
+ V2MoneyManagementInboundTransferBankDebitSucceededEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_canceled_event import (
+ V2MoneyManagementOutboundPaymentCanceledEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_created_event import (
+ V2MoneyManagementOutboundPaymentCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_failed_event import (
+ V2MoneyManagementOutboundPaymentFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_posted_event import (
+ V2MoneyManagementOutboundPaymentPostedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_returned_event import (
+ V2MoneyManagementOutboundPaymentReturnedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_updated_event import (
+ V2MoneyManagementOutboundPaymentUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_canceled_event import (
+ V2MoneyManagementOutboundTransferCanceledEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_created_event import (
+ V2MoneyManagementOutboundTransferCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_failed_event import (
+ V2MoneyManagementOutboundTransferFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_posted_event import (
+ V2MoneyManagementOutboundTransferPostedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_returned_event import (
+ V2MoneyManagementOutboundTransferReturnedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_updated_event import (
+ V2MoneyManagementOutboundTransferUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_payout_method_created_event import (
+ V2MoneyManagementPayoutMethodCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_payout_method_updated_event import (
+ V2MoneyManagementPayoutMethodUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_received_credit_available_event import (
+ V2MoneyManagementReceivedCreditAvailableEventNotification,
+ )
+ from stripe.events._v2_money_management_received_credit_failed_event import (
+ V2MoneyManagementReceivedCreditFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_received_credit_returned_event import (
+ V2MoneyManagementReceivedCreditReturnedEventNotification,
+ )
+ from stripe.events._v2_money_management_received_credit_succeeded_event import (
+ V2MoneyManagementReceivedCreditSucceededEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_canceled_event import (
+ V2MoneyManagementReceivedDebitCanceledEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_failed_event import (
+ V2MoneyManagementReceivedDebitFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_pending_event import (
+ V2MoneyManagementReceivedDebitPendingEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_succeeded_event import (
+ V2MoneyManagementReceivedDebitSucceededEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_updated_event import (
+ V2MoneyManagementReceivedDebitUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_transaction_created_event import (
+ V2MoneyManagementTransactionCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_transaction_updated_event import (
+ V2MoneyManagementTransactionUpdatedEventNotification,
+ )
+ # event-notification-types: The end of the section generated from our OpenAPI spec
+
+# internal type to represent any EventNotification subclass
+EventNotificationChild = TypeVar(
+ "EventNotificationChild", bound="EventNotification"
+)
+
+
+@dataclass
+class UnhandledNotificationDetails:
+ """
+ Information about an unhandled event notification to make it easier to respond (and potentially update your integration).
+ """
+
+ is_known_event_type: bool
+ """
+ If true, the unhandled event's type is known to the SDK (i.e., it was successfully deserialized into a specific `EventNotification` subclass).
+ """
+
+
+FallbackCallback = Callable[
+ [EventNotification, "StripeClient", UnhandledNotificationDetails], None
+]
+"""
+This function is called when no other callback is registered for a given event notification type.
+"""
+
+
+class StripeEventNotificationHandler:
+ def __init__(
+ self,
+ client: "StripeClient",
+ webhook_secret: str,
+ fallback_callback: FallbackCallback,
+ ) -> None:
+ self._registered_handlers = {}
+ self._client = client
+ self._webhook_secret = webhook_secret
+ self.fallback_callback = fallback_callback
+ # once this is true, adding additional handlers results in an error
+ self._has_handled_events = False
+
+ def handle(self, webhook_body: str, sig_header: str):
+ # isn't thread-safe, but we expect these to get registered synchronously at startup
+ self._has_handled_events = True
+
+ event_notif = self._client.parse_event_notification(
+ webhook_body, sig_header, self._webhook_secret
+ )
+
+ # Create a new client with the event's context.
+ # This is thread-safe since we're not modifying the original client.
+ # The new client reuses the HTTP client to avoid TLS handshake overhead.
+ client_with_event_context = self._client.with_stripe_context(
+ event_notif.context
+ )
+
+ if event_notif.type in self._registered_handlers:
+ self._registered_handlers[event_notif.type](
+ event_notif, client_with_event_context
+ )
+ else:
+ self.fallback_callback(
+ event_notif,
+ client_with_event_context,
+ UnhandledNotificationDetails(
+ is_known_event_type=not isinstance(
+ event_notif, UnknownEventNotification
+ )
+ ),
+ )
+
+ def _register(
+ self,
+ event_type: str,
+ func: "Callable[[EventNotificationChild, StripeClient], None]",
+ ) -> None:
+ if self._has_handled_events:
+ raise RuntimeError(
+ "Cannot register new event handlers after .handle() has been called. This is indicative of a bug."
+ )
+ if event_type in self._registered_handlers:
+ raise ValueError(
+ f'Handler for event type "{event_type}" already registered.'
+ )
+
+ self._registered_handlers[event_type] = func
+
+ @property
+ def registered_event_types(self) -> List[str]:
+ """
+ Returns an alphabetized list of all event types that have registered handlers.
+ """
+ return sorted(self._registered_handlers.keys())
+
+ # event-notification-registration-methods: The beginning of the section generated from our OpenAPI spec
+ def on_v1_billing_meter_error_report_triggered(
+ self,
+ func: "Callable[[V1BillingMeterErrorReportTriggeredEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V1BillingMeterErrorReportTriggeredEvent` (`v1.billing.meter.error_report_triggered`) event notification.
+ """
+ self._register(
+ "v1.billing.meter.error_report_triggered",
+ func,
+ )
+ return func
+
+ def on_v1_billing_meter_no_meter_found(
+ self,
+ func: "Callable[[V1BillingMeterNoMeterFoundEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V1BillingMeterNoMeterFoundEvent` (`v1.billing.meter.no_meter_found`) event notification.
+ """
+ self._register(
+ "v1.billing.meter.no_meter_found",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_closed(
+ self,
+ func: "Callable[[V2CoreAccountClosedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountClosedEvent` (`v2.core.account.closed`) event notification.
+ """
+ self._register(
+ "v2.core.account.closed",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_created(
+ self,
+ func: "Callable[[V2CoreAccountCreatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountCreatedEvent` (`v2.core.account.created`) event notification.
+ """
+ self._register(
+ "v2.core.account.created",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_including_configuration_customer_capability_status_updated(
+ self,
+ func: "Callable[[V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent` (`v2.core.account[configuration.customer].capability_status_updated`) event notification.
+ """
+ self._register(
+ "v2.core.account[configuration.customer].capability_status_updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_including_configuration_customer_updated(
+ self,
+ func: "Callable[[V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountIncludingConfigurationCustomerUpdatedEvent` (`v2.core.account[configuration.customer].updated`) event notification.
+ """
+ self._register(
+ "v2.core.account[configuration.customer].updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_including_configuration_merchant_capability_status_updated(
+ self,
+ func: "Callable[[V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent` (`v2.core.account[configuration.merchant].capability_status_updated`) event notification.
+ """
+ self._register(
+ "v2.core.account[configuration.merchant].capability_status_updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_including_configuration_merchant_updated(
+ self,
+ func: "Callable[[V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountIncludingConfigurationMerchantUpdatedEvent` (`v2.core.account[configuration.merchant].updated`) event notification.
+ """
+ self._register(
+ "v2.core.account[configuration.merchant].updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_including_configuration_recipient_capability_status_updated(
+ self,
+ func: "Callable[[V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent` (`v2.core.account[configuration.recipient].capability_status_updated`) event notification.
+ """
+ self._register(
+ "v2.core.account[configuration.recipient].capability_status_updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_including_configuration_recipient_updated(
+ self,
+ func: "Callable[[V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountIncludingConfigurationRecipientUpdatedEvent` (`v2.core.account[configuration.recipient].updated`) event notification.
+ """
+ self._register(
+ "v2.core.account[configuration.recipient].updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_including_configuration_storer_capability_status_updated(
+ self,
+ func: "Callable[[V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent` (`v2.core.account[configuration.storer].capability_status_updated`) event notification.
+ """
+ self._register(
+ "v2.core.account[configuration.storer].capability_status_updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_including_configuration_storer_updated(
+ self,
+ func: "Callable[[V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountIncludingConfigurationStorerUpdatedEvent` (`v2.core.account[configuration.storer].updated`) event notification.
+ """
+ self._register(
+ "v2.core.account[configuration.storer].updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_including_defaults_updated(
+ self,
+ func: "Callable[[V2CoreAccountIncludingDefaultsUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountIncludingDefaultsUpdatedEvent` (`v2.core.account[defaults].updated`) event notification.
+ """
+ self._register(
+ "v2.core.account[defaults].updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_including_identity_updated(
+ self,
+ func: "Callable[[V2CoreAccountIncludingIdentityUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountIncludingIdentityUpdatedEvent` (`v2.core.account[identity].updated`) event notification.
+ """
+ self._register(
+ "v2.core.account[identity].updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_including_requirements_updated(
+ self,
+ func: "Callable[[V2CoreAccountIncludingRequirementsUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountIncludingRequirementsUpdatedEvent` (`v2.core.account[requirements].updated`) event notification.
+ """
+ self._register(
+ "v2.core.account[requirements].updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_link_returned(
+ self,
+ func: "Callable[[V2CoreAccountLinkReturnedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountLinkReturnedEvent` (`v2.core.account_link.returned`) event notification.
+ """
+ self._register(
+ "v2.core.account_link.returned",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_person_created(
+ self,
+ func: "Callable[[V2CoreAccountPersonCreatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountPersonCreatedEvent` (`v2.core.account_person.created`) event notification.
+ """
+ self._register(
+ "v2.core.account_person.created",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_person_deleted(
+ self,
+ func: "Callable[[V2CoreAccountPersonDeletedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountPersonDeletedEvent` (`v2.core.account_person.deleted`) event notification.
+ """
+ self._register(
+ "v2.core.account_person.deleted",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_person_updated(
+ self,
+ func: "Callable[[V2CoreAccountPersonUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountPersonUpdatedEvent` (`v2.core.account_person.updated`) event notification.
+ """
+ self._register(
+ "v2.core.account_person.updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_account_updated(
+ self,
+ func: "Callable[[V2CoreAccountUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreAccountUpdatedEvent` (`v2.core.account.updated`) event notification.
+ """
+ self._register(
+ "v2.core.account.updated",
+ func,
+ )
+ return func
+
+ def on_v2_core_event_destination_ping(
+ self,
+ func: "Callable[[V2CoreEventDestinationPingEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreEventDestinationPingEvent` (`v2.core.event_destination.ping`) event notification.
+ """
+ self._register(
+ "v2.core.event_destination.ping",
+ func,
+ )
+ return func
+
+ def on_v2_core_health_event_generation_failure_resolved(
+ self,
+ func: "Callable[[V2CoreHealthEventGenerationFailureResolvedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2CoreHealthEventGenerationFailureResolvedEvent` (`v2.core.health.event_generation_failure.resolved`) event notification.
+ """
+ self._register(
+ "v2.core.health.event_generation_failure.resolved",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_adjustment_created(
+ self,
+ func: "Callable[[V2MoneyManagementAdjustmentCreatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementAdjustmentCreatedEvent` (`v2.money_management.adjustment.created`) event notification.
+ """
+ self._register(
+ "v2.money_management.adjustment.created",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_financial_account_created(
+ self,
+ func: "Callable[[V2MoneyManagementFinancialAccountCreatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementFinancialAccountCreatedEvent` (`v2.money_management.financial_account.created`) event notification.
+ """
+ self._register(
+ "v2.money_management.financial_account.created",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_financial_account_updated(
+ self,
+ func: "Callable[[V2MoneyManagementFinancialAccountUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementFinancialAccountUpdatedEvent` (`v2.money_management.financial_account.updated`) event notification.
+ """
+ self._register(
+ "v2.money_management.financial_account.updated",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_financial_address_activated(
+ self,
+ func: "Callable[[V2MoneyManagementFinancialAddressActivatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementFinancialAddressActivatedEvent` (`v2.money_management.financial_address.activated`) event notification.
+ """
+ self._register(
+ "v2.money_management.financial_address.activated",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_financial_address_failed(
+ self,
+ func: "Callable[[V2MoneyManagementFinancialAddressFailedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementFinancialAddressFailedEvent` (`v2.money_management.financial_address.failed`) event notification.
+ """
+ self._register(
+ "v2.money_management.financial_address.failed",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_inbound_transfer_available(
+ self,
+ func: "Callable[[V2MoneyManagementInboundTransferAvailableEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementInboundTransferAvailableEvent` (`v2.money_management.inbound_transfer.available`) event notification.
+ """
+ self._register(
+ "v2.money_management.inbound_transfer.available",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_inbound_transfer_bank_debit_failed(
+ self,
+ func: "Callable[[V2MoneyManagementInboundTransferBankDebitFailedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementInboundTransferBankDebitFailedEvent` (`v2.money_management.inbound_transfer.bank_debit_failed`) event notification.
+ """
+ self._register(
+ "v2.money_management.inbound_transfer.bank_debit_failed",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_inbound_transfer_bank_debit_processing(
+ self,
+ func: "Callable[[V2MoneyManagementInboundTransferBankDebitProcessingEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementInboundTransferBankDebitProcessingEvent` (`v2.money_management.inbound_transfer.bank_debit_processing`) event notification.
+ """
+ self._register(
+ "v2.money_management.inbound_transfer.bank_debit_processing",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_inbound_transfer_bank_debit_queued(
+ self,
+ func: "Callable[[V2MoneyManagementInboundTransferBankDebitQueuedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementInboundTransferBankDebitQueuedEvent` (`v2.money_management.inbound_transfer.bank_debit_queued`) event notification.
+ """
+ self._register(
+ "v2.money_management.inbound_transfer.bank_debit_queued",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_inbound_transfer_bank_debit_returned(
+ self,
+ func: "Callable[[V2MoneyManagementInboundTransferBankDebitReturnedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementInboundTransferBankDebitReturnedEvent` (`v2.money_management.inbound_transfer.bank_debit_returned`) event notification.
+ """
+ self._register(
+ "v2.money_management.inbound_transfer.bank_debit_returned",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_inbound_transfer_bank_debit_succeeded(
+ self,
+ func: "Callable[[V2MoneyManagementInboundTransferBankDebitSucceededEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementInboundTransferBankDebitSucceededEvent` (`v2.money_management.inbound_transfer.bank_debit_succeeded`) event notification.
+ """
+ self._register(
+ "v2.money_management.inbound_transfer.bank_debit_succeeded",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_outbound_payment_canceled(
+ self,
+ func: "Callable[[V2MoneyManagementOutboundPaymentCanceledEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementOutboundPaymentCanceledEvent` (`v2.money_management.outbound_payment.canceled`) event notification.
+ """
+ self._register(
+ "v2.money_management.outbound_payment.canceled",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_outbound_payment_created(
+ self,
+ func: "Callable[[V2MoneyManagementOutboundPaymentCreatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementOutboundPaymentCreatedEvent` (`v2.money_management.outbound_payment.created`) event notification.
+ """
+ self._register(
+ "v2.money_management.outbound_payment.created",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_outbound_payment_failed(
+ self,
+ func: "Callable[[V2MoneyManagementOutboundPaymentFailedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementOutboundPaymentFailedEvent` (`v2.money_management.outbound_payment.failed`) event notification.
+ """
+ self._register(
+ "v2.money_management.outbound_payment.failed",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_outbound_payment_posted(
+ self,
+ func: "Callable[[V2MoneyManagementOutboundPaymentPostedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementOutboundPaymentPostedEvent` (`v2.money_management.outbound_payment.posted`) event notification.
+ """
+ self._register(
+ "v2.money_management.outbound_payment.posted",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_outbound_payment_returned(
+ self,
+ func: "Callable[[V2MoneyManagementOutboundPaymentReturnedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementOutboundPaymentReturnedEvent` (`v2.money_management.outbound_payment.returned`) event notification.
+ """
+ self._register(
+ "v2.money_management.outbound_payment.returned",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_outbound_payment_updated(
+ self,
+ func: "Callable[[V2MoneyManagementOutboundPaymentUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementOutboundPaymentUpdatedEvent` (`v2.money_management.outbound_payment.updated`) event notification.
+ """
+ self._register(
+ "v2.money_management.outbound_payment.updated",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_outbound_transfer_canceled(
+ self,
+ func: "Callable[[V2MoneyManagementOutboundTransferCanceledEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementOutboundTransferCanceledEvent` (`v2.money_management.outbound_transfer.canceled`) event notification.
+ """
+ self._register(
+ "v2.money_management.outbound_transfer.canceled",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_outbound_transfer_created(
+ self,
+ func: "Callable[[V2MoneyManagementOutboundTransferCreatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementOutboundTransferCreatedEvent` (`v2.money_management.outbound_transfer.created`) event notification.
+ """
+ self._register(
+ "v2.money_management.outbound_transfer.created",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_outbound_transfer_failed(
+ self,
+ func: "Callable[[V2MoneyManagementOutboundTransferFailedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementOutboundTransferFailedEvent` (`v2.money_management.outbound_transfer.failed`) event notification.
+ """
+ self._register(
+ "v2.money_management.outbound_transfer.failed",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_outbound_transfer_posted(
+ self,
+ func: "Callable[[V2MoneyManagementOutboundTransferPostedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementOutboundTransferPostedEvent` (`v2.money_management.outbound_transfer.posted`) event notification.
+ """
+ self._register(
+ "v2.money_management.outbound_transfer.posted",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_outbound_transfer_returned(
+ self,
+ func: "Callable[[V2MoneyManagementOutboundTransferReturnedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementOutboundTransferReturnedEvent` (`v2.money_management.outbound_transfer.returned`) event notification.
+ """
+ self._register(
+ "v2.money_management.outbound_transfer.returned",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_outbound_transfer_updated(
+ self,
+ func: "Callable[[V2MoneyManagementOutboundTransferUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementOutboundTransferUpdatedEvent` (`v2.money_management.outbound_transfer.updated`) event notification.
+ """
+ self._register(
+ "v2.money_management.outbound_transfer.updated",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_payout_method_created(
+ self,
+ func: "Callable[[V2MoneyManagementPayoutMethodCreatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementPayoutMethodCreatedEvent` (`v2.money_management.payout_method.created`) event notification.
+ """
+ self._register(
+ "v2.money_management.payout_method.created",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_payout_method_updated(
+ self,
+ func: "Callable[[V2MoneyManagementPayoutMethodUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementPayoutMethodUpdatedEvent` (`v2.money_management.payout_method.updated`) event notification.
+ """
+ self._register(
+ "v2.money_management.payout_method.updated",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_received_credit_available(
+ self,
+ func: "Callable[[V2MoneyManagementReceivedCreditAvailableEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementReceivedCreditAvailableEvent` (`v2.money_management.received_credit.available`) event notification.
+ """
+ self._register(
+ "v2.money_management.received_credit.available",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_received_credit_failed(
+ self,
+ func: "Callable[[V2MoneyManagementReceivedCreditFailedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementReceivedCreditFailedEvent` (`v2.money_management.received_credit.failed`) event notification.
+ """
+ self._register(
+ "v2.money_management.received_credit.failed",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_received_credit_returned(
+ self,
+ func: "Callable[[V2MoneyManagementReceivedCreditReturnedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementReceivedCreditReturnedEvent` (`v2.money_management.received_credit.returned`) event notification.
+ """
+ self._register(
+ "v2.money_management.received_credit.returned",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_received_credit_succeeded(
+ self,
+ func: "Callable[[V2MoneyManagementReceivedCreditSucceededEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementReceivedCreditSucceededEvent` (`v2.money_management.received_credit.succeeded`) event notification.
+ """
+ self._register(
+ "v2.money_management.received_credit.succeeded",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_received_debit_canceled(
+ self,
+ func: "Callable[[V2MoneyManagementReceivedDebitCanceledEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementReceivedDebitCanceledEvent` (`v2.money_management.received_debit.canceled`) event notification.
+ """
+ self._register(
+ "v2.money_management.received_debit.canceled",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_received_debit_failed(
+ self,
+ func: "Callable[[V2MoneyManagementReceivedDebitFailedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementReceivedDebitFailedEvent` (`v2.money_management.received_debit.failed`) event notification.
+ """
+ self._register(
+ "v2.money_management.received_debit.failed",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_received_debit_pending(
+ self,
+ func: "Callable[[V2MoneyManagementReceivedDebitPendingEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementReceivedDebitPendingEvent` (`v2.money_management.received_debit.pending`) event notification.
+ """
+ self._register(
+ "v2.money_management.received_debit.pending",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_received_debit_succeeded(
+ self,
+ func: "Callable[[V2MoneyManagementReceivedDebitSucceededEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementReceivedDebitSucceededEvent` (`v2.money_management.received_debit.succeeded`) event notification.
+ """
+ self._register(
+ "v2.money_management.received_debit.succeeded",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_received_debit_updated(
+ self,
+ func: "Callable[[V2MoneyManagementReceivedDebitUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementReceivedDebitUpdatedEvent` (`v2.money_management.received_debit.updated`) event notification.
+ """
+ self._register(
+ "v2.money_management.received_debit.updated",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_transaction_created(
+ self,
+ func: "Callable[[V2MoneyManagementTransactionCreatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementTransactionCreatedEvent` (`v2.money_management.transaction.created`) event notification.
+ """
+ self._register(
+ "v2.money_management.transaction.created",
+ func,
+ )
+ return func
+
+ def on_v2_money_management_transaction_updated(
+ self,
+ func: "Callable[[V2MoneyManagementTransactionUpdatedEventNotification, StripeClient], None]",
+ ):
+ """
+ Registers a callback for the `V2MoneyManagementTransactionUpdatedEvent` (`v2.money_management.transaction.updated`) event notification.
+ """
+ self._register(
+ "v2.money_management.transaction.updated",
+ func,
+ )
+ return func
+
+ # event-notification-registration-methods: The end of the section generated from our OpenAPI spec
diff --git a/stripe/_external_account_service.py b/stripe/_external_account_service.py
new file mode 100644
index 000000000..fa40ebf0c
--- /dev/null
+++ b/stripe/_external_account_service.py
@@ -0,0 +1,240 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._bank_account import BankAccount
+ from stripe._card import Card
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.params._external_account_create_params import (
+ ExternalAccountCreateParams,
+ )
+ from stripe.params._external_account_delete_params import (
+ ExternalAccountDeleteParams,
+ )
+ from stripe.params._external_account_list_params import (
+ ExternalAccountListParams,
+ )
+ from stripe.params._external_account_retrieve_params import (
+ ExternalAccountRetrieveParams,
+ )
+ from stripe.params._external_account_update_params import (
+ ExternalAccountUpdateParams,
+ )
+ from typing import Union
+
+
+class ExternalAccountService(StripeService):
+ def delete(
+ self,
+ id: str,
+ params: Optional["ExternalAccountDeleteParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Union[BankAccount, Card]":
+ """
+ Delete a specified external account for a given account.
+ """
+ return cast(
+ "Union[BankAccount, Card]",
+ self._request(
+ "delete",
+ "/v1/external_accounts/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def delete_async(
+ self,
+ id: str,
+ params: Optional["ExternalAccountDeleteParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Union[BankAccount, Card]":
+ """
+ Delete a specified external account for a given account.
+ """
+ return cast(
+ "Union[BankAccount, Card]",
+ await self._request_async(
+ "delete",
+ "/v1/external_accounts/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["ExternalAccountRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Union[BankAccount, Card]":
+ """
+ Retrieve a specified external account for a given account.
+ """
+ return cast(
+ "Union[BankAccount, Card]",
+ self._request(
+ "get",
+ "/v1/external_accounts/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["ExternalAccountRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Union[BankAccount, Card]":
+ """
+ Retrieve a specified external account for a given account.
+ """
+ return cast(
+ "Union[BankAccount, Card]",
+ await self._request_async(
+ "get",
+ "/v1/external_accounts/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ id: str,
+ params: Optional["ExternalAccountUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Union[BankAccount, Card]":
+ """
+ Updates the metadata, account holder name, account holder type of a bank account belonging to
+ a connected account and optionally sets it as the default for its currency. Other bank account
+ details are not editable by design.
+
+ You can only update bank accounts when [account.controller.requirement_collection is application, which includes Custom accounts](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection).
+
+ You can re-enable a disabled bank account by performing an update call without providing any
+ arguments or changes.
+ """
+ return cast(
+ "Union[BankAccount, Card]",
+ self._request(
+ "post",
+ "/v1/external_accounts/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ id: str,
+ params: Optional["ExternalAccountUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Union[BankAccount, Card]":
+ """
+ Updates the metadata, account holder name, account holder type of a bank account belonging to
+ a connected account and optionally sets it as the default for its currency. Other bank account
+ details are not editable by design.
+
+ You can only update bank accounts when [account.controller.requirement_collection is application, which includes Custom accounts](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection).
+
+ You can re-enable a disabled bank account by performing an update call without providing any
+ arguments or changes.
+ """
+ return cast(
+ "Union[BankAccount, Card]",
+ await self._request_async(
+ "post",
+ "/v1/external_accounts/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def list(
+ self,
+ params: Optional["ExternalAccountListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Union[BankAccount, Card]]":
+ """
+ List external accounts for an account.
+ """
+ return cast(
+ "ListObject[Union[BankAccount, Card]]",
+ self._request(
+ "get",
+ "/v1/external_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["ExternalAccountListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Union[BankAccount, Card]]":
+ """
+ List external accounts for an account.
+ """
+ return cast(
+ "ListObject[Union[BankAccount, Card]]",
+ await self._request_async(
+ "get",
+ "/v1/external_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "ExternalAccountCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Union[BankAccount, Card]":
+ """
+ Create an external account for a given connected account.
+ """
+ return cast(
+ "Union[BankAccount, Card]",
+ self._request(
+ "post",
+ "/v1/external_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "ExternalAccountCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Union[BankAccount, Card]":
+ """
+ Create an external account for a given connected account.
+ """
+ return cast(
+ "Union[BankAccount, Card]",
+ await self._request_async(
+ "post",
+ "/v1/external_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/_financial_connections_service.py b/stripe/_financial_connections_service.py
index 4be4c3be8..a229cd0c4 100644
--- a/stripe/_financial_connections_service.py
+++ b/stripe/_financial_connections_service.py
@@ -6,6 +6,9 @@
if TYPE_CHECKING:
from stripe.financial_connections._account_service import AccountService
+ from stripe.financial_connections._institution_service import (
+ InstitutionService,
+ )
from stripe.financial_connections._session_service import SessionService
from stripe.financial_connections._transaction_service import (
TransactionService,
@@ -16,6 +19,10 @@
"stripe.financial_connections._account_service",
"AccountService",
],
+ "institutions": [
+ "stripe.financial_connections._institution_service",
+ "InstitutionService",
+ ],
"sessions": [
"stripe.financial_connections._session_service",
"SessionService",
@@ -29,6 +36,7 @@
class FinancialConnectionsService(StripeService):
accounts: "AccountService"
+ institutions: "InstitutionService"
sessions: "SessionService"
transactions: "TransactionService"
diff --git a/stripe/_fx_quote.py b/stripe/_fx_quote.py
new file mode 100644
index 000000000..b3e270478
--- /dev/null
+++ b/stripe/_fx_quote.py
@@ -0,0 +1,229 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._createable_api_resource import CreateableAPIResource
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, Optional, cast
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params._fx_quote_create_params import FxQuoteCreateParams
+ from stripe.params._fx_quote_list_params import FxQuoteListParams
+ from stripe.params._fx_quote_retrieve_params import FxQuoteRetrieveParams
+
+
+class FxQuote(
+ CreateableAPIResource["FxQuote"], ListableAPIResource["FxQuote"]
+):
+ """
+ The FX Quotes API provides three functions:
+ - View Stripe's current exchange rate for any given currency pair.
+ - Extend quoted rates for a 1-hour period or a 24-hour period, minimizing uncertainty from FX fluctuations.
+ - Preview the FX fees Stripe will charge on your FX transaction, allowing you to anticipate specific settlement amounts before payment costs.
+
+ [View the docs](https://docs.stripe.com/payments/currencies/localize-prices/fx-quotes-api)
+ """
+
+ OBJECT_NAME: ClassVar[Literal["fx_quote"]] = "fx_quote"
+
+ class Rates(StripeObject):
+ class RateDetails(StripeObject):
+ base_rate: float
+ """
+ The rate for the currency pair.
+ """
+ duration_premium: float
+ """
+ The fee for locking the conversion rates.
+ """
+ fx_fee_rate: float
+ """
+ The FX fee for the currency pair.
+ """
+ reference_rate: Optional[float]
+ """
+ A reference rate for the currency pair provided by the reference rate provider.
+ """
+ reference_rate_provider: Optional[Literal["ecb"]]
+ """
+ The reference rate provider.
+ """
+
+ exchange_rate: float
+ """
+ The rate that includes the FX fee rate.
+ """
+ rate_details: RateDetails
+ _inner_class_types = {"rate_details": RateDetails}
+
+ class Usage(StripeObject):
+ class Payment(StripeObject):
+ destination: Optional[str]
+ """
+ The Stripe account ID that the funds will be transferred to.
+
+ This field should match the account ID that would be used in the PaymentIntent's transfer_data[destination] field.
+ """
+ on_behalf_of: Optional[str]
+ """
+ The Stripe account ID that these funds are intended for.
+
+ This field must match the account ID that would be used in the PaymentIntent's on_behalf_of field.
+ """
+
+ class Transfer(StripeObject):
+ destination: str
+ """
+ The Stripe account ID that the funds will be transferred to.
+
+ This field should match the account ID that would be used in the Transfer's destination field.
+ """
+
+ payment: Optional[Payment]
+ """
+ The details required to use an FX Quote for a payment
+ """
+ transfer: Optional[Transfer]
+ """
+ The details required to use an FX Quote for a transfer
+ """
+ type: Literal["payment", "transfer"]
+ """
+ The transaction type for which the FX Quote will be used.
+
+ Can be 'payment' or 'transfer'.
+ """
+ _inner_class_types = {"payment": Payment, "transfer": Transfer}
+
+ created: int
+ """
+ Time at which the quote was created, measured in seconds since the Unix epoch.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ lock_duration: Literal["day", "five_minutes", "hour", "none"]
+ """
+ The duration the exchange rate quote remains valid from creation time. Allowed values are none, hour, and day. Note that for the test mode API available in alpha, you can request an extended quote, but it won't be usable for any transactions.
+ """
+ lock_expires_at: Optional[int]
+ """
+ Time at which the quote will expire, measured in seconds since the Unix epoch.
+
+ If lock_duration is set to ‘none' this field will be set to null.
+ """
+ lock_status: Literal["active", "expired", "none"]
+ """
+ Lock status of the quote. Transitions from active to expired once past the lock_expires_at timestamp.
+
+ Can return value none, active, or expired.
+ """
+ object: Literal["fx_quote"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ rates: Dict[str, Rates]
+ """
+ Information about the rates.
+ """
+ to_currency: str
+ """
+ The currency to convert into, typically this is the currency that you want to settle to your Stripe balance. Three-letter ISO currency code, in lowercase. Must be a supported currency.
+ """
+ usage: Usage
+
+ @classmethod
+ def create(cls, **params: Unpack["FxQuoteCreateParams"]) -> "FxQuote":
+ """
+ Creates an FX Quote object
+ """
+ return cast(
+ "FxQuote",
+ cls._static_request(
+ "post",
+ cls.class_url(),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def create_async(
+ cls, **params: Unpack["FxQuoteCreateParams"]
+ ) -> "FxQuote":
+ """
+ Creates an FX Quote object
+ """
+ return cast(
+ "FxQuote",
+ await cls._static_request_async(
+ "post",
+ cls.class_url(),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def list(
+ cls, **params: Unpack["FxQuoteListParams"]
+ ) -> ListObject["FxQuote"]:
+ """
+ Returns a list of FX quotes that have been issued. The FX quotes are returned in sorted order, with the most recent FX quotes appearing first.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["FxQuoteListParams"]
+ ) -> ListObject["FxQuote"]:
+ """
+ Returns a list of FX quotes that have been issued. The FX quotes are returned in sorted order, with the most recent FX quotes appearing first.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["FxQuoteRetrieveParams"]
+ ) -> "FxQuote":
+ """
+ Retrieve an FX Quote object
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["FxQuoteRetrieveParams"]
+ ) -> "FxQuote":
+ """
+ Retrieve an FX Quote object
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ _inner_class_types = {"rates": Rates, "usage": Usage}
diff --git a/stripe/_fx_quote_service.py b/stripe/_fx_quote_service.py
new file mode 100644
index 000000000..17bca730b
--- /dev/null
+++ b/stripe/_fx_quote_service.py
@@ -0,0 +1,132 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._fx_quote import FxQuote
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.params._fx_quote_create_params import FxQuoteCreateParams
+ from stripe.params._fx_quote_list_params import FxQuoteListParams
+ from stripe.params._fx_quote_retrieve_params import FxQuoteRetrieveParams
+
+
+class FxQuoteService(StripeService):
+ def list(
+ self,
+ params: Optional["FxQuoteListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FxQuote]":
+ """
+ Returns a list of FX quotes that have been issued. The FX quotes are returned in sorted order, with the most recent FX quotes appearing first.
+ """
+ return cast(
+ "ListObject[FxQuote]",
+ self._request(
+ "get",
+ "/v1/fx_quotes",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["FxQuoteListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FxQuote]":
+ """
+ Returns a list of FX quotes that have been issued. The FX quotes are returned in sorted order, with the most recent FX quotes appearing first.
+ """
+ return cast(
+ "ListObject[FxQuote]",
+ await self._request_async(
+ "get",
+ "/v1/fx_quotes",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "FxQuoteCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "FxQuote":
+ """
+ Creates an FX Quote object
+ """
+ return cast(
+ "FxQuote",
+ self._request(
+ "post",
+ "/v1/fx_quotes",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "FxQuoteCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "FxQuote":
+ """
+ Creates an FX Quote object
+ """
+ return cast(
+ "FxQuote",
+ await self._request_async(
+ "post",
+ "/v1/fx_quotes",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["FxQuoteRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FxQuote":
+ """
+ Retrieve an FX Quote object
+ """
+ return cast(
+ "FxQuote",
+ self._request(
+ "get",
+ "/v1/fx_quotes/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["FxQuoteRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FxQuote":
+ """
+ Retrieve an FX Quote object
+ """
+ return cast(
+ "FxQuote",
+ await self._request_async(
+ "get",
+ "/v1/fx_quotes/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/_invoice.py b/stripe/_invoice.py
index 35b6320a1..61e81e0c4 100644
--- a/stripe/_invoice.py
+++ b/stripe/_invoice.py
@@ -33,6 +33,7 @@
from stripe._discount import Discount
from stripe._invoice_line_item import InvoiceLineItem
from stripe._invoice_payment import InvoicePayment
+ from stripe._margin import Margin
from stripe._payment_intent import PaymentIntent
from stripe._payment_method import PaymentMethod
from stripe._setup_intent import SetupIntent
@@ -125,6 +126,40 @@ class Invoice(
OBJECT_NAME: ClassVar[Literal["invoice"]] = "invoice"
+ class AmountsDue(StripeObject):
+ amount: int
+ """
+ Incremental amount due for this payment in cents (or local equivalent).
+ """
+ amount_paid: int
+ """
+ The amount in cents (or local equivalent) that was paid for this payment.
+ """
+ amount_remaining: int
+ """
+ The difference between the payment's amount and amount_paid, in cents (or local equivalent).
+ """
+ days_until_due: Optional[int]
+ """
+ Number of days from when invoice is finalized until the payment is due.
+ """
+ description: Optional[str]
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users.
+ """
+ due_date: Optional[int]
+ """
+ Date on which a payment plan's payment is due.
+ """
+ paid_at: Optional[int]
+ """
+ Timestamp when the payment was paid.
+ """
+ status: Literal["open", "paid", "past_due"]
+ """
+ The status of the payment, one of `open`, `paid`, or `past_due`
+ """
+
class AutomaticTax(StripeObject):
class Liability(StripeObject):
account: Optional[ExpandableField["Account"]]
@@ -462,6 +497,7 @@ class LastFinalizationError(StripeObject):
"financial_connections_account_inactive",
"financial_connections_account_pending_account_numbers",
"financial_connections_account_unavailable_account_numbers",
+ "financial_connections_institution_unavailable",
"financial_connections_no_successful_transaction_refresh",
"forwarding_api_inactive",
"forwarding_api_invalid_parameter",
@@ -560,6 +596,7 @@ class LastFinalizationError(StripeObject):
"return_intent_already_processed",
"routing_number_invalid",
"secret_key_required",
+ "sensitive_data_access_expired",
"sepa_unsupported_account",
"setup_attempt_failed",
"setup_intent_authentication_failure",
@@ -579,6 +616,7 @@ class LastFinalizationError(StripeObject):
"taxes_calculation_failed",
"terminal_location_country_unsupported",
"terminal_reader_busy",
+ "terminal_reader_collected_data_invalid",
"terminal_reader_hardware_fault",
"terminal_reader_invalid_location_for_activation",
"terminal_reader_invalid_location_for_payment",
@@ -592,6 +630,8 @@ class LastFinalizationError(StripeObject):
"transfer_source_balance_parameters_mismatch",
"transfers_not_allowed",
"url_invalid",
+ "v2_account_disconnection_unsupported",
+ "v2_account_missing_configuration",
]
]
"""
@@ -689,6 +729,12 @@ class LastFinalizationError(StripeObject):
"""
class Parent(StripeObject):
+ class BillingCadenceDetails(StripeObject):
+ billing_cadence: str
+ """
+ The billing cadence that generated this invoice
+ """
+
class QuoteDetails(StripeObject):
quote: str
"""
@@ -696,11 +742,27 @@ class QuoteDetails(StripeObject):
"""
class SubscriptionDetails(StripeObject):
+ class PauseCollection(StripeObject):
+ behavior: Optional[
+ Literal["keep_as_draft", "mark_uncollectible", "void"]
+ ]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+ resumes_at: Optional[int]
+ """
+ The time after which the subscription will resume collecting payments.
+ """
+
metadata: Optional[Dict[str, str]]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
*Note: This attribute is populated only for invoices created on or after June 29, 2023.*
"""
+ pause_collection: Optional[PauseCollection]
+ """
+ If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
+ """
subscription: ExpandableField["Subscription"]
"""
The subscription that generated this invoice
@@ -709,7 +771,12 @@ class SubscriptionDetails(StripeObject):
"""
Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
"""
+ _inner_class_types = {"pause_collection": PauseCollection}
+ billing_cadence_details: Optional[BillingCadenceDetails]
+ """
+ Details about the billing cadence that generated this invoice
+ """
quote_details: Optional[QuoteDetails]
"""
Details about the quote that generated this invoice
@@ -718,11 +785,14 @@ class SubscriptionDetails(StripeObject):
"""
Details about the subscription that generated this invoice
"""
- type: Literal["quote_details", "subscription_details"]
+ type: Literal[
+ "billing_cadence_details", "quote_details", "subscription_details"
+ ]
"""
The type of parent that generated this invoice
"""
_inner_class_types = {
+ "billing_cadence_details": BillingCadenceDetails,
"quote_details": QuoteDetails,
"subscription_details": SubscriptionDetails,
}
@@ -789,6 +859,9 @@ class EuBankTransfer(StripeObject):
"""
_inner_class_types = {"bank_transfer": BankTransfer}
+ class IdBankTransfer(StripeObject):
+ pass
+
class Konbini(StripeObject):
pass
@@ -824,9 +897,37 @@ class MandateOptions(StripeObject):
mandate_options: Optional[MandateOptions]
_inner_class_types = {"mandate_options": MandateOptions}
+ class Pix(StripeObject):
+ amount_includes_iof: Optional[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax.
+ """
+
class SepaDebit(StripeObject):
pass
+ class Upi(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: Optional[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: Optional[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ _inner_class_types = {"mandate_options": MandateOptions}
+
class UsBankAccount(StripeObject):
class FinancialConnections(StripeObject):
class Filters(StripeObject):
@@ -836,6 +937,10 @@ class Filters(StripeObject):
"""
The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
"""
+ institution: Optional[str]
+ """
+ The institution to use to filter for possible accounts to link.
+ """
filters: Optional[Filters]
permissions: Optional[
@@ -852,7 +957,14 @@ class Filters(StripeObject):
The list of permissions to request. The `payment_method` permission must be included.
"""
prefetch: Optional[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances",
+ "inferred_balances",
+ "ownership",
+ "transactions",
+ ]
+ ]
]
"""
Data features requested to be retrieved upon account creation.
@@ -886,6 +998,10 @@ class Filters(StripeObject):
"""
If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
"""
+ id_bank_transfer: Optional[IdBankTransfer]
+ """
+ If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
+ """
konbini: Optional[Konbini]
"""
If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
@@ -894,10 +1010,18 @@ class Filters(StripeObject):
"""
If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice's PaymentIntent.
"""
+ pix: Optional[Pix]
+ """
+ If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice's PaymentIntent.
+ """
sepa_debit: Optional[SepaDebit]
"""
If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice's PaymentIntent.
"""
+ upi: Optional[Upi]
+ """
+ If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
+ """
us_bank_account: Optional[UsBankAccount]
"""
If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
@@ -907,9 +1031,12 @@ class Filters(StripeObject):
"bancontact": Bancontact,
"card": Card,
"customer_balance": CustomerBalance,
+ "id_bank_transfer": IdBankTransfer,
"konbini": Konbini,
"payto": Payto,
+ "pix": Pix,
"sepa_debit": SepaDebit,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
}
@@ -942,6 +1069,7 @@ class Filters(StripeObject):
"fpx",
"giropay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"jp_credit_transfer",
"kakao_pay",
@@ -957,12 +1085,15 @@ class Filters(StripeObject):
"paynow",
"paypal",
"payto",
+ "pix",
"promptpay",
"revolut_pay",
"sepa_credit_transfer",
"sepa_debit",
"sofort",
+ "stripe_balance",
"swish",
+ "upi",
"us_bank_account",
"wechat_pay",
]
@@ -1154,6 +1285,16 @@ class TotalDiscountAmount(StripeObject):
The discount that was applied to get this discount amount.
"""
+ class TotalMarginAmount(StripeObject):
+ amount: int
+ """
+ The amount, in cents (or local equivalent), of the reduction in line item amount.
+ """
+ margin: ExpandableField["Margin"]
+ """
+ The margin that was applied to get this margin amount.
+ """
+
class TotalPretaxCreditAmount(StripeObject):
amount: int
"""
@@ -1169,7 +1310,11 @@ class TotalPretaxCreditAmount(StripeObject):
"""
The discount that was applied to get this pretax credit amount.
"""
- type: Literal["credit_balance_transaction", "discount"]
+ margin: Optional[ExpandableField["Margin"]]
+ """
+ The margin that was applied to get this pretax credit amount.
+ """
+ type: Literal["credit_balance_transaction", "discount", "margin"]
"""
Type of the pretax credit amount referenced.
"""
@@ -1256,6 +1401,10 @@ class TaxRateDetails(StripeObject):
"""
This is the sum of all the shipping amounts.
"""
+ amounts_due: Optional[List[AmountsDue]]
+ """
+ List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
+ """
application: Optional[ExpandableField["Application"]]
"""
ID of the Connect Application that created the invoice.
@@ -1357,6 +1506,10 @@ class TaxRateDetails(StripeObject):
"""
The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated.
"""
+ default_margins: Optional[List[ExpandableField["Margin"]]]
+ """
+ The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
+ """
default_payment_method: Optional[ExpandableField["PaymentMethod"]]
"""
ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
@@ -1533,6 +1686,10 @@ class TaxRateDetails(StripeObject):
"""
The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
"""
+ total_margin_amounts: Optional[List[TotalMarginAmount]]
+ """
+ The aggregate amounts calculated per margin across all line items.
+ """
total_pretax_credit_amounts: Optional[List[TotalPretaxCreditAmount]]
"""
Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.
@@ -2989,6 +3146,7 @@ async def list_lines_async(
)
_inner_class_types = {
+ "amounts_due": AmountsDue,
"automatic_tax": AutomaticTax,
"confirmation_secret": ConfirmationSecret,
"custom_fields": CustomField,
@@ -3006,6 +3164,7 @@ async def list_lines_async(
"status_transitions": StatusTransitions,
"threshold_reason": ThresholdReason,
"total_discount_amounts": TotalDiscountAmount,
+ "total_margin_amounts": TotalMarginAmount,
"total_pretax_credit_amounts": TotalPretaxCreditAmount,
"total_taxes": TotalTax,
}
diff --git a/stripe/_invoice_item.py b/stripe/_invoice_item.py
index 6fe83f387..e97100c56 100644
--- a/stripe/_invoice_item.py
+++ b/stripe/_invoice_item.py
@@ -15,6 +15,7 @@
from stripe._customer import Customer
from stripe._discount import Discount
from stripe._invoice import Invoice
+ from stripe._margin import Margin
from stripe._price import Price
from stripe._tax_rate import TaxRate
from stripe.params._invoice_item_create_params import (
@@ -170,6 +171,10 @@ class DiscountAmount(StripeObject):
"""
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
"""
+ margins: Optional[List[ExpandableField["Margin"]]]
+ """
+ The margins which apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
+ """
metadata: Optional[Dict[str, str]]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
diff --git a/stripe/_invoice_line_item.py b/stripe/_invoice_line_item.py
index edcfcf2fe..94255477c 100644
--- a/stripe/_invoice_line_item.py
+++ b/stripe/_invoice_line_item.py
@@ -9,6 +9,7 @@
if TYPE_CHECKING:
from stripe._discount import Discount
+ from stripe._margin import Margin
from stripe._price import Price
from stripe._subscription import Subscription
from stripe.billing._credit_balance_transaction import (
@@ -35,6 +36,16 @@ class DiscountAmount(StripeObject):
The discount that was applied to get this discount amount.
"""
+ class MarginAmount(StripeObject):
+ amount: int
+ """
+ The amount, in cents (or local equivalent), of the reduction in line item amount.
+ """
+ margin: ExpandableField["Margin"]
+ """
+ The margin that was applied to get this margin amount.
+ """
+
class Parent(StripeObject):
class InvoiceItemDetails(StripeObject):
class ProrationDetails(StripeObject):
@@ -154,7 +165,11 @@ class PretaxCreditAmount(StripeObject):
"""
The discount that was applied to get this pretax credit amount.
"""
- type: Literal["credit_balance_transaction", "discount"]
+ margin: Optional[ExpandableField["Margin"]]
+ """
+ The margin that was applied to get this pretax credit amount.
+ """
+ type: Literal["credit_balance_transaction", "discount", "margin"]
"""
Type of the pretax credit amount referenced.
"""
@@ -181,6 +196,16 @@ class PriceDetails(StripeObject):
"""
_inner_class_types = {"price_details": PriceDetails}
+ class TaxCalculationReference(StripeObject):
+ calculation_id: Optional[str]
+ """
+ The calculation identifier for tax calculation response.
+ """
+ calculation_item_id: Optional[str]
+ """
+ The calculation identifier for tax calculation response line item.
+ """
+
class Tax(StripeObject):
class TaxRateDetails(StripeObject):
tax_rate: str
@@ -267,6 +292,14 @@ class TaxRateDetails(StripeObject):
"""
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
"""
+ margin_amounts: Optional[List[MarginAmount]]
+ """
+ The amount of margin calculated per margin for this line item.
+ """
+ margins: Optional[List[ExpandableField["Margin"]]]
+ """
+ The margins applied to the line item. When set, the `default_margins` on the invoice do not apply to the line item. Use `expand[]=margins` to expand each margin.
+ """
metadata: Dict[str, str]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Note that for line items with `type=subscription`, `metadata` reflects the current metadata from the subscription associated with the line item, unless the invoice line was directly updated with different metadata after creation.
@@ -297,6 +330,10 @@ class TaxRateDetails(StripeObject):
"""
The subtotal of the line item, in cents (or local equivalent), before any discounts or taxes.
"""
+ tax_calculation_reference: Optional[TaxCalculationReference]
+ """
+ The tax calculation identifiers of the line item.
+ """
taxes: Optional[List[Tax]]
"""
The tax information of the line item.
@@ -350,9 +387,11 @@ async def modify_async(
_inner_class_types = {
"discount_amounts": DiscountAmount,
+ "margin_amounts": MarginAmount,
"parent": Parent,
"period": Period,
"pretax_credit_amounts": PretaxCreditAmount,
"pricing": Pricing,
+ "tax_calculation_reference": TaxCalculationReference,
"taxes": Tax,
}
diff --git a/stripe/_issuing_service.py b/stripe/_issuing_service.py
index 50539d21b..eedcc8b11 100644
--- a/stripe/_issuing_service.py
+++ b/stripe/_issuing_service.py
@@ -8,7 +8,16 @@
from stripe.issuing._authorization_service import AuthorizationService
from stripe.issuing._card_service import CardService
from stripe.issuing._cardholder_service import CardholderService
+ from stripe.issuing._credit_underwriting_record_service import (
+ CreditUnderwritingRecordService,
+ )
from stripe.issuing._dispute_service import DisputeService
+ from stripe.issuing._dispute_settlement_detail_service import (
+ DisputeSettlementDetailService,
+ )
+ from stripe.issuing._fraud_liability_debit_service import (
+ FraudLiabilityDebitService,
+ )
from stripe.issuing._personalization_design_service import (
PersonalizationDesignService,
)
@@ -23,7 +32,19 @@
],
"cards": ["stripe.issuing._card_service", "CardService"],
"cardholders": ["stripe.issuing._cardholder_service", "CardholderService"],
+ "credit_underwriting_records": [
+ "stripe.issuing._credit_underwriting_record_service",
+ "CreditUnderwritingRecordService",
+ ],
"disputes": ["stripe.issuing._dispute_service", "DisputeService"],
+ "dispute_settlement_details": [
+ "stripe.issuing._dispute_settlement_detail_service",
+ "DisputeSettlementDetailService",
+ ],
+ "fraud_liability_debits": [
+ "stripe.issuing._fraud_liability_debit_service",
+ "FraudLiabilityDebitService",
+ ],
"personalization_designs": [
"stripe.issuing._personalization_design_service",
"PersonalizationDesignService",
@@ -44,7 +65,10 @@ class IssuingService(StripeService):
authorizations: "AuthorizationService"
cards: "CardService"
cardholders: "CardholderService"
+ credit_underwriting_records: "CreditUnderwritingRecordService"
disputes: "DisputeService"
+ dispute_settlement_details: "DisputeSettlementDetailService"
+ fraud_liability_debits: "FraudLiabilityDebitService"
personalization_designs: "PersonalizationDesignService"
physical_bundles: "PhysicalBundleService"
tokens: "TokenService"
diff --git a/stripe/_line_item.py b/stripe/_line_item.py
index 87109379a..fda967a9d 100644
--- a/stripe/_line_item.py
+++ b/stripe/_line_item.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
+from stripe._expandable_field import ExpandableField
from stripe._stripe_object import StripeObject
from typing import ClassVar, Dict, List, Optional
from typing_extensions import Literal, TYPE_CHECKING
@@ -7,6 +8,7 @@
if TYPE_CHECKING:
from stripe._discount import Discount as DiscountResource
from stripe._price import Price
+ from stripe._product import Product
from stripe._tax_rate import TaxRate
@@ -17,6 +19,11 @@ class LineItem(StripeObject):
OBJECT_NAME: ClassVar[Literal["item"]] = "item"
+ class AdjustableQuantity(StripeObject):
+ enabled: bool
+ maximum: Optional[int]
+ minimum: Optional[int]
+
class Discount(StripeObject):
amount: int
"""
@@ -30,6 +37,21 @@ class Discount(StripeObject):
Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
"""
+ class Display(StripeObject):
+ description: Optional[str]
+ images: List[str]
+ name: str
+
+ class TaxCalculationReference(StripeObject):
+ calculation_id: Optional[str]
+ """
+ The calculation identifier for tax calculation response.
+ """
+ calculation_item_id: Optional[str]
+ """
+ The calculation identifier for tax calculation response line item.
+ """
+
class Tax(StripeObject):
amount: int
"""
@@ -68,6 +90,7 @@ class Tax(StripeObject):
The amount on which tax is calculated, in cents (or local equivalent).
"""
+ adjustable_quantity: Optional[AdjustableQuantity]
amount_discount: int
"""
Total discount amount applied. If no discounts were applied, defaults to 0.
@@ -96,6 +119,7 @@ class Tax(StripeObject):
"""
The discounts applied to the line item.
"""
+ display: Optional[Display]
id: str
"""
Unique identifier for the object.
@@ -112,12 +136,28 @@ class Tax(StripeObject):
"""
The price used to generate the line item.
"""
+ product: Optional[ExpandableField["Product"]]
+ """
+ The ID of the product for this line item.
+
+ This will always be the same as `price.product`.
+ """
quantity: Optional[int]
"""
The quantity of products being purchased.
"""
+ tax_calculation_reference: Optional[TaxCalculationReference]
+ """
+ The tax calculation identifiers of the line item.
+ """
taxes: Optional[List[Tax]]
"""
The taxes applied to the line item.
"""
- _inner_class_types = {"discounts": Discount, "taxes": Tax}
+ _inner_class_types = {
+ "adjustable_quantity": AdjustableQuantity,
+ "discounts": Discount,
+ "display": Display,
+ "tax_calculation_reference": TaxCalculationReference,
+ "taxes": Tax,
+ }
diff --git a/stripe/_mandate.py b/stripe/_mandate.py
index 2cb297715..cbc41da01 100644
--- a/stripe/_mandate.py
+++ b/stripe/_mandate.py
@@ -1,17 +1,19 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
-from stripe._api_resource import APIResource
from stripe._expandable_field import ExpandableField
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
from stripe._stripe_object import StripeObject
from typing import ClassVar, List, Optional
from typing_extensions import Literal, Unpack, TYPE_CHECKING
if TYPE_CHECKING:
from stripe._payment_method import PaymentMethod
+ from stripe.params._mandate_list_params import MandateListParams
from stripe.params._mandate_retrieve_params import MandateRetrieveParams
-class Mandate(APIResource["Mandate"]):
+class Mandate(ListableAPIResource["Mandate"]):
"""
A Mandate is a record of the permission that your customer gives you to debit their payment method.
"""
@@ -45,7 +47,14 @@ class Online(StripeObject):
_inner_class_types = {"offline": Offline, "online": Online}
class MultiUse(StripeObject):
- pass
+ amount: Optional[int]
+ """
+ The amount of the payment on a multi use mandate.
+ """
+ currency: Optional[str]
+ """
+ The currency of the payment on a multi use mandate.
+ """
class PaymentMethodDetails(StripeObject):
class AcssDebit(StripeObject):
@@ -132,10 +141,19 @@ class Paypal(StripeObject):
"""
The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
"""
+ fingerprint: Optional[str]
+ """
+ Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
+ """
payer_id: Optional[str]
"""
PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
"""
+ verified_email: Optional[str]
+ """
+ Owner's verified email. Values are verified or provided by PayPal directly
+ (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ """
class Payto(StripeObject):
amount: Optional[int]
@@ -190,6 +208,36 @@ class Payto(StripeObject):
Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
"""
+ class Pix(StripeObject):
+ amount_includes_iof: Optional[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ Type of amount.
+ """
+ end_date: Optional[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
+ """
+ payment_schedule: Optional[
+ Literal[
+ "halfyearly", "monthly", "quarterly", "weekly", "yearly"
+ ]
+ ]
+ """
+ Schedule at which the future payments will be charged.
+ """
+ reference: Optional[str]
+ """
+ Subscription name displayed to buyers in their bank app.
+ """
+ start_date: Optional[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`.
+ """
+
class RevolutPay(StripeObject):
pass
@@ -223,6 +271,7 @@ class UsBankAccount(StripeObject):
nz_bank_account: Optional[NzBankAccount]
paypal: Optional[Paypal]
payto: Optional[Payto]
+ pix: Optional[Pix]
revolut_pay: Optional[RevolutPay]
sepa_debit: Optional[SepaDebit]
type: str
@@ -245,6 +294,7 @@ class UsBankAccount(StripeObject):
"nz_bank_account": NzBankAccount,
"paypal": Paypal,
"payto": Payto,
+ "pix": Pix,
"revolut_pay": RevolutPay,
"sepa_debit": SepaDebit,
"us_bank_account": UsBankAccount,
@@ -293,6 +343,46 @@ class SingleUse(StripeObject):
The type of the mandate.
"""
+ @classmethod
+ def list(
+ cls, **params: Unpack["MandateListParams"]
+ ) -> ListObject["Mandate"]:
+ """
+ Retrieves a list of Mandates for a given PaymentMethod.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["MandateListParams"]
+ ) -> ListObject["Mandate"]:
+ """
+ Retrieves a list of Mandates for a given PaymentMethod.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
@classmethod
def retrieve(
cls, id: str, **params: Unpack["MandateRetrieveParams"]
diff --git a/stripe/_mandate_service.py b/stripe/_mandate_service.py
index 265674ba8..429ce66b7 100644
--- a/stripe/_mandate_service.py
+++ b/stripe/_mandate_service.py
@@ -6,12 +6,52 @@
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
+ from stripe._list_object import ListObject
from stripe._mandate import Mandate
from stripe._request_options import RequestOptions
+ from stripe.params._mandate_list_params import MandateListParams
from stripe.params._mandate_retrieve_params import MandateRetrieveParams
class MandateService(StripeService):
+ def list(
+ self,
+ params: "MandateListParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Mandate]":
+ """
+ Retrieves a list of Mandates for a given PaymentMethod.
+ """
+ return cast(
+ "ListObject[Mandate]",
+ self._request(
+ "get",
+ "/v1/mandates",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: "MandateListParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Mandate]":
+ """
+ Retrieves a list of Mandates for a given PaymentMethod.
+ """
+ return cast(
+ "ListObject[Mandate]",
+ await self._request_async(
+ "get",
+ "/v1/mandates",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
def retrieve(
self,
mandate: str,
diff --git a/stripe/_margin.py b/stripe/_margin.py
new file mode 100644
index 000000000..4274d6974
--- /dev/null
+++ b/stripe/_margin.py
@@ -0,0 +1,194 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._createable_api_resource import CreateableAPIResource
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._updateable_api_resource import UpdateableAPIResource
+from stripe._util import sanitize_id
+from typing import ClassVar, Dict, Optional, cast
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params._margin_create_params import MarginCreateParams
+ from stripe.params._margin_list_params import MarginListParams
+ from stripe.params._margin_modify_params import MarginModifyParams
+ from stripe.params._margin_retrieve_params import MarginRetrieveParams
+
+
+class Margin(
+ CreateableAPIResource["Margin"],
+ ListableAPIResource["Margin"],
+ UpdateableAPIResource["Margin"],
+):
+ """
+ A (partner) margin represents a specific discount distributed in partner reseller programs to business partners who
+ resell products and services and earn a discount (margin) for doing so.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["margin"]] = "margin"
+ active: bool
+ """
+ Whether the margin can be applied to invoices, invoice items, or invoice line items. Defaults to `true`.
+ """
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ name: Optional[str]
+ """
+ Name of the margin that's displayed on, for example, invoices.
+ """
+ object: Literal["margin"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ percent_off: float
+ """
+ Percent that will be taken off the subtotal before tax (after all other discounts and promotions) of any invoice to which the margin is applied.
+ """
+ updated: int
+ """
+ Time at which the object was last updated. Measured in seconds since the Unix epoch.
+ """
+
+ @classmethod
+ def create(cls, **params: Unpack["MarginCreateParams"]) -> "Margin":
+ """
+ Create a margin object to be used with invoices, invoice items, and invoice line items for a customer to represent a partner discount. A margin has a percent_off which is the percent that will be taken off the subtotal after all items and other discounts and promotions) of any invoices for a customer. Calculation of prorations do not include any partner margins applied on the original invoice item.
+ """
+ return cast(
+ "Margin",
+ cls._static_request(
+ "post",
+ cls.class_url(),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def create_async(
+ cls, **params: Unpack["MarginCreateParams"]
+ ) -> "Margin":
+ """
+ Create a margin object to be used with invoices, invoice items, and invoice line items for a customer to represent a partner discount. A margin has a percent_off which is the percent that will be taken off the subtotal after all items and other discounts and promotions) of any invoices for a customer. Calculation of prorations do not include any partner margins applied on the original invoice item.
+ """
+ return cast(
+ "Margin",
+ await cls._static_request_async(
+ "post",
+ cls.class_url(),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def list(
+ cls, **params: Unpack["MarginListParams"]
+ ) -> ListObject["Margin"]:
+ """
+ Retrieve a list of your margins.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["MarginListParams"]
+ ) -> ListObject["Margin"]:
+ """
+ Retrieve a list of your margins.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def modify(
+ cls, id: str, **params: Unpack["MarginModifyParams"]
+ ) -> "Margin":
+ """
+ Update the specified margin object. Certain fields of the margin object are not editable.
+ """
+ url = "%s/%s" % (cls.class_url(), sanitize_id(id))
+ return cast(
+ "Margin",
+ cls._static_request(
+ "post",
+ url,
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def modify_async(
+ cls, id: str, **params: Unpack["MarginModifyParams"]
+ ) -> "Margin":
+ """
+ Update the specified margin object. Certain fields of the margin object are not editable.
+ """
+ url = "%s/%s" % (cls.class_url(), sanitize_id(id))
+ return cast(
+ "Margin",
+ await cls._static_request_async(
+ "post",
+ url,
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["MarginRetrieveParams"]
+ ) -> "Margin":
+ """
+ Retrieve a margin object with the given ID.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["MarginRetrieveParams"]
+ ) -> "Margin":
+ """
+ Retrieve a margin object with the given ID.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ @classmethod
+ def class_url(cls):
+ return "/v1/billing/margins"
diff --git a/stripe/_margin_service.py b/stripe/_margin_service.py
new file mode 100644
index 000000000..c020b2e59
--- /dev/null
+++ b/stripe/_margin_service.py
@@ -0,0 +1,181 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._margin import Margin
+ from stripe._request_options import RequestOptions
+ from stripe.params._margin_create_params import MarginCreateParams
+ from stripe.params._margin_list_params import MarginListParams
+ from stripe.params._margin_retrieve_params import MarginRetrieveParams
+ from stripe.params._margin_update_params import MarginUpdateParams
+
+
+class MarginService(StripeService):
+ def list(
+ self,
+ params: Optional["MarginListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Margin]":
+ """
+ Retrieve a list of your margins.
+ """
+ return cast(
+ "ListObject[Margin]",
+ self._request(
+ "get",
+ "/v1/billing/margins",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["MarginListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Margin]":
+ """
+ Retrieve a list of your margins.
+ """
+ return cast(
+ "ListObject[Margin]",
+ await self._request_async(
+ "get",
+ "/v1/billing/margins",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "MarginCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Margin":
+ """
+ Create a margin object to be used with invoices, invoice items, and invoice line items for a customer to represent a partner discount. A margin has a percent_off which is the percent that will be taken off the subtotal after all items and other discounts and promotions) of any invoices for a customer. Calculation of prorations do not include any partner margins applied on the original invoice item.
+ """
+ return cast(
+ "Margin",
+ self._request(
+ "post",
+ "/v1/billing/margins",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "MarginCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Margin":
+ """
+ Create a margin object to be used with invoices, invoice items, and invoice line items for a customer to represent a partner discount. A margin has a percent_off which is the percent that will be taken off the subtotal after all items and other discounts and promotions) of any invoices for a customer. Calculation of prorations do not include any partner margins applied on the original invoice item.
+ """
+ return cast(
+ "Margin",
+ await self._request_async(
+ "post",
+ "/v1/billing/margins",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ margin: str,
+ params: Optional["MarginRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Margin":
+ """
+ Retrieve a margin object with the given ID.
+ """
+ return cast(
+ "Margin",
+ self._request(
+ "get",
+ "/v1/billing/margins/{margin}".format(
+ margin=sanitize_id(margin),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ margin: str,
+ params: Optional["MarginRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Margin":
+ """
+ Retrieve a margin object with the given ID.
+ """
+ return cast(
+ "Margin",
+ await self._request_async(
+ "get",
+ "/v1/billing/margins/{margin}".format(
+ margin=sanitize_id(margin),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ margin: str,
+ params: Optional["MarginUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Margin":
+ """
+ Update the specified margin object. Certain fields of the margin object are not editable.
+ """
+ return cast(
+ "Margin",
+ self._request(
+ "post",
+ "/v1/billing/margins/{margin}".format(
+ margin=sanitize_id(margin),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ margin: str,
+ params: Optional["MarginUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Margin":
+ """
+ Update the specified margin object. Certain fields of the margin object are not editable.
+ """
+ return cast(
+ "Margin",
+ await self._request_async(
+ "post",
+ "/v1/billing/margins/{margin}".format(
+ margin=sanitize_id(margin),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/_object_classes.py b/stripe/_object_classes.py
index a3e382179..b82e71fed 100644
--- a/stripe/_object_classes.py
+++ b/stripe/_object_classes.py
@@ -18,6 +18,7 @@
# Object classes: The beginning of the section generated from our OpenAPI spec
"account": ("stripe._account", "Account"),
"account_link": ("stripe._account_link", "AccountLink"),
+ "account_notice": ("stripe._account_notice", "AccountNotice"),
"account_session": ("stripe._account_session", "AccountSession"),
"apple_pay_domain": ("stripe._apple_pay_domain", "ApplePayDomain"),
"application": ("stripe._application", "Application"),
@@ -41,6 +42,14 @@
"stripe.billing._alert_triggered",
"AlertTriggered",
),
+ "billing.analytics.meter_usage": (
+ "stripe.billing.analytics._meter_usage",
+ "MeterUsage",
+ ),
+ "billing.analytics.meter_usage_row": (
+ "stripe.billing.analytics._meter_usage_row",
+ "MeterUsageRow",
+ ),
"billing.credit_balance_summary": (
"stripe.billing._credit_balance_summary",
"CreditBalanceSummary",
@@ -61,6 +70,18 @@
"MeterEventSummary",
),
"capability": ("stripe._capability", "Capability"),
+ "capital.financing_offer": (
+ "stripe.capital._financing_offer",
+ "FinancingOffer",
+ ),
+ "capital.financing_summary": (
+ "stripe.capital._financing_summary",
+ "FinancingSummary",
+ ),
+ "capital.financing_transaction": (
+ "stripe.capital._financing_transaction",
+ "FinancingTransaction",
+ ),
"card": ("stripe._card", "Card"),
"cash_balance": ("stripe._cash_balance", "CashBalance"),
"charge": ("stripe._charge", "Charge"),
@@ -110,6 +131,10 @@
"stripe.financial_connections._account",
"Account",
),
+ "financial_connections.account_inferred_balance": (
+ "stripe.financial_connections._account_inferred_balance",
+ "AccountInferredBalance",
+ ),
"financial_connections.account_owner": (
"stripe.financial_connections._account_owner",
"AccountOwner",
@@ -118,6 +143,10 @@
"stripe.financial_connections._account_ownership",
"AccountOwnership",
),
+ "financial_connections.institution": (
+ "stripe.financial_connections._institution",
+ "Institution",
+ ),
"financial_connections.session": (
"stripe.financial_connections._session",
"Session",
@@ -131,6 +160,7 @@
"stripe._funding_instructions",
"FundingInstructions",
),
+ "fx_quote": ("stripe._fx_quote", "FxQuote"),
"identity.verification_report": (
"stripe.identity._verification_report",
"VerificationReport",
@@ -153,7 +183,19 @@
),
"issuing.card": ("stripe.issuing._card", "Card"),
"issuing.cardholder": ("stripe.issuing._cardholder", "Cardholder"),
+ "issuing.credit_underwriting_record": (
+ "stripe.issuing._credit_underwriting_record",
+ "CreditUnderwritingRecord",
+ ),
"issuing.dispute": ("stripe.issuing._dispute", "Dispute"),
+ "issuing.dispute_settlement_detail": (
+ "stripe.issuing._dispute_settlement_detail",
+ "DisputeSettlementDetail",
+ ),
+ "issuing.fraud_liability_debit": (
+ "stripe.issuing._fraud_liability_debit",
+ "FraudLiabilityDebit",
+ ),
"issuing.personalization_design": (
"stripe.issuing._personalization_design",
"PersonalizationDesign",
@@ -162,11 +204,14 @@
"stripe.issuing._physical_bundle",
"PhysicalBundle",
),
+ "issuing.settlement": ("stripe.issuing._settlement", "Settlement"),
"issuing.token": ("stripe.issuing._token", "Token"),
"issuing.transaction": ("stripe.issuing._transaction", "Transaction"),
"item": ("stripe._line_item", "LineItem"),
"login_link": ("stripe._login_link", "LoginLink"),
"mandate": ("stripe._mandate", "Mandate"),
+ "margin": ("stripe._margin", "Margin"),
+ "order": ("stripe._order", "Order"),
"payment_attempt_record": (
"stripe._payment_attempt_record",
"PaymentAttemptRecord",
@@ -191,10 +236,24 @@
"person": ("stripe._person", "Person"),
"plan": ("stripe._plan", "Plan"),
"price": ("stripe._price", "Price"),
+ "privacy.redaction_job": ("stripe.privacy._redaction_job", "RedactionJob"),
+ "privacy.redaction_job_validation_error": (
+ "stripe.privacy._redaction_job_validation_error",
+ "RedactionJobValidationError",
+ ),
"product": ("stripe._product", "Product"),
"product_feature": ("stripe._product_feature", "ProductFeature"),
"promotion_code": ("stripe._promotion_code", "PromotionCode"),
"quote": ("stripe._quote", "Quote"),
+ "quote_line": ("stripe._quote_line", "QuoteLine"),
+ "quote_preview_invoice": (
+ "stripe._quote_preview_invoice",
+ "QuotePreviewInvoice",
+ ),
+ "quote_preview_subscription_schedule": (
+ "stripe._quote_preview_subscription_schedule",
+ "QuotePreviewSubscriptionSchedule",
+ ),
"radar.early_fraud_warning": (
"stripe.radar._early_fraud_warning",
"EarlyFraudWarning",
@@ -207,6 +266,9 @@
"refund": ("stripe._refund", "Refund"),
"reporting.report_run": ("stripe.reporting._report_run", "ReportRun"),
"reporting.report_type": ("stripe.reporting._report_type", "ReportType"),
+ "reserve.hold": ("stripe.reserve._hold", "Hold"),
+ "reserve.plan": ("stripe.reserve._plan", "Plan"),
+ "reserve.release": ("stripe.reserve._release", "Release"),
"reserve_transaction": (
"stripe._reserve_transaction",
"ReserveTransaction",
@@ -238,6 +300,7 @@
"stripe.tax._calculation_line_item",
"CalculationLineItem",
),
+ "tax.form": ("stripe.tax._form", "Form"),
"tax.registration": ("stripe.tax._registration", "Registration"),
"tax.settings": ("stripe.tax._settings", "Settings"),
"tax.transaction": ("stripe.tax._transaction", "Transaction"),
@@ -266,6 +329,10 @@
"OnboardingLink",
),
"terminal.reader": ("stripe.terminal._reader", "Reader"),
+ "terminal.reader_collected_data": (
+ "stripe.terminal._reader_collected_data",
+ "ReaderCollectedData",
+ ),
"test_helpers.test_clock": (
"stripe.test_helpers._test_clock",
"TestClock",
@@ -320,6 +387,23 @@
V2_OBJECT_CLASSES: Dict[str, Tuple[str, str]] = {
# V2 Object classes: The beginning of the section generated from our OpenAPI spec
+ "v2.billing.bill_setting": (
+ "stripe.v2.billing._bill_setting",
+ "BillSetting",
+ ),
+ "v2.billing.bill_setting_version": (
+ "stripe.v2.billing._bill_setting_version",
+ "BillSettingVersion",
+ ),
+ "v2.billing.cadence": ("stripe.v2.billing._cadence", "Cadence"),
+ "v2.billing.collection_setting": (
+ "stripe.v2.billing._collection_setting",
+ "CollectionSetting",
+ ),
+ "v2.billing.collection_setting_version": (
+ "stripe.v2.billing._collection_setting_version",
+ "CollectionSettingVersion",
+ ),
"v2.billing.meter_event": ("stripe.v2.billing._meter_event", "MeterEvent"),
"v2.billing.meter_event_adjustment": (
"stripe.v2.billing._meter_event_adjustment",
@@ -329,6 +413,7 @@
"stripe.v2.billing._meter_event_session",
"MeterEventSession",
),
+ "v2.billing.profile": ("stripe.v2.billing._profile", "Profile"),
"v2.core.account": ("stripe.v2.core._account", "Account"),
"v2.core.account_link": ("stripe.v2.core._account_link", "AccountLink"),
"v2.core.account_person": (
@@ -345,6 +430,78 @@
"stripe.v2.core._event_destination",
"EventDestination",
),
+ "v2.core.vault.gb_bank_account": (
+ "stripe.v2.core.vault._gb_bank_account",
+ "GbBankAccount",
+ ),
+ "v2.core.vault.us_bank_account": (
+ "stripe.v2.core.vault._us_bank_account",
+ "UsBankAccount",
+ ),
+ "financial_address_credit_simulation": (
+ "stripe.v2._financial_address_credit_simulation",
+ "FinancialAddressCreditSimulation",
+ ),
+ "financial_address_generated_microdeposits": (
+ "stripe.v2._financial_address_generated_microdeposits",
+ "FinancialAddressGeneratedMicrodeposits",
+ ),
+ "v2.money_management.adjustment": (
+ "stripe.v2.money_management._adjustment",
+ "Adjustment",
+ ),
+ "v2.money_management.financial_account": (
+ "stripe.v2.money_management._financial_account",
+ "FinancialAccount",
+ ),
+ "v2.money_management.financial_address": (
+ "stripe.v2.money_management._financial_address",
+ "FinancialAddress",
+ ),
+ "v2.money_management.inbound_transfer": (
+ "stripe.v2.money_management._inbound_transfer",
+ "InboundTransfer",
+ ),
+ "v2.money_management.outbound_payment": (
+ "stripe.v2.money_management._outbound_payment",
+ "OutboundPayment",
+ ),
+ "v2.money_management.outbound_payment_quote": (
+ "stripe.v2.money_management._outbound_payment_quote",
+ "OutboundPaymentQuote",
+ ),
+ "v2.money_management.outbound_setup_intent": (
+ "stripe.v2.money_management._outbound_setup_intent",
+ "OutboundSetupIntent",
+ ),
+ "v2.money_management.outbound_transfer": (
+ "stripe.v2.money_management._outbound_transfer",
+ "OutboundTransfer",
+ ),
+ "v2.money_management.payout_method": (
+ "stripe.v2.money_management._payout_method",
+ "PayoutMethod",
+ ),
+ "v2.money_management.payout_methods_bank_account_spec": (
+ "stripe.v2.money_management._payout_methods_bank_account_spec",
+ "PayoutMethodsBankAccountSpec",
+ ),
+ "v2.money_management.received_credit": (
+ "stripe.v2.money_management._received_credit",
+ "ReceivedCredit",
+ ),
+ "v2.money_management.received_debit": (
+ "stripe.v2.money_management._received_debit",
+ "ReceivedDebit",
+ ),
+ "v2.money_management.transaction": (
+ "stripe.v2.money_management._transaction",
+ "Transaction",
+ ),
+ "v2.money_management.transaction_entry": (
+ "stripe.v2.money_management._transaction_entry",
+ "TransactionEntry",
+ ),
# V2 Object classes: The end of the section generated from our OpenAPI spec
}
diff --git a/stripe/_order.py b/stripe/_order.py
new file mode 100644
index 000000000..fec2f9f49
--- /dev/null
+++ b/stripe/_order.py
@@ -0,0 +1,1608 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._createable_api_resource import CreateableAPIResource
+from stripe._expandable_field import ExpandableField
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._stripe_object import StripeObject
+from stripe._updateable_api_resource import UpdateableAPIResource
+from stripe._util import class_method_variant, sanitize_id
+from typing import ClassVar, Dict, List, Optional, cast, overload
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._account import Account
+ from stripe._application import Application
+ from stripe._customer import Customer
+ from stripe._discount import Discount as DiscountResource
+ from stripe._line_item import LineItem as LineItemResource
+ from stripe._payment_intent import PaymentIntent
+ from stripe._shipping_rate import ShippingRate
+ from stripe._tax_rate import TaxRate
+ from stripe.params._order_cancel_params import OrderCancelParams
+ from stripe.params._order_create_params import OrderCreateParams
+ from stripe.params._order_list_line_items_params import (
+ OrderListLineItemsParams,
+ )
+ from stripe.params._order_list_params import OrderListParams
+ from stripe.params._order_modify_params import OrderModifyParams
+ from stripe.params._order_reopen_params import OrderReopenParams
+ from stripe.params._order_retrieve_params import OrderRetrieveParams
+ from stripe.params._order_submit_params import OrderSubmitParams
+
+
+class Order(
+ CreateableAPIResource["Order"],
+ ListableAPIResource["Order"],
+ UpdateableAPIResource["Order"],
+):
+ """
+ An Order describes a purchase being made by a customer, including the
+ products & quantities being purchased, the order status, the payment information,
+ and the billing/shipping details.
+
+ Related guide: [Orders overview](https://stripe.com/docs/orders)
+ """
+
+ OBJECT_NAME: ClassVar[Literal["order"]] = "order"
+
+ class AutomaticTax(StripeObject):
+ enabled: bool
+ """
+ Whether Stripe automatically computes tax on this Order.
+ """
+ status: Optional[
+ Literal["complete", "failed", "requires_location_inputs"]
+ ]
+ """
+ The status of the most recent automated tax calculation for this Order.
+ """
+
+ class BillingDetails(StripeObject):
+ class Address(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ address: Optional[Address]
+ """
+ Billing address for the order.
+ """
+ email: Optional[str]
+ """
+ Email address for the order.
+ """
+ name: Optional[str]
+ """
+ Full name for the order.
+ """
+ phone: Optional[str]
+ """
+ Billing phone number for the order (including extension).
+ """
+ _inner_class_types = {"address": Address}
+
+ class Payment(StripeObject):
+ class Settings(StripeObject):
+ class AutomaticPaymentMethods(StripeObject):
+ enabled: bool
+ """
+ Whether this Order has been opted into managing payment method types via the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
+ """
+
+ class PaymentMethodOptions(StripeObject):
+ class AcssDebit(StripeObject):
+ class MandateOptions(StripeObject):
+ custom_mandate_url: Optional[str]
+ """
+ A URL for custom mandate text
+ """
+ interval_description: Optional[str]
+ """
+ Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
+ """
+ payment_schedule: Optional[
+ Literal["combined", "interval", "sporadic"]
+ ]
+ """
+ Payment schedule for the mandate.
+ """
+ transaction_type: Optional[
+ Literal["business", "personal"]
+ ]
+ """
+ Transaction type of the mandate.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ setup_future_usage: Optional[
+ Literal["none", "off_session", "on_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+ target_date: Optional[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+ verification_method: Optional[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Bank account verification method.
+ """
+ _inner_class_types = {"mandate_options": MandateOptions}
+
+ class AfterpayClearpay(StripeObject):
+ capture_method: Optional[
+ Literal["automatic", "automatic_async", "manual"]
+ ]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+ reference: Optional[str]
+ """
+ Order identifier shown to the user in Afterpay's online portal. We recommend using a value that helps you answer any questions a customer might have about the payment. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
+ """
+ setup_future_usage: Optional[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with the payment method.
+
+ Providing this parameter will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
+
+ When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
+ """
+
+ class Alipay(StripeObject):
+ setup_future_usage: Optional[
+ Literal["none", "off_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+ class Bancontact(StripeObject):
+ preferred_language: Literal["de", "en", "fr", "nl"]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+ setup_future_usage: Optional[
+ Literal["none", "off_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+ class Card(StripeObject):
+ capture_method: Literal[
+ "automatic", "automatic_async", "manual"
+ ]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+ setup_future_usage: Optional[
+ Literal["none", "off_session", "on_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with the payment method.
+
+ Providing this parameter will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
+
+ When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
+ """
+
+ class CustomerBalance(StripeObject):
+ class BankTransfer(StripeObject):
+ class EuBankTransfer(StripeObject):
+ country: Literal[
+ "BE", "DE", "ES", "FR", "IE", "NL"
+ ]
+ """
+ The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ """
+
+ eu_bank_transfer: Optional[EuBankTransfer]
+ requested_address_types: Optional[
+ List[
+ Literal[
+ "aba",
+ "iban",
+ "sepa",
+ "sort_code",
+ "spei",
+ "swift",
+ "zengin",
+ ]
+ ]
+ ]
+ """
+ List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
+
+ Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
+ """
+ type: Optional[
+ Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ ]
+ """
+ The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
+ """
+ _inner_class_types = {
+ "eu_bank_transfer": EuBankTransfer,
+ }
+
+ bank_transfer: Optional[BankTransfer]
+ funding_type: Optional[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ """
+ setup_future_usage: Optional[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+ _inner_class_types = {"bank_transfer": BankTransfer}
+
+ class Ideal(StripeObject):
+ setup_future_usage: Optional[
+ Literal["none", "off_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+ class Klarna(StripeObject):
+ capture_method: Optional[Literal["manual"]]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+ preferred_locale: Optional[str]
+ """
+ Preferred locale of the Klarna checkout page that the customer is redirected to.
+ """
+ setup_future_usage: Optional[
+ Literal["none", "off_session", "on_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+ class Link(StripeObject):
+ capture_method: Optional[Literal["manual"]]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+ persistent_token: Optional[str]
+ """
+ [Deprecated] This is a legacy parameter that no longer has any function.
+ """
+ setup_future_usage: Optional[
+ Literal["none", "off_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+ class Oxxo(StripeObject):
+ expires_after_days: int
+ """
+ The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
+ """
+ setup_future_usage: Optional[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+ class P24(StripeObject):
+ setup_future_usage: Optional[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+ class Paypal(StripeObject):
+ class LineItem(StripeObject):
+ class Tax(StripeObject):
+ amount: int
+ """
+ The tax for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+ behavior: Literal["exclusive", "inclusive"]
+ """
+ The tax behavior for the line item.
+ """
+
+ category: Optional[
+ Literal[
+ "digital_goods", "donation", "physical_goods"
+ ]
+ ]
+ """
+ Type of the line item.
+ """
+ description: Optional[str]
+ """
+ Description of the line item.
+ """
+ name: str
+ """
+ Descriptive name of the line item.
+ """
+ quantity: int
+ """
+ Quantity of the line item. Cannot be a negative number.
+ """
+ sku: Optional[str]
+ """
+ Client facing stock keeping unit, article number or similar.
+ """
+ sold_by: Optional[str]
+ """
+ The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
+ """
+ tax: Optional[Tax]
+ unit_amount: int
+ """
+ Price for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+ _inner_class_types = {"tax": Tax}
+
+ capture_method: Optional[Literal["manual"]]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+ line_items: Optional[List[LineItem]]
+ """
+ The line items purchased by the customer.
+ """
+ preferred_locale: Optional[str]
+ """
+ Preferred locale of the PayPal checkout page that the customer is redirected to.
+ """
+ reference: Optional[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
+ reference_id: Optional[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
+ setup_future_usage: Optional[
+ Literal["none", "off_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+ subsellers: Optional[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
+ _inner_class_types = {"line_items": LineItem}
+
+ class SepaDebit(StripeObject):
+ class MandateOptions(StripeObject):
+ reference_prefix: Optional[str]
+ """
+ Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ setup_future_usage: Optional[
+ Literal["none", "off_session", "on_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+ target_date: Optional[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+ _inner_class_types = {"mandate_options": MandateOptions}
+
+ class Sofort(StripeObject):
+ preferred_language: Optional[
+ Literal["de", "en", "es", "fr", "it", "nl", "pl"]
+ ]
+ """
+ Preferred language of the SOFORT authorization page that the customer is redirected to.
+ """
+ setup_future_usage: Optional[
+ Literal["none", "off_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+ class WechatPay(StripeObject):
+ app_id: Optional[str]
+ """
+ The app ID registered with WeChat Pay. Only required when client is ios or android.
+ """
+ client: Optional[Literal["android", "ios", "web"]]
+ """
+ The client type that the end customer will pay from
+ """
+ setup_future_usage: Optional[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+ acss_debit: Optional[AcssDebit]
+ afterpay_clearpay: Optional[AfterpayClearpay]
+ alipay: Optional[Alipay]
+ bancontact: Optional[Bancontact]
+ card: Optional[Card]
+ customer_balance: Optional[CustomerBalance]
+ ideal: Optional[Ideal]
+ klarna: Optional[Klarna]
+ link: Optional[Link]
+ oxxo: Optional[Oxxo]
+ p24: Optional[P24]
+ paypal: Optional[Paypal]
+ sepa_debit: Optional[SepaDebit]
+ sofort: Optional[Sofort]
+ wechat_pay: Optional[WechatPay]
+ _inner_class_types = {
+ "acss_debit": AcssDebit,
+ "afterpay_clearpay": AfterpayClearpay,
+ "alipay": Alipay,
+ "bancontact": Bancontact,
+ "card": Card,
+ "customer_balance": CustomerBalance,
+ "ideal": Ideal,
+ "klarna": Klarna,
+ "link": Link,
+ "oxxo": Oxxo,
+ "p24": P24,
+ "paypal": Paypal,
+ "sepa_debit": SepaDebit,
+ "sofort": Sofort,
+ "wechat_pay": WechatPay,
+ }
+
+ class TransferData(StripeObject):
+ amount: Optional[int]
+ """
+ The amount that will be transferred automatically when the order is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field.
+ """
+ destination: ExpandableField["Account"]
+ """
+ ID of the Connected account receiving the transfer.
+ """
+
+ application_fee_amount: Optional[int]
+ """
+ The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.
+ """
+ automatic_payment_methods: Optional[AutomaticPaymentMethods]
+ """
+ Indicates whether order has been opted into using [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods) to manage payment method types.
+ """
+ payment_method_options: Optional[PaymentMethodOptions]
+ """
+ PaymentMethod-specific configuration to provide to the order's PaymentIntent.
+ """
+ payment_method_types: Optional[
+ List[
+ Literal[
+ "acss_debit",
+ "afterpay_clearpay",
+ "alipay",
+ "au_becs_debit",
+ "bacs_debit",
+ "bancontact",
+ "card",
+ "customer_balance",
+ "eps",
+ "fpx",
+ "giropay",
+ "grabpay",
+ "ideal",
+ "klarna",
+ "link",
+ "oxxo",
+ "p24",
+ "paypal",
+ "sepa_debit",
+ "sofort",
+ "wechat_pay",
+ ]
+ ]
+ ]
+ """
+ The list of [payment method types](https://docs.stripe.com/payments/payment-methods/overview) to provide to the order's PaymentIntent. Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
+ """
+ return_url: Optional[str]
+ """
+ The URL to redirect the customer to after they authenticate their payment.
+ """
+ statement_descriptor: Optional[str]
+ """
+ For non-card charges, you can use this value as the complete description that appears on your customers' statements. Must contain at least one letter, maximum 22 characters.
+ """
+ statement_descriptor_suffix: Optional[str]
+ """
+ Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
+ """
+ transfer_data: Optional[TransferData]
+ """
+ Provides configuration for completing a transfer for the order after it is paid.
+ """
+ _inner_class_types = {
+ "automatic_payment_methods": AutomaticPaymentMethods,
+ "payment_method_options": PaymentMethodOptions,
+ "transfer_data": TransferData,
+ }
+
+ payment_intent: Optional[ExpandableField["PaymentIntent"]]
+ """
+ ID of the payment intent associated with this order. Null when the order is `open`.
+ """
+ settings: Optional[Settings]
+ """
+ Settings describing how the order should configure generated PaymentIntents.
+ """
+ status: Optional[
+ Literal[
+ "canceled",
+ "complete",
+ "not_required",
+ "processing",
+ "requires_action",
+ "requires_capture",
+ "requires_confirmation",
+ "requires_payment_method",
+ ]
+ ]
+ """
+ The status of the underlying payment associated with this order, if any. Null when the order is `open`.
+ """
+ _inner_class_types = {"settings": Settings}
+
+ class ShippingCost(StripeObject):
+ class Tax(StripeObject):
+ amount: int
+ """
+ Amount of tax applied for this rate.
+ """
+ rate: "TaxRate"
+ """
+ Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
+
+ Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates)
+ """
+ taxability_reason: Optional[
+ Literal[
+ "customer_exempt",
+ "not_collecting",
+ "not_subject_to_tax",
+ "not_supported",
+ "portion_product_exempt",
+ "portion_reduced_rated",
+ "portion_standard_rated",
+ "product_exempt",
+ "product_exempt_holiday",
+ "proportionally_rated",
+ "reduced_rated",
+ "reverse_charge",
+ "standard_rated",
+ "taxable_basis_reduced",
+ "zero_rated",
+ ]
+ ]
+ """
+ The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
+ """
+ taxable_amount: Optional[int]
+ """
+ The amount on which tax is calculated, in cents (or local equivalent).
+ """
+
+ amount_subtotal: int
+ """
+ Total shipping cost before any discounts or taxes are applied.
+ """
+ amount_tax: int
+ """
+ Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.
+ """
+ amount_total: int
+ """
+ Total shipping cost after discounts and taxes are applied.
+ """
+ shipping_rate: Optional[ExpandableField["ShippingRate"]]
+ """
+ The ID of the ShippingRate for this order.
+ """
+ taxes: Optional[List[Tax]]
+ """
+ The taxes applied to the shipping rate.
+ """
+ _inner_class_types = {"taxes": Tax}
+
+ class ShippingDetails(StripeObject):
+ class Address(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ address: Optional[Address]
+ """
+ Recipient shipping address. Required if the order includes products that are shippable.
+ """
+ name: Optional[str]
+ """
+ Recipient name.
+ """
+ phone: Optional[str]
+ """
+ Recipient phone (including extension).
+ """
+ _inner_class_types = {"address": Address}
+
+ class TaxDetails(StripeObject):
+ class TaxId(StripeObject):
+ type: Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "bo_tin",
+ "br_cnpj",
+ "br_cpf",
+ "bs_tin",
+ "by_tin",
+ "ca_bn",
+ "ca_gst_hst",
+ "ca_pst_bc",
+ "ca_pst_mb",
+ "ca_pst_sk",
+ "ca_qst",
+ "cd_nif",
+ "ch_uid",
+ "ch_vat",
+ "cl_tin",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "gb_vat",
+ "ge_vat",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "ma_vat",
+ "md_vat",
+ "me_pib",
+ "mk_vat",
+ "mr_nif",
+ "mx_rfc",
+ "my_frp",
+ "my_itn",
+ "my_sst",
+ "ng_tin",
+ "no_vat",
+ "no_voec",
+ "np_pan",
+ "nz_gst",
+ "om_vat",
+ "pe_ruc",
+ "ph_tin",
+ "ro_tin",
+ "rs_pib",
+ "ru_inn",
+ "ru_kpp",
+ "sa_vat",
+ "sg_gst",
+ "sg_uen",
+ "si_tin",
+ "sn_ninea",
+ "sr_fin",
+ "sv_nit",
+ "th_vat",
+ "tj_tin",
+ "tr_tin",
+ "tw_vat",
+ "tz_vat",
+ "ua_vat",
+ "ug_tin",
+ "unknown",
+ "us_ein",
+ "uy_ruc",
+ "uz_tin",
+ "uz_vat",
+ "ve_rif",
+ "vn_tin",
+ "za_vat",
+ "zm_tin",
+ "zw_tin",
+ ]
+ """
+ The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
+ """
+ value: Optional[str]
+ """
+ The value of the tax ID.
+ """
+
+ tax_exempt: Literal["exempt", "none", "reverse"]
+ """
+ Describes the purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`.
+ """
+ tax_ids: List[TaxId]
+ """
+ The purchaser's tax IDs to be used in calculation of tax for this Order.
+ """
+ _inner_class_types = {"tax_ids": TaxId}
+
+ class TotalDetails(StripeObject):
+ class Breakdown(StripeObject):
+ class Discount(StripeObject):
+ amount: int
+ """
+ The amount discounted.
+ """
+ discount: "DiscountResource"
+ """
+ A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
+ It contains information about when the discount began, when it will end, and what it is applied to.
+
+ Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
+ """
+
+ class Tax(StripeObject):
+ amount: int
+ """
+ Amount of tax applied for this rate.
+ """
+ rate: "TaxRate"
+ """
+ Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
+
+ Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates)
+ """
+ taxability_reason: Optional[
+ Literal[
+ "customer_exempt",
+ "not_collecting",
+ "not_subject_to_tax",
+ "not_supported",
+ "portion_product_exempt",
+ "portion_reduced_rated",
+ "portion_standard_rated",
+ "product_exempt",
+ "product_exempt_holiday",
+ "proportionally_rated",
+ "reduced_rated",
+ "reverse_charge",
+ "standard_rated",
+ "taxable_basis_reduced",
+ "zero_rated",
+ ]
+ ]
+ """
+ The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
+ """
+ taxable_amount: Optional[int]
+ """
+ The amount on which tax is calculated, in cents (or local equivalent).
+ """
+
+ discounts: List[Discount]
+ """
+ The aggregated discounts.
+ """
+ taxes: List[Tax]
+ """
+ The aggregated tax amounts by rate.
+ """
+ _inner_class_types = {"discounts": Discount, "taxes": Tax}
+
+ amount_discount: int
+ """
+ This is the sum of all the discounts.
+ """
+ amount_shipping: Optional[int]
+ """
+ This is the sum of all the shipping amounts.
+ """
+ amount_tax: int
+ """
+ This is the sum of all the tax amounts.
+ """
+ breakdown: Optional[Breakdown]
+ _inner_class_types = {"breakdown": Breakdown}
+
+ amount_subtotal: int
+ """
+ Order cost before any discounts or taxes are applied. A positive integer representing the subtotal of the order in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency).
+ """
+ amount_total: int
+ """
+ Total order cost after discounts and taxes are applied. A positive integer representing the cost of the order in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). To submit an order, the total must be either 0 or at least $0.50 USD or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts).
+ """
+ application: Optional[ExpandableField["Application"]]
+ """
+ ID of the Connect application that created the Order, if any.
+ """
+ automatic_tax: Optional[AutomaticTax]
+ billing_details: Optional[BillingDetails]
+ """
+ Customer billing details associated with the order.
+ """
+ client_secret: Optional[str]
+ """
+ The client secret of this Order. Used for client-side retrieval using a publishable key.
+
+ The client secret can be used to complete a payment for an Order from your frontend. It should not be stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
+
+ Refer to our docs for [creating and processing an order](https://docs.stripe.com/orders-beta/create-and-process) to learn about how client_secret should be handled.
+ """
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ customer: Optional[ExpandableField["Customer"]]
+ """
+ The customer which this orders belongs to.
+ """
+ description: Optional[str]
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users.
+ """
+ discounts: Optional[List[ExpandableField["DiscountResource"]]]
+ """
+ The discounts applied to the order. Use `expand[]=discounts` to expand each discount.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ ip_address: Optional[str]
+ """
+ A recent IP address of the purchaser used for tax reporting and tax location inference.
+ """
+ line_items: Optional[ListObject["LineItemResource"]]
+ """
+ A list of line items the customer is ordering. Each line item includes information about the product, the quantity, and the resulting cost. There is a maximum of 100 line items.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ object: Literal["order"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ payment: Payment
+ shipping_cost: Optional[ShippingCost]
+ """
+ The details of the customer cost of shipping, including the customer chosen ShippingRate.
+ """
+ shipping_details: Optional[ShippingDetails]
+ """
+ Customer shipping information associated with the order.
+ """
+ status: Literal["canceled", "complete", "open", "processing", "submitted"]
+ """
+ The overall status of the order.
+ """
+ tax_details: Optional[TaxDetails]
+ total_details: TotalDetails
+
+ @classmethod
+ def _cls_cancel(
+ cls, id: str, **params: Unpack["OrderCancelParams"]
+ ) -> "Order":
+ """
+ Cancels the order as well as the payment intent if one is attached.
+ """
+ return cast(
+ "Order",
+ cls._static_request(
+ "post",
+ "/v1/orders/{id}/cancel".format(id=sanitize_id(id)),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def cancel(id: str, **params: Unpack["OrderCancelParams"]) -> "Order":
+ """
+ Cancels the order as well as the payment intent if one is attached.
+ """
+ ...
+
+ @overload
+ def cancel(self, **params: Unpack["OrderCancelParams"]) -> "Order":
+ """
+ Cancels the order as well as the payment intent if one is attached.
+ """
+ ...
+
+ @class_method_variant("_cls_cancel")
+ def cancel( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["OrderCancelParams"]
+ ) -> "Order":
+ """
+ Cancels the order as well as the payment intent if one is attached.
+ """
+ return cast(
+ "Order",
+ self._request(
+ "post",
+ "/v1/orders/{id}/cancel".format(
+ id=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_cancel_async(
+ cls, id: str, **params: Unpack["OrderCancelParams"]
+ ) -> "Order":
+ """
+ Cancels the order as well as the payment intent if one is attached.
+ """
+ return cast(
+ "Order",
+ await cls._static_request_async(
+ "post",
+ "/v1/orders/{id}/cancel".format(id=sanitize_id(id)),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def cancel_async(
+ id: str, **params: Unpack["OrderCancelParams"]
+ ) -> "Order":
+ """
+ Cancels the order as well as the payment intent if one is attached.
+ """
+ ...
+
+ @overload
+ async def cancel_async(
+ self, **params: Unpack["OrderCancelParams"]
+ ) -> "Order":
+ """
+ Cancels the order as well as the payment intent if one is attached.
+ """
+ ...
+
+ @class_method_variant("_cls_cancel_async")
+ async def cancel_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["OrderCancelParams"]
+ ) -> "Order":
+ """
+ Cancels the order as well as the payment intent if one is attached.
+ """
+ return cast(
+ "Order",
+ await self._request_async(
+ "post",
+ "/v1/orders/{id}/cancel".format(
+ id=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def create(cls, **params: Unpack["OrderCreateParams"]) -> "Order":
+ """
+ Creates a new open order object.
+ """
+ return cast(
+ "Order",
+ cls._static_request(
+ "post",
+ cls.class_url(),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def create_async(
+ cls, **params: Unpack["OrderCreateParams"]
+ ) -> "Order":
+ """
+ Creates a new open order object.
+ """
+ return cast(
+ "Order",
+ await cls._static_request_async(
+ "post",
+ cls.class_url(),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def list(cls, **params: Unpack["OrderListParams"]) -> ListObject["Order"]:
+ """
+ Returns a list of your orders. The orders are returned sorted by creation date, with the most recently created orders appearing first.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["OrderListParams"]
+ ) -> ListObject["Order"]:
+ """
+ Returns a list of your orders. The orders are returned sorted by creation date, with the most recently created orders appearing first.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def _cls_list_line_items(
+ cls, id: str, **params: Unpack["OrderListLineItemsParams"]
+ ) -> ListObject["LineItemResource"]:
+ """
+ When retrieving an order, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
+ """
+ return cast(
+ ListObject["LineItemResource"],
+ cls._static_request(
+ "get",
+ "/v1/orders/{id}/line_items".format(id=sanitize_id(id)),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def list_line_items(
+ id: str, **params: Unpack["OrderListLineItemsParams"]
+ ) -> ListObject["LineItemResource"]:
+ """
+ When retrieving an order, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
+ """
+ ...
+
+ @overload
+ def list_line_items(
+ self, **params: Unpack["OrderListLineItemsParams"]
+ ) -> ListObject["LineItemResource"]:
+ """
+ When retrieving an order, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
+ """
+ ...
+
+ @class_method_variant("_cls_list_line_items")
+ def list_line_items( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["OrderListLineItemsParams"]
+ ) -> ListObject["LineItemResource"]:
+ """
+ When retrieving an order, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
+ """
+ return cast(
+ ListObject["LineItemResource"],
+ self._request(
+ "get",
+ "/v1/orders/{id}/line_items".format(
+ id=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_list_line_items_async(
+ cls, id: str, **params: Unpack["OrderListLineItemsParams"]
+ ) -> ListObject["LineItemResource"]:
+ """
+ When retrieving an order, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
+ """
+ return cast(
+ ListObject["LineItemResource"],
+ await cls._static_request_async(
+ "get",
+ "/v1/orders/{id}/line_items".format(id=sanitize_id(id)),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def list_line_items_async(
+ id: str, **params: Unpack["OrderListLineItemsParams"]
+ ) -> ListObject["LineItemResource"]:
+ """
+ When retrieving an order, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
+ """
+ ...
+
+ @overload
+ async def list_line_items_async(
+ self, **params: Unpack["OrderListLineItemsParams"]
+ ) -> ListObject["LineItemResource"]:
+ """
+ When retrieving an order, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
+ """
+ ...
+
+ @class_method_variant("_cls_list_line_items_async")
+ async def list_line_items_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["OrderListLineItemsParams"]
+ ) -> ListObject["LineItemResource"]:
+ """
+ When retrieving an order, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
+ """
+ return cast(
+ ListObject["LineItemResource"],
+ await self._request_async(
+ "get",
+ "/v1/orders/{id}/line_items".format(
+ id=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def modify(cls, id: str, **params: Unpack["OrderModifyParams"]) -> "Order":
+ """
+ Updates the specific order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
+ """
+ url = "%s/%s" % (cls.class_url(), sanitize_id(id))
+ return cast(
+ "Order",
+ cls._static_request(
+ "post",
+ url,
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def modify_async(
+ cls, id: str, **params: Unpack["OrderModifyParams"]
+ ) -> "Order":
+ """
+ Updates the specific order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
+ """
+ url = "%s/%s" % (cls.class_url(), sanitize_id(id))
+ return cast(
+ "Order",
+ await cls._static_request_async(
+ "post",
+ url,
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def _cls_reopen(
+ cls, id: str, **params: Unpack["OrderReopenParams"]
+ ) -> "Order":
+ """
+ Reopens a submitted order.
+ """
+ return cast(
+ "Order",
+ cls._static_request(
+ "post",
+ "/v1/orders/{id}/reopen".format(id=sanitize_id(id)),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def reopen(id: str, **params: Unpack["OrderReopenParams"]) -> "Order":
+ """
+ Reopens a submitted order.
+ """
+ ...
+
+ @overload
+ def reopen(self, **params: Unpack["OrderReopenParams"]) -> "Order":
+ """
+ Reopens a submitted order.
+ """
+ ...
+
+ @class_method_variant("_cls_reopen")
+ def reopen( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["OrderReopenParams"]
+ ) -> "Order":
+ """
+ Reopens a submitted order.
+ """
+ return cast(
+ "Order",
+ self._request(
+ "post",
+ "/v1/orders/{id}/reopen".format(
+ id=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_reopen_async(
+ cls, id: str, **params: Unpack["OrderReopenParams"]
+ ) -> "Order":
+ """
+ Reopens a submitted order.
+ """
+ return cast(
+ "Order",
+ await cls._static_request_async(
+ "post",
+ "/v1/orders/{id}/reopen".format(id=sanitize_id(id)),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def reopen_async(
+ id: str, **params: Unpack["OrderReopenParams"]
+ ) -> "Order":
+ """
+ Reopens a submitted order.
+ """
+ ...
+
+ @overload
+ async def reopen_async(
+ self, **params: Unpack["OrderReopenParams"]
+ ) -> "Order":
+ """
+ Reopens a submitted order.
+ """
+ ...
+
+ @class_method_variant("_cls_reopen_async")
+ async def reopen_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["OrderReopenParams"]
+ ) -> "Order":
+ """
+ Reopens a submitted order.
+ """
+ return cast(
+ "Order",
+ await self._request_async(
+ "post",
+ "/v1/orders/{id}/reopen".format(
+ id=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["OrderRetrieveParams"]
+ ) -> "Order":
+ """
+ Retrieves the details of an existing order. Supply the unique order ID from either an order creation request or the order list, and Stripe will return the corresponding order information.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["OrderRetrieveParams"]
+ ) -> "Order":
+ """
+ Retrieves the details of an existing order. Supply the unique order ID from either an order creation request or the order list, and Stripe will return the corresponding order information.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ @classmethod
+ def _cls_submit(
+ cls, id: str, **params: Unpack["OrderSubmitParams"]
+ ) -> "Order":
+ """
+ Submitting an Order transitions the status to processing and creates a PaymentIntent object so the order can be paid. If the Order has an amount_total of 0, no PaymentIntent object will be created. Once the order is submitted, its contents cannot be changed, unless the [reopen](https://docs.stripe.com/api#reopen_order) method is called.
+ """
+ return cast(
+ "Order",
+ cls._static_request(
+ "post",
+ "/v1/orders/{id}/submit".format(id=sanitize_id(id)),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def submit(id: str, **params: Unpack["OrderSubmitParams"]) -> "Order":
+ """
+ Submitting an Order transitions the status to processing and creates a PaymentIntent object so the order can be paid. If the Order has an amount_total of 0, no PaymentIntent object will be created. Once the order is submitted, its contents cannot be changed, unless the [reopen](https://docs.stripe.com/api#reopen_order) method is called.
+ """
+ ...
+
+ @overload
+ def submit(self, **params: Unpack["OrderSubmitParams"]) -> "Order":
+ """
+ Submitting an Order transitions the status to processing and creates a PaymentIntent object so the order can be paid. If the Order has an amount_total of 0, no PaymentIntent object will be created. Once the order is submitted, its contents cannot be changed, unless the [reopen](https://docs.stripe.com/api#reopen_order) method is called.
+ """
+ ...
+
+ @class_method_variant("_cls_submit")
+ def submit( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["OrderSubmitParams"]
+ ) -> "Order":
+ """
+ Submitting an Order transitions the status to processing and creates a PaymentIntent object so the order can be paid. If the Order has an amount_total of 0, no PaymentIntent object will be created. Once the order is submitted, its contents cannot be changed, unless the [reopen](https://docs.stripe.com/api#reopen_order) method is called.
+ """
+ return cast(
+ "Order",
+ self._request(
+ "post",
+ "/v1/orders/{id}/submit".format(
+ id=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_submit_async(
+ cls, id: str, **params: Unpack["OrderSubmitParams"]
+ ) -> "Order":
+ """
+ Submitting an Order transitions the status to processing and creates a PaymentIntent object so the order can be paid. If the Order has an amount_total of 0, no PaymentIntent object will be created. Once the order is submitted, its contents cannot be changed, unless the [reopen](https://docs.stripe.com/api#reopen_order) method is called.
+ """
+ return cast(
+ "Order",
+ await cls._static_request_async(
+ "post",
+ "/v1/orders/{id}/submit".format(id=sanitize_id(id)),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def submit_async(
+ id: str, **params: Unpack["OrderSubmitParams"]
+ ) -> "Order":
+ """
+ Submitting an Order transitions the status to processing and creates a PaymentIntent object so the order can be paid. If the Order has an amount_total of 0, no PaymentIntent object will be created. Once the order is submitted, its contents cannot be changed, unless the [reopen](https://docs.stripe.com/api#reopen_order) method is called.
+ """
+ ...
+
+ @overload
+ async def submit_async(
+ self, **params: Unpack["OrderSubmitParams"]
+ ) -> "Order":
+ """
+ Submitting an Order transitions the status to processing and creates a PaymentIntent object so the order can be paid. If the Order has an amount_total of 0, no PaymentIntent object will be created. Once the order is submitted, its contents cannot be changed, unless the [reopen](https://docs.stripe.com/api#reopen_order) method is called.
+ """
+ ...
+
+ @class_method_variant("_cls_submit_async")
+ async def submit_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["OrderSubmitParams"]
+ ) -> "Order":
+ """
+ Submitting an Order transitions the status to processing and creates a PaymentIntent object so the order can be paid. If the Order has an amount_total of 0, no PaymentIntent object will be created. Once the order is submitted, its contents cannot be changed, unless the [reopen](https://docs.stripe.com/api#reopen_order) method is called.
+ """
+ return cast(
+ "Order",
+ await self._request_async(
+ "post",
+ "/v1/orders/{id}/submit".format(
+ id=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ _inner_class_types = {
+ "automatic_tax": AutomaticTax,
+ "billing_details": BillingDetails,
+ "payment": Payment,
+ "shipping_cost": ShippingCost,
+ "shipping_details": ShippingDetails,
+ "tax_details": TaxDetails,
+ "total_details": TotalDetails,
+ }
diff --git a/stripe/_order_line_item_service.py b/stripe/_order_line_item_service.py
new file mode 100644
index 000000000..e4ad860c9
--- /dev/null
+++ b/stripe/_order_line_item_service.py
@@ -0,0 +1,56 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._line_item import LineItem
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.params._order_line_item_list_params import (
+ OrderLineItemListParams,
+ )
+
+
+class OrderLineItemService(StripeService):
+ def list(
+ self,
+ id: str,
+ params: Optional["OrderLineItemListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[LineItem]":
+ """
+ When retrieving an order, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
+ """
+ return cast(
+ "ListObject[LineItem]",
+ self._request(
+ "get",
+ "/v1/orders/{id}/line_items".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ id: str,
+ params: Optional["OrderLineItemListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[LineItem]":
+ """
+ When retrieving an order, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
+ """
+ return cast(
+ "ListObject[LineItem]",
+ await self._request_async(
+ "get",
+ "/v1/orders/{id}/line_items".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/_order_service.py b/stripe/_order_service.py
new file mode 100644
index 000000000..b12abd9f3
--- /dev/null
+++ b/stripe/_order_service.py
@@ -0,0 +1,323 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._order import Order
+ from stripe._order_line_item_service import OrderLineItemService
+ from stripe._request_options import RequestOptions
+ from stripe.params._order_cancel_params import OrderCancelParams
+ from stripe.params._order_create_params import OrderCreateParams
+ from stripe.params._order_list_params import OrderListParams
+ from stripe.params._order_reopen_params import OrderReopenParams
+ from stripe.params._order_retrieve_params import OrderRetrieveParams
+ from stripe.params._order_submit_params import OrderSubmitParams
+ from stripe.params._order_update_params import OrderUpdateParams
+
+_subservices = {
+ "line_items": ["stripe._order_line_item_service", "OrderLineItemService"],
+}
+
+
+class OrderService(StripeService):
+ line_items: "OrderLineItemService"
+
+ def __init__(self, requestor):
+ super().__init__(requestor)
+
+ def __getattr__(self, name):
+ try:
+ import_from, service = _subservices[name]
+ service_class = getattr(
+ import_module(import_from),
+ service,
+ )
+ setattr(
+ self,
+ name,
+ service_class(self._requestor),
+ )
+ return getattr(self, name)
+ except KeyError:
+ raise AttributeError()
+
+ def list(
+ self,
+ params: Optional["OrderListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Order]":
+ """
+ Returns a list of your orders. The orders are returned sorted by creation date, with the most recently created orders appearing first.
+ """
+ return cast(
+ "ListObject[Order]",
+ self._request(
+ "get",
+ "/v1/orders",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["OrderListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Order]":
+ """
+ Returns a list of your orders. The orders are returned sorted by creation date, with the most recently created orders appearing first.
+ """
+ return cast(
+ "ListObject[Order]",
+ await self._request_async(
+ "get",
+ "/v1/orders",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "OrderCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Order":
+ """
+ Creates a new open order object.
+ """
+ return cast(
+ "Order",
+ self._request(
+ "post",
+ "/v1/orders",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "OrderCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Order":
+ """
+ Creates a new open order object.
+ """
+ return cast(
+ "Order",
+ await self._request_async(
+ "post",
+ "/v1/orders",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["OrderRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Order":
+ """
+ Retrieves the details of an existing order. Supply the unique order ID from either an order creation request or the order list, and Stripe will return the corresponding order information.
+ """
+ return cast(
+ "Order",
+ self._request(
+ "get",
+ "/v1/orders/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["OrderRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Order":
+ """
+ Retrieves the details of an existing order. Supply the unique order ID from either an order creation request or the order list, and Stripe will return the corresponding order information.
+ """
+ return cast(
+ "Order",
+ await self._request_async(
+ "get",
+ "/v1/orders/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ id: str,
+ params: Optional["OrderUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Order":
+ """
+ Updates the specific order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
+ """
+ return cast(
+ "Order",
+ self._request(
+ "post",
+ "/v1/orders/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ id: str,
+ params: Optional["OrderUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Order":
+ """
+ Updates the specific order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
+ """
+ return cast(
+ "Order",
+ await self._request_async(
+ "post",
+ "/v1/orders/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def cancel(
+ self,
+ id: str,
+ params: Optional["OrderCancelParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Order":
+ """
+ Cancels the order as well as the payment intent if one is attached.
+ """
+ return cast(
+ "Order",
+ self._request(
+ "post",
+ "/v1/orders/{id}/cancel".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def cancel_async(
+ self,
+ id: str,
+ params: Optional["OrderCancelParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Order":
+ """
+ Cancels the order as well as the payment intent if one is attached.
+ """
+ return cast(
+ "Order",
+ await self._request_async(
+ "post",
+ "/v1/orders/{id}/cancel".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def reopen(
+ self,
+ id: str,
+ params: Optional["OrderReopenParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Order":
+ """
+ Reopens a submitted order.
+ """
+ return cast(
+ "Order",
+ self._request(
+ "post",
+ "/v1/orders/{id}/reopen".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def reopen_async(
+ self,
+ id: str,
+ params: Optional["OrderReopenParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Order":
+ """
+ Reopens a submitted order.
+ """
+ return cast(
+ "Order",
+ await self._request_async(
+ "post",
+ "/v1/orders/{id}/reopen".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def submit(
+ self,
+ id: str,
+ params: "OrderSubmitParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Order":
+ """
+ Submitting an Order transitions the status to processing and creates a PaymentIntent object so the order can be paid. If the Order has an amount_total of 0, no PaymentIntent object will be created. Once the order is submitted, its contents cannot be changed, unless the [reopen](https://docs.stripe.com/api#reopen_order) method is called.
+ """
+ return cast(
+ "Order",
+ self._request(
+ "post",
+ "/v1/orders/{id}/submit".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def submit_async(
+ self,
+ id: str,
+ params: "OrderSubmitParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Order":
+ """
+ Submitting an Order transitions the status to processing and creates a PaymentIntent object so the order can be paid. If the Order has an amount_total of 0, no PaymentIntent object will be created. Once the order is submitted, its contents cannot be changed, unless the [reopen](https://docs.stripe.com/api#reopen_order) method is called.
+ """
+ return cast(
+ "Order",
+ await self._request_async(
+ "post",
+ "/v1/orders/{id}/submit".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py
index 95c44c9ca..894acec32 100644
--- a/stripe/_payment_attempt_record.py
+++ b/stripe/_payment_attempt_record.py
@@ -252,6 +252,10 @@ class Card(StripeObject):
"""
Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
"""
+ brand_product: Optional[str]
+ """
+ The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
+ """
country: Optional[str]
"""
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
@@ -967,12 +971,37 @@ class Giropay(StripeObject):
Giropay rarely provides this information so the attribute is usually empty.
"""
+ class Gopay(StripeObject):
+ pass
+
class Grabpay(StripeObject):
transaction_id: Optional[str]
"""
Unique transaction id generated by GrabPay
"""
+ class IdBankTransfer(StripeObject):
+ account_number: str
+ """
+ Account number of the bank account to transfer funds to.
+ """
+ bank: Literal["bca", "bni", "bri", "cimb", "permata"]
+ """
+ Bank where the account is located.
+ """
+ bank_code: Optional[str]
+ """
+ Local bank code of the bank.
+ """
+ bank_name: Optional[str]
+ """
+ Name of the bank associated with the bank account.
+ """
+ display_name: Optional[str]
+ """
+ Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
+ """
+
class Ideal(StripeObject):
bank: Optional[
Literal[
@@ -1454,6 +1483,58 @@ class SellerProtection(StripeObject):
Indicates whether the transaction is eligible for PayPal's seller protection.
"""
+ class Shipping(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ class VerifiedAddress(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
country: Optional[str]
"""
Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1476,11 +1557,40 @@ class SellerProtection(StripeObject):
"""
The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
"""
+ shipping: Optional[Shipping]
+ """
+ The shipping address for the customer, as supplied by the merchant at the point of payment
+ execution. This shipping address will not be updated if the merchant updates the shipping
+ address on the PaymentIntent after the PaymentIntent was successfully confirmed.
+ """
transaction_id: Optional[str]
"""
A unique ID generated by PayPal for this transaction.
"""
- _inner_class_types = {"seller_protection": SellerProtection}
+ verified_address: Optional[VerifiedAddress]
+ """
+ The shipping address for the customer, as supplied by the merchant at the point of payment
+ execution. This shipping address will not be updated if the merchant updates the shipping
+ address on the PaymentIntent after the PaymentIntent was successfully confirmed.
+ """
+ verified_email: Optional[str]
+ """
+ Owner's verified email. Values are verified or provided by PayPal directly
+ (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ """
+ verified_name: Optional[str]
+ """
+ Owner's verified full name. Values are verified or provided by PayPal directly
+ (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ """
+ _inner_class_types = {
+ "seller_protection": SellerProtection,
+ "shipping": Shipping,
+ "verified_address": VerifiedAddress,
+ }
+
+ class Paypay(StripeObject):
+ pass
class Payto(StripeObject):
bsb_number: Optional[str]
@@ -1505,6 +1615,10 @@ class Pix(StripeObject):
"""
Unique transaction id generated by BCB
"""
+ mandate: Optional[str]
+ """
+ ID of the multi use Mandate generated by the PaymentIntent
+ """
class Promptpay(StripeObject):
reference: Optional[str]
@@ -1512,6 +1626,15 @@ class Promptpay(StripeObject):
Bill reference generated by PromptPay
"""
+ class Qris(StripeObject):
+ pass
+
+ class Rechnung(StripeObject):
+ payment_portal_url: Optional[str]
+ """
+ Payment portal URL.
+ """
+
class RevolutPay(StripeObject):
class Funding(StripeObject):
class Card(StripeObject):
@@ -1519,6 +1642,10 @@ class Card(StripeObject):
"""
Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
"""
+ brand_product: Optional[str]
+ """
+ The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
+ """
country: Optional[str]
"""
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
@@ -1614,6 +1741,9 @@ class SepaDebit(StripeObject):
Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve).
"""
+ class Shopeepay(StripeObject):
+ pass
+
class Sofort(StripeObject):
bank_code: Optional[str]
"""
@@ -1659,6 +1789,16 @@ class Sofort(StripeObject):
class StripeAccount(StripeObject):
pass
+ class StripeBalance(StripeObject):
+ account: Optional[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: Literal["bank_account", "card", "fpx"]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
class Swish(StripeObject):
fingerprint: Optional[str]
"""
@@ -1773,7 +1913,9 @@ class Zip(StripeObject):
eps: Optional[Eps]
fpx: Optional[Fpx]
giropay: Optional[Giropay]
+ gopay: Optional[Gopay]
grabpay: Optional[Grabpay]
+ id_bank_transfer: Optional[IdBankTransfer]
ideal: Optional[Ideal]
interac_present: Optional[InteracPresent]
kakao_pay: Optional[KakaoPay]
@@ -1796,16 +1938,21 @@ class Zip(StripeObject):
"""
paynow: Optional[Paynow]
paypal: Optional[Paypal]
+ paypay: Optional[Paypay]
payto: Optional[Payto]
pix: Optional[Pix]
promptpay: Optional[Promptpay]
+ qris: Optional[Qris]
+ rechnung: Optional[Rechnung]
revolut_pay: Optional[RevolutPay]
samsung_pay: Optional[SamsungPay]
satispay: Optional[Satispay]
sepa_credit_transfer: Optional[SepaCreditTransfer]
sepa_debit: Optional[SepaDebit]
+ shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_account: Optional[StripeAccount]
+ stripe_balance: Optional[StripeBalance]
swish: Optional[Swish]
twint: Optional[Twint]
type: str
@@ -1843,7 +1990,9 @@ class Zip(StripeObject):
"eps": Eps,
"fpx": Fpx,
"giropay": Giropay,
+ "gopay": Gopay,
"grabpay": Grabpay,
+ "id_bank_transfer": IdBankTransfer,
"ideal": Ideal,
"interac_present": InteracPresent,
"kakao_pay": KakaoPay,
@@ -1862,16 +2011,21 @@ class Zip(StripeObject):
"payco": Payco,
"paynow": Paynow,
"paypal": Paypal,
+ "paypay": Paypay,
"payto": Payto,
"pix": Pix,
"promptpay": Promptpay,
+ "qris": Qris,
+ "rechnung": Rechnung,
"revolut_pay": RevolutPay,
"samsung_pay": SamsungPay,
"satispay": Satispay,
"sepa_credit_transfer": SepaCreditTransfer,
"sepa_debit": SepaDebit,
+ "shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_account": StripeAccount,
+ "stripe_balance": StripeBalance,
"swish": Swish,
"twint": Twint,
"us_bank_account": UsBankAccount,
diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py
index 6e20c1c8b..22fe9a7bb 100644
--- a/stripe/_payment_intent.py
+++ b/stripe/_payment_intent.py
@@ -52,6 +52,9 @@
from stripe.params._payment_intent_create_params import (
PaymentIntentCreateParams,
)
+ from stripe.params._payment_intent_decrement_authorization_params import (
+ PaymentIntentDecrementAuthorizationParams,
+ )
from stripe.params._payment_intent_increment_authorization_params import (
PaymentIntentIncrementAuthorizationParams,
)
@@ -70,6 +73,9 @@
from stripe.params._payment_intent_search_params import (
PaymentIntentSearchParams,
)
+ from stripe.params._payment_intent_trigger_action_params import (
+ PaymentIntentTriggerActionParams,
+ )
from stripe.params._payment_intent_verify_microdeposits_params import (
PaymentIntentVerifyMicrodepositsParams,
)
@@ -143,6 +149,20 @@ class Tip(StripeObject):
tip: Optional[Tip]
_inner_class_types = {"shipping": Shipping, "tax": Tax, "tip": Tip}
+ class AsyncWorkflows(StripeObject):
+ class Inputs(StripeObject):
+ class Tax(StripeObject):
+ calculation: str
+ """
+ The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
+ """
+
+ tax: Optional[Tax]
+ _inner_class_types = {"tax": Tax}
+
+ inputs: Optional[Inputs]
+ _inner_class_types = {"inputs": Inputs}
+
class AutomaticPaymentMethods(StripeObject):
allow_redirects: Optional[Literal["always", "never"]]
"""
@@ -232,6 +252,7 @@ class LastPaymentError(StripeObject):
"financial_connections_account_inactive",
"financial_connections_account_pending_account_numbers",
"financial_connections_account_unavailable_account_numbers",
+ "financial_connections_institution_unavailable",
"financial_connections_no_successful_transaction_refresh",
"forwarding_api_inactive",
"forwarding_api_invalid_parameter",
@@ -330,6 +351,7 @@ class LastPaymentError(StripeObject):
"return_intent_already_processed",
"routing_number_invalid",
"secret_key_required",
+ "sensitive_data_access_expired",
"sepa_unsupported_account",
"setup_attempt_failed",
"setup_intent_authentication_failure",
@@ -349,6 +371,7 @@ class LastPaymentError(StripeObject):
"taxes_calculation_failed",
"terminal_location_country_unsupported",
"terminal_reader_busy",
+ "terminal_reader_collected_data_invalid",
"terminal_reader_hardware_fault",
"terminal_reader_invalid_location_for_activation",
"terminal_reader_invalid_location_for_payment",
@@ -362,6 +385,8 @@ class LastPaymentError(StripeObject):
"transfer_source_balance_parameters_mismatch",
"transfers_not_allowed",
"url_invalid",
+ "v2_account_disconnection_unsupported",
+ "v2_account_missing_configuration",
]
]
"""
@@ -1421,12 +1446,347 @@ class WechatPayRedirectToIosApp(StripeObject):
}
class PaymentDetails(StripeObject):
+ class CarRental(StripeObject):
+ class Affiliate(StripeObject):
+ name: Optional[str]
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+ class Delivery(StripeObject):
+ class Recipient(StripeObject):
+ email: Optional[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: Optional[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: Optional[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+ mode: Optional[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: Optional[Recipient]
+ _inner_class_types = {"recipient": Recipient}
+
+ class Distance(StripeObject):
+ amount: Optional[int]
+ """
+ Distance traveled.
+ """
+ unit: Optional[str]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`
+ """
+
+ class Driver(StripeObject):
+ driver_identification_number: Optional[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: Optional[str]
+ """
+ Driver's tax number.
+ """
+ name: Optional[str]
+ """
+ Full name of the driver on the reservation.
+ """
+
+ class PickupAddress(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ class ReturnAddress(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ affiliate: Optional[Affiliate]
+ booking_number: str
+ """
+ The booking number associated with the car rental.
+ """
+ car_class_code: Optional[str]
+ """
+ Class code of the car.
+ """
+ car_make: Optional[str]
+ """
+ Make of the car.
+ """
+ car_model: Optional[str]
+ """
+ Model of the car.
+ """
+ company: Optional[str]
+ """
+ The name of the rental car company.
+ """
+ customer_service_phone_number: Optional[str]
+ """
+ The customer service phone number of the car rental company.
+ """
+ days_rented: int
+ """
+ Number of days the car is being rented.
+ """
+ delivery: Optional[Delivery]
+ distance: Optional[Distance]
+ drivers: Optional[List[Driver]]
+ """
+ The details of the drivers associated with the trip.
+ """
+ extra_charges: Optional[
+ List[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "late_return",
+ "one_way_service",
+ "parking_violation",
+ ]
+ ]
+ ]
+ """
+ List of additional charges being billed.
+ """
+ no_show: Optional[bool]
+ """
+ Indicates if the customer did not keep nor cancel their booking.
+ """
+ pickup_address: Optional[PickupAddress]
+ pickup_at: int
+ """
+ Car pick-up time. Measured in seconds since the Unix epoch.
+ """
+ pickup_location_name: Optional[str]
+ """
+ Name of the pickup location.
+ """
+ rate_amount: Optional[int]
+ """
+ Rental rate.
+ """
+ rate_interval: Optional[Literal["day", "month", "week"]]
+ """
+ The frequency at which the rate amount is applied. One of `day`, `week` or `month`
+ """
+ renter_name: Optional[str]
+ """
+ The full name of the person or entity renting the car.
+ """
+ return_address: Optional[ReturnAddress]
+ return_at: int
+ """
+ Car return time. Measured in seconds since the Unix epoch.
+ """
+ return_location_name: Optional[str]
+ """
+ Name of the return location.
+ """
+ tax_exempt: Optional[bool]
+ """
+ Indicates whether the goods or services are tax-exempt or tax is not collected.
+ """
+ vehicle_identification_number: Optional[str]
+ """
+ The vehicle identification number of the car.
+ """
+ _inner_class_types = {
+ "affiliate": Affiliate,
+ "delivery": Delivery,
+ "distance": Distance,
+ "drivers": Driver,
+ "pickup_address": PickupAddress,
+ "return_address": ReturnAddress,
+ }
+
+ class EventDetails(StripeObject):
+ class Address(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ class Affiliate(StripeObject):
+ name: Optional[str]
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+ class Delivery(StripeObject):
+ class Recipient(StripeObject):
+ email: Optional[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: Optional[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: Optional[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+ mode: Optional[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: Optional[Recipient]
+ _inner_class_types = {"recipient": Recipient}
+
+ access_controlled_venue: Optional[bool]
+ """
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
+ address: Optional[Address]
+ affiliate: Optional[Affiliate]
+ company: Optional[str]
+ """
+ The name of the company
+ """
+ delivery: Optional[Delivery]
+ ends_at: Optional[int]
+ """
+ Event end time. Measured in seconds since the Unix epoch.
+ """
+ genre: Optional[str]
+ """
+ Type of the event entertainment (concert, sports event etc)
+ """
+ name: Optional[str]
+ """
+ The name of the event.
+ """
+ starts_at: Optional[int]
+ """
+ Event start time. Measured in seconds since the Unix epoch.
+ """
+ _inner_class_types = {
+ "address": Address,
+ "affiliate": Affiliate,
+ "delivery": Delivery,
+ }
+
+ class Subscription(StripeObject):
+ class Affiliate(StripeObject):
+ name: Optional[str]
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+ class BillingInterval(StripeObject):
+ count: Optional[int]
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+ interval: Optional[Literal["day", "month", "week", "year"]]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+
+ affiliate: Optional[Affiliate]
+ auto_renewal: Optional[bool]
+ """
+ Info whether the subscription will be auto renewed upon expiry.
+ """
+ billing_interval: Optional[BillingInterval]
+ ends_at: Optional[int]
+ """
+ Subscription end time. Measured in seconds since the Unix epoch.
+ """
+ name: Optional[str]
+ """
+ Name of the product on subscription. e.g. Apple Music Subscription.
+ """
+ starts_at: Optional[int]
+ """
+ Subscription start time. Measured in seconds since the Unix epoch.
+ """
+ _inner_class_types = {
+ "affiliate": Affiliate,
+ "billing_interval": BillingInterval,
+ }
+
+ car_rental: Optional[CarRental]
customer_reference: Optional[str]
"""
A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
"""
+ event_details: Optional[EventDetails]
order_reference: Optional[str]
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
@@ -1435,6 +1795,12 @@ class PaymentDetails(StripeObject):
For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""
+ subscription: Optional[Subscription]
+ _inner_class_types = {
+ "car_rental": CarRental,
+ "event_details": EventDetails,
+ "subscription": Subscription,
+ }
class PaymentMethodConfigurationDetails(StripeObject):
id: str
@@ -1751,6 +2117,40 @@ class MandateOptions(StripeObject):
Specifies the type of mandates supported. Possible values are `india`.
"""
+ class StatementDetails(StripeObject):
+ class Address(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ address: Optional[Address]
+ phone: Optional[str]
+ """
+ Phone number
+ """
+ _inner_class_types = {"address": Address}
+
capture_method: Optional[Literal["manual"]]
"""
Controls when the funds will be captured from the customer's account.
@@ -1785,6 +2185,12 @@ class MandateOptions(StripeObject):
"""
Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
"""
+ request_decremental_authorization: Optional[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
+ """
request_extended_authorization: Optional[
Literal["if_available", "never"]
]
@@ -1805,6 +2211,12 @@ class MandateOptions(StripeObject):
"""
Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
"""
+ request_partial_authorization: Optional[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request partial authorization on this PaymentIntent.
+ """
request_three_d_secure: Optional[
Literal["any", "automatic", "challenge"]
]
@@ -1835,9 +2247,11 @@ class MandateOptions(StripeObject):
"""
Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
"""
+ statement_details: Optional[StatementDetails]
_inner_class_types = {
"installments": Installments,
"mandate_options": MandateOptions,
+ "statement_details": StatementDetails,
}
class CardPresent(StripeObject):
@@ -1988,6 +2402,18 @@ class Giropay(StripeObject):
When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
+ class Gopay(StripeObject):
+ setup_future_usage: Optional[Literal["none", "off_session"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
class Grabpay(StripeObject):
setup_future_usage: Optional[Literal["none"]]
"""
@@ -2000,6 +2426,26 @@ class Grabpay(StripeObject):
When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
+ class IdBankTransfer(StripeObject):
+ expires_after: Optional[int]
+ """
+ The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
+ """
+ expires_at: Optional[int]
+ """
+ The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
+ """
+ setup_future_usage: Optional[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
class Ideal(StripeObject):
setup_future_usage: Optional[Literal["none", "off_session"]]
"""
@@ -2241,10 +2687,58 @@ class Paynow(StripeObject):
"""
class Paypal(StripeObject):
+ class LineItem(StripeObject):
+ class Tax(StripeObject):
+ amount: int
+ """
+ The tax for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+ behavior: Literal["exclusive", "inclusive"]
+ """
+ The tax behavior for the line item.
+ """
+
+ category: Optional[
+ Literal["digital_goods", "donation", "physical_goods"]
+ ]
+ """
+ Type of the line item.
+ """
+ description: Optional[str]
+ """
+ Description of the line item.
+ """
+ name: str
+ """
+ Descriptive name of the line item.
+ """
+ quantity: int
+ """
+ Quantity of the line item. Cannot be a negative number.
+ """
+ sku: Optional[str]
+ """
+ Client facing stock keeping unit, article number or similar.
+ """
+ sold_by: Optional[str]
+ """
+ The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
+ """
+ tax: Optional[Tax]
+ unit_amount: int
+ """
+ Price for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+ _inner_class_types = {"tax": Tax}
+
capture_method: Optional[Literal["manual"]]
"""
Controls when the funds will be captured from the customer's account.
"""
+ line_items: Optional[List[LineItem]]
+ """
+ The line items purchased by the customer.
+ """
preferred_locale: Optional[str]
"""
Preferred locale of the PayPal checkout page that the customer is redirected to.
@@ -2253,6 +2747,10 @@ class Paypal(StripeObject):
"""
A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
"""
+ reference_id: Optional[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
setup_future_usage: Optional[Literal["none", "off_session"]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2263,6 +2761,14 @@ class Paypal(StripeObject):
When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
+ subsellers: Optional[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
+ _inner_class_types = {"line_items": LineItem}
+
+ class Paypay(StripeObject):
+ pass
class Payto(StripeObject):
class MandateOptions(StripeObject):
@@ -2330,6 +2836,48 @@ class MandateOptions(StripeObject):
_inner_class_types = {"mandate_options": MandateOptions}
class Pix(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_includes_iof: Optional[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ Type of amount.
+ """
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
+ """
+ end_date: Optional[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
+ """
+ payment_schedule: Optional[
+ Literal[
+ "halfyearly",
+ "monthly",
+ "quarterly",
+ "weekly",
+ "yearly",
+ ]
+ ]
+ """
+ Schedule at which the future payments will be charged.
+ """
+ reference: Optional[str]
+ """
+ Subscription name displayed to buyers in their bank app.
+ """
+ start_date: Optional[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`.
+ """
+
amount_includes_iof: Optional[Literal["always", "never"]]
"""
Determines if the amount includes the IOF tax.
@@ -2342,7 +2890,8 @@ class Pix(StripeObject):
"""
The timestamp at which the Pix expires.
"""
- setup_future_usage: Optional[Literal["none"]]
+ mandate_options: Optional[MandateOptions]
+ setup_future_usage: Optional[Literal["none", "off_session"]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2352,6 +2901,7 @@ class Pix(StripeObject):
When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
+ _inner_class_types = {"mandate_options": MandateOptions}
class Promptpay(StripeObject):
setup_future_usage: Optional[Literal["none"]]
@@ -2365,6 +2915,21 @@ class Promptpay(StripeObject):
When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
+ class Qris(StripeObject):
+ setup_future_usage: Optional[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+ class Rechnung(StripeObject):
+ pass
+
class RevolutPay(StripeObject):
capture_method: Optional[Literal["manual"]]
"""
@@ -2419,6 +2984,18 @@ class MandateOptions(StripeObject):
"""
_inner_class_types = {"mandate_options": MandateOptions}
+ class Shopeepay(StripeObject):
+ setup_future_usage: Optional[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
class Sofort(StripeObject):
preferred_language: Optional[
Literal["de", "en", "es", "fr", "it", "nl", "pl"]
@@ -2437,6 +3014,18 @@ class Sofort(StripeObject):
When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
+ class StripeBalance(StripeObject):
+ setup_future_usage: Optional[Literal["none", "off_session"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
class Swish(StripeObject):
reference: Optional[str]
"""
@@ -2474,8 +3063,19 @@ class Filters(StripeObject):
"""
The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
"""
+ institution: Optional[str]
+ """
+ The institution to use to filter for possible accounts to link.
+ """
+
+ class ManualEntry(StripeObject):
+ mode: Optional[Literal["automatic", "custom"]]
+ """
+ Settings for configuring manual entry of account details.
+ """
filters: Optional[Filters]
+ manual_entry: Optional[ManualEntry]
permissions: Optional[
List[
Literal[
@@ -2490,7 +3090,14 @@ class Filters(StripeObject):
The list of permissions to request. The `payment_method` permission must be included.
"""
prefetch: Optional[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances",
+ "inferred_balances",
+ "ownership",
+ "transactions",
+ ]
+ ]
]
"""
Data features requested to be retrieved upon account creation.
@@ -2499,7 +3106,10 @@ class Filters(StripeObject):
"""
For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
"""
- _inner_class_types = {"filters": Filters}
+ _inner_class_types = {
+ "filters": Filters,
+ "manual_entry": ManualEntry,
+ }
class MandateOptions(StripeObject):
collection_method: Optional[Literal["paper"]]
@@ -2594,7 +3204,9 @@ class Zip(StripeObject):
eps: Optional[Eps]
fpx: Optional[Fpx]
giropay: Optional[Giropay]
+ gopay: Optional[Gopay]
grabpay: Optional[Grabpay]
+ id_bank_transfer: Optional[IdBankTransfer]
ideal: Optional[Ideal]
interac_present: Optional[InteracPresent]
kakao_pay: Optional[KakaoPay]
@@ -2613,14 +3225,19 @@ class Zip(StripeObject):
payco: Optional[Payco]
paynow: Optional[Paynow]
paypal: Optional[Paypal]
+ paypay: Optional[Paypay]
payto: Optional[Payto]
pix: Optional[Pix]
promptpay: Optional[Promptpay]
+ qris: Optional[Qris]
+ rechnung: Optional[Rechnung]
revolut_pay: Optional[RevolutPay]
samsung_pay: Optional[SamsungPay]
satispay: Optional[Satispay]
sepa_debit: Optional[SepaDebit]
+ shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
+ stripe_balance: Optional[StripeBalance]
swish: Optional[Swish]
twint: Optional[Twint]
us_bank_account: Optional[UsBankAccount]
@@ -2647,7 +3264,9 @@ class Zip(StripeObject):
"eps": Eps,
"fpx": Fpx,
"giropay": Giropay,
+ "gopay": Gopay,
"grabpay": Grabpay,
+ "id_bank_transfer": IdBankTransfer,
"ideal": Ideal,
"interac_present": InteracPresent,
"kakao_pay": KakaoPay,
@@ -2666,14 +3285,19 @@ class Zip(StripeObject):
"payco": Payco,
"paynow": Paynow,
"paypal": Paypal,
+ "paypay": Paypay,
"payto": Payto,
"pix": Pix,
"promptpay": Promptpay,
+ "qris": Qris,
+ "rechnung": Rechnung,
"revolut_pay": RevolutPay,
"samsung_pay": SamsungPay,
"satispay": Satispay,
"sepa_debit": SepaDebit,
+ "shopeepay": Shopeepay,
"sofort": Sofort,
+ "stripe_balance": StripeBalance,
"swish": Swish,
"twint": Twint,
"us_bank_account": UsBankAccount,
@@ -2794,6 +3418,7 @@ class TransferData(StripeObject):
"""
The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
"""
+ async_workflows: Optional[AsyncWorkflows]
automatic_payment_methods: Optional[AutomaticPaymentMethods]
"""
Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
@@ -2883,7 +3508,9 @@ class TransferData(StripeObject):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -2900,14 +3527,19 @@ class TransferData(StripeObject):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
@@ -2919,6 +3551,10 @@ class TransferData(StripeObject):
"""
The list of payment method types to exclude from use with this payment.
"""
+ fx_quote: Optional[str]
+ """
+ The FX Quote used for the PaymentIntent.
+ """
hooks: Optional[Hooks]
id: str
"""
@@ -2985,6 +3621,10 @@ class TransferData(StripeObject):
"""
ID of the review associated with this PaymentIntent, if any.
"""
+ secret_key_confirmation: Optional[Literal["optional", "required"]]
+ """
+ Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
+ """
setup_future_usage: Optional[Literal["off_session", "on_session"]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -3830,6 +4470,242 @@ async def create_async(
),
)
+ @classmethod
+ def _cls_decrement_authorization(
+ cls,
+ intent: str,
+ **params: Unpack["PaymentIntentDecrementAuthorizationParams"],
+ ) -> "PaymentIntent":
+ """
+ Perform a decremental authorization on an eligible
+ [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
+ PaymentIntent's status must be requires_capture and
+ [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
+ must be available.
+
+ Decremental authorizations decrease the authorized amount on your customer's card
+ to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
+
+ After decrement, the PaymentIntent object
+ returns with the updated
+ [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
+ The PaymentIntent will now be capturable up to the new authorized amount.
+
+ Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
+ After it's fully captured, a PaymentIntent can no longer be decremented.
+ """
+ return cast(
+ "PaymentIntent",
+ cls._static_request(
+ "post",
+ "/v1/payment_intents/{intent}/decrement_authorization".format(
+ intent=sanitize_id(intent)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def decrement_authorization(
+ intent: str,
+ **params: Unpack["PaymentIntentDecrementAuthorizationParams"],
+ ) -> "PaymentIntent":
+ """
+ Perform a decremental authorization on an eligible
+ [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
+ PaymentIntent's status must be requires_capture and
+ [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
+ must be available.
+
+ Decremental authorizations decrease the authorized amount on your customer's card
+ to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
+
+ After decrement, the PaymentIntent object
+ returns with the updated
+ [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
+ The PaymentIntent will now be capturable up to the new authorized amount.
+
+ Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
+ After it's fully captured, a PaymentIntent can no longer be decremented.
+ """
+ ...
+
+ @overload
+ def decrement_authorization(
+ self, **params: Unpack["PaymentIntentDecrementAuthorizationParams"]
+ ) -> "PaymentIntent":
+ """
+ Perform a decremental authorization on an eligible
+ [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
+ PaymentIntent's status must be requires_capture and
+ [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
+ must be available.
+
+ Decremental authorizations decrease the authorized amount on your customer's card
+ to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
+
+ After decrement, the PaymentIntent object
+ returns with the updated
+ [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
+ The PaymentIntent will now be capturable up to the new authorized amount.
+
+ Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
+ After it's fully captured, a PaymentIntent can no longer be decremented.
+ """
+ ...
+
+ @class_method_variant("_cls_decrement_authorization")
+ def decrement_authorization( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["PaymentIntentDecrementAuthorizationParams"]
+ ) -> "PaymentIntent":
+ """
+ Perform a decremental authorization on an eligible
+ [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
+ PaymentIntent's status must be requires_capture and
+ [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
+ must be available.
+
+ Decremental authorizations decrease the authorized amount on your customer's card
+ to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
+
+ After decrement, the PaymentIntent object
+ returns with the updated
+ [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
+ The PaymentIntent will now be capturable up to the new authorized amount.
+
+ Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
+ After it's fully captured, a PaymentIntent can no longer be decremented.
+ """
+ return cast(
+ "PaymentIntent",
+ self._request(
+ "post",
+ "/v1/payment_intents/{intent}/decrement_authorization".format(
+ intent=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_decrement_authorization_async(
+ cls,
+ intent: str,
+ **params: Unpack["PaymentIntentDecrementAuthorizationParams"],
+ ) -> "PaymentIntent":
+ """
+ Perform a decremental authorization on an eligible
+ [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
+ PaymentIntent's status must be requires_capture and
+ [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
+ must be available.
+
+ Decremental authorizations decrease the authorized amount on your customer's card
+ to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
+
+ After decrement, the PaymentIntent object
+ returns with the updated
+ [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
+ The PaymentIntent will now be capturable up to the new authorized amount.
+
+ Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
+ After it's fully captured, a PaymentIntent can no longer be decremented.
+ """
+ return cast(
+ "PaymentIntent",
+ await cls._static_request_async(
+ "post",
+ "/v1/payment_intents/{intent}/decrement_authorization".format(
+ intent=sanitize_id(intent)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def decrement_authorization_async(
+ intent: str,
+ **params: Unpack["PaymentIntentDecrementAuthorizationParams"],
+ ) -> "PaymentIntent":
+ """
+ Perform a decremental authorization on an eligible
+ [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
+ PaymentIntent's status must be requires_capture and
+ [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
+ must be available.
+
+ Decremental authorizations decrease the authorized amount on your customer's card
+ to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
+
+ After decrement, the PaymentIntent object
+ returns with the updated
+ [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
+ The PaymentIntent will now be capturable up to the new authorized amount.
+
+ Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
+ After it's fully captured, a PaymentIntent can no longer be decremented.
+ """
+ ...
+
+ @overload
+ async def decrement_authorization_async(
+ self, **params: Unpack["PaymentIntentDecrementAuthorizationParams"]
+ ) -> "PaymentIntent":
+ """
+ Perform a decremental authorization on an eligible
+ [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
+ PaymentIntent's status must be requires_capture and
+ [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
+ must be available.
+
+ Decremental authorizations decrease the authorized amount on your customer's card
+ to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
+
+ After decrement, the PaymentIntent object
+ returns with the updated
+ [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
+ The PaymentIntent will now be capturable up to the new authorized amount.
+
+ Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
+ After it's fully captured, a PaymentIntent can no longer be decremented.
+ """
+ ...
+
+ @class_method_variant("_cls_decrement_authorization_async")
+ async def decrement_authorization_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["PaymentIntentDecrementAuthorizationParams"]
+ ) -> "PaymentIntent":
+ """
+ Perform a decremental authorization on an eligible
+ [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
+ PaymentIntent's status must be requires_capture and
+ [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
+ must be available.
+
+ Decremental authorizations decrease the authorized amount on your customer's card
+ to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
+
+ After decrement, the PaymentIntent object
+ returns with the updated
+ [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
+ The PaymentIntent will now be capturable up to the new authorized amount.
+
+ Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
+ After it's fully captured, a PaymentIntent can no longer be decremented.
+ """
+ return cast(
+ "PaymentIntent",
+ await self._request_async(
+ "post",
+ "/v1/payment_intents/{intent}/decrement_authorization".format(
+ intent=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
@classmethod
def _cls_increment_authorization(
cls,
@@ -4246,6 +5122,116 @@ async def retrieve_async(
await instance.refresh_async()
return instance
+ @classmethod
+ def _cls_trigger_action(
+ cls, intent: str, **params: Unpack["PaymentIntentTriggerActionParams"]
+ ) -> "PaymentIntent":
+ """
+ Trigger an external action on a PaymentIntent.
+ """
+ return cast(
+ "PaymentIntent",
+ cls._static_request(
+ "post",
+ "/v1/test/payment_intents/{intent}/trigger_action".format(
+ intent=sanitize_id(intent)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def trigger_action(
+ intent: str, **params: Unpack["PaymentIntentTriggerActionParams"]
+ ) -> "PaymentIntent":
+ """
+ Trigger an external action on a PaymentIntent.
+ """
+ ...
+
+ @overload
+ def trigger_action(
+ self, **params: Unpack["PaymentIntentTriggerActionParams"]
+ ) -> "PaymentIntent":
+ """
+ Trigger an external action on a PaymentIntent.
+ """
+ ...
+
+ @class_method_variant("_cls_trigger_action")
+ def trigger_action( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["PaymentIntentTriggerActionParams"]
+ ) -> "PaymentIntent":
+ """
+ Trigger an external action on a PaymentIntent.
+ """
+ return cast(
+ "PaymentIntent",
+ self._request(
+ "post",
+ "/v1/test/payment_intents/{intent}/trigger_action".format(
+ intent=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_trigger_action_async(
+ cls, intent: str, **params: Unpack["PaymentIntentTriggerActionParams"]
+ ) -> "PaymentIntent":
+ """
+ Trigger an external action on a PaymentIntent.
+ """
+ return cast(
+ "PaymentIntent",
+ await cls._static_request_async(
+ "post",
+ "/v1/test/payment_intents/{intent}/trigger_action".format(
+ intent=sanitize_id(intent)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def trigger_action_async(
+ intent: str, **params: Unpack["PaymentIntentTriggerActionParams"]
+ ) -> "PaymentIntent":
+ """
+ Trigger an external action on a PaymentIntent.
+ """
+ ...
+
+ @overload
+ async def trigger_action_async(
+ self, **params: Unpack["PaymentIntentTriggerActionParams"]
+ ) -> "PaymentIntent":
+ """
+ Trigger an external action on a PaymentIntent.
+ """
+ ...
+
+ @class_method_variant("_cls_trigger_action_async")
+ async def trigger_action_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["PaymentIntentTriggerActionParams"]
+ ) -> "PaymentIntent":
+ """
+ Trigger an external action on a PaymentIntent.
+ """
+ return cast(
+ "PaymentIntent",
+ await self._request_async(
+ "post",
+ "/v1/test/payment_intents/{intent}/trigger_action".format(
+ intent=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
@classmethod
def _cls_verify_microdeposits(
cls,
@@ -4442,6 +5428,7 @@ async def list_amount_details_line_items_async(
_inner_class_types = {
"amount_details": AmountDetails,
+ "async_workflows": AsyncWorkflows,
"automatic_payment_methods": AutomaticPaymentMethods,
"hooks": Hooks,
"last_payment_error": LastPaymentError,
diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py
index 8c55091fc..a0830c214 100644
--- a/stripe/_payment_intent_service.py
+++ b/stripe/_payment_intent_service.py
@@ -29,6 +29,9 @@
from stripe.params._payment_intent_create_params import (
PaymentIntentCreateParams,
)
+ from stripe.params._payment_intent_decrement_authorization_params import (
+ PaymentIntentDecrementAuthorizationParams,
+ )
from stripe.params._payment_intent_increment_authorization_params import (
PaymentIntentIncrementAuthorizationParams,
)
@@ -41,6 +44,9 @@
from stripe.params._payment_intent_search_params import (
PaymentIntentSearchParams,
)
+ from stripe.params._payment_intent_trigger_action_params import (
+ PaymentIntentTriggerActionParams,
+ )
from stripe.params._payment_intent_update_params import (
PaymentIntentUpdateParams,
)
@@ -574,6 +580,80 @@ async def confirm_async(
),
)
+ def decrement_authorization(
+ self,
+ intent: str,
+ params: "PaymentIntentDecrementAuthorizationParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "PaymentIntent":
+ """
+ Perform a decremental authorization on an eligible
+ [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
+ PaymentIntent's status must be requires_capture and
+ [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
+ must be available.
+
+ Decremental authorizations decrease the authorized amount on your customer's card
+ to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
+
+ After decrement, the PaymentIntent object
+ returns with the updated
+ [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
+ The PaymentIntent will now be capturable up to the new authorized amount.
+
+ Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
+ After it's fully captured, a PaymentIntent can no longer be decremented.
+ """
+ return cast(
+ "PaymentIntent",
+ self._request(
+ "post",
+ "/v1/payment_intents/{intent}/decrement_authorization".format(
+ intent=sanitize_id(intent),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def decrement_authorization_async(
+ self,
+ intent: str,
+ params: "PaymentIntentDecrementAuthorizationParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "PaymentIntent":
+ """
+ Perform a decremental authorization on an eligible
+ [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
+ PaymentIntent's status must be requires_capture and
+ [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
+ must be available.
+
+ Decremental authorizations decrease the authorized amount on your customer's card
+ to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
+
+ After decrement, the PaymentIntent object
+ returns with the updated
+ [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
+ The PaymentIntent will now be capturable up to the new authorized amount.
+
+ Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
+ After it's fully captured, a PaymentIntent can no longer be decremented.
+ """
+ return cast(
+ "PaymentIntent",
+ await self._request_async(
+ "post",
+ "/v1/payment_intents/{intent}/decrement_authorization".format(
+ intent=sanitize_id(intent),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
def increment_authorization(
self,
intent: str,
@@ -707,3 +787,47 @@ async def verify_microdeposits_async(
options=options,
),
)
+
+ def trigger_action(
+ self,
+ intent: str,
+ params: "PaymentIntentTriggerActionParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "PaymentIntent":
+ """
+ Trigger an external action on a PaymentIntent.
+ """
+ return cast(
+ "PaymentIntent",
+ self._request(
+ "post",
+ "/v1/test/payment_intents/{intent}/trigger_action".format(
+ intent=sanitize_id(intent),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def trigger_action_async(
+ self,
+ intent: str,
+ params: "PaymentIntentTriggerActionParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "PaymentIntent":
+ """
+ Trigger an external action on a PaymentIntent.
+ """
+ return cast(
+ "PaymentIntent",
+ await self._request_async(
+ "post",
+ "/v1/test/payment_intents/{intent}/trigger_action".format(
+ intent=sanitize_id(intent),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py
index bb8f1573d..7c3f317df 100644
--- a/stripe/_payment_link.py
+++ b/stripe/_payment_link.py
@@ -852,6 +852,7 @@ class TransferData(StripeObject):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
"ideal",
"klarna",
@@ -865,11 +866,15 @@ class TransferData(StripeObject):
"pay_by_bank",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
"swish",
"twint",
diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py
index afd16acf3..26ed3b255 100644
--- a/stripe/_payment_method.py
+++ b/stripe/_payment_method.py
@@ -13,6 +13,7 @@
if TYPE_CHECKING:
from stripe._charge import Charge
from stripe._customer import Customer
+ from stripe._mandate import Mandate
from stripe._setup_attempt import SetupAttempt
from stripe.params._payment_method_attach_params import (
PaymentMethodAttachParams,
@@ -50,6 +51,10 @@ class PaymentMethod(
OBJECT_NAME: ClassVar[Literal["payment_method"]] = "payment_method"
class AcssDebit(StripeObject):
+ account_number: Optional[str]
+ """
+ Account number of the bank account.
+ """
bank_name: Optional[str]
"""
Name of the bank associated with the bank account.
@@ -903,9 +908,18 @@ class Fpx(StripeObject):
class Giropay(StripeObject):
pass
+ class Gopay(StripeObject):
+ pass
+
class Grabpay(StripeObject):
pass
+ class IdBankTransfer(StripeObject):
+ bank: Optional[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ bank_code: Optional[str]
+ bank_name: Optional[str]
+ display_name: Optional[str]
+
class Ideal(StripeObject):
bank: Optional[
Literal[
@@ -1209,6 +1223,10 @@ class Paypal(StripeObject):
"""
Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
"""
+ fingerprint: Optional[str]
+ """
+ Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
+ """
payer_email: Optional[str]
"""
Owner's email. Values are provided by PayPal directly
@@ -1218,6 +1236,14 @@ class Paypal(StripeObject):
"""
PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
"""
+ verified_email: Optional[str]
+ """
+ Owner's verified email. Values are verified or provided by PayPal directly
+ (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ """
+
+ class Paypay(StripeObject):
+ pass
class Payto(StripeObject):
bsb_number: Optional[str]
@@ -1239,12 +1265,33 @@ class Pix(StripeObject):
class Promptpay(StripeObject):
pass
+ class Qris(StripeObject):
+ pass
+
class RadarOptions(StripeObject):
session: Optional[str]
"""
A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
"""
+ class Rechnung(StripeObject):
+ class Dob(StripeObject):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+ dob: Optional[Dob]
+ _inner_class_types = {"dob": Dob}
+
class RevolutPay(StripeObject):
pass
@@ -1291,12 +1338,25 @@ class GeneratedFrom(StripeObject):
"""
_inner_class_types = {"generated_from": GeneratedFrom}
+ class Shopeepay(StripeObject):
+ pass
+
class Sofort(StripeObject):
country: Optional[str]
"""
Two-letter ISO code representing the country the bank account is located in.
"""
+ class StripeBalance(StripeObject):
+ account: Optional[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: Literal["bank_account", "card", "fpx"]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
class Swish(StripeObject):
pass
@@ -1357,6 +1417,10 @@ class Blocked(StripeObject):
"""
Account holder type: individual or company.
"""
+ account_number: Optional[str]
+ """
+ Account number of the bank account.
+ """
account_type: Optional[Literal["checking", "savings"]]
"""
Account type: checkings or savings. Defaults to checking if omitted.
@@ -1435,17 +1499,23 @@ class Zip(StripeObject):
eps: Optional[Eps]
fpx: Optional[Fpx]
giropay: Optional[Giropay]
+ gopay: Optional[Gopay]
grabpay: Optional[Grabpay]
id: str
"""
Unique identifier for the object.
"""
+ id_bank_transfer: Optional[IdBankTransfer]
ideal: Optional[Ideal]
interac_present: Optional[InteracPresent]
kakao_pay: Optional[KakaoPay]
klarna: Optional[Klarna]
konbini: Optional[Konbini]
kr_card: Optional[KrCard]
+ latest_active_mandate: Optional["Mandate"]
+ """
+ The Mandate object of the most recently created Mandate associated with this payment method
+ """
link: Optional[Link]
livemode: bool
"""
@@ -1470,18 +1540,23 @@ class Zip(StripeObject):
payco: Optional[Payco]
paynow: Optional[Paynow]
paypal: Optional[Paypal]
+ paypay: Optional[Paypay]
payto: Optional[Payto]
pix: Optional[Pix]
promptpay: Optional[Promptpay]
+ qris: Optional[Qris]
radar_options: Optional[RadarOptions]
"""
Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
"""
+ rechnung: Optional[Rechnung]
revolut_pay: Optional[RevolutPay]
samsung_pay: Optional[SamsungPay]
satispay: Optional[Satispay]
sepa_debit: Optional[SepaDebit]
+ shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
+ stripe_balance: Optional[StripeBalance]
swish: Optional[Swish]
twint: Optional[Twint]
type: Literal[
@@ -1506,7 +1581,9 @@ class Zip(StripeObject):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"interac_present",
"kakao_pay",
@@ -1525,14 +1602,19 @@ class Zip(StripeObject):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
@@ -2017,7 +2099,9 @@ async def retrieve_async(
"eps": Eps,
"fpx": Fpx,
"giropay": Giropay,
+ "gopay": Gopay,
"grabpay": Grabpay,
+ "id_bank_transfer": IdBankTransfer,
"ideal": Ideal,
"interac_present": InteracPresent,
"kakao_pay": KakaoPay,
@@ -2036,15 +2120,20 @@ async def retrieve_async(
"payco": Payco,
"paynow": Paynow,
"paypal": Paypal,
+ "paypay": Paypay,
"payto": Payto,
"pix": Pix,
"promptpay": Promptpay,
+ "qris": Qris,
"radar_options": RadarOptions,
+ "rechnung": Rechnung,
"revolut_pay": RevolutPay,
"samsung_pay": SamsungPay,
"satispay": Satispay,
"sepa_debit": SepaDebit,
+ "shopeepay": Shopeepay,
"sofort": Sofort,
+ "stripe_balance": StripeBalance,
"swish": Swish,
"twint": Twint,
"us_bank_account": UsBankAccount,
diff --git a/stripe/_payment_method_configuration.py b/stripe/_payment_method_configuration.py
index 710a23580..3dfffb0de 100644
--- a/stripe/_payment_method_configuration.py
+++ b/stripe/_payment_method_configuration.py
@@ -534,6 +534,28 @@ class DisplayPreference(StripeObject):
display_preference: DisplayPreference
_inner_class_types = {"display_preference": DisplayPreference}
+ class Gopay(StripeObject):
+ class DisplayPreference(StripeObject):
+ overridable: Optional[bool]
+ """
+ For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
+ """
+ preference: Literal["none", "off", "on"]
+ """
+ The account's display preference.
+ """
+ value: Literal["off", "on"]
+ """
+ The effective display preference value.
+ """
+
+ available: bool
+ """
+ Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
+ """
+ display_preference: DisplayPreference
+ _inner_class_types = {"display_preference": DisplayPreference}
+
class Grabpay(StripeObject):
class DisplayPreference(StripeObject):
overridable: Optional[bool]
@@ -556,6 +578,28 @@ class DisplayPreference(StripeObject):
display_preference: DisplayPreference
_inner_class_types = {"display_preference": DisplayPreference}
+ class IdBankTransfer(StripeObject):
+ class DisplayPreference(StripeObject):
+ overridable: Optional[bool]
+ """
+ For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
+ """
+ preference: Literal["none", "off", "on"]
+ """
+ The account's display preference.
+ """
+ value: Literal["off", "on"]
+ """
+ The effective display preference value.
+ """
+
+ available: bool
+ """
+ Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
+ """
+ display_preference: DisplayPreference
+ _inner_class_types = {"display_preference": DisplayPreference}
+
class Ideal(StripeObject):
class DisplayPreference(StripeObject):
overridable: Optional[bool]
@@ -952,6 +996,28 @@ class DisplayPreference(StripeObject):
display_preference: DisplayPreference
_inner_class_types = {"display_preference": DisplayPreference}
+ class Paypay(StripeObject):
+ class DisplayPreference(StripeObject):
+ overridable: Optional[bool]
+ """
+ For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
+ """
+ preference: Literal["none", "off", "on"]
+ """
+ The account's display preference.
+ """
+ value: Literal["off", "on"]
+ """
+ The effective display preference value.
+ """
+
+ available: bool
+ """
+ Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
+ """
+ display_preference: DisplayPreference
+ _inner_class_types = {"display_preference": DisplayPreference}
+
class Payto(StripeObject):
class DisplayPreference(StripeObject):
overridable: Optional[bool]
@@ -1018,6 +1084,28 @@ class DisplayPreference(StripeObject):
display_preference: DisplayPreference
_inner_class_types = {"display_preference": DisplayPreference}
+ class Qris(StripeObject):
+ class DisplayPreference(StripeObject):
+ overridable: Optional[bool]
+ """
+ For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
+ """
+ preference: Literal["none", "off", "on"]
+ """
+ The account's display preference.
+ """
+ value: Literal["off", "on"]
+ """
+ The effective display preference value.
+ """
+
+ available: bool
+ """
+ Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
+ """
+ display_preference: DisplayPreference
+ _inner_class_types = {"display_preference": DisplayPreference}
+
class RevolutPay(StripeObject):
class DisplayPreference(StripeObject):
overridable: Optional[bool]
@@ -1106,6 +1194,28 @@ class DisplayPreference(StripeObject):
display_preference: DisplayPreference
_inner_class_types = {"display_preference": DisplayPreference}
+ class Shopeepay(StripeObject):
+ class DisplayPreference(StripeObject):
+ overridable: Optional[bool]
+ """
+ For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
+ """
+ preference: Literal["none", "off", "on"]
+ """
+ The account's display preference.
+ """
+ value: Literal["off", "on"]
+ """
+ The effective display preference value.
+ """
+
+ available: bool
+ """
+ Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
+ """
+ display_preference: DisplayPreference
+ _inner_class_types = {"display_preference": DisplayPreference}
+
class Sofort(StripeObject):
class DisplayPreference(StripeObject):
overridable: Optional[bool]
@@ -1268,11 +1378,13 @@ class DisplayPreference(StripeObject):
fpx: Optional[Fpx]
giropay: Optional[Giropay]
google_pay: Optional[GooglePay]
+ gopay: Optional[Gopay]
grabpay: Optional[Grabpay]
id: str
"""
Unique identifier for the object.
"""
+ id_bank_transfer: Optional[IdBankTransfer]
ideal: Optional[Ideal]
is_default: bool
"""
@@ -1311,13 +1423,16 @@ class DisplayPreference(StripeObject):
payco: Optional[Payco]
paynow: Optional[Paynow]
paypal: Optional[Paypal]
+ paypay: Optional[Paypay]
payto: Optional[Payto]
pix: Optional[Pix]
promptpay: Optional[Promptpay]
+ qris: Optional[Qris]
revolut_pay: Optional[RevolutPay]
samsung_pay: Optional[SamsungPay]
satispay: Optional[Satispay]
sepa_debit: Optional[SepaDebit]
+ shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
swish: Optional[Swish]
twint: Optional[Twint]
@@ -1484,7 +1599,9 @@ async def retrieve_async(
"fpx": Fpx,
"giropay": Giropay,
"google_pay": GooglePay,
+ "gopay": Gopay,
"grabpay": Grabpay,
+ "id_bank_transfer": IdBankTransfer,
"ideal": Ideal,
"jcb": Jcb,
"kakao_pay": KakaoPay,
@@ -1503,13 +1620,16 @@ async def retrieve_async(
"payco": Payco,
"paynow": Paynow,
"paypal": Paypal,
+ "paypay": Paypay,
"payto": Payto,
"pix": Pix,
"promptpay": Promptpay,
+ "qris": Qris,
"revolut_pay": RevolutPay,
"samsung_pay": SamsungPay,
"satispay": Satispay,
"sepa_debit": SepaDebit,
+ "shopeepay": Shopeepay,
"sofort": Sofort,
"swish": Swish,
"twint": Twint,
diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py
index e5871dcbd..fbf12dc78 100644
--- a/stripe/_payment_record.py
+++ b/stripe/_payment_record.py
@@ -268,6 +268,10 @@ class Card(StripeObject):
"""
Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
"""
+ brand_product: Optional[str]
+ """
+ The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
+ """
country: Optional[str]
"""
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
@@ -983,12 +987,37 @@ class Giropay(StripeObject):
Giropay rarely provides this information so the attribute is usually empty.
"""
+ class Gopay(StripeObject):
+ pass
+
class Grabpay(StripeObject):
transaction_id: Optional[str]
"""
Unique transaction id generated by GrabPay
"""
+ class IdBankTransfer(StripeObject):
+ account_number: str
+ """
+ Account number of the bank account to transfer funds to.
+ """
+ bank: Literal["bca", "bni", "bri", "cimb", "permata"]
+ """
+ Bank where the account is located.
+ """
+ bank_code: Optional[str]
+ """
+ Local bank code of the bank.
+ """
+ bank_name: Optional[str]
+ """
+ Name of the bank associated with the bank account.
+ """
+ display_name: Optional[str]
+ """
+ Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
+ """
+
class Ideal(StripeObject):
bank: Optional[
Literal[
@@ -1470,6 +1499,58 @@ class SellerProtection(StripeObject):
Indicates whether the transaction is eligible for PayPal's seller protection.
"""
+ class Shipping(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ class VerifiedAddress(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
country: Optional[str]
"""
Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -1492,11 +1573,40 @@ class SellerProtection(StripeObject):
"""
The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
"""
+ shipping: Optional[Shipping]
+ """
+ The shipping address for the customer, as supplied by the merchant at the point of payment
+ execution. This shipping address will not be updated if the merchant updates the shipping
+ address on the PaymentIntent after the PaymentIntent was successfully confirmed.
+ """
transaction_id: Optional[str]
"""
A unique ID generated by PayPal for this transaction.
"""
- _inner_class_types = {"seller_protection": SellerProtection}
+ verified_address: Optional[VerifiedAddress]
+ """
+ The shipping address for the customer, as supplied by the merchant at the point of payment
+ execution. This shipping address will not be updated if the merchant updates the shipping
+ address on the PaymentIntent after the PaymentIntent was successfully confirmed.
+ """
+ verified_email: Optional[str]
+ """
+ Owner's verified email. Values are verified or provided by PayPal directly
+ (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ """
+ verified_name: Optional[str]
+ """
+ Owner's verified full name. Values are verified or provided by PayPal directly
+ (if supported) at the time of authorization or settlement. They cannot be set or mutated.
+ """
+ _inner_class_types = {
+ "seller_protection": SellerProtection,
+ "shipping": Shipping,
+ "verified_address": VerifiedAddress,
+ }
+
+ class Paypay(StripeObject):
+ pass
class Payto(StripeObject):
bsb_number: Optional[str]
@@ -1521,6 +1631,10 @@ class Pix(StripeObject):
"""
Unique transaction id generated by BCB
"""
+ mandate: Optional[str]
+ """
+ ID of the multi use Mandate generated by the PaymentIntent
+ """
class Promptpay(StripeObject):
reference: Optional[str]
@@ -1528,6 +1642,15 @@ class Promptpay(StripeObject):
Bill reference generated by PromptPay
"""
+ class Qris(StripeObject):
+ pass
+
+ class Rechnung(StripeObject):
+ payment_portal_url: Optional[str]
+ """
+ Payment portal URL.
+ """
+
class RevolutPay(StripeObject):
class Funding(StripeObject):
class Card(StripeObject):
@@ -1535,6 +1658,10 @@ class Card(StripeObject):
"""
Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
"""
+ brand_product: Optional[str]
+ """
+ The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
+ """
country: Optional[str]
"""
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
@@ -1630,6 +1757,9 @@ class SepaDebit(StripeObject):
Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://docs.stripe.com/api/mandates/retrieve).
"""
+ class Shopeepay(StripeObject):
+ pass
+
class Sofort(StripeObject):
bank_code: Optional[str]
"""
@@ -1675,6 +1805,16 @@ class Sofort(StripeObject):
class StripeAccount(StripeObject):
pass
+ class StripeBalance(StripeObject):
+ account: Optional[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: Literal["bank_account", "card", "fpx"]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
class Swish(StripeObject):
fingerprint: Optional[str]
"""
@@ -1789,7 +1929,9 @@ class Zip(StripeObject):
eps: Optional[Eps]
fpx: Optional[Fpx]
giropay: Optional[Giropay]
+ gopay: Optional[Gopay]
grabpay: Optional[Grabpay]
+ id_bank_transfer: Optional[IdBankTransfer]
ideal: Optional[Ideal]
interac_present: Optional[InteracPresent]
kakao_pay: Optional[KakaoPay]
@@ -1812,16 +1954,21 @@ class Zip(StripeObject):
"""
paynow: Optional[Paynow]
paypal: Optional[Paypal]
+ paypay: Optional[Paypay]
payto: Optional[Payto]
pix: Optional[Pix]
promptpay: Optional[Promptpay]
+ qris: Optional[Qris]
+ rechnung: Optional[Rechnung]
revolut_pay: Optional[RevolutPay]
samsung_pay: Optional[SamsungPay]
satispay: Optional[Satispay]
sepa_credit_transfer: Optional[SepaCreditTransfer]
sepa_debit: Optional[SepaDebit]
+ shopeepay: Optional[Shopeepay]
sofort: Optional[Sofort]
stripe_account: Optional[StripeAccount]
+ stripe_balance: Optional[StripeBalance]
swish: Optional[Swish]
twint: Optional[Twint]
type: str
@@ -1859,7 +2006,9 @@ class Zip(StripeObject):
"eps": Eps,
"fpx": Fpx,
"giropay": Giropay,
+ "gopay": Gopay,
"grabpay": Grabpay,
+ "id_bank_transfer": IdBankTransfer,
"ideal": Ideal,
"interac_present": InteracPresent,
"kakao_pay": KakaoPay,
@@ -1878,16 +2027,21 @@ class Zip(StripeObject):
"payco": Payco,
"paynow": Paynow,
"paypal": Paypal,
+ "paypay": Paypay,
"payto": Payto,
"pix": Pix,
"promptpay": Promptpay,
+ "qris": Qris,
+ "rechnung": Rechnung,
"revolut_pay": RevolutPay,
"samsung_pay": SamsungPay,
"satispay": Satispay,
"sepa_credit_transfer": SepaCreditTransfer,
"sepa_debit": SepaDebit,
+ "shopeepay": Shopeepay,
"sofort": Sofort,
"stripe_account": StripeAccount,
+ "stripe_balance": StripeBalance,
"swish": Swish,
"twint": Twint,
"us_bank_account": UsBankAccount,
diff --git a/stripe/_person.py b/stripe/_person.py
index 850f382a6..553ae9b7d 100644
--- a/stripe/_person.py
+++ b/stripe/_person.py
@@ -201,6 +201,7 @@ class Error(StripeObject):
"invalid_url_website_other",
"invalid_value_other",
"unsupported_business_type",
+ "verification_data_not_found",
"verification_directors_mismatch",
"verification_document_address_mismatch",
"verification_document_address_missing",
@@ -410,6 +411,7 @@ class Error(StripeObject):
"invalid_url_website_other",
"invalid_value_other",
"unsupported_business_type",
+ "verification_data_not_found",
"verification_directors_mismatch",
"verification_document_address_mismatch",
"verification_document_address_missing",
diff --git a/stripe/_price.py b/stripe/_price.py
index 42e5de8d5..accb94295 100644
--- a/stripe/_price.py
+++ b/stripe/_price.py
@@ -124,6 +124,20 @@ class CustomUnitAmount(StripeObject):
The starting unit amount which can be updated by the customer.
"""
+ class MigrateTo(StripeObject):
+ behavior: Literal["at_cycle_end"]
+ """
+ The behavior controlling at what point in the subscription lifecycle to migrate the price
+ """
+ effective_after: int
+ """
+ The unix timestamp after at which subscriptions will start to migrate to the new price.
+ """
+ price: str
+ """
+ The id of the price being migrated to
+ """
+
class Recurring(StripeObject):
interval: Literal["day", "month", "week", "year"]
"""
@@ -222,6 +236,10 @@ class TransformQuantity(StripeObject):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
"""
+ migrate_to: Optional[MigrateTo]
+ """
+ Subscriptions using this price will be migrated to use the new referenced price.
+ """
nickname: Optional[str]
"""
A brief description of the price, hidden from customers.
@@ -430,6 +448,7 @@ async def search_auto_paging_iter_async(
_inner_class_types = {
"currency_options": CurrencyOptions,
"custom_unit_amount": CustomUnitAmount,
+ "migrate_to": MigrateTo,
"recurring": Recurring,
"tiers": Tier,
"transform_quantity": TransformQuantity,
diff --git a/stripe/_privacy_service.py b/stripe/_privacy_service.py
new file mode 100644
index 000000000..6163df865
--- /dev/null
+++ b/stripe/_privacy_service.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.privacy._redaction_job_service import RedactionJobService
+
+_subservices = {
+ "redaction_jobs": [
+ "stripe.privacy._redaction_job_service",
+ "RedactionJobService",
+ ],
+}
+
+
+class PrivacyService(StripeService):
+ redaction_jobs: "RedactionJobService"
+
+ def __init__(self, requestor):
+ super().__init__(requestor)
+
+ def __getattr__(self, name):
+ try:
+ import_from, service = _subservices[name]
+ service_class = getattr(
+ import_module(import_from),
+ service,
+ )
+ setattr(
+ self,
+ name,
+ service_class(self._requestor),
+ )
+ return getattr(self, name)
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/_quote.py b/stripe/_quote.py
index 9c19717ee..d8f30f474 100644
--- a/stripe/_quote.py
+++ b/stripe/_quote.py
@@ -4,6 +4,7 @@
from stripe._expandable_field import ExpandableField
from stripe._list_object import ListObject
from stripe._listable_api_resource import ListableAPIResource
+from stripe._nested_resource_class_methods import nested_resource_class_methods
from stripe._stripe_object import StripeObject
from stripe._updateable_api_resource import UpdateableAPIResource
from stripe._util import class_method_variant, sanitize_id
@@ -16,9 +17,17 @@
from stripe._customer import Customer
from stripe._discount import Discount as DiscountResource
from stripe._invoice import Invoice
+ from stripe._invoice_line_item import InvoiceLineItem
from stripe._line_item import LineItem
+ from stripe._quote_line import QuoteLine
+ from stripe._quote_preview_invoice import QuotePreviewInvoice
+ from stripe._quote_preview_subscription_schedule import (
+ QuotePreviewSubscriptionSchedule,
+ )
from stripe._subscription import Subscription
- from stripe._subscription_schedule import SubscriptionSchedule
+ from stripe._subscription_schedule import (
+ SubscriptionSchedule as SubscriptionScheduleResource,
+ )
from stripe._tax_rate import TaxRate
from stripe.params._quote_accept_params import QuoteAcceptParams
from stripe.params._quote_cancel_params import QuoteCancelParams
@@ -32,13 +41,28 @@
from stripe.params._quote_list_line_items_params import (
QuoteListLineItemsParams,
)
+ from stripe.params._quote_list_lines_params import QuoteListLinesParams
from stripe.params._quote_list_params import QuoteListParams
+ from stripe.params._quote_list_preview_invoice_lines_params import (
+ QuoteListPreviewInvoiceLinesParams,
+ )
+ from stripe.params._quote_list_preview_invoices_params import (
+ QuoteListPreviewInvoicesParams,
+ )
+ from stripe.params._quote_list_preview_subscription_schedules_params import (
+ QuoteListPreviewSubscriptionSchedulesParams,
+ )
+ from stripe.params._quote_mark_draft_params import QuoteMarkDraftParams
+ from stripe.params._quote_mark_stale_params import QuoteMarkStaleParams
from stripe.params._quote_modify_params import QuoteModifyParams
from stripe.params._quote_pdf_params import QuotePdfParams
+ from stripe.params._quote_reestimate_params import QuoteReestimateParams
from stripe.params._quote_retrieve_params import QuoteRetrieveParams
from stripe.test_helpers._test_clock import TestClock
+@nested_resource_class_methods("preview_invoice")
+@nested_resource_class_methods("preview_subscription_schedule")
class Quote(
CreateableAPIResource["Quote"],
ListableAPIResource["Quote"],
@@ -83,6 +107,31 @@ class Liability(StripeObject):
_inner_class_types = {"liability": Liability}
class Computed(StripeObject):
+ class LastReestimationDetails(StripeObject):
+ class Failed(StripeObject):
+ failure_code: Optional[str]
+ """
+ The failure `code` is more granular than the `reason` provided and may correspond to a Stripe error code. For automation errors, this field is one of: `reverse_api_failure`, `reverse_api_deadline_exceeeded`, or `reverse_api_response_validation_error`, which are Stripe error codes and map to the error `message` field.
+ """
+ message: Optional[str]
+ """
+ Information derived from the `failure_code` or a freeform message that explains the error as a human-readable English string. For example, "margin ID is not a valid ID".
+ """
+ reason: Literal["automation_failure", "internal_error"]
+ """
+ The reason the reestimation failed.
+ """
+
+ failed: Optional[Failed]
+ """
+ When `status` is `failed`, provides details about the quote reestimation failure.
+ """
+ status: Literal["failed", "in_progress", "succeeded"]
+ """
+ Latest status of the reestimation.
+ """
+ _inner_class_types = {"failed": Failed}
+
class Recurring(StripeObject):
class TotalDetails(StripeObject):
class Breakdown(StripeObject):
@@ -275,12 +324,24 @@ class Tax(StripeObject):
total_details: TotalDetails
_inner_class_types = {"total_details": TotalDetails}
+ last_reestimation_details: Optional[LastReestimationDetails]
+ """
+ Details of the most recent reestimate of the quote's preview schedules and upcoming invoices, including the status of Stripe's calculation.
+ """
recurring: Optional[Recurring]
"""
The definitive totals and line items the customer will be charged on a recurring basis. Takes into account the line items with recurring prices and discounts with `duration=forever` coupons only. Defaults to `null` if no inputted line items with recurring prices.
"""
+ updated_at: Optional[int]
+ """
+ The time at which the quote's estimated schedules and upcoming invoices were generated.
+ """
upfront: Upfront
- _inner_class_types = {"recurring": Recurring, "upfront": Upfront}
+ _inner_class_types = {
+ "last_reestimation_details": LastReestimationDetails,
+ "recurring": Recurring,
+ "upfront": Upfront,
+ }
class FromQuote(StripeObject):
is_revision: bool
@@ -310,6 +371,129 @@ class Issuer(StripeObject):
issuer: Issuer
_inner_class_types = {"issuer": Issuer}
+ class StatusDetails(StripeObject):
+ class Canceled(StripeObject):
+ reason: Optional[
+ Literal[
+ "canceled",
+ "quote_accepted",
+ "quote_expired",
+ "quote_superseded",
+ "subscription_canceled",
+ ]
+ ]
+ """
+ The reason this quote was marked as canceled.
+ """
+ transitioned_at: Optional[int]
+ """
+ Time at which the quote was marked as canceled. Measured in seconds since the Unix epoch.
+ """
+
+ class Stale(StripeObject):
+ class LastReason(StripeObject):
+ class LinesInvalid(StripeObject):
+ invalid_at: int
+ """
+ The timestamp at which the lines were marked as invalid.
+ """
+ lines: List[str]
+ """
+ The list of lines that became invalid at the given timestamp.
+ """
+
+ class SubscriptionChanged(StripeObject):
+ previous_subscription: Optional["Subscription"]
+ """
+ The subscription's state before the quote was marked as stale.
+ """
+
+ class SubscriptionScheduleChanged(StripeObject):
+ previous_subscription_schedule: Optional[
+ "SubscriptionScheduleResource"
+ ]
+ """
+ The subscription schedule's state before the quote was marked as stale.
+ """
+
+ line_invalid: Optional[str]
+ """
+ The ID of the line that is invalid if the stale reason type is `line_invalid`.
+ """
+ lines_invalid: Optional[List[LinesInvalid]]
+ """
+ The IDs of the lines that are invalid if the stale reason type is `lines_invalid`.
+ """
+ marked_stale: Optional[str]
+ """
+ The user supplied mark stale reason.
+ """
+ subscription_canceled: Optional[str]
+ """
+ The ID of the subscription that was canceled.
+ """
+ subscription_changed: Optional[SubscriptionChanged]
+ subscription_expired: Optional[str]
+ """
+ The ID of the subscription that was expired.
+ """
+ subscription_schedule_canceled: Optional[str]
+ """
+ The ID of the subscription schedule that was canceled.
+ """
+ subscription_schedule_changed: Optional[
+ SubscriptionScheduleChanged
+ ]
+ subscription_schedule_released: Optional[str]
+ """
+ The ID of the subscription schedule that was released.
+ """
+ type: Optional[
+ Literal[
+ "accept_failed_validations",
+ "bill_on_acceptance_invalid",
+ "line_invalid",
+ "lines_invalid",
+ "marked_stale",
+ "subscription_canceled",
+ "subscription_changed",
+ "subscription_expired",
+ "subscription_schedule_canceled",
+ "subscription_schedule_changed",
+ "subscription_schedule_released",
+ ]
+ ]
+ """
+ The reason the quote was marked as stale.
+ """
+ _inner_class_types = {
+ "lines_invalid": LinesInvalid,
+ "subscription_changed": SubscriptionChanged,
+ "subscription_schedule_changed": SubscriptionScheduleChanged,
+ }
+
+ expires_at: Optional[int]
+ """
+ Time at which the quote expires. Measured in seconds since the Unix epoch.
+ """
+ last_reason: Optional[LastReason]
+ """
+ The most recent reason this quote was marked as stale.
+ """
+ last_updated_at: Optional[int]
+ """
+ Time at which the stale reason was updated. Measured in seconds since the Unix epoch.
+ """
+ transitioned_at: Optional[int]
+ """
+ Time at which the quote was marked as stale. Measured in seconds since the Unix epoch.
+ """
+ _inner_class_types = {"last_reason": LastReason}
+
+ canceled: Optional[Canceled]
+ stale: Optional[Stale]
+ _inner_class_types = {"canceled": Canceled, "stale": Stale}
+
class StatusTransitions(StripeObject):
accepted_at: Optional[int]
"""
@@ -325,6 +509,99 @@ class StatusTransitions(StripeObject):
"""
class SubscriptionData(StripeObject):
+ class BillOnAcceptance(StripeObject):
+ class BillFrom(StripeObject):
+ class LineStartsAt(StripeObject):
+ id: str
+ """
+ Unique identifier for the object.
+ """
+
+ computed: Optional[int]
+ """
+ The materialized time.
+ """
+ line_starts_at: Optional[LineStartsAt]
+ """
+ The timestamp the given line starts at.
+ """
+ timestamp: Optional[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "line_starts_at",
+ "now",
+ "pause_collection_start",
+ "quote_acceptance_date",
+ "timestamp",
+ ]
+ """
+ The type of method to specify the `bill_from` time.
+ """
+ _inner_class_types = {"line_starts_at": LineStartsAt}
+
+ class BillUntil(StripeObject):
+ class Duration(StripeObject):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+ class LineEndsAt(StripeObject):
+ id: str
+ """
+ Unique identifier for the object.
+ """
+
+ computed: Optional[int]
+ """
+ The materialized time.
+ """
+ duration: Optional[Duration]
+ """
+ Time span for the quote line starting from the `starts_at` date.
+ """
+ line_ends_at: Optional[LineEndsAt]
+ """
+ The timestamp the given line ends at.
+ """
+ timestamp: Optional[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "duration",
+ "line_ends_at",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ The type of method to specify the `bill_until` time.
+ """
+ _inner_class_types = {
+ "duration": Duration,
+ "line_ends_at": LineEndsAt,
+ }
+
+ bill_from: Optional[BillFrom]
+ """
+ The start of the period to bill from when the Quote is accepted.
+ """
+ bill_until: Optional[BillUntil]
+ """
+ The end of the period to bill until when the Quote is accepted.
+ """
+ _inner_class_types = {
+ "bill_from": BillFrom,
+ "bill_until": BillUntil,
+ }
+
class BillingMode(StripeObject):
class Flexible(StripeObject):
proration_discounts: Optional[Literal["included", "itemized"]]
@@ -339,6 +616,23 @@ class Flexible(StripeObject):
"""
_inner_class_types = {"flexible": Flexible}
+ class Prebilling(StripeObject):
+ iterations: int
+
+ bill_on_acceptance: Optional[BillOnAcceptance]
+ """
+ Describes the period to bill for upon accepting the quote.
+ """
+ billing_behavior: Optional[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
+ billing_cycle_anchor: Optional[Literal["reset"]]
+ """
+ Whether the subscription will always start a new billing period when the quote is accepted.
+ """
billing_mode: BillingMode
"""
The billing mode of the quote.
@@ -351,15 +645,201 @@ class Flexible(StripeObject):
"""
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch.
"""
+ end_behavior: Optional[Literal["cancel", "release"]]
+ """
+ Behavior of the subscription schedule and underlying subscription when it ends.
+ """
+ from_subscription: Optional[ExpandableField["Subscription"]]
+ """
+ The id of the subscription that will be updated when the quote is accepted.
+ """
metadata: Optional[Dict[str, str]]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
"""
+ prebilling: Optional[Prebilling]
+ """
+ If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
+ """
+ proration_behavior: Optional[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations) when the quote is accepted.
+ """
trial_period_days: Optional[int]
"""
Integer representing the number of trial period days before the customer is charged for the first time.
"""
- _inner_class_types = {"billing_mode": BillingMode}
+ _inner_class_types = {
+ "bill_on_acceptance": BillOnAcceptance,
+ "billing_mode": BillingMode,
+ "prebilling": Prebilling,
+ }
+
+ class SubscriptionDataOverride(StripeObject):
+ class AppliesTo(StripeObject):
+ new_reference: Optional[str]
+ """
+ A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
+ """
+ subscription_schedule: Optional[str]
+ """
+ The ID of the schedule the line applies to.
+ """
+ type: Literal["new_reference", "subscription_schedule"]
+ """
+ Describes whether the quote line is affecting a new schedule or an existing schedule.
+ """
+
+ class BillOnAcceptance(StripeObject):
+ class BillFrom(StripeObject):
+ class LineStartsAt(StripeObject):
+ id: str
+ """
+ Unique identifier for the object.
+ """
+
+ computed: Optional[int]
+ """
+ The materialized time.
+ """
+ line_starts_at: Optional[LineStartsAt]
+ """
+ The timestamp the given line starts at.
+ """
+ timestamp: Optional[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "line_starts_at",
+ "now",
+ "pause_collection_start",
+ "quote_acceptance_date",
+ "timestamp",
+ ]
+ """
+ The type of method to specify the `bill_from` time.
+ """
+ _inner_class_types = {"line_starts_at": LineStartsAt}
+
+ class BillUntil(StripeObject):
+ class Duration(StripeObject):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+ class LineEndsAt(StripeObject):
+ id: str
+ """
+ Unique identifier for the object.
+ """
+
+ computed: Optional[int]
+ """
+ The materialized time.
+ """
+ duration: Optional[Duration]
+ """
+ Time span for the quote line starting from the `starts_at` date.
+ """
+ line_ends_at: Optional[LineEndsAt]
+ """
+ The timestamp the given line ends at.
+ """
+ timestamp: Optional[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "duration",
+ "line_ends_at",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ The type of method to specify the `bill_until` time.
+ """
+ _inner_class_types = {
+ "duration": Duration,
+ "line_ends_at": LineEndsAt,
+ }
+
+ bill_from: Optional[BillFrom]
+ """
+ The start of the period to bill from when the Quote is accepted.
+ """
+ bill_until: Optional[BillUntil]
+ """
+ The end of the period to bill until when the Quote is accepted.
+ """
+ _inner_class_types = {
+ "bill_from": BillFrom,
+ "bill_until": BillUntil,
+ }
+
+ applies_to: AppliesTo
+ bill_on_acceptance: Optional[BillOnAcceptance]
+ """
+ Describes the period to bill for upon accepting the quote.
+ """
+ billing_behavior: Optional[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
+ customer: Optional[str]
+ """
+ The customer who received this quote. A customer is required to finalize the quote. Once specified, you can't change it.
+ """
+ description: Optional[str]
+ """
+ The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
+ """
+ end_behavior: Optional[Literal["cancel", "release"]]
+ """
+ Behavior of the subscription schedule and underlying subscription when it ends.
+ """
+ proration_behavior: Optional[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations) when the quote is accepted.
+ """
+ _inner_class_types = {
+ "applies_to": AppliesTo,
+ "bill_on_acceptance": BillOnAcceptance,
+ }
+
+ class SubscriptionSchedule(StripeObject):
+ class AppliesTo(StripeObject):
+ new_reference: Optional[str]
+ """
+ A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
+ """
+ subscription_schedule: Optional[str]
+ """
+ The ID of the schedule the line applies to.
+ """
+ type: Literal["new_reference", "subscription_schedule"]
+ """
+ Describes whether the quote line is affecting a new schedule or an existing schedule.
+ """
+
+ applies_to: AppliesTo
+ subscription_schedule: str
+ """
+ The subscription schedule that was created or updated from this quote.
+ """
+ _inner_class_types = {"applies_to": AppliesTo}
class TotalDetails(StripeObject):
class Breakdown(StripeObject):
@@ -453,6 +933,10 @@ class TransferData(StripeObject):
The account where funds from the payment will be transferred to upon payment success.
"""
+ allow_backdated_lines: Optional[bool]
+ """
+ Allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
+ """
amount_subtotal: int
"""
Total before any discounts or taxes are applied.
@@ -536,6 +1020,10 @@ class TransferData(StripeObject):
"""
A list of items the customer is being quoted for.
"""
+ lines: Optional[List[str]]
+ """
+ A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
+ """
livemode: bool
"""
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
@@ -556,20 +1044,36 @@ class TransferData(StripeObject):
"""
The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details.
"""
- status: Literal["accepted", "canceled", "draft", "open"]
+ status: Literal[
+ "accepted", "accepting", "canceled", "draft", "open", "stale"
+ ]
"""
The status of the quote.
"""
+ status_details: Optional[StatusDetails]
+ """
+ Details on when and why a quote has been marked as stale or canceled.
+ """
status_transitions: StatusTransitions
subscription: Optional[ExpandableField["Subscription"]]
"""
The subscription that was created or updated from this quote.
"""
subscription_data: SubscriptionData
- subscription_schedule: Optional[ExpandableField["SubscriptionSchedule"]]
+ subscription_data_overrides: Optional[List[SubscriptionDataOverride]]
+ """
+ List representing overrides for `subscription_data` configurations for specific subscription schedules.
+ """
+ subscription_schedule: Optional[
+ ExpandableField["SubscriptionScheduleResource"]
+ ]
"""
The subscription schedule that was created or updated from this quote.
"""
+ subscription_schedules: Optional[List[SubscriptionSchedule]]
+ """
+ The subscription schedules that were created or updated from this quote.
+ """
test_clock: Optional[ExpandableField["TestClock"]]
"""
ID of the test clock this quote belongs to.
@@ -1183,76 +1687,530 @@ async def list_line_items_async( # pyright: ignore[reportGeneralTypeIssues]
)
@classmethod
- def modify(cls, id: str, **params: Unpack["QuoteModifyParams"]) -> "Quote":
+ def _cls_list_lines(
+ cls, quote: str, **params: Unpack["QuoteListLinesParams"]
+ ) -> ListObject["QuoteLine"]:
"""
- A quote models prices and services for a customer.
+ Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
"""
- url = "%s/%s" % (cls.class_url(), sanitize_id(id))
return cast(
- "Quote",
+ ListObject["QuoteLine"],
cls._static_request(
- "post",
- url,
+ "get",
+ "/v1/quotes/{quote}/lines".format(quote=sanitize_id(quote)),
params=params,
),
)
- @classmethod
- async def modify_async(
- cls, id: str, **params: Unpack["QuoteModifyParams"]
- ) -> "Quote":
+ @overload
+ @staticmethod
+ def list_lines(
+ quote: str, **params: Unpack["QuoteListLinesParams"]
+ ) -> ListObject["QuoteLine"]:
"""
- A quote models prices and services for a customer.
+ Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
+ """
+ ...
+
+ @overload
+ def list_lines(
+ self, **params: Unpack["QuoteListLinesParams"]
+ ) -> ListObject["QuoteLine"]:
+ """
+ Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
+ """
+ ...
+
+ @class_method_variant("_cls_list_lines")
+ def list_lines( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["QuoteListLinesParams"]
+ ) -> ListObject["QuoteLine"]:
+ """
+ Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
"""
- url = "%s/%s" % (cls.class_url(), sanitize_id(id))
return cast(
- "Quote",
- await cls._static_request_async(
- "post",
- url,
+ ListObject["QuoteLine"],
+ self._request(
+ "get",
+ "/v1/quotes/{quote}/lines".format(
+ quote=sanitize_id(self.get("id"))
+ ),
params=params,
),
)
@classmethod
- def _cls_pdf(cls, quote: str, **params: Unpack["QuotePdfParams"]) -> Any:
+ async def _cls_list_lines_async(
+ cls, quote: str, **params: Unpack["QuoteListLinesParams"]
+ ) -> ListObject["QuoteLine"]:
"""
- Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
+ Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
"""
return cast(
- Any,
- cls._static_request_stream(
+ ListObject["QuoteLine"],
+ await cls._static_request_async(
"get",
- "/v1/quotes/{quote}/pdf".format(quote=sanitize_id(quote)),
+ "/v1/quotes/{quote}/lines".format(quote=sanitize_id(quote)),
params=params,
- base_address="files",
),
)
@overload
@staticmethod
- def pdf(quote: str, **params: Unpack["QuotePdfParams"]) -> Any:
+ async def list_lines_async(
+ quote: str, **params: Unpack["QuoteListLinesParams"]
+ ) -> ListObject["QuoteLine"]:
"""
- Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
+ Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
"""
...
@overload
- def pdf(self, **params: Unpack["QuotePdfParams"]) -> Any:
+ async def list_lines_async(
+ self, **params: Unpack["QuoteListLinesParams"]
+ ) -> ListObject["QuoteLine"]:
"""
- Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
+ Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
"""
...
- @class_method_variant("_cls_pdf")
- def pdf( # pyright: ignore[reportGeneralTypeIssues]
- self, **params: Unpack["QuotePdfParams"]
- ) -> Any:
+ @class_method_variant("_cls_list_lines_async")
+ async def list_lines_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["QuoteListLinesParams"]
+ ) -> ListObject["QuoteLine"]:
"""
- Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
+ Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
"""
return cast(
- Any,
+ ListObject["QuoteLine"],
+ await self._request_async(
+ "get",
+ "/v1/quotes/{quote}/lines".format(
+ quote=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def _cls_list_preview_invoice_lines(
+ cls,
+ quote: str,
+ preview_invoice: str,
+ **params: Unpack["QuoteListPreviewInvoiceLinesParams"],
+ ) -> ListObject["InvoiceLineItem"]:
+ """
+ Preview the invoice line items that would be generated by accepting the quote.
+ """
+ return cast(
+ ListObject["InvoiceLineItem"],
+ cls._static_request(
+ "get",
+ "/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines".format(
+ quote=sanitize_id(quote),
+ preview_invoice=sanitize_id(preview_invoice),
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def list_preview_invoice_lines(
+ quote: str,
+ preview_invoice: str,
+ **params: Unpack["QuoteListPreviewInvoiceLinesParams"],
+ ) -> ListObject["InvoiceLineItem"]:
+ """
+ Preview the invoice line items that would be generated by accepting the quote.
+ """
+ ...
+
+ @overload
+ def list_preview_invoice_lines(
+ self,
+ preview_invoice: str,
+ **params: Unpack["QuoteListPreviewInvoiceLinesParams"],
+ ) -> ListObject["InvoiceLineItem"]:
+ """
+ Preview the invoice line items that would be generated by accepting the quote.
+ """
+ ...
+
+ @class_method_variant("_cls_list_preview_invoice_lines")
+ def list_preview_invoice_lines( # pyright: ignore[reportGeneralTypeIssues]
+ self,
+ preview_invoice: str,
+ **params: Unpack["QuoteListPreviewInvoiceLinesParams"],
+ ) -> ListObject["InvoiceLineItem"]:
+ """
+ Preview the invoice line items that would be generated by accepting the quote.
+ """
+ return cast(
+ ListObject["InvoiceLineItem"],
+ self._request(
+ "get",
+ "/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines".format(
+ quote=sanitize_id(self.get("id")),
+ preview_invoice=sanitize_id(preview_invoice),
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_list_preview_invoice_lines_async(
+ cls,
+ quote: str,
+ preview_invoice: str,
+ **params: Unpack["QuoteListPreviewInvoiceLinesParams"],
+ ) -> ListObject["InvoiceLineItem"]:
+ """
+ Preview the invoice line items that would be generated by accepting the quote.
+ """
+ return cast(
+ ListObject["InvoiceLineItem"],
+ await cls._static_request_async(
+ "get",
+ "/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines".format(
+ quote=sanitize_id(quote),
+ preview_invoice=sanitize_id(preview_invoice),
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def list_preview_invoice_lines_async(
+ quote: str,
+ preview_invoice: str,
+ **params: Unpack["QuoteListPreviewInvoiceLinesParams"],
+ ) -> ListObject["InvoiceLineItem"]:
+ """
+ Preview the invoice line items that would be generated by accepting the quote.
+ """
+ ...
+
+ @overload
+ async def list_preview_invoice_lines_async(
+ self,
+ preview_invoice: str,
+ **params: Unpack["QuoteListPreviewInvoiceLinesParams"],
+ ) -> ListObject["InvoiceLineItem"]:
+ """
+ Preview the invoice line items that would be generated by accepting the quote.
+ """
+ ...
+
+ @class_method_variant("_cls_list_preview_invoice_lines_async")
+ async def list_preview_invoice_lines_async( # pyright: ignore[reportGeneralTypeIssues]
+ self,
+ preview_invoice: str,
+ **params: Unpack["QuoteListPreviewInvoiceLinesParams"],
+ ) -> ListObject["InvoiceLineItem"]:
+ """
+ Preview the invoice line items that would be generated by accepting the quote.
+ """
+ return cast(
+ ListObject["InvoiceLineItem"],
+ await self._request_async(
+ "get",
+ "/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines".format(
+ quote=sanitize_id(self.get("id")),
+ preview_invoice=sanitize_id(preview_invoice),
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def _cls_mark_draft(
+ cls, quote: str, **params: Unpack["QuoteMarkDraftParams"]
+ ) -> "Quote":
+ """
+ Converts a stale quote to draft.
+ """
+ return cast(
+ "Quote",
+ cls._static_request(
+ "post",
+ "/v1/quotes/{quote}/mark_draft".format(
+ quote=sanitize_id(quote)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def mark_draft(
+ quote: str, **params: Unpack["QuoteMarkDraftParams"]
+ ) -> "Quote":
+ """
+ Converts a stale quote to draft.
+ """
+ ...
+
+ @overload
+ def mark_draft(self, **params: Unpack["QuoteMarkDraftParams"]) -> "Quote":
+ """
+ Converts a stale quote to draft.
+ """
+ ...
+
+ @class_method_variant("_cls_mark_draft")
+ def mark_draft( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["QuoteMarkDraftParams"]
+ ) -> "Quote":
+ """
+ Converts a stale quote to draft.
+ """
+ return cast(
+ "Quote",
+ self._request(
+ "post",
+ "/v1/quotes/{quote}/mark_draft".format(
+ quote=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_mark_draft_async(
+ cls, quote: str, **params: Unpack["QuoteMarkDraftParams"]
+ ) -> "Quote":
+ """
+ Converts a stale quote to draft.
+ """
+ return cast(
+ "Quote",
+ await cls._static_request_async(
+ "post",
+ "/v1/quotes/{quote}/mark_draft".format(
+ quote=sanitize_id(quote)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def mark_draft_async(
+ quote: str, **params: Unpack["QuoteMarkDraftParams"]
+ ) -> "Quote":
+ """
+ Converts a stale quote to draft.
+ """
+ ...
+
+ @overload
+ async def mark_draft_async(
+ self, **params: Unpack["QuoteMarkDraftParams"]
+ ) -> "Quote":
+ """
+ Converts a stale quote to draft.
+ """
+ ...
+
+ @class_method_variant("_cls_mark_draft_async")
+ async def mark_draft_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["QuoteMarkDraftParams"]
+ ) -> "Quote":
+ """
+ Converts a stale quote to draft.
+ """
+ return cast(
+ "Quote",
+ await self._request_async(
+ "post",
+ "/v1/quotes/{quote}/mark_draft".format(
+ quote=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def _cls_mark_stale(
+ cls, quote: str, **params: Unpack["QuoteMarkStaleParams"]
+ ) -> "Quote":
+ """
+ Converts a draft or open quote to stale.
+ """
+ return cast(
+ "Quote",
+ cls._static_request(
+ "post",
+ "/v1/quotes/{quote}/mark_stale".format(
+ quote=sanitize_id(quote)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def mark_stale(
+ quote: str, **params: Unpack["QuoteMarkStaleParams"]
+ ) -> "Quote":
+ """
+ Converts a draft or open quote to stale.
+ """
+ ...
+
+ @overload
+ def mark_stale(self, **params: Unpack["QuoteMarkStaleParams"]) -> "Quote":
+ """
+ Converts a draft or open quote to stale.
+ """
+ ...
+
+ @class_method_variant("_cls_mark_stale")
+ def mark_stale( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["QuoteMarkStaleParams"]
+ ) -> "Quote":
+ """
+ Converts a draft or open quote to stale.
+ """
+ return cast(
+ "Quote",
+ self._request(
+ "post",
+ "/v1/quotes/{quote}/mark_stale".format(
+ quote=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_mark_stale_async(
+ cls, quote: str, **params: Unpack["QuoteMarkStaleParams"]
+ ) -> "Quote":
+ """
+ Converts a draft or open quote to stale.
+ """
+ return cast(
+ "Quote",
+ await cls._static_request_async(
+ "post",
+ "/v1/quotes/{quote}/mark_stale".format(
+ quote=sanitize_id(quote)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def mark_stale_async(
+ quote: str, **params: Unpack["QuoteMarkStaleParams"]
+ ) -> "Quote":
+ """
+ Converts a draft or open quote to stale.
+ """
+ ...
+
+ @overload
+ async def mark_stale_async(
+ self, **params: Unpack["QuoteMarkStaleParams"]
+ ) -> "Quote":
+ """
+ Converts a draft or open quote to stale.
+ """
+ ...
+
+ @class_method_variant("_cls_mark_stale_async")
+ async def mark_stale_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["QuoteMarkStaleParams"]
+ ) -> "Quote":
+ """
+ Converts a draft or open quote to stale.
+ """
+ return cast(
+ "Quote",
+ await self._request_async(
+ "post",
+ "/v1/quotes/{quote}/mark_stale".format(
+ quote=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def modify(cls, id: str, **params: Unpack["QuoteModifyParams"]) -> "Quote":
+ """
+ A quote models prices and services for a customer.
+ """
+ url = "%s/%s" % (cls.class_url(), sanitize_id(id))
+ return cast(
+ "Quote",
+ cls._static_request(
+ "post",
+ url,
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def modify_async(
+ cls, id: str, **params: Unpack["QuoteModifyParams"]
+ ) -> "Quote":
+ """
+ A quote models prices and services for a customer.
+ """
+ url = "%s/%s" % (cls.class_url(), sanitize_id(id))
+ return cast(
+ "Quote",
+ await cls._static_request_async(
+ "post",
+ url,
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def _cls_pdf(cls, quote: str, **params: Unpack["QuotePdfParams"]) -> Any:
+ """
+ Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
+ """
+ return cast(
+ Any,
+ cls._static_request_stream(
+ "get",
+ "/v1/quotes/{quote}/pdf".format(quote=sanitize_id(quote)),
+ params=params,
+ base_address="files",
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def pdf(quote: str, **params: Unpack["QuotePdfParams"]) -> Any:
+ """
+ Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
+ """
+ ...
+
+ @overload
+ def pdf(self, **params: Unpack["QuotePdfParams"]) -> Any:
+ """
+ Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
+ """
+ ...
+
+ @class_method_variant("_cls_pdf")
+ def pdf( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["QuotePdfParams"]
+ ) -> Any:
+ """
+ Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
+ """
+ return cast(
+ Any,
self._request_stream(
"get",
"/v1/quotes/{quote}/pdf".format(
@@ -1314,6 +2272,114 @@ async def pdf_async( # pyright: ignore[reportGeneralTypeIssues]
),
)
+ @classmethod
+ def _cls_reestimate(
+ cls, quote: str, **params: Unpack["QuoteReestimateParams"]
+ ) -> "Quote":
+ """
+ Recompute the upcoming invoice estimate for the quote.
+ """
+ return cast(
+ "Quote",
+ cls._static_request(
+ "post",
+ "/v1/quotes/{quote}/reestimate".format(
+ quote=sanitize_id(quote)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def reestimate(
+ quote: str, **params: Unpack["QuoteReestimateParams"]
+ ) -> "Quote":
+ """
+ Recompute the upcoming invoice estimate for the quote.
+ """
+ ...
+
+ @overload
+ def reestimate(self, **params: Unpack["QuoteReestimateParams"]) -> "Quote":
+ """
+ Recompute the upcoming invoice estimate for the quote.
+ """
+ ...
+
+ @class_method_variant("_cls_reestimate")
+ def reestimate( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["QuoteReestimateParams"]
+ ) -> "Quote":
+ """
+ Recompute the upcoming invoice estimate for the quote.
+ """
+ return cast(
+ "Quote",
+ self._request(
+ "post",
+ "/v1/quotes/{quote}/reestimate".format(
+ quote=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_reestimate_async(
+ cls, quote: str, **params: Unpack["QuoteReestimateParams"]
+ ) -> "Quote":
+ """
+ Recompute the upcoming invoice estimate for the quote.
+ """
+ return cast(
+ "Quote",
+ await cls._static_request_async(
+ "post",
+ "/v1/quotes/{quote}/reestimate".format(
+ quote=sanitize_id(quote)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def reestimate_async(
+ quote: str, **params: Unpack["QuoteReestimateParams"]
+ ) -> "Quote":
+ """
+ Recompute the upcoming invoice estimate for the quote.
+ """
+ ...
+
+ @overload
+ async def reestimate_async(
+ self, **params: Unpack["QuoteReestimateParams"]
+ ) -> "Quote":
+ """
+ Recompute the upcoming invoice estimate for the quote.
+ """
+ ...
+
+ @class_method_variant("_cls_reestimate_async")
+ async def reestimate_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["QuoteReestimateParams"]
+ ) -> "Quote":
+ """
+ Recompute the upcoming invoice estimate for the quote.
+ """
+ return cast(
+ "Quote",
+ await self._request_async(
+ "post",
+ "/v1/quotes/{quote}/reestimate".format(
+ quote=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
@classmethod
def retrieve(
cls, id: str, **params: Unpack["QuoteRetrieveParams"]
@@ -1336,13 +2402,92 @@ async def retrieve_async(
await instance.refresh_async()
return instance
+ @classmethod
+ def list_preview_invoices(
+ cls, quote: str, **params: Unpack["QuoteListPreviewInvoicesParams"]
+ ) -> ListObject["QuotePreviewInvoice"]:
+ """
+ Preview the invoices that would be generated by accepting the quote.
+ """
+ return cast(
+ ListObject["QuotePreviewInvoice"],
+ cls._static_request(
+ "get",
+ "/v1/quotes/{quote}/preview_invoices".format(
+ quote=sanitize_id(quote)
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def list_preview_invoices_async(
+ cls, quote: str, **params: Unpack["QuoteListPreviewInvoicesParams"]
+ ) -> ListObject["QuotePreviewInvoice"]:
+ """
+ Preview the invoices that would be generated by accepting the quote.
+ """
+ return cast(
+ ListObject["QuotePreviewInvoice"],
+ await cls._static_request_async(
+ "get",
+ "/v1/quotes/{quote}/preview_invoices".format(
+ quote=sanitize_id(quote)
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def list_preview_subscription_schedules(
+ cls,
+ quote: str,
+ **params: Unpack["QuoteListPreviewSubscriptionSchedulesParams"],
+ ) -> ListObject["QuotePreviewSubscriptionSchedule"]:
+ """
+ Preview the schedules that would be generated by accepting the quote
+ """
+ return cast(
+ ListObject["QuotePreviewSubscriptionSchedule"],
+ cls._static_request(
+ "get",
+ "/v1/quotes/{quote}/preview_subscription_schedules".format(
+ quote=sanitize_id(quote)
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def list_preview_subscription_schedules_async(
+ cls,
+ quote: str,
+ **params: Unpack["QuoteListPreviewSubscriptionSchedulesParams"],
+ ) -> ListObject["QuotePreviewSubscriptionSchedule"]:
+ """
+ Preview the schedules that would be generated by accepting the quote
+ """
+ return cast(
+ ListObject["QuotePreviewSubscriptionSchedule"],
+ await cls._static_request_async(
+ "get",
+ "/v1/quotes/{quote}/preview_subscription_schedules".format(
+ quote=sanitize_id(quote)
+ ),
+ params=params,
+ ),
+ )
+
_inner_class_types = {
"automatic_tax": AutomaticTax,
"computed": Computed,
"from_quote": FromQuote,
"invoice_settings": InvoiceSettings,
+ "status_details": StatusDetails,
"status_transitions": StatusTransitions,
"subscription_data": SubscriptionData,
+ "subscription_data_overrides": SubscriptionDataOverride,
+ "subscription_schedules": SubscriptionSchedule,
"total_details": TotalDetails,
"transfer_data": TransferData,
}
diff --git a/stripe/_quote_line.py b/stripe/_quote_line.py
new file mode 100644
index 000000000..ab6e08c99
--- /dev/null
+++ b/stripe/_quote_line.py
@@ -0,0 +1,522 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._expandable_field import ExpandableField
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, List, Optional
+from typing_extensions import Literal, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._coupon import Coupon
+ from stripe._discount import Discount as DiscountResource
+ from stripe._price import Price
+ from stripe._promotion_code import PromotionCode
+ from stripe._tax_rate import TaxRate
+
+
+class QuoteLine(StripeObject):
+ """
+ A quote line defines a set of changes, in the order provided, that will be applied upon quote acceptance.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["quote_line"]] = "quote_line"
+
+ class Action(StripeObject):
+ class AddDiscount(StripeObject):
+ class DiscountEnd(StripeObject):
+ type: Literal["line_ends_at"]
+ """
+ The discount end type.
+ """
+
+ coupon: Optional[ExpandableField["Coupon"]]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: Optional[ExpandableField["DiscountResource"]]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: Optional[DiscountEnd]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ index: Optional[int]
+ """
+ The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
+ """
+ promotion_code: Optional[ExpandableField["PromotionCode"]]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+ _inner_class_types = {"discount_end": DiscountEnd}
+
+ class AddItem(StripeObject):
+ class Discount(StripeObject):
+ class DiscountEnd(StripeObject):
+ timestamp: Optional[int]
+ """
+ The discount end timestamp.
+ """
+ type: Literal["timestamp"]
+ """
+ The discount end type.
+ """
+
+ coupon: Optional[ExpandableField["Coupon"]]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: Optional[ExpandableField["DiscountResource"]]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: Optional[DiscountEnd]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: Optional[ExpandableField["PromotionCode"]]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+ _inner_class_types = {"discount_end": DiscountEnd}
+
+ class Trial(StripeObject):
+ converts_to: Optional[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+ discounts: List[Discount]
+ """
+ The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an item. Metadata on this item will update the underlying subscription item's `metadata` when the phase is entered.
+ """
+ price: ExpandableField["Price"]
+ """
+ ID of the price to which the customer should be subscribed.
+ """
+ quantity: Optional[int]
+ """
+ Quantity of the plan to which the customer should be subscribed.
+ """
+ tax_rates: Optional[List["TaxRate"]]
+ """
+ The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
+ """
+ trial: Optional[Trial]
+ """
+ Options that configure the trial on the subscription item.
+ """
+ _inner_class_types = {"discounts": Discount, "trial": Trial}
+
+ class RemoveDiscount(StripeObject):
+ class DiscountEnd(StripeObject):
+ timestamp: Optional[int]
+ """
+ The discount end timestamp.
+ """
+ type: Literal["timestamp"]
+ """
+ The discount end type.
+ """
+
+ coupon: Optional[ExpandableField["Coupon"]]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: Optional[ExpandableField["DiscountResource"]]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: Optional[DiscountEnd]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: Optional[ExpandableField["PromotionCode"]]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+ _inner_class_types = {"discount_end": DiscountEnd}
+
+ class RemoveItem(StripeObject):
+ price: ExpandableField["Price"]
+ """
+ ID of a price to remove.
+ """
+
+ class SetDiscount(StripeObject):
+ class DiscountEnd(StripeObject):
+ timestamp: Optional[int]
+ """
+ The discount end timestamp.
+ """
+ type: Literal["timestamp"]
+ """
+ The discount end type.
+ """
+
+ coupon: Optional[ExpandableField["Coupon"]]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: Optional[ExpandableField["DiscountResource"]]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: Optional[DiscountEnd]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: Optional[ExpandableField["PromotionCode"]]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+ _inner_class_types = {"discount_end": DiscountEnd}
+
+ class SetItem(StripeObject):
+ class Discount(StripeObject):
+ class DiscountEnd(StripeObject):
+ timestamp: Optional[int]
+ """
+ The discount end timestamp.
+ """
+ type: Literal["timestamp"]
+ """
+ The discount end type.
+ """
+
+ coupon: Optional[ExpandableField["Coupon"]]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: Optional[ExpandableField["DiscountResource"]]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: Optional[DiscountEnd]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: Optional[ExpandableField["PromotionCode"]]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+ _inner_class_types = {"discount_end": DiscountEnd}
+
+ class Trial(StripeObject):
+ converts_to: Optional[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+ discounts: List[Discount]
+ """
+ The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an item. Metadata on this item will update the underlying subscription item's `metadata` when the phase is entered.
+ """
+ price: ExpandableField["Price"]
+ """
+ ID of the price to which the customer should be subscribed.
+ """
+ quantity: Optional[int]
+ """
+ Quantity of the plan to which the customer should be subscribed.
+ """
+ tax_rates: Optional[List["TaxRate"]]
+ """
+ The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
+ """
+ trial: Optional[Trial]
+ """
+ Options that configure the trial on the subscription item.
+ """
+ _inner_class_types = {"discounts": Discount, "trial": Trial}
+
+ add_discount: Optional[AddDiscount]
+ """
+ Details for the `add_discount` type.
+ """
+ add_item: Optional[AddItem]
+ """
+ Details for the `add_item` type.
+ """
+ add_metadata: Optional[Dict[str, str]]
+ """
+ Details for the `add_metadata` type: specify a hash of key-value pairs.
+ """
+ remove_discount: Optional[RemoveDiscount]
+ """
+ Details for the `remove_discount` type.
+ """
+ remove_item: Optional[RemoveItem]
+ """
+ Details for the `remove_item` type.
+ """
+ remove_metadata: Optional[List[str]]
+ """
+ Details for the `remove_metadata` type: specify an array of metadata keys.
+ """
+ set_discounts: Optional[List[SetDiscount]]
+ """
+ Details for the `set_discounts` type.
+ """
+ set_items: Optional[List[SetItem]]
+ """
+ Details for the `set_items` type.
+ """
+ set_metadata: Optional[Dict[str, str]]
+ """
+ Details for the `set_metadata` type: specify an array of key-value pairs.
+ """
+ type: Literal[
+ "add_discount",
+ "add_item",
+ "add_metadata",
+ "clear_discounts",
+ "clear_metadata",
+ "remove_discount",
+ "remove_item",
+ "remove_metadata",
+ "set_discounts",
+ "set_items",
+ "set_metadata",
+ ]
+ """
+ The type of action the quote line performs.
+ """
+ _inner_class_types = {
+ "add_discount": AddDiscount,
+ "add_item": AddItem,
+ "remove_discount": RemoveDiscount,
+ "remove_item": RemoveItem,
+ "set_discounts": SetDiscount,
+ "set_items": SetItem,
+ }
+
+ class AppliesTo(StripeObject):
+ new_reference: Optional[str]
+ """
+ A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
+ """
+ subscription_schedule: Optional[str]
+ """
+ The ID of the schedule the line applies to.
+ """
+ type: Literal["new_reference", "subscription_schedule"]
+ """
+ Describes whether the quote line is affecting a new schedule or an existing schedule.
+ """
+
+ class CancelSubscriptionSchedule(StripeObject):
+ cancel_at: Literal["line_starts_at"]
+ """
+ Timestamp helper to cancel the underlying schedule on the accompanying line's start date. Must be set to `line_starts_at`.
+ """
+ invoice_now: Optional[bool]
+ """
+ If the subscription schedule is `active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Boolean that defaults to `true`.
+ """
+ prorate: Optional[bool]
+ """
+ If the subscription schedule is `active`, indicates if the cancellation should be prorated. Boolean that defaults to `true`.
+ """
+
+ class EndsAt(StripeObject):
+ class DiscountEnd(StripeObject):
+ discount: str
+ """
+ The ID of a specific discount.
+ """
+
+ class Duration(StripeObject):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+ computed: Optional[int]
+ """
+ The timestamp value that will be used to determine when to make changes to the subscription schedule, as computed from the `ends_at` field. For example, if `ends_at[type]=upcoming_invoice`, the upcoming invoice date will be computed at the time the `ends_at` field was specified and saved. This field will not be recomputed upon future requests to update or finalize the quote unless `ends_at` is respecified. This field is guaranteed to be populated after quote acceptance.
+ """
+ discount_end: Optional[DiscountEnd]
+ """
+ Use the `end` time of a given discount.
+ """
+ duration: Optional[Duration]
+ """
+ Time span for the quote line starting from the `starts_at` date.
+ """
+ timestamp: Optional[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "billing_period_end",
+ "discount_end",
+ "duration",
+ "quote_acceptance_date",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ Select a way to pass in `ends_at`.
+ """
+ _inner_class_types = {
+ "discount_end": DiscountEnd,
+ "duration": Duration,
+ }
+
+ class SetPauseCollection(StripeObject):
+ class Set(StripeObject):
+ behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+
+ set: Optional[Set]
+ """
+ If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
+ """
+ type: Literal["remove", "set"]
+ """
+ Defines the type of the pause_collection behavior for the quote line.
+ """
+ _inner_class_types = {"set": Set}
+
+ class StartsAt(StripeObject):
+ class DiscountEnd(StripeObject):
+ discount: str
+ """
+ The ID of a specific discount.
+ """
+
+ class LineEndsAt(StripeObject):
+ id: str
+ """
+ Unique identifier for the object.
+ """
+
+ computed: Optional[int]
+ """
+ The timestamp value that will be used to determine when to make changes to the subscription schedule, as computed from the `starts_at` field. For example, if `starts_at[type]=upcoming_invoice`, the upcoming invoice date will be computed at the time the `starts_at` field was specified and saved. This field will not be recomputed upon future requests to update or finalize the quote unless `starts_at` is respecified. This field is guaranteed to be populated after quote acceptance.
+ """
+ discount_end: Optional[DiscountEnd]
+ """
+ Use the `end` time of a given discount.
+ """
+ line_ends_at: Optional[LineEndsAt]
+ """
+ The timestamp the given line ends at.
+ """
+ timestamp: Optional[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "discount_end",
+ "line_ends_at",
+ "now",
+ "quote_acceptance_date",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ Select a way to pass in `starts_at`.
+ """
+ _inner_class_types = {
+ "discount_end": DiscountEnd,
+ "line_ends_at": LineEndsAt,
+ }
+
+ class TrialSettings(StripeObject):
+ class EndBehavior(StripeObject):
+ prorate_up_front: Optional[Literal["defer", "include"]]
+ """
+ Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
+ """
+
+ end_behavior: Optional[EndBehavior]
+ """
+ Defines how the subscription should behave when a trial ends.
+ """
+ _inner_class_types = {"end_behavior": EndBehavior}
+
+ actions: Optional[List[Action]]
+ """
+ A list of items the customer is being quoted for.
+ """
+ applies_to: Optional[AppliesTo]
+ """
+ Details to identify the subscription schedule the quote line applies to.
+ """
+ billing_cycle_anchor: Optional[Literal["automatic", "line_starts_at"]]
+ """
+ For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
+ """
+ cancel_subscription_schedule: Optional[CancelSubscriptionSchedule]
+ """
+ A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp. Currently only compatible with `quote_acceptance_date` for `starts_at`. When using cancel_subscription_schedule, the subscription schedule on the quote remains unalterable, except for modifications to the metadata, collection_method or invoice_settings.
+ """
+ ends_at: Optional[EndsAt]
+ """
+ Details to identify the end of the time range modified by the proposed change. If not supplied, the quote line is considered a point-in-time operation that only affects the exact timestamp at `starts_at`, and a restricted set of attributes is supported on the quote line.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ object: Literal["quote_line"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ proration_behavior: Optional[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Changes to how Stripe handles prorations during the quote line's time span. Affects if and how prorations are created when a future phase starts.
+ """
+ set_pause_collection: Optional[SetPauseCollection]
+ """
+ Details to modify the pause_collection behavior of the subscription schedule.
+ """
+ set_schedule_end: Optional[Literal["line_ends_at", "line_starts_at"]]
+ """
+ Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.
+ """
+ starts_at: Optional[StartsAt]
+ """
+ Details to identify the earliest timestamp where the proposed change should take effect.
+ """
+ trial_settings: Optional[TrialSettings]
+ """
+ Settings related to subscription trials.
+ """
+ _inner_class_types = {
+ "actions": Action,
+ "applies_to": AppliesTo,
+ "cancel_subscription_schedule": CancelSubscriptionSchedule,
+ "ends_at": EndsAt,
+ "set_pause_collection": SetPauseCollection,
+ "starts_at": StartsAt,
+ "trial_settings": TrialSettings,
+ }
diff --git a/stripe/_quote_line_service.py b/stripe/_quote_line_service.py
new file mode 100644
index 000000000..d0ee8e0f5
--- /dev/null
+++ b/stripe/_quote_line_service.py
@@ -0,0 +1,54 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._quote_line import QuoteLine
+ from stripe._request_options import RequestOptions
+ from stripe.params._quote_line_list_params import QuoteLineListParams
+
+
+class QuoteLineService(StripeService):
+ def list(
+ self,
+ quote: str,
+ params: Optional["QuoteLineListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[QuoteLine]":
+ """
+ Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
+ """
+ return cast(
+ "ListObject[QuoteLine]",
+ self._request(
+ "get",
+ "/v1/quotes/{quote}/lines".format(quote=sanitize_id(quote)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ quote: str,
+ params: Optional["QuoteLineListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[QuoteLine]":
+ """
+ Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
+ """
+ return cast(
+ "ListObject[QuoteLine]",
+ await self._request_async(
+ "get",
+ "/v1/quotes/{quote}/lines".format(quote=sanitize_id(quote)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/_quote_preview_invoice.py b/stripe/_quote_preview_invoice.py
new file mode 100644
index 000000000..dc008d963
--- /dev/null
+++ b/stripe/_quote_preview_invoice.py
@@ -0,0 +1,1668 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._expandable_field import ExpandableField
+from stripe._list_object import ListObject
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, List, Optional, Union
+from typing_extensions import Literal, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._account import Account
+ from stripe._application import Application
+ from stripe._bank_account import BankAccount
+ from stripe._card import Card as CardResource
+ from stripe._discount import Discount
+ from stripe._invoice import Invoice
+ from stripe._invoice_line_item import InvoiceLineItem
+ from stripe._invoice_payment import InvoicePayment
+ from stripe._margin import Margin
+ from stripe._payment_intent import PaymentIntent
+ from stripe._payment_method import PaymentMethod
+ from stripe._setup_intent import SetupIntent
+ from stripe._shipping_rate import ShippingRate
+ from stripe._source import Source
+ from stripe._subscription import Subscription
+ from stripe._tax_id import TaxId
+ from stripe._tax_rate import TaxRate
+ from stripe.billing._credit_balance_transaction import (
+ CreditBalanceTransaction,
+ )
+ from stripe.test_helpers._test_clock import TestClock
+
+
+class QuotePreviewInvoice(StripeObject):
+ """
+ Invoices are statements of amounts owed by a customer, and are either
+ generated one-off, or generated periodically from a subscription.
+
+ They contain [invoice items](https://api.stripe.com#invoiceitems), and proration adjustments
+ that may be caused by subscription upgrades/downgrades (if necessary).
+
+ If your invoice is configured to be billed through automatic charges,
+ Stripe automatically finalizes your invoice and attempts payment. Note
+ that finalizing the invoice,
+ [when automatic](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection), does
+ not happen immediately as the invoice is created. Stripe waits
+ until one hour after the last webhook was successfully sent (or the last
+ webhook timed out after failing). If you (and the platforms you may have
+ connected to) have no webhooks configured, Stripe waits one hour after
+ creation to finalize the invoice.
+
+ If your invoice is configured to be billed by sending an email, then based on your
+ [email settings](https://dashboard.stripe.com/account/billing/automatic),
+ Stripe will email the invoice to your customer and await payment. These
+ emails can contain a link to a hosted page to pay the invoice.
+
+ Stripe applies any customer credit on the account before determining the
+ amount due for the invoice (i.e., the amount that will be actually
+ charged). If the amount due for the invoice is less than Stripe's [minimum allowed charge
+ per currency](https://docs.stripe.com/docs/currencies#minimum-and-maximum-charge-amounts), the
+ invoice is automatically marked paid, and we add the amount due to the
+ customer's credit balance which is applied to the next invoice.
+
+ More details on the customer's credit balance are
+ [here](https://docs.stripe.com/billing/customer/balance).
+
+ Related guide: [Send invoices to customers](https://docs.stripe.com/billing/invoices/sending)
+ """
+
+ OBJECT_NAME: ClassVar[Literal["quote_preview_invoice"]] = (
+ "quote_preview_invoice"
+ )
+
+ class AmountsDue(StripeObject):
+ amount: int
+ """
+ Incremental amount due for this payment in cents (or local equivalent).
+ """
+ amount_paid: int
+ """
+ The amount in cents (or local equivalent) that was paid for this payment.
+ """
+ amount_remaining: int
+ """
+ The difference between the payment's amount and amount_paid, in cents (or local equivalent).
+ """
+ days_until_due: Optional[int]
+ """
+ Number of days from when invoice is finalized until the payment is due.
+ """
+ description: Optional[str]
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users.
+ """
+ due_date: Optional[int]
+ """
+ Date on which a payment plan's payment is due.
+ """
+ paid_at: Optional[int]
+ """
+ Timestamp when the payment was paid.
+ """
+ status: Literal["open", "paid", "past_due"]
+ """
+ The status of the payment, one of `open`, `paid`, or `past_due`
+ """
+
+ class AppliesTo(StripeObject):
+ new_reference: Optional[str]
+ """
+ A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
+ """
+ subscription_schedule: Optional[str]
+ """
+ The ID of the schedule the line applies to.
+ """
+ type: Literal["new_reference", "subscription_schedule"]
+ """
+ Describes whether the quote line is affecting a new schedule or an existing schedule.
+ """
+
+ class AutomaticTax(StripeObject):
+ class Liability(StripeObject):
+ account: Optional[ExpandableField["Account"]]
+ """
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced.
+ """
+
+ disabled_reason: Optional[
+ Literal[
+ "finalization_requires_location_inputs",
+ "finalization_system_error",
+ ]
+ ]
+ """
+ If Stripe disabled automatic tax, this enum describes why.
+ """
+ enabled: bool
+ """
+ Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
+ """
+ liability: Optional[Liability]
+ """
+ The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
+ """
+ provider: Optional[str]
+ """
+ The tax provider powering automatic tax.
+ """
+ status: Optional[
+ Literal["complete", "failed", "requires_location_inputs"]
+ ]
+ """
+ The status of the most recent automated tax calculation for this invoice.
+ """
+ _inner_class_types = {"liability": Liability}
+
+ class ConfirmationSecret(StripeObject):
+ client_secret: str
+ """
+ The client_secret of the payment that Stripe creates for the invoice after finalization.
+ """
+ type: str
+ """
+ The type of client_secret. Currently this is always payment_intent, referencing the default payment_intent that Stripe creates during invoice finalization
+ """
+
+ class CustomField(StripeObject):
+ name: str
+ """
+ The name of the custom field.
+ """
+ value: str
+ """
+ The value of the custom field.
+ """
+
+ class CustomerAddress(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ class CustomerShipping(StripeObject):
+ class Address(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ address: Optional[Address]
+ carrier: Optional[str]
+ """
+ The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
+ """
+ name: Optional[str]
+ """
+ Recipient name.
+ """
+ phone: Optional[str]
+ """
+ Recipient phone (including extension).
+ """
+ tracking_number: Optional[str]
+ """
+ The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
+ """
+ _inner_class_types = {"address": Address}
+
+ class CustomerTaxId(StripeObject):
+ type: Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "bo_tin",
+ "br_cnpj",
+ "br_cpf",
+ "bs_tin",
+ "by_tin",
+ "ca_bn",
+ "ca_gst_hst",
+ "ca_pst_bc",
+ "ca_pst_mb",
+ "ca_pst_sk",
+ "ca_qst",
+ "cd_nif",
+ "ch_uid",
+ "ch_vat",
+ "cl_tin",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "gb_vat",
+ "ge_vat",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "ma_vat",
+ "md_vat",
+ "me_pib",
+ "mk_vat",
+ "mr_nif",
+ "mx_rfc",
+ "my_frp",
+ "my_itn",
+ "my_sst",
+ "ng_tin",
+ "no_vat",
+ "no_voec",
+ "np_pan",
+ "nz_gst",
+ "om_vat",
+ "pe_ruc",
+ "ph_tin",
+ "ro_tin",
+ "rs_pib",
+ "ru_inn",
+ "ru_kpp",
+ "sa_vat",
+ "sg_gst",
+ "sg_uen",
+ "si_tin",
+ "sn_ninea",
+ "sr_fin",
+ "sv_nit",
+ "th_vat",
+ "tj_tin",
+ "tr_tin",
+ "tw_vat",
+ "tz_vat",
+ "ua_vat",
+ "ug_tin",
+ "unknown",
+ "us_ein",
+ "uy_ruc",
+ "uz_tin",
+ "uz_vat",
+ "ve_rif",
+ "vn_tin",
+ "za_vat",
+ "zm_tin",
+ "zw_tin",
+ ]
+ """
+ The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
+ """
+ value: Optional[str]
+ """
+ The value of the tax ID.
+ """
+
+ class FromInvoice(StripeObject):
+ action: str
+ """
+ The relation between this invoice and the cloned invoice
+ """
+ invoice: ExpandableField["Invoice"]
+ """
+ The invoice that was cloned.
+ """
+
+ class Issuer(StripeObject):
+ account: Optional[ExpandableField["Account"]]
+ """
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced.
+ """
+
+ class LastFinalizationError(StripeObject):
+ advice_code: Optional[str]
+ """
+ For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one.
+ """
+ charge: Optional[str]
+ """
+ For card errors, the ID of the failed charge.
+ """
+ code: Optional[
+ Literal[
+ "account_closed",
+ "account_country_invalid_address",
+ "account_error_country_change_requires_additional_steps",
+ "account_information_mismatch",
+ "account_invalid",
+ "account_number_invalid",
+ "account_token_required_for_v2_account",
+ "acss_debit_session_incomplete",
+ "alipay_upgrade_required",
+ "amount_too_large",
+ "amount_too_small",
+ "api_key_expired",
+ "application_fees_not_allowed",
+ "authentication_required",
+ "balance_insufficient",
+ "balance_invalid_parameter",
+ "bank_account_bad_routing_numbers",
+ "bank_account_declined",
+ "bank_account_exists",
+ "bank_account_restricted",
+ "bank_account_unusable",
+ "bank_account_unverified",
+ "bank_account_verification_failed",
+ "billing_invalid_mandate",
+ "bitcoin_upgrade_required",
+ "capture_charge_authorization_expired",
+ "capture_unauthorized_payment",
+ "card_decline_rate_limit_exceeded",
+ "card_declined",
+ "cardholder_phone_number_required",
+ "charge_already_captured",
+ "charge_already_refunded",
+ "charge_disputed",
+ "charge_exceeds_source_limit",
+ "charge_exceeds_transaction_limit",
+ "charge_expired_for_capture",
+ "charge_invalid_parameter",
+ "charge_not_refundable",
+ "clearing_code_unsupported",
+ "country_code_invalid",
+ "country_unsupported",
+ "coupon_expired",
+ "customer_max_payment_methods",
+ "customer_max_subscriptions",
+ "customer_session_expired",
+ "customer_tax_location_invalid",
+ "debit_not_authorized",
+ "email_invalid",
+ "expired_card",
+ "financial_connections_account_inactive",
+ "financial_connections_account_pending_account_numbers",
+ "financial_connections_account_unavailable_account_numbers",
+ "financial_connections_institution_unavailable",
+ "financial_connections_no_successful_transaction_refresh",
+ "forwarding_api_inactive",
+ "forwarding_api_invalid_parameter",
+ "forwarding_api_retryable_upstream_error",
+ "forwarding_api_upstream_connection_error",
+ "forwarding_api_upstream_connection_timeout",
+ "forwarding_api_upstream_error",
+ "idempotency_key_in_use",
+ "incorrect_address",
+ "incorrect_cvc",
+ "incorrect_number",
+ "incorrect_zip",
+ "india_recurring_payment_mandate_canceled",
+ "instant_payouts_config_disabled",
+ "instant_payouts_currency_disabled",
+ "instant_payouts_limit_exceeded",
+ "instant_payouts_unsupported",
+ "insufficient_funds",
+ "intent_invalid_state",
+ "intent_verification_method_missing",
+ "invalid_card_type",
+ "invalid_characters",
+ "invalid_charge_amount",
+ "invalid_cvc",
+ "invalid_expiry_month",
+ "invalid_expiry_year",
+ "invalid_mandate_reference_prefix_format",
+ "invalid_number",
+ "invalid_source_usage",
+ "invalid_tax_location",
+ "invoice_no_customer_line_items",
+ "invoice_no_payment_method_types",
+ "invoice_no_subscription_line_items",
+ "invoice_not_editable",
+ "invoice_on_behalf_of_not_editable",
+ "invoice_payment_intent_requires_action",
+ "invoice_upcoming_none",
+ "livemode_mismatch",
+ "lock_timeout",
+ "missing",
+ "no_account",
+ "not_allowed_on_standard_account",
+ "out_of_inventory",
+ "ownership_declaration_not_allowed",
+ "parameter_invalid_empty",
+ "parameter_invalid_integer",
+ "parameter_invalid_string_blank",
+ "parameter_invalid_string_empty",
+ "parameter_missing",
+ "parameter_unknown",
+ "parameters_exclusive",
+ "payment_intent_action_required",
+ "payment_intent_authentication_failure",
+ "payment_intent_incompatible_payment_method",
+ "payment_intent_invalid_parameter",
+ "payment_intent_konbini_rejected_confirmation_number",
+ "payment_intent_mandate_invalid",
+ "payment_intent_payment_attempt_expired",
+ "payment_intent_payment_attempt_failed",
+ "payment_intent_rate_limit_exceeded",
+ "payment_intent_unexpected_state",
+ "payment_method_bank_account_already_verified",
+ "payment_method_bank_account_blocked",
+ "payment_method_billing_details_address_missing",
+ "payment_method_configuration_failures",
+ "payment_method_currency_mismatch",
+ "payment_method_customer_decline",
+ "payment_method_invalid_parameter",
+ "payment_method_invalid_parameter_testmode",
+ "payment_method_microdeposit_failed",
+ "payment_method_microdeposit_verification_amounts_invalid",
+ "payment_method_microdeposit_verification_amounts_mismatch",
+ "payment_method_microdeposit_verification_attempts_exceeded",
+ "payment_method_microdeposit_verification_descriptor_code_mismatch",
+ "payment_method_microdeposit_verification_timeout",
+ "payment_method_not_available",
+ "payment_method_provider_decline",
+ "payment_method_provider_timeout",
+ "payment_method_unactivated",
+ "payment_method_unexpected_state",
+ "payment_method_unsupported_type",
+ "payout_reconciliation_not_ready",
+ "payouts_limit_exceeded",
+ "payouts_not_allowed",
+ "platform_account_required",
+ "platform_api_key_expired",
+ "postal_code_invalid",
+ "processing_error",
+ "product_inactive",
+ "progressive_onboarding_limit_exceeded",
+ "rate_limit",
+ "refer_to_customer",
+ "refund_disputed_payment",
+ "resource_already_exists",
+ "resource_missing",
+ "return_intent_already_processed",
+ "routing_number_invalid",
+ "secret_key_required",
+ "sensitive_data_access_expired",
+ "sepa_unsupported_account",
+ "setup_attempt_failed",
+ "setup_intent_authentication_failure",
+ "setup_intent_invalid_parameter",
+ "setup_intent_mandate_invalid",
+ "setup_intent_mobile_wallet_unsupported",
+ "setup_intent_setup_attempt_expired",
+ "setup_intent_unexpected_state",
+ "shipping_address_invalid",
+ "shipping_calculation_failed",
+ "sku_inactive",
+ "state_unsupported",
+ "status_transition_invalid",
+ "stripe_tax_inactive",
+ "tax_id_invalid",
+ "tax_id_prohibited",
+ "taxes_calculation_failed",
+ "terminal_location_country_unsupported",
+ "terminal_reader_busy",
+ "terminal_reader_collected_data_invalid",
+ "terminal_reader_hardware_fault",
+ "terminal_reader_invalid_location_for_activation",
+ "terminal_reader_invalid_location_for_payment",
+ "terminal_reader_offline",
+ "terminal_reader_timeout",
+ "testmode_charges_only",
+ "tls_version_unsupported",
+ "token_already_used",
+ "token_card_network_invalid",
+ "token_in_use",
+ "transfer_source_balance_parameters_mismatch",
+ "transfers_not_allowed",
+ "url_invalid",
+ "v2_account_disconnection_unsupported",
+ "v2_account_missing_configuration",
+ ]
+ ]
+ """
+ For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
+ """
+ decline_code: Optional[str]
+ """
+ For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one.
+ """
+ doc_url: Optional[str]
+ """
+ A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
+ """
+ message: Optional[str]
+ """
+ A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
+ """
+ network_advice_code: Optional[str]
+ """
+ For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
+ """
+ network_decline_code: Optional[str]
+ """
+ For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
+ """
+ param: Optional[str]
+ """
+ If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
+ """
+ payment_intent: Optional["PaymentIntent"]
+ """
+ A PaymentIntent guides you through the process of collecting a payment from your customer.
+ We recommend that you create exactly one PaymentIntent for each order or
+ customer session in your system. You can reference the PaymentIntent later to
+ see the history of payment attempts for a particular session.
+
+ A PaymentIntent transitions through
+ [multiple statuses](https://docs.stripe.com/payments/paymentintents/lifecycle)
+ throughout its lifetime as it interfaces with Stripe.js to perform
+ authentication flows and ultimately creates at most one successful charge.
+
+ Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents)
+ """
+ payment_method: Optional["PaymentMethod"]
+ """
+ PaymentMethod objects represent your customer's payment instruments.
+ You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to
+ Customer objects to store instrument details for future payments.
+
+ Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios).
+ """
+ payment_method_type: Optional[str]
+ """
+ If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
+ """
+ request_log_url: Optional[str]
+ """
+ A URL to the request log entry in your dashboard.
+ """
+ setup_intent: Optional["SetupIntent"]
+ """
+ A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
+ For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
+ Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow.
+
+ Create a SetupIntent when you're ready to collect your customer's payment credentials.
+ Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
+ The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
+ you through the setup process.
+
+ Successful SetupIntents result in payment credentials that are optimized for future payments.
+ For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
+ [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
+ to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
+ If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer),
+ it automatically attaches the resulting payment method to that Customer after successful setup.
+ We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on
+ PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
+
+ By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
+
+ Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
+ """
+ source: Optional[
+ Union["Account", "BankAccount", "CardResource", "Source"]
+ ]
+ type: Literal[
+ "api_error",
+ "card_error",
+ "idempotency_error",
+ "invalid_request_error",
+ ]
+ """
+ The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
+ """
+
+ class Parent(StripeObject):
+ class BillingCadenceDetails(StripeObject):
+ billing_cadence: str
+ """
+ The billing cadence that generated this invoice
+ """
+
+ class QuoteDetails(StripeObject):
+ quote: str
+ """
+ The quote that generated this invoice
+ """
+
+ class SubscriptionDetails(StripeObject):
+ class PauseCollection(StripeObject):
+ behavior: Optional[
+ Literal["keep_as_draft", "mark_uncollectible", "void"]
+ ]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+ resumes_at: Optional[int]
+ """
+ The time after which the subscription will resume collecting payments.
+ """
+
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
+ *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
+ """
+ pause_collection: Optional[PauseCollection]
+ """
+ If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
+ """
+ subscription: ExpandableField["Subscription"]
+ """
+ The subscription that generated this invoice
+ """
+ subscription_proration_date: Optional[int]
+ """
+ Only set for upcoming invoices that preview prorations. The time used to calculate prorations.
+ """
+ _inner_class_types = {"pause_collection": PauseCollection}
+
+ billing_cadence_details: Optional[BillingCadenceDetails]
+ """
+ Details about the billing cadence that generated this invoice
+ """
+ quote_details: Optional[QuoteDetails]
+ """
+ Details about the quote that generated this invoice
+ """
+ subscription_details: Optional[SubscriptionDetails]
+ """
+ Details about the subscription that generated this invoice
+ """
+ type: Literal[
+ "billing_cadence_details", "quote_details", "subscription_details"
+ ]
+ """
+ The type of parent that generated this invoice
+ """
+ _inner_class_types = {
+ "billing_cadence_details": BillingCadenceDetails,
+ "quote_details": QuoteDetails,
+ "subscription_details": SubscriptionDetails,
+ }
+
+ class PaymentSettings(StripeObject):
+ class PaymentMethodOptions(StripeObject):
+ class AcssDebit(StripeObject):
+ class MandateOptions(StripeObject):
+ transaction_type: Optional[Literal["business", "personal"]]
+ """
+ Transaction type of the mandate.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ verification_method: Optional[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Bank account verification method.
+ """
+ _inner_class_types = {"mandate_options": MandateOptions}
+
+ class Bancontact(StripeObject):
+ preferred_language: Literal["de", "en", "fr", "nl"]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+
+ class Card(StripeObject):
+ class Installments(StripeObject):
+ enabled: Optional[bool]
+ """
+ Whether Installments are enabled for this Invoice.
+ """
+
+ installments: Optional[Installments]
+ request_three_d_secure: Optional[
+ Literal["any", "automatic", "challenge"]
+ ]
+ """
+ We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ """
+ _inner_class_types = {"installments": Installments}
+
+ class CustomerBalance(StripeObject):
+ class BankTransfer(StripeObject):
+ class EuBankTransfer(StripeObject):
+ country: Literal["BE", "DE", "ES", "FR", "IE", "NL"]
+ """
+ The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ """
+
+ eu_bank_transfer: Optional[EuBankTransfer]
+ type: Optional[str]
+ """
+ The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
+ """
+ _inner_class_types = {"eu_bank_transfer": EuBankTransfer}
+
+ bank_transfer: Optional[BankTransfer]
+ funding_type: Optional[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ """
+ _inner_class_types = {"bank_transfer": BankTransfer}
+
+ class IdBankTransfer(StripeObject):
+ pass
+
+ class Konbini(StripeObject):
+ pass
+
+ class Payto(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ The maximum amount that can be collected in a single invoice. If you don't specify a maximum, then there is no limit.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ Only `maximum` is supported.
+ """
+ purpose: Optional[
+ Literal[
+ "dependant_support",
+ "government",
+ "loan",
+ "mortgage",
+ "other",
+ "pension",
+ "personal",
+ "retail",
+ "salary",
+ "tax",
+ "utility",
+ ]
+ ]
+ """
+ The purpose for which payments are made. Has a default value based on your merchant category code.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ _inner_class_types = {"mandate_options": MandateOptions}
+
+ class Pix(StripeObject):
+ amount_includes_iof: Optional[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax.
+ """
+
+ class SepaDebit(StripeObject):
+ pass
+
+ class Upi(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: Optional[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: Optional[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ _inner_class_types = {"mandate_options": MandateOptions}
+
+ class UsBankAccount(StripeObject):
+ class FinancialConnections(StripeObject):
+ class Filters(StripeObject):
+ account_subcategories: Optional[
+ List[Literal["checking", "savings"]]
+ ]
+ """
+ The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
+ """
+ institution: Optional[str]
+ """
+ The institution to use to filter for possible accounts to link.
+ """
+
+ filters: Optional[Filters]
+ permissions: Optional[
+ List[
+ Literal[
+ "balances",
+ "ownership",
+ "payment_method",
+ "transactions",
+ ]
+ ]
+ ]
+ """
+ The list of permissions to request. The `payment_method` permission must be included.
+ """
+ prefetch: Optional[
+ List[
+ Literal[
+ "balances",
+ "inferred_balances",
+ "ownership",
+ "transactions",
+ ]
+ ]
+ ]
+ """
+ Data features requested to be retrieved upon account creation.
+ """
+ _inner_class_types = {"filters": Filters}
+
+ financial_connections: Optional[FinancialConnections]
+ verification_method: Optional[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Bank account verification method.
+ """
+ _inner_class_types = {
+ "financial_connections": FinancialConnections,
+ }
+
+ acss_debit: Optional[AcssDebit]
+ """
+ If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent.
+ """
+ bancontact: Optional[Bancontact]
+ """
+ If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
+ """
+ card: Optional[Card]
+ """
+ If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
+ """
+ customer_balance: Optional[CustomerBalance]
+ """
+ If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
+ """
+ id_bank_transfer: Optional[IdBankTransfer]
+ """
+ If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
+ """
+ konbini: Optional[Konbini]
+ """
+ If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
+ """
+ payto: Optional[Payto]
+ """
+ If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice's PaymentIntent.
+ """
+ pix: Optional[Pix]
+ """
+ If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice's PaymentIntent.
+ """
+ sepa_debit: Optional[SepaDebit]
+ """
+ If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice's PaymentIntent.
+ """
+ upi: Optional[Upi]
+ """
+ If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
+ """
+ us_bank_account: Optional[UsBankAccount]
+ """
+ If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
+ """
+ _inner_class_types = {
+ "acss_debit": AcssDebit,
+ "bancontact": Bancontact,
+ "card": Card,
+ "customer_balance": CustomerBalance,
+ "id_bank_transfer": IdBankTransfer,
+ "konbini": Konbini,
+ "payto": Payto,
+ "pix": Pix,
+ "sepa_debit": SepaDebit,
+ "upi": Upi,
+ "us_bank_account": UsBankAccount,
+ }
+
+ default_mandate: Optional[str]
+ """
+ ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
+ """
+ payment_method_options: Optional[PaymentMethodOptions]
+ """
+ Payment-method-specific configuration to provide to the invoice's PaymentIntent.
+ """
+ payment_method_types: Optional[
+ List[
+ Literal[
+ "ach_credit_transfer",
+ "ach_debit",
+ "acss_debit",
+ "affirm",
+ "amazon_pay",
+ "au_becs_debit",
+ "bacs_debit",
+ "bancontact",
+ "boleto",
+ "card",
+ "cashapp",
+ "crypto",
+ "custom",
+ "customer_balance",
+ "eps",
+ "fpx",
+ "giropay",
+ "grabpay",
+ "id_bank_transfer",
+ "ideal",
+ "jp_credit_transfer",
+ "kakao_pay",
+ "klarna",
+ "konbini",
+ "kr_card",
+ "link",
+ "multibanco",
+ "naver_pay",
+ "nz_bank_account",
+ "p24",
+ "payco",
+ "paynow",
+ "paypal",
+ "payto",
+ "pix",
+ "promptpay",
+ "revolut_pay",
+ "sepa_credit_transfer",
+ "sepa_debit",
+ "sofort",
+ "stripe_balance",
+ "swish",
+ "upi",
+ "us_bank_account",
+ "wechat_pay",
+ ]
+ ]
+ ]
+ """
+ The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
+ """
+ _inner_class_types = {"payment_method_options": PaymentMethodOptions}
+
+ class Rendering(StripeObject):
+ class Pdf(StripeObject):
+ page_size: Optional[Literal["a4", "auto", "letter"]]
+ """
+ Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale.
+ """
+
+ amount_tax_display: Optional[str]
+ """
+ How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
+ """
+ pdf: Optional[Pdf]
+ """
+ Invoice pdf rendering options
+ """
+ template: Optional[str]
+ """
+ ID of the rendering template that the invoice is formatted by.
+ """
+ template_version: Optional[int]
+ """
+ Version of the rendering template that the invoice is using.
+ """
+ _inner_class_types = {"pdf": Pdf}
+
+ class ShippingCost(StripeObject):
+ class Tax(StripeObject):
+ amount: int
+ """
+ Amount of tax applied for this rate.
+ """
+ rate: "TaxRate"
+ """
+ Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
+
+ Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates)
+ """
+ taxability_reason: Optional[
+ Literal[
+ "customer_exempt",
+ "not_collecting",
+ "not_subject_to_tax",
+ "not_supported",
+ "portion_product_exempt",
+ "portion_reduced_rated",
+ "portion_standard_rated",
+ "product_exempt",
+ "product_exempt_holiday",
+ "proportionally_rated",
+ "reduced_rated",
+ "reverse_charge",
+ "standard_rated",
+ "taxable_basis_reduced",
+ "zero_rated",
+ ]
+ ]
+ """
+ The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
+ """
+ taxable_amount: Optional[int]
+ """
+ The amount on which tax is calculated, in cents (or local equivalent).
+ """
+
+ amount_subtotal: int
+ """
+ Total shipping cost before any taxes are applied.
+ """
+ amount_tax: int
+ """
+ Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.
+ """
+ amount_total: int
+ """
+ Total shipping cost after taxes are applied.
+ """
+ shipping_rate: Optional[ExpandableField["ShippingRate"]]
+ """
+ The ID of the ShippingRate for this invoice.
+ """
+ taxes: Optional[List[Tax]]
+ """
+ The taxes applied to the shipping rate.
+ """
+ _inner_class_types = {"taxes": Tax}
+
+ class ShippingDetails(StripeObject):
+ class Address(StripeObject):
+ city: Optional[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: Optional[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: Optional[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: Optional[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: Optional[str]
+ """
+ ZIP or postal code.
+ """
+ state: Optional[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+ address: Optional[Address]
+ carrier: Optional[str]
+ """
+ The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
+ """
+ name: Optional[str]
+ """
+ Recipient name.
+ """
+ phone: Optional[str]
+ """
+ Recipient phone (including extension).
+ """
+ tracking_number: Optional[str]
+ """
+ The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
+ """
+ _inner_class_types = {"address": Address}
+
+ class StatusTransitions(StripeObject):
+ finalized_at: Optional[int]
+ """
+ The time that the invoice draft was finalized.
+ """
+ marked_uncollectible_at: Optional[int]
+ """
+ The time that the invoice was marked uncollectible.
+ """
+ paid_at: Optional[int]
+ """
+ The time that the invoice was paid.
+ """
+ voided_at: Optional[int]
+ """
+ The time that the invoice was voided.
+ """
+
+ class ThresholdReason(StripeObject):
+ class ItemReason(StripeObject):
+ line_item_ids: List[str]
+ """
+ The IDs of the line items that triggered the threshold invoice.
+ """
+ usage_gte: int
+ """
+ The quantity threshold boundary that applied to the given line item.
+ """
+
+ amount_gte: Optional[int]
+ """
+ The total invoice amount threshold boundary if it triggered the threshold invoice.
+ """
+ item_reasons: List[ItemReason]
+ """
+ Indicates which line items triggered a threshold invoice.
+ """
+ _inner_class_types = {"item_reasons": ItemReason}
+
+ class TotalDiscountAmount(StripeObject):
+ amount: int
+ """
+ The amount, in cents (or local equivalent), of the discount.
+ """
+ discount: ExpandableField["Discount"]
+ """
+ The discount that was applied to get this discount amount.
+ """
+
+ class TotalMarginAmount(StripeObject):
+ amount: int
+ """
+ The amount, in cents (or local equivalent), of the reduction in line item amount.
+ """
+ margin: ExpandableField["Margin"]
+ """
+ The margin that was applied to get this margin amount.
+ """
+
+ class TotalPretaxCreditAmount(StripeObject):
+ amount: int
+ """
+ The amount, in cents (or local equivalent), of the pretax credit amount.
+ """
+ credit_balance_transaction: Optional[
+ ExpandableField["CreditBalanceTransaction"]
+ ]
+ """
+ The credit balance transaction that was applied to get this pretax credit amount.
+ """
+ discount: Optional[ExpandableField["Discount"]]
+ """
+ The discount that was applied to get this pretax credit amount.
+ """
+ margin: Optional[ExpandableField["Margin"]]
+ """
+ The margin that was applied to get this pretax credit amount.
+ """
+ type: Literal["credit_balance_transaction", "discount", "margin"]
+ """
+ Type of the pretax credit amount referenced.
+ """
+
+ class TotalTax(StripeObject):
+ class TaxRateDetails(StripeObject):
+ tax_rate: str
+ """
+ ID of the tax rate
+ """
+
+ amount: int
+ """
+ The amount of the tax, in cents (or local equivalent).
+ """
+ tax_behavior: Literal["exclusive", "inclusive"]
+ """
+ Whether this tax is inclusive or exclusive.
+ """
+ tax_rate_details: Optional[TaxRateDetails]
+ """
+ Additional details about the tax rate. Only present when `type` is `tax_rate_details`.
+ """
+ taxability_reason: Literal[
+ "customer_exempt",
+ "not_available",
+ "not_collecting",
+ "not_subject_to_tax",
+ "not_supported",
+ "portion_product_exempt",
+ "portion_reduced_rated",
+ "portion_standard_rated",
+ "product_exempt",
+ "product_exempt_holiday",
+ "proportionally_rated",
+ "reduced_rated",
+ "reverse_charge",
+ "standard_rated",
+ "taxable_basis_reduced",
+ "zero_rated",
+ ]
+ """
+ The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
+ """
+ taxable_amount: Optional[int]
+ """
+ The amount on which tax is calculated, in cents (or local equivalent).
+ """
+ type: Literal["tax_rate_details"]
+ """
+ The type of tax information.
+ """
+ _inner_class_types = {"tax_rate_details": TaxRateDetails}
+
+ account_country: Optional[str]
+ """
+ The country of the business associated with this invoice, most often the business creating the invoice.
+ """
+ account_name: Optional[str]
+ """
+ The public name of the business associated with this invoice, most often the business creating the invoice.
+ """
+ account_tax_ids: Optional[List[ExpandableField["TaxId"]]]
+ """
+ The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
+ """
+ amount_due: int
+ """
+ Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the `amount_due` may be 0. If there is a positive `starting_balance` for the invoice (the customer owes money), the `amount_due` will also take that into account. The charge that gets generated for the invoice will be for the amount specified in `amount_due`.
+ """
+ amount_overpaid: int
+ """
+ Amount that was overpaid on the invoice. The amount overpaid is credited to the customer's credit balance.
+ """
+ amount_paid: int
+ """
+ The amount, in cents (or local equivalent), that was paid.
+ """
+ amount_remaining: int
+ """
+ The difference between amount_due and amount_paid, in cents (or local equivalent).
+ """
+ amount_shipping: int
+ """
+ This is the sum of all the shipping amounts.
+ """
+ amounts_due: Optional[List[AmountsDue]]
+ """
+ List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
+ """
+ application: Optional[ExpandableField["Application"]]
+ """
+ ID of the Connect Application that created the invoice.
+ """
+ applies_to: AppliesTo
+ attempt_count: int
+ """
+ Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained.
+ """
+ attempted: bool
+ """
+ Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the `invoice.created` webhook, for example, so you might not want to display that invoice as unpaid to your users.
+ """
+ automatic_tax: AutomaticTax
+ automatically_finalizes_at: Optional[int]
+ """
+ The time when this invoice is currently scheduled to be automatically finalized. The field will be `null` if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always be `null` - see `finalized_at` for the time when an already-finalized invoice was finalized.
+ """
+ billing_reason: Optional[
+ Literal[
+ "automatic_pending_invoice_item_invoice",
+ "manual",
+ "quote_accept",
+ "subscription",
+ "subscription_create",
+ "subscription_cycle",
+ "subscription_threshold",
+ "subscription_update",
+ "upcoming",
+ ]
+ ]
+ """
+ Indicates the reason why the invoice was created.
+
+ * `manual`: Unrelated to a subscription, for example, created via the invoice editor.
+ * `subscription`: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds.
+ * `subscription_create`: A new subscription was created.
+ * `subscription_cycle`: A subscription advanced into a new period.
+ * `subscription_threshold`: A subscription reached a billing threshold.
+ * `subscription_update`: A subscription was updated.
+ * `upcoming`: Reserved for upcoming invoices created through the Create Preview Invoice API or when an `invoice.upcoming` event is generated for an upcoming invoice on a subscription.
+ """
+ collection_method: Literal["charge_automatically", "send_invoice"]
+ """
+ Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
+ """
+ confirmation_secret: Optional[ConfirmationSecret]
+ """
+ The confirmation secret associated with this invoice. Currently, this contains the client_secret of the PaymentIntent that Stripe creates during invoice finalization.
+ """
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ custom_fields: Optional[List[CustomField]]
+ """
+ Custom fields displayed on the invoice.
+ """
+ customer_account: Optional[str]
+ """
+ The ID of the account representing the customer to bill.
+ """
+ customer_address: Optional[CustomerAddress]
+ """
+ The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated.
+ """
+ customer_email: Optional[str]
+ """
+ The customer's email. Until the invoice is finalized, this field will equal `customer.email`. Once the invoice is finalized, this field will no longer be updated.
+ """
+ customer_name: Optional[str]
+ """
+ The customer's name. Until the invoice is finalized, this field will equal `customer.name`. Once the invoice is finalized, this field will no longer be updated.
+ """
+ customer_phone: Optional[str]
+ """
+ The customer's phone number. Until the invoice is finalized, this field will equal `customer.phone`. Once the invoice is finalized, this field will no longer be updated.
+ """
+ customer_shipping: Optional[CustomerShipping]
+ """
+ The customer's shipping information. Until the invoice is finalized, this field will equal `customer.shipping`. Once the invoice is finalized, this field will no longer be updated.
+ """
+ customer_tax_exempt: Optional[Literal["exempt", "none", "reverse"]]
+ """
+ The customer's tax exempt status. Until the invoice is finalized, this field will equal `customer.tax_exempt`. Once the invoice is finalized, this field will no longer be updated.
+ """
+ customer_tax_ids: Optional[List[CustomerTaxId]]
+ """
+ The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated.
+ """
+ default_margins: Optional[List[ExpandableField["Margin"]]]
+ """
+ The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
+ """
+ default_payment_method: Optional[ExpandableField["PaymentMethod"]]
+ """
+ ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
+ """
+ default_source: Optional[
+ ExpandableField[
+ Union["Account", "BankAccount", "CardResource", "Source"]
+ ]
+ ]
+ """
+ ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
+ """
+ default_tax_rates: List["TaxRate"]
+ """
+ The tax rates applied to this invoice, if any.
+ """
+ description: Optional[str]
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
+ """
+ discounts: List[ExpandableField["Discount"]]
+ """
+ The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.
+ """
+ due_date: Optional[int]
+ """
+ The date on which payment for this invoice is due. This value will be `null` for invoices where `collection_method=charge_automatically`.
+ """
+ effective_at: Optional[int]
+ """
+ The date when this invoice is in effect. Same as `finalized_at` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.
+ """
+ ending_balance: Optional[int]
+ """
+ Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.
+ """
+ footer: Optional[str]
+ """
+ Footer displayed on the invoice.
+ """
+ from_invoice: Optional[FromInvoice]
+ """
+ Details of the invoice that was cloned. See the [revision documentation](https://docs.stripe.com/invoicing/invoice-revisions) for more details.
+ """
+ id: str
+ """
+ Unique identifier for the object. For preview invoices created using the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint, this id will be prefixed with `upcoming_in`.
+ """
+ issuer: Issuer
+ last_finalization_error: Optional[LastFinalizationError]
+ """
+ The error encountered during the previous attempt to finalize the invoice. This field is cleared when the invoice is successfully finalized.
+ """
+ latest_revision: Optional[ExpandableField["Invoice"]]
+ """
+ The ID of the most recent non-draft revision of this invoice
+ """
+ lines: ListObject["InvoiceLineItem"]
+ """
+ The individual line items that make up the invoice. `lines` is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ next_payment_attempt: Optional[int]
+ """
+ The time at which payment will next be attempted. This value will be `null` for invoices where `collection_method=send_invoice`.
+ """
+ number: Optional[str]
+ """
+ A unique, identifying string that appears on emails sent to the customer for this invoice. This starts with the customer's unique invoice_prefix if it is specified.
+ """
+ object: Literal["quote_preview_invoice"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ on_behalf_of: Optional[ExpandableField["Account"]]
+ """
+ The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://docs.stripe.com/billing/invoices/connect) documentation for details.
+ """
+ parent: Optional[Parent]
+ """
+ The parent that generated this invoice
+ """
+ payment_settings: PaymentSettings
+ payments: Optional[ListObject["InvoicePayment"]]
+ """
+ Payments for this invoice
+ """
+ period_end: int
+ """
+ End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
+ """
+ period_start: int
+ """
+ Start of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
+ """
+ post_payment_credit_notes_amount: int
+ """
+ Total amount of all post-payment credit notes issued for this invoice.
+ """
+ pre_payment_credit_notes_amount: int
+ """
+ Total amount of all pre-payment credit notes issued for this invoice.
+ """
+ receipt_number: Optional[str]
+ """
+ This is the transaction number that appears on email receipts sent for this invoice.
+ """
+ rendering: Optional[Rendering]
+ """
+ The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
+ """
+ shipping_cost: Optional[ShippingCost]
+ """
+ The details of the cost of shipping, including the ShippingRate applied on the invoice.
+ """
+ shipping_details: Optional[ShippingDetails]
+ """
+ Shipping details for the invoice. The Invoice PDF will use the `shipping_details` value if it is set, otherwise the PDF will render the shipping address from the customer.
+ """
+ starting_balance: int
+ """
+ Starting customer balance before the invoice is finalized. If the invoice has not been finalized yet, this will be the current customer balance. For revision invoices, this also includes any customer balance that was applied to the original invoice.
+ """
+ statement_descriptor: Optional[str]
+ """
+ Extra information about an invoice for the customer's credit card statement.
+ """
+ status: Optional[Literal["draft", "open", "paid", "uncollectible", "void"]]
+ """
+ The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview)
+ """
+ status_transitions: StatusTransitions
+ subscription: Optional[ExpandableField["Subscription"]]
+ subtotal: int
+ """
+ Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied. Item discounts are already incorporated
+ """
+ subtotal_excluding_tax: Optional[int]
+ """
+ The integer amount in cents (or local equivalent) representing the subtotal of the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated
+ """
+ test_clock: Optional[ExpandableField["TestClock"]]
+ """
+ ID of the test clock this invoice belongs to.
+ """
+ threshold_reason: Optional[ThresholdReason]
+ total: int
+ """
+ Total after discounts and taxes.
+ """
+ total_discount_amounts: Optional[List[TotalDiscountAmount]]
+ """
+ The aggregate amounts calculated per discount across all line items.
+ """
+ total_excluding_tax: Optional[int]
+ """
+ The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
+ """
+ total_margin_amounts: Optional[List[TotalMarginAmount]]
+ """
+ The aggregate amounts calculated per margin across all line items.
+ """
+ total_pretax_credit_amounts: Optional[List[TotalPretaxCreditAmount]]
+ """
+ Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.
+ """
+ total_taxes: Optional[List[TotalTax]]
+ """
+ The aggregate tax information of all line items.
+ """
+ webhooks_delivered_at: Optional[int]
+ """
+ Invoices are automatically paid or sent 1 hour after webhooks are delivered, or until all webhook delivery attempts have [been exhausted](https://docs.stripe.com/billing/webhooks#understand). This field tracks the time when webhooks for this invoice were successfully delivered. If the invoice had no webhooks to deliver, this will be set while the invoice is being created.
+ """
+ _inner_class_types = {
+ "amounts_due": AmountsDue,
+ "applies_to": AppliesTo,
+ "automatic_tax": AutomaticTax,
+ "confirmation_secret": ConfirmationSecret,
+ "custom_fields": CustomField,
+ "customer_address": CustomerAddress,
+ "customer_shipping": CustomerShipping,
+ "customer_tax_ids": CustomerTaxId,
+ "from_invoice": FromInvoice,
+ "issuer": Issuer,
+ "last_finalization_error": LastFinalizationError,
+ "parent": Parent,
+ "payment_settings": PaymentSettings,
+ "rendering": Rendering,
+ "shipping_cost": ShippingCost,
+ "shipping_details": ShippingDetails,
+ "status_transitions": StatusTransitions,
+ "threshold_reason": ThresholdReason,
+ "total_discount_amounts": TotalDiscountAmount,
+ "total_margin_amounts": TotalMarginAmount,
+ "total_pretax_credit_amounts": TotalPretaxCreditAmount,
+ "total_taxes": TotalTax,
+ }
diff --git a/stripe/_quote_preview_invoice_service.py b/stripe/_quote_preview_invoice_service.py
new file mode 100644
index 000000000..ab4109d88
--- /dev/null
+++ b/stripe/_quote_preview_invoice_service.py
@@ -0,0 +1,60 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._quote_preview_invoice import QuotePreviewInvoice
+ from stripe._request_options import RequestOptions
+ from stripe.params._quote_preview_invoice_list_params import (
+ QuotePreviewInvoiceListParams,
+ )
+
+
+class QuotePreviewInvoiceService(StripeService):
+ def list(
+ self,
+ quote: str,
+ params: Optional["QuotePreviewInvoiceListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[QuotePreviewInvoice]":
+ """
+ Preview the invoices that would be generated by accepting the quote.
+ """
+ return cast(
+ "ListObject[QuotePreviewInvoice]",
+ self._request(
+ "get",
+ "/v1/quotes/{quote}/preview_invoices".format(
+ quote=sanitize_id(quote),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ quote: str,
+ params: Optional["QuotePreviewInvoiceListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[QuotePreviewInvoice]":
+ """
+ Preview the invoices that would be generated by accepting the quote.
+ """
+ return cast(
+ "ListObject[QuotePreviewInvoice]",
+ await self._request_async(
+ "get",
+ "/v1/quotes/{quote}/preview_invoices".format(
+ quote=sanitize_id(quote),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/_quote_preview_subscription_schedule.py b/stripe/_quote_preview_subscription_schedule.py
new file mode 100644
index 000000000..2ec6331b8
--- /dev/null
+++ b/stripe/_quote_preview_subscription_schedule.py
@@ -0,0 +1,721 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._expandable_field import ExpandableField
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, List, Optional
+from typing_extensions import Literal, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._account import Account
+ from stripe._application import Application
+ from stripe._coupon import Coupon
+ from stripe._customer import Customer
+ from stripe._discount import Discount as DiscountResource
+ from stripe._invoice import Invoice
+ from stripe._payment_method import PaymentMethod
+ from stripe._plan import Plan
+ from stripe._price import Price
+ from stripe._promotion_code import PromotionCode
+ from stripe._subscription import Subscription
+ from stripe._tax_id import TaxId
+ from stripe._tax_rate import TaxRate
+ from stripe.test_helpers._test_clock import TestClock
+
+
+class QuotePreviewSubscriptionSchedule(StripeObject):
+ OBJECT_NAME: ClassVar[Literal["quote_preview_subscription_schedule"]] = (
+ "quote_preview_subscription_schedule"
+ )
+
+ class AppliesTo(StripeObject):
+ new_reference: Optional[str]
+ """
+ A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
+ """
+ subscription_schedule: Optional[str]
+ """
+ The ID of the schedule the line applies to.
+ """
+ type: Literal["new_reference", "subscription_schedule"]
+ """
+ Describes whether the quote line is affecting a new schedule or an existing schedule.
+ """
+
+ class BillingMode(StripeObject):
+ class Flexible(StripeObject):
+ proration_discounts: Optional[Literal["included", "itemized"]]
+ """
+ Controls how invoices and invoice items display proration amounts and discount amounts.
+ """
+
+ flexible: Optional[Flexible]
+ """
+ Configure behavior for flexible billing mode
+ """
+ type: Literal["classic", "flexible"]
+ """
+ Controls how prorations and invoices for subscriptions are calculated and orchestrated.
+ """
+ updated_at: Optional[int]
+ """
+ Details on when the current billing_mode was adopted.
+ """
+ _inner_class_types = {"flexible": Flexible}
+
+ class CurrentPhase(StripeObject):
+ end_date: int
+ """
+ The end of this phase of the subscription schedule.
+ """
+ start_date: int
+ """
+ The start of this phase of the subscription schedule.
+ """
+
+ class DefaultSettings(StripeObject):
+ class AutomaticTax(StripeObject):
+ class Liability(StripeObject):
+ account: Optional[ExpandableField["Account"]]
+ """
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced.
+ """
+
+ disabled_reason: Optional[Literal["requires_location_inputs"]]
+ """
+ If Stripe disabled automatic tax, this enum describes why.
+ """
+ enabled: bool
+ """
+ Whether Stripe automatically computes tax on invoices created during this phase.
+ """
+ liability: Optional[Liability]
+ """
+ The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
+ """
+ _inner_class_types = {"liability": Liability}
+
+ class BillingThresholds(StripeObject):
+ amount_gte: Optional[int]
+ """
+ Monetary threshold that triggers the subscription to create an invoice
+ """
+ reset_billing_cycle_anchor: Optional[bool]
+ """
+ Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
+ """
+
+ class InvoiceSettings(StripeObject):
+ class Issuer(StripeObject):
+ account: Optional[ExpandableField["Account"]]
+ """
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced.
+ """
+
+ account_tax_ids: Optional[List[ExpandableField["TaxId"]]]
+ """
+ The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
+ """
+ days_until_due: Optional[int]
+ """
+ Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
+ """
+ issuer: Issuer
+ _inner_class_types = {"issuer": Issuer}
+
+ class TransferData(StripeObject):
+ amount_percent: Optional[float]
+ """
+ A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
+ """
+ destination: ExpandableField["Account"]
+ """
+ The account where funds from the payment will be transferred to upon payment success.
+ """
+
+ application_fee_percent: Optional[float]
+ """
+ A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule.
+ """
+ automatic_tax: Optional[AutomaticTax]
+ billing_cycle_anchor: Literal["automatic", "phase_start"]
+ """
+ Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
+ """
+ billing_thresholds: Optional[BillingThresholds]
+ """
+ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
+ """
+ collection_method: Optional[
+ Literal["charge_automatically", "send_invoice"]
+ ]
+ """
+ Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`.
+ """
+ default_payment_method: Optional[ExpandableField["PaymentMethod"]]
+ """
+ ID of the default payment method for the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
+ """
+ description: Optional[str]
+ """
+ Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
+ """
+ invoice_settings: InvoiceSettings
+ on_behalf_of: Optional[ExpandableField["Account"]]
+ """
+ The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
+ """
+ transfer_data: Optional[TransferData]
+ """
+ The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
+ """
+ _inner_class_types = {
+ "automatic_tax": AutomaticTax,
+ "billing_thresholds": BillingThresholds,
+ "invoice_settings": InvoiceSettings,
+ "transfer_data": TransferData,
+ }
+
+ class LastPriceMigrationError(StripeObject):
+ class FailedTransition(StripeObject):
+ source_price: str
+ """
+ The original price to be migrated.
+ """
+ target_price: str
+ """
+ The intended resulting price of the migration.
+ """
+
+ errored_at: int
+ """
+ The time at which the price migration encountered an error.
+ """
+ failed_transitions: List[FailedTransition]
+ """
+ The involved price pairs in each failed transition.
+ """
+ type: Literal["price_uniqueness_violation"]
+ """
+ The type of error encountered by the price migration.
+ """
+ _inner_class_types = {"failed_transitions": FailedTransition}
+
+ class Phase(StripeObject):
+ class AddInvoiceItem(StripeObject):
+ class Discount(StripeObject):
+ class DiscountEnd(StripeObject):
+ timestamp: Optional[int]
+ """
+ The discount end timestamp.
+ """
+ type: Literal["timestamp"]
+ """
+ The discount end type.
+ """
+
+ coupon: Optional[ExpandableField["Coupon"]]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: Optional[ExpandableField["DiscountResource"]]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: Optional[DiscountEnd]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: Optional[ExpandableField["PromotionCode"]]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+ _inner_class_types = {"discount_end": DiscountEnd}
+
+ class Period(StripeObject):
+ class End(StripeObject):
+ timestamp: Optional[int]
+ """
+ A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
+ """
+ type: Literal[
+ "min_item_period_end", "phase_end", "timestamp"
+ ]
+ """
+ Select how to calculate the end of the invoice item period.
+ """
+
+ class Start(StripeObject):
+ timestamp: Optional[int]
+ """
+ A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
+ """
+ type: Literal[
+ "max_item_period_start", "phase_start", "timestamp"
+ ]
+ """
+ Select how to calculate the start of the invoice item period.
+ """
+
+ end: End
+ start: Start
+ _inner_class_types = {"end": End, "start": Start}
+
+ discounts: List[Discount]
+ """
+ The stackable discounts that will be applied to the item.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ period: Period
+ price: ExpandableField["Price"]
+ """
+ ID of the price used to generate the invoice item.
+ """
+ quantity: Optional[int]
+ """
+ The quantity of the invoice item.
+ """
+ tax_rates: Optional[List["TaxRate"]]
+ """
+ The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
+ """
+ _inner_class_types = {"discounts": Discount, "period": Period}
+
+ class AutomaticTax(StripeObject):
+ class Liability(StripeObject):
+ account: Optional[ExpandableField["Account"]]
+ """
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced.
+ """
+
+ disabled_reason: Optional[Literal["requires_location_inputs"]]
+ """
+ If Stripe disabled automatic tax, this enum describes why.
+ """
+ enabled: bool
+ """
+ Whether Stripe automatically computes tax on invoices created during this phase.
+ """
+ liability: Optional[Liability]
+ """
+ The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
+ """
+ _inner_class_types = {"liability": Liability}
+
+ class BillingThresholds(StripeObject):
+ amount_gte: Optional[int]
+ """
+ Monetary threshold that triggers the subscription to create an invoice
+ """
+ reset_billing_cycle_anchor: Optional[bool]
+ """
+ Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
+ """
+
+ class Discount(StripeObject):
+ class DiscountEnd(StripeObject):
+ timestamp: Optional[int]
+ """
+ The discount end timestamp.
+ """
+ type: Literal["timestamp"]
+ """
+ The discount end type.
+ """
+
+ coupon: Optional[ExpandableField["Coupon"]]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: Optional[ExpandableField["DiscountResource"]]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: Optional[DiscountEnd]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: Optional[ExpandableField["PromotionCode"]]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+ _inner_class_types = {"discount_end": DiscountEnd}
+
+ class InvoiceSettings(StripeObject):
+ class Issuer(StripeObject):
+ account: Optional[ExpandableField["Account"]]
+ """
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced.
+ """
+
+ account_tax_ids: Optional[List[ExpandableField["TaxId"]]]
+ """
+ The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
+ """
+ days_until_due: Optional[int]
+ """
+ Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
+ """
+ issuer: Optional[Issuer]
+ """
+ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
+ """
+ _inner_class_types = {"issuer": Issuer}
+
+ class Item(StripeObject):
+ class BillingThresholds(StripeObject):
+ usage_gte: Optional[int]
+ """
+ Usage threshold that triggers the subscription to create an invoice
+ """
+
+ class Discount(StripeObject):
+ class DiscountEnd(StripeObject):
+ timestamp: Optional[int]
+ """
+ The discount end timestamp.
+ """
+ type: Literal["timestamp"]
+ """
+ The discount end type.
+ """
+
+ coupon: Optional[ExpandableField["Coupon"]]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: Optional[ExpandableField["DiscountResource"]]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: Optional[DiscountEnd]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: Optional[ExpandableField["PromotionCode"]]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+ _inner_class_types = {"discount_end": DiscountEnd}
+
+ class Trial(StripeObject):
+ converts_to: Optional[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+ billing_thresholds: Optional[BillingThresholds]
+ """
+ Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
+ """
+ discounts: List[Discount]
+ """
+ The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an item. Metadata on this item will update the underlying subscription item's `metadata` when the phase is entered.
+ """
+ plan: ExpandableField["Plan"]
+ """
+ ID of the plan to which the customer should be subscribed.
+ """
+ price: ExpandableField["Price"]
+ """
+ ID of the price to which the customer should be subscribed.
+ """
+ quantity: Optional[int]
+ """
+ Quantity of the plan to which the customer should be subscribed.
+ """
+ tax_rates: Optional[List["TaxRate"]]
+ """
+ The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
+ """
+ trial: Optional[Trial]
+ """
+ Options that configure the trial on the subscription item.
+ """
+ _inner_class_types = {
+ "billing_thresholds": BillingThresholds,
+ "discounts": Discount,
+ "trial": Trial,
+ }
+
+ class PauseCollection(StripeObject):
+ behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+
+ class TransferData(StripeObject):
+ amount_percent: Optional[float]
+ """
+ A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
+ """
+ destination: ExpandableField["Account"]
+ """
+ The account where funds from the payment will be transferred to upon payment success.
+ """
+
+ class TrialSettings(StripeObject):
+ class EndBehavior(StripeObject):
+ prorate_up_front: Optional[Literal["defer", "include"]]
+ """
+ Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
+ """
+
+ end_behavior: Optional[EndBehavior]
+ """
+ Defines how the subscription should behave when a trial ends.
+ """
+ _inner_class_types = {"end_behavior": EndBehavior}
+
+ add_invoice_items: List[AddInvoiceItem]
+ """
+ A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
+ """
+ application_fee_percent: Optional[float]
+ """
+ A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule.
+ """
+ automatic_tax: Optional[AutomaticTax]
+ billing_cycle_anchor: Optional[Literal["automatic", "phase_start"]]
+ """
+ Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
+ """
+ billing_thresholds: Optional[BillingThresholds]
+ """
+ Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
+ """
+ collection_method: Optional[
+ Literal["charge_automatically", "send_invoice"]
+ ]
+ """
+ Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ default_payment_method: Optional[ExpandableField["PaymentMethod"]]
+ """
+ ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
+ """
+ default_tax_rates: Optional[List["TaxRate"]]
+ """
+ The default tax rates to apply to the subscription during this phase of the subscription schedule.
+ """
+ description: Optional[str]
+ """
+ Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
+ """
+ discounts: List[Discount]
+ """
+ The stackable discounts that will be applied to the subscription on this phase. Subscription item discounts are applied before subscription discounts.
+ """
+ end_date: int
+ """
+ The end of this phase of the subscription schedule.
+ """
+ invoice_settings: Optional[InvoiceSettings]
+ """
+ The invoice settings applicable during this phase.
+ """
+ items: List[Item]
+ """
+ Subscription items to configure the subscription to during this phase of the subscription schedule.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered. Updating the underlying subscription's `metadata` directly will not affect the current phase's `metadata`.
+ """
+ on_behalf_of: Optional[ExpandableField["Account"]]
+ """
+ The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
+ """
+ pause_collection: Optional[PauseCollection]
+ """
+ If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
+ """
+ proration_behavior: Literal[
+ "always_invoice", "create_prorations", "none"
+ ]
+ """
+ When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
+ """
+ start_date: int
+ """
+ The start of this phase of the subscription schedule.
+ """
+ transfer_data: Optional[TransferData]
+ """
+ The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
+ """
+ trial_continuation: Optional[Literal["continue", "none"]]
+ """
+ Specify behavior of the trial when crossing schedule phase boundaries
+ """
+ trial_end: Optional[int]
+ """
+ When the trial ends within the phase.
+ """
+ trial_settings: Optional[TrialSettings]
+ """
+ Settings related to any trials on the subscription during this phase.
+ """
+ _inner_class_types = {
+ "add_invoice_items": AddInvoiceItem,
+ "automatic_tax": AutomaticTax,
+ "billing_thresholds": BillingThresholds,
+ "discounts": Discount,
+ "invoice_settings": InvoiceSettings,
+ "items": Item,
+ "pause_collection": PauseCollection,
+ "transfer_data": TransferData,
+ "trial_settings": TrialSettings,
+ }
+
+ class Prebilling(StripeObject):
+ invoice: ExpandableField["Invoice"]
+ """
+ ID of the prebilling invoice.
+ """
+ period_end: int
+ """
+ The end of the last period for which the invoice pre-bills.
+ """
+ period_start: int
+ """
+ The start of the first period for which the invoice pre-bills.
+ """
+ update_behavior: Optional[Literal["prebill", "reset"]]
+ """
+ Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
+ """
+
+ application: Optional[ExpandableField["Application"]]
+ """
+ ID of the Connect Application that created the schedule.
+ """
+ applies_to: AppliesTo
+ billing_behavior: Optional[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
+ billing_mode: BillingMode
+ """
+ The billing mode of the subscription.
+ """
+ canceled_at: Optional[int]
+ """
+ Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
+ """
+ completed_at: Optional[int]
+ """
+ Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.
+ """
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ current_phase: Optional[CurrentPhase]
+ """
+ Object representing the start and end dates for the current phase of the subscription schedule, if it is `active`.
+ """
+ customer: ExpandableField["Customer"]
+ """
+ ID of the customer who owns the subscription schedule.
+ """
+ customer_account: Optional[str]
+ """
+ ID of the account who owns the subscription schedule.
+ """
+ default_settings: DefaultSettings
+ end_behavior: Literal["cancel", "none", "release", "renew"]
+ """
+ Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ last_price_migration_error: Optional[LastPriceMigrationError]
+ """
+ Details of the most recent price migration that failed for the subscription schedule.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ object: Literal["quote_preview_subscription_schedule"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ phases: List[Phase]
+ """
+ Configuration for the subscription schedule's phases.
+ """
+ prebilling: Optional[Prebilling]
+ """
+ Time period and invoice for a Subscription billed in advance.
+ """
+ released_at: Optional[int]
+ """
+ Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
+ """
+ released_subscription: Optional[str]
+ """
+ ID of the subscription once managed by the subscription schedule (if it is released).
+ """
+ status: Literal[
+ "active", "canceled", "completed", "not_started", "released"
+ ]
+ """
+ The present status of the subscription schedule. Possible values are `not_started`, `active`, `completed`, `released`, and `canceled`. You can read more about the different states in our [behavior guide](https://docs.stripe.com/billing/subscriptions/subscription-schedules).
+ """
+ subscription: Optional[ExpandableField["Subscription"]]
+ """
+ ID of the subscription managed by the subscription schedule.
+ """
+ test_clock: Optional[ExpandableField["TestClock"]]
+ """
+ ID of the test clock this subscription schedule belongs to.
+ """
+ _inner_class_types = {
+ "applies_to": AppliesTo,
+ "billing_mode": BillingMode,
+ "current_phase": CurrentPhase,
+ "default_settings": DefaultSettings,
+ "last_price_migration_error": LastPriceMigrationError,
+ "phases": Phase,
+ "prebilling": Prebilling,
+ }
diff --git a/stripe/_quote_preview_subscription_schedule_service.py b/stripe/_quote_preview_subscription_schedule_service.py
new file mode 100644
index 000000000..636a0a49b
--- /dev/null
+++ b/stripe/_quote_preview_subscription_schedule_service.py
@@ -0,0 +1,62 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._quote_preview_subscription_schedule import (
+ QuotePreviewSubscriptionSchedule,
+ )
+ from stripe._request_options import RequestOptions
+ from stripe.params._quote_preview_subscription_schedule_list_params import (
+ QuotePreviewSubscriptionScheduleListParams,
+ )
+
+
+class QuotePreviewSubscriptionScheduleService(StripeService):
+ def list(
+ self,
+ quote: str,
+ params: Optional["QuotePreviewSubscriptionScheduleListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[QuotePreviewSubscriptionSchedule]":
+ """
+ Preview the schedules that would be generated by accepting the quote
+ """
+ return cast(
+ "ListObject[QuotePreviewSubscriptionSchedule]",
+ self._request(
+ "get",
+ "/v1/quotes/{quote}/preview_subscription_schedules".format(
+ quote=sanitize_id(quote),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ quote: str,
+ params: Optional["QuotePreviewSubscriptionScheduleListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[QuotePreviewSubscriptionSchedule]":
+ """
+ Preview the schedules that would be generated by accepting the quote
+ """
+ return cast(
+ "ListObject[QuotePreviewSubscriptionSchedule]",
+ await self._request_async(
+ "get",
+ "/v1/quotes/{quote}/preview_subscription_schedules".format(
+ quote=sanitize_id(quote),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/_quote_service.py b/stripe/_quote_service.py
index 80cd138b9..248977ea0 100644
--- a/stripe/_quote_service.py
+++ b/stripe/_quote_service.py
@@ -7,12 +7,20 @@
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
+ from stripe._invoice_line_item import InvoiceLineItem
from stripe._list_object import ListObject
from stripe._quote import Quote
from stripe._quote_computed_upfront_line_items_service import (
QuoteComputedUpfrontLineItemsService,
)
from stripe._quote_line_item_service import QuoteLineItemService
+ from stripe._quote_line_service import QuoteLineService
+ from stripe._quote_preview_invoice_service import (
+ QuotePreviewInvoiceService,
+ )
+ from stripe._quote_preview_subscription_schedule_service import (
+ QuotePreviewSubscriptionScheduleService,
+ )
from stripe._request_options import RequestOptions
from stripe.params._quote_accept_params import QuoteAcceptParams
from stripe.params._quote_cancel_params import QuoteCancelParams
@@ -21,7 +29,13 @@
QuoteFinalizeQuoteParams,
)
from stripe.params._quote_list_params import QuoteListParams
+ from stripe.params._quote_list_preview_invoice_lines_params import (
+ QuoteListPreviewInvoiceLinesParams,
+ )
+ from stripe.params._quote_mark_draft_params import QuoteMarkDraftParams
+ from stripe.params._quote_mark_stale_params import QuoteMarkStaleParams
from stripe.params._quote_pdf_params import QuotePdfParams
+ from stripe.params._quote_reestimate_params import QuoteReestimateParams
from stripe.params._quote_retrieve_params import QuoteRetrieveParams
from stripe.params._quote_update_params import QuoteUpdateParams
from typing import Any
@@ -31,13 +45,25 @@
"stripe._quote_computed_upfront_line_items_service",
"QuoteComputedUpfrontLineItemsService",
],
+ "lines": ["stripe._quote_line_service", "QuoteLineService"],
"line_items": ["stripe._quote_line_item_service", "QuoteLineItemService"],
+ "preview_invoices": [
+ "stripe._quote_preview_invoice_service",
+ "QuotePreviewInvoiceService",
+ ],
+ "preview_subscription_schedules": [
+ "stripe._quote_preview_subscription_schedule_service",
+ "QuotePreviewSubscriptionScheduleService",
+ ],
}
class QuoteService(StripeService):
computed_upfront_line_items: "QuoteComputedUpfrontLineItemsService"
+ lines: "QuoteLineService"
line_items: "QuoteLineItemService"
+ preview_invoices: "QuotePreviewInvoiceService"
+ preview_subscription_schedules: "QuotePreviewSubscriptionScheduleService"
def __init__(self, requestor):
super().__init__(requestor)
@@ -334,6 +360,138 @@ async def finalize_quote_async(
),
)
+ def mark_draft(
+ self,
+ quote: str,
+ params: Optional["QuoteMarkDraftParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Quote":
+ """
+ Converts a stale quote to draft.
+ """
+ return cast(
+ "Quote",
+ self._request(
+ "post",
+ "/v1/quotes/{quote}/mark_draft".format(
+ quote=sanitize_id(quote),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def mark_draft_async(
+ self,
+ quote: str,
+ params: Optional["QuoteMarkDraftParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Quote":
+ """
+ Converts a stale quote to draft.
+ """
+ return cast(
+ "Quote",
+ await self._request_async(
+ "post",
+ "/v1/quotes/{quote}/mark_draft".format(
+ quote=sanitize_id(quote),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def mark_stale(
+ self,
+ quote: str,
+ params: Optional["QuoteMarkStaleParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Quote":
+ """
+ Converts a draft or open quote to stale.
+ """
+ return cast(
+ "Quote",
+ self._request(
+ "post",
+ "/v1/quotes/{quote}/mark_stale".format(
+ quote=sanitize_id(quote),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def mark_stale_async(
+ self,
+ quote: str,
+ params: Optional["QuoteMarkStaleParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Quote":
+ """
+ Converts a draft or open quote to stale.
+ """
+ return cast(
+ "Quote",
+ await self._request_async(
+ "post",
+ "/v1/quotes/{quote}/mark_stale".format(
+ quote=sanitize_id(quote),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def reestimate(
+ self,
+ quote: str,
+ params: Optional["QuoteReestimateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Quote":
+ """
+ Recompute the upcoming invoice estimate for the quote.
+ """
+ return cast(
+ "Quote",
+ self._request(
+ "post",
+ "/v1/quotes/{quote}/reestimate".format(
+ quote=sanitize_id(quote),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def reestimate_async(
+ self,
+ quote: str,
+ params: Optional["QuoteReestimateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Quote":
+ """
+ Recompute the upcoming invoice estimate for the quote.
+ """
+ return cast(
+ "Quote",
+ await self._request_async(
+ "post",
+ "/v1/quotes/{quote}/reestimate".format(
+ quote=sanitize_id(quote),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
def pdf(
self,
quote: str,
@@ -373,3 +531,51 @@ async def pdf_async(
options=options,
),
)
+
+ def list_preview_invoice_lines(
+ self,
+ quote: str,
+ preview_invoice: str,
+ params: Optional["QuoteListPreviewInvoiceLinesParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[InvoiceLineItem]":
+ """
+ Preview the invoice line items that would be generated by accepting the quote.
+ """
+ return cast(
+ "ListObject[InvoiceLineItem]",
+ self._request(
+ "get",
+ "/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines".format(
+ quote=sanitize_id(quote),
+ preview_invoice=sanitize_id(preview_invoice),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_preview_invoice_lines_async(
+ self,
+ quote: str,
+ preview_invoice: str,
+ params: Optional["QuoteListPreviewInvoiceLinesParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[InvoiceLineItem]":
+ """
+ Preview the invoice line items that would be generated by accepting the quote.
+ """
+ return cast(
+ "ListObject[InvoiceLineItem]",
+ await self._request_async(
+ "get",
+ "/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines".format(
+ quote=sanitize_id(quote),
+ preview_invoice=sanitize_id(preview_invoice),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/_refund.py b/stripe/_refund.py
index 088ef61a9..d865c06af 100644
--- a/stripe/_refund.py
+++ b/stripe/_refund.py
@@ -141,6 +141,16 @@ class Giropay(StripeObject):
class Grabpay(StripeObject):
pass
+ class IdBankTransfer(StripeObject):
+ reference: Optional[str]
+ """
+ The reference assigned to the refund.
+ """
+ reference_status: Optional[str]
+ """
+ Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.
+ """
+
class JpBankTransfer(StripeObject):
reference: Optional[str]
"""
@@ -275,6 +285,7 @@ class Zip(StripeObject):
gb_bank_transfer: Optional[GbBankTransfer]
giropay: Optional[Giropay]
grabpay: Optional[Grabpay]
+ id_bank_transfer: Optional[IdBankTransfer]
jp_bank_transfer: Optional[JpBankTransfer]
klarna: Optional[Klarna]
mb_way: Optional[MbWay]
@@ -315,6 +326,7 @@ class Zip(StripeObject):
"gb_bank_transfer": GbBankTransfer,
"giropay": Giropay,
"grabpay": Grabpay,
+ "id_bank_transfer": IdBankTransfer,
"jp_bank_transfer": JpBankTransfer,
"klarna": Klarna,
"mb_way": MbWay,
diff --git a/stripe/_reserve_service.py b/stripe/_reserve_service.py
new file mode 100644
index 000000000..62a8ddcda
--- /dev/null
+++ b/stripe/_reserve_service.py
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.reserve._hold_service import HoldService
+ from stripe.reserve._plan_service import PlanService
+ from stripe.reserve._release_service import ReleaseService
+
+_subservices = {
+ "holds": ["stripe.reserve._hold_service", "HoldService"],
+ "plans": ["stripe.reserve._plan_service", "PlanService"],
+ "releases": ["stripe.reserve._release_service", "ReleaseService"],
+}
+
+
+class ReserveService(StripeService):
+ holds: "HoldService"
+ plans: "PlanService"
+ releases: "ReleaseService"
+
+ def __init__(self, requestor):
+ super().__init__(requestor)
+
+ def __getattr__(self, name):
+ try:
+ import_from, service = _subservices[name]
+ service_class = getattr(
+ import_module(import_from),
+ service,
+ )
+ setattr(
+ self,
+ name,
+ service_class(self._requestor),
+ )
+ return getattr(self, name)
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py
index 04ea9a532..cd0e8c7f8 100644
--- a/stripe/_setup_attempt.py
+++ b/stripe/_setup_attempt.py
@@ -257,6 +257,24 @@ class Offline(StripeObject):
class Cashapp(StripeObject):
pass
+ class IdBankTransfer(StripeObject):
+ bank: Optional[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ """
+ Bank where the account is located.
+ """
+ bank_code: Optional[str]
+ """
+ Local bank code of the bank.
+ """
+ bank_name: Optional[str]
+ """
+ Name of the bank associated with the bank account.
+ """
+ display_name: Optional[str]
+ """
+ Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
+ """
+
class Ideal(StripeObject):
bank: Optional[
Literal[
@@ -356,6 +374,9 @@ class Paypal(StripeObject):
class Payto(StripeObject):
pass
+ class Pix(StripeObject):
+ pass
+
class RevolutPay(StripeObject):
pass
@@ -398,6 +419,9 @@ class Sofort(StripeObject):
(if supported) at the time of authorization or settlement. They cannot be set or mutated.
"""
+ class StripeBalance(StripeObject):
+ pass
+
class UsBankAccount(StripeObject):
pass
@@ -410,6 +434,7 @@ class UsBankAccount(StripeObject):
card: Optional[Card]
card_present: Optional[CardPresent]
cashapp: Optional[Cashapp]
+ id_bank_transfer: Optional[IdBankTransfer]
ideal: Optional[Ideal]
kakao_pay: Optional[KakaoPay]
klarna: Optional[Klarna]
@@ -419,9 +444,11 @@ class UsBankAccount(StripeObject):
nz_bank_account: Optional[NzBankAccount]
paypal: Optional[Paypal]
payto: Optional[Payto]
+ pix: Optional[Pix]
revolut_pay: Optional[RevolutPay]
sepa_debit: Optional[SepaDebit]
sofort: Optional[Sofort]
+ stripe_balance: Optional[StripeBalance]
type: str
"""
The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method.
@@ -437,6 +464,7 @@ class UsBankAccount(StripeObject):
"card": Card,
"card_present": CardPresent,
"cashapp": Cashapp,
+ "id_bank_transfer": IdBankTransfer,
"ideal": Ideal,
"kakao_pay": KakaoPay,
"klarna": Klarna,
@@ -446,9 +474,11 @@ class UsBankAccount(StripeObject):
"nz_bank_account": NzBankAccount,
"paypal": Paypal,
"payto": Payto,
+ "pix": Pix,
"revolut_pay": RevolutPay,
"sepa_debit": SepaDebit,
"sofort": Sofort,
+ "stripe_balance": StripeBalance,
"us_bank_account": UsBankAccount,
}
@@ -515,6 +545,7 @@ class SetupError(StripeObject):
"financial_connections_account_inactive",
"financial_connections_account_pending_account_numbers",
"financial_connections_account_unavailable_account_numbers",
+ "financial_connections_institution_unavailable",
"financial_connections_no_successful_transaction_refresh",
"forwarding_api_inactive",
"forwarding_api_invalid_parameter",
@@ -613,6 +644,7 @@ class SetupError(StripeObject):
"return_intent_already_processed",
"routing_number_invalid",
"secret_key_required",
+ "sensitive_data_access_expired",
"sepa_unsupported_account",
"setup_attempt_failed",
"setup_intent_authentication_failure",
@@ -632,6 +664,7 @@ class SetupError(StripeObject):
"taxes_calculation_failed",
"terminal_location_country_unsupported",
"terminal_reader_busy",
+ "terminal_reader_collected_data_invalid",
"terminal_reader_hardware_fault",
"terminal_reader_invalid_location_for_activation",
"terminal_reader_invalid_location_for_payment",
@@ -645,6 +678,8 @@ class SetupError(StripeObject):
"transfer_source_balance_parameters_mismatch",
"transfers_not_allowed",
"url_invalid",
+ "v2_account_disconnection_unsupported",
+ "v2_account_missing_configuration",
]
]
"""
diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py
index 69fb205a0..598980608 100644
--- a/stripe/_setup_intent.py
+++ b/stripe/_setup_intent.py
@@ -149,6 +149,7 @@ class LastSetupError(StripeObject):
"financial_connections_account_inactive",
"financial_connections_account_pending_account_numbers",
"financial_connections_account_unavailable_account_numbers",
+ "financial_connections_institution_unavailable",
"financial_connections_no_successful_transaction_refresh",
"forwarding_api_inactive",
"forwarding_api_invalid_parameter",
@@ -247,6 +248,7 @@ class LastSetupError(StripeObject):
"return_intent_already_processed",
"routing_number_invalid",
"secret_key_required",
+ "sensitive_data_access_expired",
"sepa_unsupported_account",
"setup_attempt_failed",
"setup_intent_authentication_failure",
@@ -266,6 +268,7 @@ class LastSetupError(StripeObject):
"taxes_calculation_failed",
"terminal_location_country_unsupported",
"terminal_reader_busy",
+ "terminal_reader_collected_data_invalid",
"terminal_reader_hardware_fault",
"terminal_reader_invalid_location_for_activation",
"terminal_reader_invalid_location_for_payment",
@@ -279,6 +282,8 @@ class LastSetupError(StripeObject):
"transfer_source_balance_parameters_mismatch",
"transfers_not_allowed",
"url_invalid",
+ "v2_account_disconnection_unsupported",
+ "v2_account_missing_configuration",
]
]
"""
@@ -402,6 +407,28 @@ class QrCode(StripeObject):
qr_code: QrCode
_inner_class_types = {"qr_code": QrCode}
+ class PixDisplayQrCode(StripeObject):
+ data: Optional[str]
+ """
+ The raw data string used to generate QR code, it should be used together with QR code library.
+ """
+ expires_at: Optional[int]
+ """
+ The date (unix timestamp) when the PIX expires.
+ """
+ hosted_instructions_url: Optional[str]
+ """
+ The URL to the hosted pix instructions page, which allows customers to view the pix QR code.
+ """
+ image_url_png: Optional[str]
+ """
+ The image_url_png string used to render png QR code
+ """
+ image_url_svg: Optional[str]
+ """
+ The image_url_svg string used to render svg QR code
+ """
+
class RedirectToUrl(StripeObject):
return_url: Optional[str]
"""
@@ -429,6 +456,7 @@ class VerifyWithMicrodeposits(StripeObject):
cashapp_handle_redirect_or_display_qr_code: Optional[
CashappHandleRedirectOrDisplayQrCode
]
+ pix_display_qr_code: Optional[PixDisplayQrCode]
redirect_to_url: Optional[RedirectToUrl]
type: str
"""
@@ -441,6 +469,7 @@ class VerifyWithMicrodeposits(StripeObject):
verify_with_microdeposits: Optional[VerifyWithMicrodeposits]
_inner_class_types = {
"cashapp_handle_redirect_or_display_qr_code": CashappHandleRedirectOrDisplayQrCode,
+ "pix_display_qr_code": PixDisplayQrCode,
"redirect_to_url": RedirectToUrl,
"verify_with_microdeposits": VerifyWithMicrodeposits,
}
@@ -606,6 +635,14 @@ class Paypal(StripeObject):
"""
The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
"""
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ subsellers: Optional[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
class Payto(StripeObject):
class MandateOptions(StripeObject):
@@ -666,6 +703,52 @@ class MandateOptions(StripeObject):
mandate_options: Optional[MandateOptions]
_inner_class_types = {"mandate_options": MandateOptions}
+ class Pix(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_includes_iof: Optional[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ Type of amount.
+ """
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
+ """
+ end_date: Optional[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
+ """
+ payment_schedule: Optional[
+ Literal[
+ "halfyearly",
+ "monthly",
+ "quarterly",
+ "weekly",
+ "yearly",
+ ]
+ ]
+ """
+ Schedule at which the future payments will be charged.
+ """
+ reference: Optional[str]
+ """
+ Subscription name displayed to buyers in their bank app.
+ """
+ start_date: Optional[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ _inner_class_types = {"mandate_options": MandateOptions}
+
class SepaDebit(StripeObject):
class MandateOptions(StripeObject):
reference_prefix: Optional[str]
@@ -685,8 +768,19 @@ class Filters(StripeObject):
"""
The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
"""
+ institution: Optional[str]
+ """
+ The institution to use to filter for possible accounts to link.
+ """
+
+ class ManualEntry(StripeObject):
+ mode: Optional[Literal["automatic", "custom"]]
+ """
+ Settings for configuring manual entry of account details.
+ """
filters: Optional[Filters]
+ manual_entry: Optional[ManualEntry]
permissions: Optional[
List[
Literal[
@@ -701,7 +795,14 @@ class Filters(StripeObject):
The list of permissions to request. The `payment_method` permission must be included.
"""
prefetch: Optional[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances",
+ "inferred_balances",
+ "ownership",
+ "transactions",
+ ]
+ ]
]
"""
Data features requested to be retrieved upon account creation.
@@ -710,7 +811,10 @@ class Filters(StripeObject):
"""
For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
"""
- _inner_class_types = {"filters": Filters}
+ _inner_class_types = {
+ "filters": Filters,
+ "manual_entry": ManualEntry,
+ }
class MandateOptions(StripeObject):
collection_method: Optional[Literal["paper"]]
@@ -740,6 +844,7 @@ class MandateOptions(StripeObject):
link: Optional[Link]
paypal: Optional[Paypal]
payto: Optional[Payto]
+ pix: Optional[Pix]
sepa_debit: Optional[SepaDebit]
us_bank_account: Optional[UsBankAccount]
_inner_class_types = {
@@ -752,6 +857,7 @@ class MandateOptions(StripeObject):
"link": Link,
"paypal": Paypal,
"payto": Payto,
+ "pix": Pix,
"sepa_debit": SepaDebit,
"us_bank_account": UsBankAccount,
}
@@ -824,7 +930,9 @@ class MandateOptions(StripeObject):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -841,14 +949,19 @@ class MandateOptions(StripeObject):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
diff --git a/stripe/_source.py b/stripe/_source.py
index 27d5795cd..b032e7d85 100644
--- a/stripe/_source.py
+++ b/stripe/_source.py
@@ -89,6 +89,7 @@ class Card(StripeObject):
address_line1_check: Optional[str]
address_zip_check: Optional[str]
brand: Optional[str]
+ brand_product: Optional[str]
country: Optional[str]
cvc_check: Optional[str]
description: Optional[str]
@@ -110,6 +111,7 @@ class CardPresent(StripeObject):
authorization_code: Optional[str]
authorization_response_code: Optional[str]
brand: Optional[str]
+ brand_product: Optional[str]
country: Optional[str]
cvm_type: Optional[str]
data_type: Optional[str]
@@ -291,6 +293,17 @@ class VerifiedAddress(StripeObject):
class P24(StripeObject):
reference: Optional[str]
+ class Paypal(StripeObject):
+ billing_agreement: Optional[str]
+ fingerprint: Optional[str]
+ payer_id: Optional[str]
+ reference_id: Optional[str]
+ reference_transaction_amount: Optional[str]
+ reference_transaction_charged: Optional[bool]
+ statement_descriptor: Optional[str]
+ transaction_id: Optional[str]
+ verified_email: Optional[str]
+
class Receiver(StripeObject):
address: Optional[str]
"""
@@ -463,6 +476,7 @@ class ThreeDSecure(StripeObject):
address_zip_check: Optional[str]
authenticated: Optional[bool]
brand: Optional[str]
+ brand_product: Optional[str]
card: Optional[str]
country: Optional[str]
customer: Optional[str]
@@ -548,6 +562,7 @@ class Wechat(StripeObject):
Information about the owner of the payment instrument that may be used or required by particular source types.
"""
p24: Optional[P24]
+ paypal: Optional[Paypal]
receiver: Optional[Receiver]
redirect: Optional[Redirect]
sepa_credit_transfer: Optional[SepaCreditTransfer]
@@ -578,6 +593,7 @@ class Wechat(StripeObject):
"klarna",
"multibanco",
"p24",
+ "paypal",
"sepa_credit_transfer",
"sepa_debit",
"sofort",
@@ -942,6 +958,7 @@ def detach(self, **params) -> "Source":
"multibanco": Multibanco,
"owner": Owner,
"p24": P24,
+ "paypal": Paypal,
"receiver": Receiver,
"redirect": Redirect,
"sepa_credit_transfer": SepaCreditTransfer,
diff --git a/stripe/_stripe_client.py b/stripe/_stripe_client.py
index e084f76ab..2b1e6c6ae 100644
--- a/stripe/_stripe_client.py
+++ b/stripe/_stripe_client.py
@@ -12,6 +12,10 @@
from stripe._api_mode import ApiMode
from stripe._error import AuthenticationError
+from stripe._event_notification_handler import (
+ StripeEventNotificationHandler,
+ FallbackCallback,
+)
from stripe._request_options import extract_options_from_dict
from stripe._requestor_options import RequestorOptions, BaseAddresses
from stripe._client_options import _ClientOptions
@@ -44,6 +48,7 @@
if TYPE_CHECKING:
from stripe._account_service import AccountService
from stripe._account_link_service import AccountLinkService
+ from stripe._account_notice_service import AccountNoticeService
from stripe._account_session_service import AccountSessionService
from stripe._apple_pay_domain_service import ApplePayDomainService
from stripe._application_fee_service import ApplicationFeeService
@@ -53,6 +58,7 @@
from stripe._balance_transaction_service import BalanceTransactionService
from stripe._billing_service import BillingService
from stripe._billing_portal_service import BillingPortalService
+ from stripe._capital_service import CapitalService
from stripe._charge_service import ChargeService
from stripe._checkout_service import CheckoutService
from stripe._climate_service import ClimateService
@@ -67,12 +73,14 @@
from stripe._ephemeral_key_service import EphemeralKeyService
from stripe._event_service import EventService
from stripe._exchange_rate_service import ExchangeRateService
+ from stripe._external_account_service import ExternalAccountService
from stripe._file_service import FileService
from stripe._file_link_service import FileLinkService
from stripe._financial_connections_service import (
FinancialConnectionsService,
)
from stripe._forwarding_service import ForwardingService
+ from stripe._fx_quote_service import FxQuoteService
from stripe._identity_service import IdentityService
from stripe._invoice_service import InvoiceService
from stripe._invoice_item_service import InvoiceItemService
@@ -82,6 +90,8 @@
)
from stripe._issuing_service import IssuingService
from stripe._mandate_service import MandateService
+ from stripe._margin_service import MarginService
+ from stripe._order_service import OrderService
from stripe._payment_attempt_record_service import (
PaymentAttemptRecordService,
)
@@ -98,12 +108,14 @@
from stripe._payout_service import PayoutService
from stripe._plan_service import PlanService
from stripe._price_service import PriceService
+ from stripe._privacy_service import PrivacyService
from stripe._product_service import ProductService
from stripe._promotion_code_service import PromotionCodeService
from stripe._quote_service import QuoteService
from stripe._radar_service import RadarService
from stripe._refund_service import RefundService
from stripe._reporting_service import ReportingService
+ from stripe._reserve_service import ReserveService
from stripe._review_service import ReviewService
from stripe._setup_attempt_service import SetupAttemptService
from stripe._setup_intent_service import SetupIntentService
@@ -319,6 +331,38 @@ def deserialize(
api_mode=api_mode,
)
+ def with_stripe_context(
+ self, stripe_context: "Optional[Union[str, StripeContext]]"
+ ) -> "StripeClient":
+ """
+ Creates a new StripeClient with the same configuration as this client,
+ but with a different stripe_context. This is useful for handling webhooks
+ where each event may have its own context.
+
+ The new client reuses the HTTP client from this client to avoid
+ re-establishing TLS connections.
+ """
+ return StripeClient(
+ api_key=self._requestor.api_key, # type: ignore
+ stripe_account=self._requestor._options.stripe_account,
+ stripe_context=stripe_context,
+ stripe_version=self._requestor._options.stripe_version,
+ base_addresses=self._requestor._options.base_addresses,
+ client_id=self._options.client_id,
+ max_network_retries=self._requestor._options.max_network_retries,
+ http_client=self._requestor._client,
+ )
+
+ def notification_handler(
+ self, webhook_secret: str, fallback_callback: FallbackCallback
+ ) -> StripeEventNotificationHandler:
+ """
+ Returns an StripeEventNotificationHandler instance tied to this client.
+ """
+ return StripeEventNotificationHandler(
+ self, webhook_secret, fallback_callback
+ )
+
# deprecated v1 services: The beginning of the section generated from our OpenAPI spec
@property
@deprecated(
@@ -342,6 +386,17 @@ def accounts(self) -> "AccountService":
def account_links(self) -> "AccountLinkService":
return self.v1.account_links
+ @property
+ @deprecated(
+ """
+ StripeClient.account_notices is deprecated, use StripeClient.v1.account_notices instead.
+ All functionality under it has been copied over to StripeClient.v1.account_notices.
+ See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
+ """,
+ )
+ def account_notices(self) -> "AccountNoticeService":
+ return self.v1.account_notices
+
@property
@deprecated(
"""
@@ -441,6 +496,17 @@ def billing(self) -> "BillingService":
def billing_portal(self) -> "BillingPortalService":
return self.v1.billing_portal
+ @property
+ @deprecated(
+ """
+ StripeClient.capital is deprecated, use StripeClient.v1.capital instead.
+ All functionality under it has been copied over to StripeClient.v1.capital.
+ See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
+ """,
+ )
+ def capital(self) -> "CapitalService":
+ return self.v1.capital
+
@property
@deprecated(
"""
@@ -595,6 +661,17 @@ def events(self) -> "EventService":
def exchange_rates(self) -> "ExchangeRateService":
return self.v1.exchange_rates
+ @property
+ @deprecated(
+ """
+ StripeClient.external_accounts is deprecated, use StripeClient.v1.external_accounts instead.
+ All functionality under it has been copied over to StripeClient.v1.external_accounts.
+ See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
+ """,
+ )
+ def external_accounts(self) -> "ExternalAccountService":
+ return self.v1.external_accounts
+
@property
@deprecated(
"""
@@ -639,6 +716,17 @@ def financial_connections(self) -> "FinancialConnectionsService":
def forwarding(self) -> "ForwardingService":
return self.v1.forwarding
+ @property
+ @deprecated(
+ """
+ StripeClient.fx_quotes is deprecated, use StripeClient.v1.fx_quotes instead.
+ All functionality under it has been copied over to StripeClient.v1.fx_quotes.
+ See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
+ """,
+ )
+ def fx_quotes(self) -> "FxQuoteService":
+ return self.v1.fx_quotes
+
@property
@deprecated(
"""
@@ -716,6 +804,28 @@ def issuing(self) -> "IssuingService":
def mandates(self) -> "MandateService":
return self.v1.mandates
+ @property
+ @deprecated(
+ """
+ StripeClient.margins is deprecated, use StripeClient.v1.margins instead.
+ All functionality under it has been copied over to StripeClient.v1.margins.
+ See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
+ """,
+ )
+ def margins(self) -> "MarginService":
+ return self.v1.margins
+
+ @property
+ @deprecated(
+ """
+ StripeClient.orders is deprecated, use StripeClient.v1.orders instead.
+ All functionality under it has been copied over to StripeClient.v1.orders.
+ See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
+ """,
+ )
+ def orders(self) -> "OrderService":
+ return self.v1.orders
+
@property
@deprecated(
"""
@@ -828,6 +938,17 @@ def plans(self) -> "PlanService":
def prices(self) -> "PriceService":
return self.v1.prices
+ @property
+ @deprecated(
+ """
+ StripeClient.privacy is deprecated, use StripeClient.v1.privacy instead.
+ All functionality under it has been copied over to StripeClient.v1.privacy.
+ See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
+ """,
+ )
+ def privacy(self) -> "PrivacyService":
+ return self.v1.privacy
+
@property
@deprecated(
"""
@@ -894,6 +1015,17 @@ def refunds(self) -> "RefundService":
def reporting(self) -> "ReportingService":
return self.v1.reporting
+ @property
+ @deprecated(
+ """
+ StripeClient.reserve is deprecated, use StripeClient.v1.reserve instead.
+ All functionality under it has been copied over to StripeClient.v1.reserve.
+ See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
+ """,
+ )
+ def reserve(self) -> "ReserveService":
+ return self.v1.reserve
+
@property
@deprecated(
"""
diff --git a/stripe/_subscription.py b/stripe/_subscription.py
index a7c731321..9ffdac30d 100644
--- a/stripe/_subscription.py
+++ b/stripe/_subscription.py
@@ -32,12 +32,16 @@
from stripe._discount import Discount
from stripe._invoice import Invoice
from stripe._payment_method import PaymentMethod
+ from stripe._price import Price
from stripe._setup_intent import SetupIntent
from stripe._source import Source
from stripe._subscription_item import SubscriptionItem
from stripe._subscription_schedule import SubscriptionSchedule
from stripe._tax_id import TaxId
from stripe._tax_rate import TaxRate
+ from stripe.params._subscription_attach_cadence_params import (
+ SubscriptionAttachCadenceParams,
+ )
from stripe.params._subscription_cancel_params import (
SubscriptionCancelParams,
)
@@ -149,6 +153,60 @@ class Flexible(StripeObject):
"""
_inner_class_types = {"flexible": Flexible}
+ class BillingSchedule(StripeObject):
+ class AppliesTo(StripeObject):
+ price: Optional[ExpandableField["Price"]]
+ """
+ The billing schedule will apply to the subscription item with the given price ID.
+ """
+ type: Literal["price"]
+ """
+ Controls which subscription items the billing schedule applies to.
+ """
+
+ class BillUntil(StripeObject):
+ class Duration(StripeObject):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies billing duration. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: Optional[int]
+ """
+ The multiplier applied to the interval.
+ """
+
+ computed_timestamp: int
+ """
+ The timestamp the billing schedule will apply until.
+ """
+ duration: Optional[Duration]
+ """
+ Specifies the billing period.
+ """
+ timestamp: Optional[int]
+ """
+ If specified, the billing schedule will apply until the specified timestamp.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
+ """
+ _inner_class_types = {"duration": Duration}
+
+ applies_to: Optional[List[AppliesTo]]
+ """
+ Specifies which subscription items the billing schedule applies to.
+ """
+ bill_until: BillUntil
+ """
+ Specifies the end of billing period.
+ """
+ key: str
+ """
+ Unique identifier for the billing schedule.
+ """
+ _inner_class_types = {"applies_to": AppliesTo, "bill_until": BillUntil}
+
class BillingThresholds(StripeObject):
amount_gte: Optional[int]
"""
@@ -206,6 +264,31 @@ class Issuer(StripeObject):
issuer: Issuer
_inner_class_types = {"issuer": Issuer}
+ class LastPriceMigrationError(StripeObject):
+ class FailedTransition(StripeObject):
+ source_price: str
+ """
+ The original price to be migrated.
+ """
+ target_price: str
+ """
+ The intended resulting price of the migration.
+ """
+
+ errored_at: int
+ """
+ The time at which the price migration encountered an error.
+ """
+ failed_transitions: List[FailedTransition]
+ """
+ The involved price pairs in each failed transition.
+ """
+ type: Literal["price_uniqueness_violation"]
+ """
+ The type of error encountered by the price migration.
+ """
+ _inner_class_types = {"failed_transitions": FailedTransition}
+
class PauseCollection(StripeObject):
behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
"""
@@ -306,6 +389,9 @@ class EuBankTransfer(StripeObject):
"""
_inner_class_types = {"bank_transfer": BankTransfer}
+ class IdBankTransfer(StripeObject):
+ pass
+
class Konbini(StripeObject):
pass
@@ -341,9 +427,61 @@ class MandateOptions(StripeObject):
mandate_options: Optional[MandateOptions]
_inner_class_types = {"mandate_options": MandateOptions}
+ class Pix(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_includes_iof: Optional[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax.
+ """
+ end_date: Optional[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
+ """
+ payment_schedule: Optional[
+ Literal[
+ "halfyearly",
+ "monthly",
+ "quarterly",
+ "weekly",
+ "yearly",
+ ]
+ ]
+ """
+ Schedule at which the future payments will be charged.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ _inner_class_types = {"mandate_options": MandateOptions}
+
class SepaDebit(StripeObject):
pass
+ class Upi(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: Optional[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: Optional[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ _inner_class_types = {"mandate_options": MandateOptions}
+
class UsBankAccount(StripeObject):
class FinancialConnections(StripeObject):
class Filters(StripeObject):
@@ -353,6 +491,10 @@ class Filters(StripeObject):
"""
The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
"""
+ institution: Optional[str]
+ """
+ The institution to use to filter for possible accounts to link.
+ """
filters: Optional[Filters]
permissions: Optional[
@@ -369,7 +511,14 @@ class Filters(StripeObject):
The list of permissions to request. The `payment_method` permission must be included.
"""
prefetch: Optional[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances",
+ "inferred_balances",
+ "ownership",
+ "transactions",
+ ]
+ ]
]
"""
Data features requested to be retrieved upon account creation.
@@ -403,6 +552,10 @@ class Filters(StripeObject):
"""
This sub-hash contains details about the Bank transfer payment method options to pass to invoices created by the subscription.
"""
+ id_bank_transfer: Optional[IdBankTransfer]
+ """
+ This sub-hash contains details about the Indonesia bank transfer payment method options to pass to invoices created by the subscription.
+ """
konbini: Optional[Konbini]
"""
This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription.
@@ -411,10 +564,18 @@ class Filters(StripeObject):
"""
This sub-hash contains details about the PayTo payment method options to pass to invoices created by the subscription.
"""
+ pix: Optional[Pix]
+ """
+ This sub-hash contains details about the Pix payment method options to pass to invoices created by the subscription.
+ """
sepa_debit: Optional[SepaDebit]
"""
This sub-hash contains details about the SEPA Direct Debit payment method options to pass to invoices created by the subscription.
"""
+ upi: Optional[Upi]
+ """
+ This sub-hash contains details about the UPI payment method options to pass to invoices created by the subscription.
+ """
us_bank_account: Optional[UsBankAccount]
"""
This sub-hash contains details about the ACH direct debit payment method options to pass to invoices created by the subscription.
@@ -424,9 +585,12 @@ class Filters(StripeObject):
"bancontact": Bancontact,
"card": Card,
"customer_balance": CustomerBalance,
+ "id_bank_transfer": IdBankTransfer,
"konbini": Konbini,
"payto": Payto,
+ "pix": Pix,
"sepa_debit": SepaDebit,
+ "upi": Upi,
"us_bank_account": UsBankAccount,
}
@@ -455,6 +619,7 @@ class Filters(StripeObject):
"fpx",
"giropay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"jp_credit_transfer",
"kakao_pay",
@@ -470,12 +635,15 @@ class Filters(StripeObject):
"paynow",
"paypal",
"payto",
+ "pix",
"promptpay",
"revolut_pay",
"sepa_credit_transfer",
"sepa_debit",
"sofort",
+ "stripe_balance",
"swish",
+ "upi",
"us_bank_account",
"wechat_pay",
]
@@ -511,6 +679,10 @@ class PendingUpdate(StripeObject):
"""
The point after which the changes reflected by this update will be discarded and no longer applied.
"""
+ prebilling_iterations: Optional[int]
+ """
+ The number of iterations of prebilling to apply.
+ """
subscription_items: Optional[List["SubscriptionItem"]]
"""
List of subscription items, each with an attached plan, that will be set if the update is applied.
@@ -524,6 +696,24 @@ class PendingUpdate(StripeObject):
Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://docs.stripe.com/billing/subscriptions/trials) to learn more.
"""
+ class Prebilling(StripeObject):
+ invoice: ExpandableField["Invoice"]
+ """
+ ID of the prebilling invoice.
+ """
+ period_end: int
+ """
+ The end of the last period for which the invoice pre-bills.
+ """
+ period_start: int
+ """
+ The start of the first period for which the invoice pre-bills.
+ """
+ update_behavior: Optional[Literal["prebill", "reset"]]
+ """
+ Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
+ """
+
class TransferData(StripeObject):
amount_percent: Optional[float]
"""
@@ -558,6 +748,10 @@ class EndBehavior(StripeObject):
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account.
"""
automatic_tax: AutomaticTax
+ billing_cadence: Optional[str]
+ """
+ The Billing Cadence which controls the timing of recurring invoice generation for this subscription.If unset, the subscription will bill according to its own configured schedule and create its own invoices.If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
+ """
billing_cycle_anchor: int
"""
The reference point that aligns future [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle) dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals. The timestamp is in UTC format.
@@ -570,6 +764,10 @@ class EndBehavior(StripeObject):
"""
The billing mode of the subscription.
"""
+ billing_schedules: Optional[List[BillingSchedule]]
+ """
+ Billing schedules for this subscription.
+ """
billing_thresholds: Optional[BillingThresholds]
"""
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
@@ -651,6 +849,10 @@ class EndBehavior(StripeObject):
"""
List of subscription items, each with an attached price.
"""
+ last_price_migration_error: Optional[LastPriceMigrationError]
+ """
+ Details of the most recent price migration that failed for the subscription.
+ """
latest_invoice: Optional[ExpandableField["Invoice"]]
"""
The most recent invoice this subscription has generated.
@@ -695,6 +897,10 @@ class EndBehavior(StripeObject):
"""
If specified, [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid.
"""
+ prebilling: Optional[Prebilling]
+ """
+ Time period and invoice for a Subscription billed in advance.
+ """
schedule: Optional[ExpandableField["SubscriptionSchedule"]]
"""
The schedule attached to the subscription
@@ -747,6 +953,120 @@ class EndBehavior(StripeObject):
If the subscription has a trial, the beginning of that trial.
"""
+ @classmethod
+ def _cls_attach_cadence(
+ cls,
+ subscription: str,
+ **params: Unpack["SubscriptionAttachCadenceParams"],
+ ) -> "Subscription":
+ """
+ Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
+ """
+ return cast(
+ "Subscription",
+ cls._static_request(
+ "post",
+ "/v1/subscriptions/{subscription}/attach_cadence".format(
+ subscription=sanitize_id(subscription)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def attach_cadence(
+ subscription: str, **params: Unpack["SubscriptionAttachCadenceParams"]
+ ) -> "Subscription":
+ """
+ Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
+ """
+ ...
+
+ @overload
+ def attach_cadence(
+ self, **params: Unpack["SubscriptionAttachCadenceParams"]
+ ) -> "Subscription":
+ """
+ Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
+ """
+ ...
+
+ @class_method_variant("_cls_attach_cadence")
+ def attach_cadence( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["SubscriptionAttachCadenceParams"]
+ ) -> "Subscription":
+ """
+ Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
+ """
+ return cast(
+ "Subscription",
+ self._request(
+ "post",
+ "/v1/subscriptions/{subscription}/attach_cadence".format(
+ subscription=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_attach_cadence_async(
+ cls,
+ subscription: str,
+ **params: Unpack["SubscriptionAttachCadenceParams"],
+ ) -> "Subscription":
+ """
+ Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
+ """
+ return cast(
+ "Subscription",
+ await cls._static_request_async(
+ "post",
+ "/v1/subscriptions/{subscription}/attach_cadence".format(
+ subscription=sanitize_id(subscription)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def attach_cadence_async(
+ subscription: str, **params: Unpack["SubscriptionAttachCadenceParams"]
+ ) -> "Subscription":
+ """
+ Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
+ """
+ ...
+
+ @overload
+ async def attach_cadence_async(
+ self, **params: Unpack["SubscriptionAttachCadenceParams"]
+ ) -> "Subscription":
+ """
+ Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
+ """
+ ...
+
+ @class_method_variant("_cls_attach_cadence_async")
+ async def attach_cadence_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["SubscriptionAttachCadenceParams"]
+ ) -> "Subscription":
+ """
+ Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
+ """
+ return cast(
+ "Subscription",
+ await self._request_async(
+ "post",
+ "/v1/subscriptions/{subscription}/attach_cadence".format(
+ subscription=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
@classmethod
def _cls_cancel(
cls,
@@ -1463,13 +1783,16 @@ async def search_auto_paging_iter_async(
"automatic_tax": AutomaticTax,
"billing_cycle_anchor_config": BillingCycleAnchorConfig,
"billing_mode": BillingMode,
+ "billing_schedules": BillingSchedule,
"billing_thresholds": BillingThresholds,
"cancellation_details": CancellationDetails,
"invoice_settings": InvoiceSettings,
+ "last_price_migration_error": LastPriceMigrationError,
"pause_collection": PauseCollection,
"payment_settings": PaymentSettings,
"pending_invoice_item_interval": PendingInvoiceItemInterval,
"pending_update": PendingUpdate,
+ "prebilling": Prebilling,
"transfer_data": TransferData,
"trial_settings": TrialSettings,
}
diff --git a/stripe/_subscription_item.py b/stripe/_subscription_item.py
index 6db7dbfb1..e49df77b5 100644
--- a/stripe/_subscription_item.py
+++ b/stripe/_subscription_item.py
@@ -52,6 +52,20 @@ class BillingThresholds(StripeObject):
Usage threshold that triggers the subscription to create an invoice
"""
+ class Trial(StripeObject):
+ converts_to: Optional[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+ billed_until: Optional[int]
+ """
+ The time period the subscription item has been billed for.
+ """
billing_thresholds: Optional[BillingThresholds]
"""
Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
@@ -120,6 +134,10 @@ class BillingThresholds(StripeObject):
"""
The tax rates which apply to this `subscription_item`. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
"""
+ trial: Optional[Trial]
+ """
+ Options that configure the trial on the subscription item.
+ """
@classmethod
def create(
@@ -347,4 +365,7 @@ async def retrieve_async(
await instance.refresh_async()
return instance
- _inner_class_types = {"billing_thresholds": BillingThresholds}
+ _inner_class_types = {
+ "billing_thresholds": BillingThresholds,
+ "trial": Trial,
+ }
diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py
index 310f53f35..83107998e 100644
--- a/stripe/_subscription_schedule.py
+++ b/stripe/_subscription_schedule.py
@@ -16,6 +16,7 @@
from stripe._coupon import Coupon
from stripe._customer import Customer
from stripe._discount import Discount as DiscountResource
+ from stripe._invoice import Invoice
from stripe._payment_method import PaymentMethod
from stripe._plan import Plan
from stripe._price import Price
@@ -23,6 +24,9 @@
from stripe._subscription import Subscription
from stripe._tax_id import TaxId
from stripe._tax_rate import TaxRate
+ from stripe.params._subscription_schedule_amend_params import (
+ SubscriptionScheduleAmendParams,
+ )
from stripe.params._subscription_schedule_cancel_params import (
SubscriptionScheduleCancelParams,
)
@@ -201,9 +205,44 @@ class TransferData(StripeObject):
"transfer_data": TransferData,
}
+ class LastPriceMigrationError(StripeObject):
+ class FailedTransition(StripeObject):
+ source_price: str
+ """
+ The original price to be migrated.
+ """
+ target_price: str
+ """
+ The intended resulting price of the migration.
+ """
+
+ errored_at: int
+ """
+ The time at which the price migration encountered an error.
+ """
+ failed_transitions: List[FailedTransition]
+ """
+ The involved price pairs in each failed transition.
+ """
+ type: Literal["price_uniqueness_violation"]
+ """
+ The type of error encountered by the price migration.
+ """
+ _inner_class_types = {"failed_transitions": FailedTransition}
+
class Phase(StripeObject):
class AddInvoiceItem(StripeObject):
class Discount(StripeObject):
+ class DiscountEnd(StripeObject):
+ timestamp: Optional[int]
+ """
+ The discount end timestamp.
+ """
+ type: Literal["timestamp"]
+ """
+ The discount end type.
+ """
+
coupon: Optional[ExpandableField["Coupon"]]
"""
ID of the coupon to create a new discount for.
@@ -212,10 +251,15 @@ class Discount(StripeObject):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: Optional[DiscountEnd]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: Optional[ExpandableField["PromotionCode"]]
"""
ID of the promotion code to create a new discount for.
"""
+ _inner_class_types = {"discount_end": DiscountEnd}
class Period(StripeObject):
class End(StripeObject):
@@ -305,6 +349,16 @@ class BillingThresholds(StripeObject):
"""
class Discount(StripeObject):
+ class DiscountEnd(StripeObject):
+ timestamp: Optional[int]
+ """
+ The discount end timestamp.
+ """
+ type: Literal["timestamp"]
+ """
+ The discount end type.
+ """
+
coupon: Optional[ExpandableField["Coupon"]]
"""
ID of the coupon to create a new discount for.
@@ -313,10 +367,15 @@ class Discount(StripeObject):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: Optional[DiscountEnd]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: Optional[ExpandableField["PromotionCode"]]
"""
ID of the promotion code to create a new discount for.
"""
+ _inner_class_types = {"discount_end": DiscountEnd}
class InvoiceSettings(StripeObject):
class Issuer(StripeObject):
@@ -351,6 +410,16 @@ class BillingThresholds(StripeObject):
"""
class Discount(StripeObject):
+ class DiscountEnd(StripeObject):
+ timestamp: Optional[int]
+ """
+ The discount end timestamp.
+ """
+ type: Literal["timestamp"]
+ """
+ The discount end type.
+ """
+
coupon: Optional[ExpandableField["Coupon"]]
"""
ID of the coupon to create a new discount for.
@@ -359,10 +428,25 @@ class Discount(StripeObject):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: Optional[DiscountEnd]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: Optional[ExpandableField["PromotionCode"]]
"""
ID of the promotion code to create a new discount for.
"""
+ _inner_class_types = {"discount_end": DiscountEnd}
+
+ class Trial(StripeObject):
+ converts_to: Optional[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
billing_thresholds: Optional[BillingThresholds]
"""
@@ -392,11 +476,22 @@ class Discount(StripeObject):
"""
The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
"""
+ trial: Optional[Trial]
+ """
+ Options that configure the trial on the subscription item.
+ """
_inner_class_types = {
"billing_thresholds": BillingThresholds,
"discounts": Discount,
+ "trial": Trial,
}
+ class PauseCollection(StripeObject):
+ behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+
class TransferData(StripeObject):
amount_percent: Optional[float]
"""
@@ -407,6 +502,19 @@ class TransferData(StripeObject):
The account where funds from the payment will be transferred to upon payment success.
"""
+ class TrialSettings(StripeObject):
+ class EndBehavior(StripeObject):
+ prorate_up_front: Optional[Literal["defer", "include"]]
+ """
+ Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
+ """
+
+ end_behavior: Optional[EndBehavior]
+ """
+ Defines how the subscription should behave when a trial ends.
+ """
+ _inner_class_types = {"end_behavior": EndBehavior}
+
add_invoice_items: List[AddInvoiceItem]
"""
A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
@@ -470,6 +578,10 @@ class TransferData(StripeObject):
"""
The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
"""
+ pause_collection: Optional[PauseCollection]
+ """
+ If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
+ """
proration_behavior: Literal[
"always_invoice", "create_prorations", "none"
]
@@ -484,10 +596,18 @@ class TransferData(StripeObject):
"""
The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
"""
+ trial_continuation: Optional[Literal["continue", "none"]]
+ """
+ Specify behavior of the trial when crossing schedule phase boundaries
+ """
trial_end: Optional[int]
"""
When the trial ends within the phase.
"""
+ trial_settings: Optional[TrialSettings]
+ """
+ Settings related to any trials on the subscription during this phase.
+ """
_inner_class_types = {
"add_invoice_items": AddInvoiceItem,
"automatic_tax": AutomaticTax,
@@ -495,13 +615,39 @@ class TransferData(StripeObject):
"discounts": Discount,
"invoice_settings": InvoiceSettings,
"items": Item,
+ "pause_collection": PauseCollection,
"transfer_data": TransferData,
+ "trial_settings": TrialSettings,
}
+ class Prebilling(StripeObject):
+ invoice: ExpandableField["Invoice"]
+ """
+ ID of the prebilling invoice.
+ """
+ period_end: int
+ """
+ The end of the last period for which the invoice pre-bills.
+ """
+ period_start: int
+ """
+ The start of the first period for which the invoice pre-bills.
+ """
+ update_behavior: Optional[Literal["prebill", "reset"]]
+ """
+ Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
+ """
+
application: Optional[ExpandableField["Application"]]
"""
ID of the Connect Application that created the schedule.
"""
+ billing_behavior: Optional[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
billing_mode: BillingMode
"""
The billing mode of the subscription.
@@ -539,6 +685,10 @@ class TransferData(StripeObject):
"""
Unique identifier for the object.
"""
+ last_price_migration_error: Optional[LastPriceMigrationError]
+ """
+ Details of the most recent price migration that failed for the subscription schedule.
+ """
livemode: bool
"""
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
@@ -555,6 +705,10 @@ class TransferData(StripeObject):
"""
Configuration for the subscription schedule's phases.
"""
+ prebilling: Optional[Prebilling]
+ """
+ Time period and invoice for a Subscription billed in advance.
+ """
released_at: Optional[int]
"""
Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
@@ -578,6 +732,116 @@ class TransferData(StripeObject):
ID of the test clock this subscription schedule belongs to.
"""
+ @classmethod
+ def _cls_amend(
+ cls, schedule: str, **params: Unpack["SubscriptionScheduleAmendParams"]
+ ) -> "SubscriptionSchedule":
+ """
+ Amends an existing subscription schedule.
+ """
+ return cast(
+ "SubscriptionSchedule",
+ cls._static_request(
+ "post",
+ "/v1/subscription_schedules/{schedule}/amend".format(
+ schedule=sanitize_id(schedule)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def amend(
+ schedule: str, **params: Unpack["SubscriptionScheduleAmendParams"]
+ ) -> "SubscriptionSchedule":
+ """
+ Amends an existing subscription schedule.
+ """
+ ...
+
+ @overload
+ def amend(
+ self, **params: Unpack["SubscriptionScheduleAmendParams"]
+ ) -> "SubscriptionSchedule":
+ """
+ Amends an existing subscription schedule.
+ """
+ ...
+
+ @class_method_variant("_cls_amend")
+ def amend( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["SubscriptionScheduleAmendParams"]
+ ) -> "SubscriptionSchedule":
+ """
+ Amends an existing subscription schedule.
+ """
+ return cast(
+ "SubscriptionSchedule",
+ self._request(
+ "post",
+ "/v1/subscription_schedules/{schedule}/amend".format(
+ schedule=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_amend_async(
+ cls, schedule: str, **params: Unpack["SubscriptionScheduleAmendParams"]
+ ) -> "SubscriptionSchedule":
+ """
+ Amends an existing subscription schedule.
+ """
+ return cast(
+ "SubscriptionSchedule",
+ await cls._static_request_async(
+ "post",
+ "/v1/subscription_schedules/{schedule}/amend".format(
+ schedule=sanitize_id(schedule)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def amend_async(
+ schedule: str, **params: Unpack["SubscriptionScheduleAmendParams"]
+ ) -> "SubscriptionSchedule":
+ """
+ Amends an existing subscription schedule.
+ """
+ ...
+
+ @overload
+ async def amend_async(
+ self, **params: Unpack["SubscriptionScheduleAmendParams"]
+ ) -> "SubscriptionSchedule":
+ """
+ Amends an existing subscription schedule.
+ """
+ ...
+
+ @class_method_variant("_cls_amend_async")
+ async def amend_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["SubscriptionScheduleAmendParams"]
+ ) -> "SubscriptionSchedule":
+ """
+ Amends an existing subscription schedule.
+ """
+ return cast(
+ "SubscriptionSchedule",
+ await self._request_async(
+ "post",
+ "/v1/subscription_schedules/{schedule}/amend".format(
+ schedule=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
@classmethod
def _cls_cancel(
cls,
@@ -938,5 +1202,7 @@ async def retrieve_async(
"billing_mode": BillingMode,
"current_phase": CurrentPhase,
"default_settings": DefaultSettings,
+ "last_price_migration_error": LastPriceMigrationError,
"phases": Phase,
+ "prebilling": Prebilling,
}
diff --git a/stripe/_subscription_schedule_service.py b/stripe/_subscription_schedule_service.py
index ec9e74414..30934f084 100644
--- a/stripe/_subscription_schedule_service.py
+++ b/stripe/_subscription_schedule_service.py
@@ -9,6 +9,9 @@
from stripe._list_object import ListObject
from stripe._request_options import RequestOptions
from stripe._subscription_schedule import SubscriptionSchedule
+ from stripe.params._subscription_schedule_amend_params import (
+ SubscriptionScheduleAmendParams,
+ )
from stripe.params._subscription_schedule_cancel_params import (
SubscriptionScheduleCancelParams,
)
@@ -194,6 +197,50 @@ async def update_async(
),
)
+ def amend(
+ self,
+ schedule: str,
+ params: Optional["SubscriptionScheduleAmendParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "SubscriptionSchedule":
+ """
+ Amends an existing subscription schedule.
+ """
+ return cast(
+ "SubscriptionSchedule",
+ self._request(
+ "post",
+ "/v1/subscription_schedules/{schedule}/amend".format(
+ schedule=sanitize_id(schedule),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def amend_async(
+ self,
+ schedule: str,
+ params: Optional["SubscriptionScheduleAmendParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "SubscriptionSchedule":
+ """
+ Amends an existing subscription schedule.
+ """
+ return cast(
+ "SubscriptionSchedule",
+ await self._request_async(
+ "post",
+ "/v1/subscription_schedules/{schedule}/amend".format(
+ schedule=sanitize_id(schedule),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
def cancel(
self,
schedule: str,
diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py
index e1793f584..fee0fbcda 100644
--- a/stripe/_subscription_service.py
+++ b/stripe/_subscription_service.py
@@ -11,6 +11,9 @@
from stripe._request_options import RequestOptions
from stripe._search_result_object import SearchResultObject
from stripe._subscription import Subscription
+ from stripe.params._subscription_attach_cadence_params import (
+ SubscriptionAttachCadenceParams,
+ )
from stripe.params._subscription_cancel_params import (
SubscriptionCancelParams,
)
@@ -411,6 +414,50 @@ async def search_async(
),
)
+ def attach_cadence(
+ self,
+ subscription: str,
+ params: "SubscriptionAttachCadenceParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Subscription":
+ """
+ Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
+ """
+ return cast(
+ "Subscription",
+ self._request(
+ "post",
+ "/v1/subscriptions/{subscription}/attach_cadence".format(
+ subscription=sanitize_id(subscription),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def attach_cadence_async(
+ self,
+ subscription: str,
+ params: "SubscriptionAttachCadenceParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Subscription":
+ """
+ Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
+ """
+ return cast(
+ "Subscription",
+ await self._request_async(
+ "post",
+ "/v1/subscriptions/{subscription}/attach_cadence".format(
+ subscription=sanitize_id(subscription),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
def migrate(
self,
subscription: str,
diff --git a/stripe/_tax_service.py b/stripe/_tax_service.py
index 1bd53e474..cc3d8626f 100644
--- a/stripe/_tax_service.py
+++ b/stripe/_tax_service.py
@@ -7,6 +7,7 @@
if TYPE_CHECKING:
from stripe.tax._association_service import AssociationService
from stripe.tax._calculation_service import CalculationService
+ from stripe.tax._form_service import FormService
from stripe.tax._registration_service import RegistrationService
from stripe.tax._settings_service import SettingsService
from stripe.tax._transaction_service import TransactionService
@@ -14,6 +15,7 @@
_subservices = {
"associations": ["stripe.tax._association_service", "AssociationService"],
"calculations": ["stripe.tax._calculation_service", "CalculationService"],
+ "forms": ["stripe.tax._form_service", "FormService"],
"registrations": [
"stripe.tax._registration_service",
"RegistrationService",
@@ -26,6 +28,7 @@
class TaxService(StripeService):
associations: "AssociationService"
calculations: "CalculationService"
+ forms: "FormService"
registrations: "RegistrationService"
settings: "SettingsService"
transactions: "TransactionService"
diff --git a/stripe/_terminal_service.py b/stripe/_terminal_service.py
index 5570164ae..da0fb52d1 100644
--- a/stripe/_terminal_service.py
+++ b/stripe/_terminal_service.py
@@ -11,6 +11,9 @@
)
from stripe.terminal._location_service import LocationService
from stripe.terminal._onboarding_link_service import OnboardingLinkService
+ from stripe.terminal._reader_collected_data_service import (
+ ReaderCollectedDataService,
+ )
from stripe.terminal._reader_service import ReaderService
_subservices = {
@@ -28,6 +31,10 @@
"OnboardingLinkService",
],
"readers": ["stripe.terminal._reader_service", "ReaderService"],
+ "reader_collected_data": [
+ "stripe.terminal._reader_collected_data_service",
+ "ReaderCollectedDataService",
+ ],
}
@@ -37,6 +44,7 @@ class TerminalService(StripeService):
locations: "LocationService"
onboarding_links: "OnboardingLinkService"
readers: "ReaderService"
+ reader_collected_data: "ReaderCollectedDataService"
def __init__(self, requestor):
super().__init__(requestor)
diff --git a/stripe/_transfer.py b/stripe/_transfer.py
index d7a6a2179..4c78864b7 100644
--- a/stripe/_transfer.py
+++ b/stripe/_transfer.py
@@ -85,6 +85,10 @@ class Transfer(
"""
If the destination is a Stripe account, this will be the ID of the payment that the destination account received for the transfer.
"""
+ fx_quote: Optional[str]
+ """
+ The FX Quote used for the transfer.
+ """
id: str
"""
Unique identifier for the object.
diff --git a/stripe/_util.py b/stripe/_util.py
index 9e121e357..330e0e7e6 100644
--- a/stripe/_util.py
+++ b/stripe/_util.py
@@ -7,7 +7,6 @@
import warnings
from stripe._api_mode import ApiMode
-
from urllib.parse import quote_plus
from typing_extensions import Type, TYPE_CHECKING
diff --git a/stripe/_v1_services.py b/stripe/_v1_services.py
index ca9cc05b8..3f5b59c87 100644
--- a/stripe/_v1_services.py
+++ b/stripe/_v1_services.py
@@ -6,6 +6,7 @@
if TYPE_CHECKING:
from stripe._account_link_service import AccountLinkService
+ from stripe._account_notice_service import AccountNoticeService
from stripe._account_service import AccountService
from stripe._account_session_service import AccountSessionService
from stripe._apple_pay_domain_service import ApplePayDomainService
@@ -16,6 +17,7 @@
from stripe._balance_transaction_service import BalanceTransactionService
from stripe._billing_portal_service import BillingPortalService
from stripe._billing_service import BillingService
+ from stripe._capital_service import CapitalService
from stripe._charge_service import ChargeService
from stripe._checkout_service import CheckoutService
from stripe._climate_service import ClimateService
@@ -30,12 +32,14 @@
from stripe._ephemeral_key_service import EphemeralKeyService
from stripe._event_service import EventService
from stripe._exchange_rate_service import ExchangeRateService
+ from stripe._external_account_service import ExternalAccountService
from stripe._file_link_service import FileLinkService
from stripe._file_service import FileService
from stripe._financial_connections_service import (
FinancialConnectionsService,
)
from stripe._forwarding_service import ForwardingService
+ from stripe._fx_quote_service import FxQuoteService
from stripe._identity_service import IdentityService
from stripe._invoice_item_service import InvoiceItemService
from stripe._invoice_payment_service import InvoicePaymentService
@@ -45,6 +49,8 @@
from stripe._invoice_service import InvoiceService
from stripe._issuing_service import IssuingService
from stripe._mandate_service import MandateService
+ from stripe._margin_service import MarginService
+ from stripe._order_service import OrderService
from stripe._payment_attempt_record_service import (
PaymentAttemptRecordService,
)
@@ -61,12 +67,14 @@
from stripe._payout_service import PayoutService
from stripe._plan_service import PlanService
from stripe._price_service import PriceService
+ from stripe._privacy_service import PrivacyService
from stripe._product_service import ProductService
from stripe._promotion_code_service import PromotionCodeService
from stripe._quote_service import QuoteService
from stripe._radar_service import RadarService
from stripe._refund_service import RefundService
from stripe._reporting_service import ReportingService
+ from stripe._reserve_service import ReserveService
from stripe._review_service import ReviewService
from stripe._setup_attempt_service import SetupAttemptService
from stripe._setup_intent_service import SetupIntentService
@@ -93,6 +101,10 @@
_subservices = {
"accounts": ["stripe._account_service", "AccountService"],
"account_links": ["stripe._account_link_service", "AccountLinkService"],
+ "account_notices": [
+ "stripe._account_notice_service",
+ "AccountNoticeService",
+ ],
"account_sessions": [
"stripe._account_session_service",
"AccountSessionService",
@@ -120,6 +132,7 @@
"stripe._billing_portal_service",
"BillingPortalService",
],
+ "capital": ["stripe._capital_service", "CapitalService"],
"charges": ["stripe._charge_service", "ChargeService"],
"checkout": ["stripe._checkout_service", "CheckoutService"],
"climate": ["stripe._climate_service", "ClimateService"],
@@ -140,6 +153,10 @@
"ephemeral_keys": ["stripe._ephemeral_key_service", "EphemeralKeyService"],
"events": ["stripe._event_service", "EventService"],
"exchange_rates": ["stripe._exchange_rate_service", "ExchangeRateService"],
+ "external_accounts": [
+ "stripe._external_account_service",
+ "ExternalAccountService",
+ ],
"files": ["stripe._file_service", "FileService"],
"file_links": ["stripe._file_link_service", "FileLinkService"],
"financial_connections": [
@@ -147,6 +164,7 @@
"FinancialConnectionsService",
],
"forwarding": ["stripe._forwarding_service", "ForwardingService"],
+ "fx_quotes": ["stripe._fx_quote_service", "FxQuoteService"],
"identity": ["stripe._identity_service", "IdentityService"],
"invoices": ["stripe._invoice_service", "InvoiceService"],
"invoice_items": ["stripe._invoice_item_service", "InvoiceItemService"],
@@ -160,6 +178,8 @@
],
"issuing": ["stripe._issuing_service", "IssuingService"],
"mandates": ["stripe._mandate_service", "MandateService"],
+ "margins": ["stripe._margin_service", "MarginService"],
+ "orders": ["stripe._order_service", "OrderService"],
"payment_attempt_records": [
"stripe._payment_attempt_record_service",
"PaymentAttemptRecordService",
@@ -188,6 +208,7 @@
"payouts": ["stripe._payout_service", "PayoutService"],
"plans": ["stripe._plan_service", "PlanService"],
"prices": ["stripe._price_service", "PriceService"],
+ "privacy": ["stripe._privacy_service", "PrivacyService"],
"products": ["stripe._product_service", "ProductService"],
"promotion_codes": [
"stripe._promotion_code_service",
@@ -197,6 +218,7 @@
"radar": ["stripe._radar_service", "RadarService"],
"refunds": ["stripe._refund_service", "RefundService"],
"reporting": ["stripe._reporting_service", "ReportingService"],
+ "reserve": ["stripe._reserve_service", "ReserveService"],
"reviews": ["stripe._review_service", "ReviewService"],
"setup_attempts": ["stripe._setup_attempt_service", "SetupAttemptService"],
"setup_intents": ["stripe._setup_intent_service", "SetupIntentService"],
@@ -232,6 +254,7 @@
class V1Services(StripeService):
accounts: "AccountService"
account_links: "AccountLinkService"
+ account_notices: "AccountNoticeService"
account_sessions: "AccountSessionService"
apple_pay_domains: "ApplePayDomainService"
application_fees: "ApplicationFeeService"
@@ -241,6 +264,7 @@ class V1Services(StripeService):
balance_transactions: "BalanceTransactionService"
billing: "BillingService"
billing_portal: "BillingPortalService"
+ capital: "CapitalService"
charges: "ChargeService"
checkout: "CheckoutService"
climate: "ClimateService"
@@ -255,10 +279,12 @@ class V1Services(StripeService):
ephemeral_keys: "EphemeralKeyService"
events: "EventService"
exchange_rates: "ExchangeRateService"
+ external_accounts: "ExternalAccountService"
files: "FileService"
file_links: "FileLinkService"
financial_connections: "FinancialConnectionsService"
forwarding: "ForwardingService"
+ fx_quotes: "FxQuoteService"
identity: "IdentityService"
invoices: "InvoiceService"
invoice_items: "InvoiceItemService"
@@ -266,6 +292,8 @@ class V1Services(StripeService):
invoice_rendering_templates: "InvoiceRenderingTemplateService"
issuing: "IssuingService"
mandates: "MandateService"
+ margins: "MarginService"
+ orders: "OrderService"
payment_attempt_records: "PaymentAttemptRecordService"
payment_intents: "PaymentIntentService"
payment_links: "PaymentLinkService"
@@ -276,12 +304,14 @@ class V1Services(StripeService):
payouts: "PayoutService"
plans: "PlanService"
prices: "PriceService"
+ privacy: "PrivacyService"
products: "ProductService"
promotion_codes: "PromotionCodeService"
quotes: "QuoteService"
radar: "RadarService"
refunds: "RefundService"
reporting: "ReportingService"
+ reserve: "ReserveService"
reviews: "ReviewService"
setup_attempts: "SetupAttemptService"
setup_intents: "SetupIntentService"
diff --git a/stripe/_v2_services.py b/stripe/_v2_services.py
index ebc1434ae..ed6b5e4c6 100644
--- a/stripe/_v2_services.py
+++ b/stripe/_v2_services.py
@@ -7,16 +7,25 @@
if TYPE_CHECKING:
from stripe.v2._billing_service import BillingService
from stripe.v2._core_service import CoreService
+ from stripe.v2._money_management_service import MoneyManagementService
+ from stripe.v2._test_helper_service import TestHelperService
_subservices = {
"billing": ["stripe.v2._billing_service", "BillingService"],
"core": ["stripe.v2._core_service", "CoreService"],
+ "money_management": [
+ "stripe.v2._money_management_service",
+ "MoneyManagementService",
+ ],
+ "test_helpers": ["stripe.v2._test_helper_service", "TestHelperService"],
}
class V2Services(StripeService):
billing: "BillingService"
core: "CoreService"
+ money_management: "MoneyManagementService"
+ test_helpers: "TestHelperService"
def __init__(self, requestor):
super().__init__(requestor)
diff --git a/stripe/_version.py b/stripe/_version.py
index 013cbd193..9aeada283 100644
--- a/stripe/_version.py
+++ b/stripe/_version.py
@@ -1 +1 @@
-VERSION = "14.1.0"
+VERSION = "14.2.0b1"
diff --git a/stripe/api_resources/__init__.py b/stripe/api_resources/__init__.py
new file mode 100644
index 000000000..76f81f148
--- /dev/null
+++ b/stripe/api_resources/__init__.py
@@ -0,0 +1,163 @@
+# The beginning of the section generated from our OpenAPI spec
+from typing_extensions import TYPE_CHECKING
+from warnings import warn
+
+warn(
+ """
+ The stripe.api_resources package is deprecated, please change your
+ imports to import from stripe directly.
+ From:
+ from stripe.api_resources import ...
+ To:
+ from stripe import ...
+ """,
+ DeprecationWarning,
+ stacklevel=2,
+)
+if not TYPE_CHECKING:
+ from stripe.api_resources import (
+ abstract,
+ apps,
+ billing,
+ billing_portal,
+ capital,
+ checkout,
+ climate,
+ entitlements,
+ financial_connections,
+ forwarding,
+ identity,
+ issuing,
+ privacy,
+ radar,
+ reporting,
+ sigma,
+ tax,
+ terminal,
+ test_helpers,
+ treasury,
+ )
+ from stripe.api_resources.account import Account
+ from stripe.api_resources.account_link import AccountLink
+ from stripe.api_resources.account_notice import AccountNotice
+ from stripe.api_resources.account_session import AccountSession
+ from stripe.api_resources.apple_pay_domain import ApplePayDomain
+ from stripe.api_resources.application import Application
+ from stripe.api_resources.application_fee import ApplicationFee
+ from stripe.api_resources.application_fee_refund import (
+ ApplicationFeeRefund,
+ )
+ from stripe.api_resources.balance import Balance
+ from stripe.api_resources.balance_settings import BalanceSettings
+ from stripe.api_resources.balance_transaction import BalanceTransaction
+ from stripe.api_resources.bank_account import BankAccount
+ from stripe.api_resources.capability import Capability
+ from stripe.api_resources.card import Card
+ from stripe.api_resources.cash_balance import CashBalance
+ from stripe.api_resources.charge import Charge
+ from stripe.api_resources.confirmation_token import ConfirmationToken
+ from stripe.api_resources.connect_collection_transfer import (
+ ConnectCollectionTransfer,
+ )
+ from stripe.api_resources.country_spec import CountrySpec
+ from stripe.api_resources.coupon import Coupon
+ from stripe.api_resources.credit_note import CreditNote
+ from stripe.api_resources.credit_note_line_item import CreditNoteLineItem
+ from stripe.api_resources.customer import Customer
+ from stripe.api_resources.customer_balance_transaction import (
+ CustomerBalanceTransaction,
+ )
+ from stripe.api_resources.customer_cash_balance_transaction import (
+ CustomerCashBalanceTransaction,
+ )
+ from stripe.api_resources.customer_session import CustomerSession
+ from stripe.api_resources.discount import Discount
+ from stripe.api_resources.dispute import Dispute
+ from stripe.api_resources.ephemeral_key import EphemeralKey
+ from stripe.api_resources.event import Event
+ from stripe.api_resources.exchange_rate import ExchangeRate
+ from stripe.api_resources.file import File
+ from stripe.api_resources.file_link import FileLink
+ from stripe.api_resources.funding_instructions import FundingInstructions
+ from stripe.api_resources.fx_quote import FxQuote
+ from stripe.api_resources.invoice import Invoice
+ from stripe.api_resources.invoice_item import InvoiceItem
+ from stripe.api_resources.invoice_line_item import InvoiceLineItem
+ from stripe.api_resources.invoice_payment import InvoicePayment
+ from stripe.api_resources.invoice_rendering_template import (
+ InvoiceRenderingTemplate,
+ )
+ from stripe.api_resources.line_item import LineItem
+ from stripe.api_resources.list_object import ListObject
+ from stripe.api_resources.login_link import LoginLink
+ from stripe.api_resources.mandate import Mandate
+ from stripe.api_resources.margin import Margin
+ from stripe.api_resources.order import Order
+ from stripe.api_resources.payment_attempt_record import (
+ PaymentAttemptRecord,
+ )
+ from stripe.api_resources.payment_intent import PaymentIntent
+ from stripe.api_resources.payment_intent_amount_details_line_item import (
+ PaymentIntentAmountDetailsLineItem,
+ )
+ from stripe.api_resources.payment_link import PaymentLink
+ from stripe.api_resources.payment_method import PaymentMethod
+ from stripe.api_resources.payment_method_configuration import (
+ PaymentMethodConfiguration,
+ )
+ from stripe.api_resources.payment_method_domain import PaymentMethodDomain
+ from stripe.api_resources.payment_record import PaymentRecord
+ from stripe.api_resources.payout import Payout
+ from stripe.api_resources.person import Person
+ from stripe.api_resources.plan import Plan
+ from stripe.api_resources.price import Price
+ from stripe.api_resources.product import Product
+ from stripe.api_resources.product_feature import ProductFeature
+ from stripe.api_resources.promotion_code import PromotionCode
+ from stripe.api_resources.quote import Quote
+ from stripe.api_resources.quote_line import QuoteLine
+ from stripe.api_resources.quote_preview_invoice import QuotePreviewInvoice
+ from stripe.api_resources.quote_preview_subscription_schedule import (
+ QuotePreviewSubscriptionSchedule,
+ )
+ from stripe.api_resources.refund import Refund
+ from stripe.api_resources.reserve_transaction import ReserveTransaction
+ from stripe.api_resources.reversal import Reversal
+ from stripe.api_resources.review import Review
+ from stripe.api_resources.search_result_object import SearchResultObject
+ from stripe.api_resources.setup_attempt import SetupAttempt
+ from stripe.api_resources.setup_intent import SetupIntent
+ from stripe.api_resources.shipping_rate import ShippingRate
+ from stripe.api_resources.source import Source
+ from stripe.api_resources.source_mandate_notification import (
+ SourceMandateNotification,
+ )
+ from stripe.api_resources.source_transaction import SourceTransaction
+ from stripe.api_resources.subscription import Subscription
+ from stripe.api_resources.subscription_item import SubscriptionItem
+ from stripe.api_resources.subscription_schedule import SubscriptionSchedule
+ from stripe.api_resources.tax_code import TaxCode
+ from stripe.api_resources.tax_deducted_at_source import TaxDeductedAtSource
+ from stripe.api_resources.tax_id import TaxId
+ from stripe.api_resources.tax_rate import TaxRate
+ from stripe.api_resources.token import Token
+ from stripe.api_resources.topup import Topup
+ from stripe.api_resources.transfer import Transfer
+ from stripe.api_resources.webhook_endpoint import WebhookEndpoint
+
+# The end of the section generated from our OpenAPI spec
+
+# These two exports are "special" and can't be handled by the generator.
+# - error_object exports two symbols
+# - File is renamed to FileUpload on export
+# - RecipientTransfer is a manually maintained deprecated class
+if not TYPE_CHECKING:
+ from stripe.api_resources.error_object import ErrorObject
+ from stripe.api_resources.error_object import (
+ OAuthErrorObject,
+ )
+ from stripe.api_resources.file import (
+ File as FileUpload,
+ )
+
+ from stripe.api_resources.recipient_transfer import RecipientTransfer
diff --git a/stripe/billing/__init__.py b/stripe/billing/__init__.py
index d6b7582df..d85d22396 100644
--- a/stripe/billing/__init__.py
+++ b/stripe/billing/__init__.py
@@ -4,11 +4,15 @@
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
+ from stripe.billing import analytics as analytics
from stripe.billing._alert import Alert as Alert
from stripe.billing._alert_service import AlertService as AlertService
from stripe.billing._alert_triggered import (
AlertTriggered as AlertTriggered,
)
+ from stripe.billing._analytics_service import (
+ AnalyticsService as AnalyticsService,
+ )
from stripe.billing._credit_balance_summary import (
CreditBalanceSummary as CreditBalanceSummary,
)
@@ -46,9 +50,11 @@
# name -> (import_target, is_submodule)
_import_map = {
+ "analytics": ("stripe.billing.analytics", True),
"Alert": ("stripe.billing._alert", False),
"AlertService": ("stripe.billing._alert_service", False),
"AlertTriggered": ("stripe.billing._alert_triggered", False),
+ "AnalyticsService": ("stripe.billing._analytics_service", False),
"CreditBalanceSummary": ("stripe.billing._credit_balance_summary", False),
"CreditBalanceSummaryService": (
"stripe.billing._credit_balance_summary_service",
diff --git a/stripe/billing/_alert_triggered.py b/stripe/billing/_alert_triggered.py
index 3e33e9406..beaed0065 100644
--- a/stripe/billing/_alert_triggered.py
+++ b/stripe/billing/_alert_triggered.py
@@ -32,7 +32,7 @@ class AlertTriggered(StripeObject):
"""
String representing the object's type. Objects of the same type share the same value.
"""
- value: int
+ value: str
"""
The value triggering the alert
"""
diff --git a/stripe/billing/_analytics_service.py b/stripe/billing/_analytics_service.py
new file mode 100644
index 000000000..887215c17
--- /dev/null
+++ b/stripe/billing/_analytics_service.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.billing.analytics._meter_usage_service import MeterUsageService
+
+_subservices = {
+ "meter_usage": [
+ "stripe.billing.analytics._meter_usage_service",
+ "MeterUsageService",
+ ],
+}
+
+
+class AnalyticsService(StripeService):
+ meter_usage: "MeterUsageService"
+
+ def __init__(self, requestor):
+ super().__init__(requestor)
+
+ def __getattr__(self, name):
+ try:
+ import_from, service = _subservices[name]
+ service_class = getattr(
+ import_module(import_from),
+ service,
+ )
+ setattr(
+ self,
+ name,
+ service_class(self._requestor),
+ )
+ return getattr(self, name)
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/billing/analytics/__init__.py b/stripe/billing/analytics/__init__.py
new file mode 100644
index 000000000..f37d97575
--- /dev/null
+++ b/stripe/billing/analytics/__init__.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.billing.analytics._meter_usage import MeterUsage as MeterUsage
+ from stripe.billing.analytics._meter_usage_row import (
+ MeterUsageRow as MeterUsageRow,
+ )
+ from stripe.billing.analytics._meter_usage_service import (
+ MeterUsageService as MeterUsageService,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "MeterUsage": ("stripe.billing.analytics._meter_usage", False),
+ "MeterUsageRow": ("stripe.billing.analytics._meter_usage_row", False),
+ "MeterUsageService": (
+ "stripe.billing.analytics._meter_usage_service",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/billing/analytics/_meter_usage.py b/stripe/billing/analytics/_meter_usage.py
new file mode 100644
index 000000000..0645528d7
--- /dev/null
+++ b/stripe/billing/analytics/_meter_usage.py
@@ -0,0 +1,61 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._list_object import ListObject
+from stripe._singleton_api_resource import SingletonAPIResource
+from typing import ClassVar
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.billing.analytics._meter_usage_row import MeterUsageRow
+ from stripe.params.billing.analytics._meter_usage_retrieve_params import (
+ MeterUsageRetrieveParams,
+ )
+
+
+class MeterUsage(SingletonAPIResource["MeterUsage"]):
+ """
+ A billing meter usage event represents an aggregated view of a customer's billing meter events within a specified timeframe.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["billing.analytics.meter_usage"]] = (
+ "billing.analytics.meter_usage"
+ )
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["billing.analytics.meter_usage"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ refreshed_at: int
+ """
+ The timestamp to indicate data freshness, measured in seconds since the Unix epoch.
+ """
+ rows: ListObject["MeterUsageRow"]
+
+ @classmethod
+ def retrieve(
+ cls, **params: Unpack["MeterUsageRetrieveParams"]
+ ) -> "MeterUsage":
+ """
+ Returns aggregated meter usage data for a customer within a specified time interval. The data can be grouped by various dimensions and can include multiple meters if specified.
+ """
+ instance = cls(None, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, **params: Unpack["MeterUsageRetrieveParams"]
+ ) -> "MeterUsage":
+ """
+ Returns aggregated meter usage data for a customer within a specified time interval. The data can be grouped by various dimensions and can include multiple meters if specified.
+ """
+ instance = cls(None, **params)
+ await instance.refresh_async()
+ return instance
+
+ @classmethod
+ def class_url(cls):
+ return "/v1/billing/analytics/meter_usage"
diff --git a/stripe/billing/analytics/_meter_usage_row.py b/stripe/billing/analytics/_meter_usage_row.py
new file mode 100644
index 000000000..6f8976f5f
--- /dev/null
+++ b/stripe/billing/analytics/_meter_usage_row.py
@@ -0,0 +1,39 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, Optional
+from typing_extensions import Literal
+
+
+class MeterUsageRow(StripeObject):
+ OBJECT_NAME: ClassVar[Literal["billing.analytics.meter_usage_row"]] = (
+ "billing.analytics.meter_usage_row"
+ )
+ dimensions: Optional[Dict[str, str]]
+ """
+ A set of key-value pairs representing the dimensions of the meter usage.
+ """
+ ends_at: int
+ """
+ Timestamp indicating the end of the bucket. Measured in seconds since the Unix epoch.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ meter: Optional[str]
+ """
+ The unique identifier for the meter. Null if no meters were provided and usage was aggregated across all meters.
+ """
+ object: Literal["billing.analytics.meter_usage_row"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ starts_at: int
+ """
+ Timestamp indicating the start of the bucket. Measured in seconds since the Unix epoch.
+ """
+ value: float
+ """
+ The aggregated meter usage value for the specified bucket.
+ """
diff --git a/stripe/billing/analytics/_meter_usage_service.py b/stripe/billing/analytics/_meter_usage_service.py
new file mode 100644
index 000000000..c02707d3f
--- /dev/null
+++ b/stripe/billing/analytics/_meter_usage_service.py
@@ -0,0 +1,52 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.billing.analytics._meter_usage import MeterUsage
+ from stripe.params.billing.analytics._meter_usage_retrieve_params import (
+ MeterUsageRetrieveParams,
+ )
+
+
+class MeterUsageService(StripeService):
+ def retrieve(
+ self,
+ params: "MeterUsageRetrieveParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "MeterUsage":
+ """
+ Returns aggregated meter usage data for a customer within a specified time interval. The data can be grouped by various dimensions and can include multiple meters if specified.
+ """
+ return cast(
+ "MeterUsage",
+ self._request(
+ "get",
+ "/v1/billing/analytics/meter_usage",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ params: "MeterUsageRetrieveParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "MeterUsage":
+ """
+ Returns aggregated meter usage data for a customer within a specified time interval. The data can be grouped by various dimensions and can include multiple meters if specified.
+ """
+ return cast(
+ "MeterUsage",
+ await self._request_async(
+ "get",
+ "/v1/billing/analytics/meter_usage",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/capital/__init__.py b/stripe/capital/__init__.py
new file mode 100644
index 000000000..114bfd1eb
--- /dev/null
+++ b/stripe/capital/__init__.py
@@ -0,0 +1,58 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.capital._financing_offer import (
+ FinancingOffer as FinancingOffer,
+ )
+ from stripe.capital._financing_offer_service import (
+ FinancingOfferService as FinancingOfferService,
+ )
+ from stripe.capital._financing_summary import (
+ FinancingSummary as FinancingSummary,
+ )
+ from stripe.capital._financing_summary_service import (
+ FinancingSummaryService as FinancingSummaryService,
+ )
+ from stripe.capital._financing_transaction import (
+ FinancingTransaction as FinancingTransaction,
+ )
+ from stripe.capital._financing_transaction_service import (
+ FinancingTransactionService as FinancingTransactionService,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "FinancingOffer": ("stripe.capital._financing_offer", False),
+ "FinancingOfferService": (
+ "stripe.capital._financing_offer_service",
+ False,
+ ),
+ "FinancingSummary": ("stripe.capital._financing_summary", False),
+ "FinancingSummaryService": (
+ "stripe.capital._financing_summary_service",
+ False,
+ ),
+ "FinancingTransaction": ("stripe.capital._financing_transaction", False),
+ "FinancingTransactionService": (
+ "stripe.capital._financing_transaction_service",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/capital/_financing_offer.py b/stripe/capital/_financing_offer.py
new file mode 100644
index 000000000..3bdbfdc47
--- /dev/null
+++ b/stripe/capital/_financing_offer.py
@@ -0,0 +1,356 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._stripe_object import StripeObject
+from stripe._util import class_method_variant, sanitize_id
+from typing import ClassVar, Dict, Optional, cast, overload
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.capital._financing_offer_list_params import (
+ FinancingOfferListParams,
+ )
+ from stripe.params.capital._financing_offer_mark_delivered_params import (
+ FinancingOfferMarkDeliveredParams,
+ )
+ from stripe.params.capital._financing_offer_retrieve_params import (
+ FinancingOfferRetrieveParams,
+ )
+
+
+class FinancingOffer(ListableAPIResource["FinancingOffer"]):
+ """
+ This is an object representing an offer of financing from
+ Stripe Capital to a Connect subaccount.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["capital.financing_offer"]] = (
+ "capital.financing_offer"
+ )
+
+ class AcceptedTerms(StripeObject):
+ advance_amount: int
+ """
+ Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
+ """
+ currency: str
+ """
+ Currency that the financing offer is transacted in. For example, `usd`.
+ """
+ fee_amount: int
+ """
+ Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
+ """
+ previous_financing_fee_discount_amount: Optional[int]
+ """
+ Populated when the `product_type` of the `financingoffer` is `refill`.
+ Represents the discount amount on remaining premium for the existing loan at payout time.
+ """
+ withhold_rate: float
+ """
+ Per-transaction rate at which Stripe withholds funds to repay the financing.
+ """
+
+ class OfferedTerms(StripeObject):
+ advance_amount: int
+ """
+ Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
+ """
+ campaign_type: Literal[
+ "newly_eligible_user", "previously_eligible_user", "repeat_user"
+ ]
+ """
+ Describes the type of user the offer is being extended to.
+ """
+ currency: str
+ """
+ Currency that the financing offer is transacted in. For example, `usd`.
+ """
+ fee_amount: int
+ """
+ Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
+ """
+ previous_financing_fee_discount_rate: Optional[float]
+ """
+ Populated when the `product_type` of the `financingoffer` is `refill`.
+ Represents the discount rate percentage on remaining fee on the existing loan. When the `financing_offer`
+ is paid out, the `previous_financing_fee_discount_amount` will be computed as the multiple of this rate
+ and the remaining fee.
+ """
+ withhold_rate: float
+ """
+ Per-transaction rate at which Stripe withholds funds to repay the financing.
+ """
+
+ accepted_terms: Optional[AcceptedTerms]
+ """
+ This is an object representing the terms of an offer of financing from
+ Stripe Capital to a Connected account. This resource represents
+ the terms accepted by the Connected account, which may differ from those
+ offered.
+ """
+ account: str
+ """
+ The ID of the merchant associated with this financing object.
+ """
+ charged_off_at: Optional[int]
+ """
+ The time at which this financing offer was charged off, if applicable. Given in seconds since unix epoch.
+ """
+ created: int
+ """
+ Time at which the offer was created. Given in seconds since unix epoch.
+ """
+ expires_after: float
+ """
+ Time at which the offer expires. Given in seconds since unix epoch.
+ """
+ financing_type: Optional[Literal["cash_advance", "flex_loan"]]
+ """
+ The type of financing being offered.
+ """
+ id: str
+ """
+ A unique identifier for the financing object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ object: Literal["capital.financing_offer"]
+ """
+ The object type: financing_offer.
+ """
+ offered_terms: Optional[OfferedTerms]
+ """
+ This is an object representing the terms of an offer of financing from
+ Stripe Capital to a Connected account. This resource represents
+ both the terms offered to the Connected account.
+ """
+ product_type: Optional[Literal["refill", "standard"]]
+ """
+ Financing product identifier.
+ """
+ replacement: Optional[str]
+ """
+ The ID of the financing offer that replaced this offer.
+ """
+ replacement_for: Optional[str]
+ """
+ The ID of the financing offer that this offer is a replacement for.
+ """
+ status: Literal[
+ "accepted",
+ "canceled",
+ "completed",
+ "delivered",
+ "expired",
+ "fully_repaid",
+ "paid_out",
+ "rejected",
+ "replaced",
+ "undelivered",
+ ]
+ """
+ The current status of the offer.
+ """
+ type: Optional[Literal["cash_advance", "fixed_term_loan", "flex_loan"]]
+ """
+ See [financing_type](https://docs.stripe.com/api/capital/connect_financing_object#financing_offer_object-financing_type).
+ """
+
+ @classmethod
+ def list(
+ cls, **params: Unpack["FinancingOfferListParams"]
+ ) -> ListObject["FinancingOffer"]:
+ """
+ Retrieves the financing offers available for Connected accounts that belong to your platform.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["FinancingOfferListParams"]
+ ) -> ListObject["FinancingOffer"]:
+ """
+ Retrieves the financing offers available for Connected accounts that belong to your platform.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def _cls_mark_delivered(
+ cls,
+ financing_offer: str,
+ **params: Unpack["FinancingOfferMarkDeliveredParams"],
+ ) -> "FinancingOffer":
+ """
+ Acknowledges that platform has received and delivered the financing_offer to
+ the intended merchant recipient.
+ """
+ return cast(
+ "FinancingOffer",
+ cls._static_request(
+ "post",
+ "/v1/capital/financing_offers/{financing_offer}/mark_delivered".format(
+ financing_offer=sanitize_id(financing_offer)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def mark_delivered(
+ financing_offer: str,
+ **params: Unpack["FinancingOfferMarkDeliveredParams"],
+ ) -> "FinancingOffer":
+ """
+ Acknowledges that platform has received and delivered the financing_offer to
+ the intended merchant recipient.
+ """
+ ...
+
+ @overload
+ def mark_delivered(
+ self, **params: Unpack["FinancingOfferMarkDeliveredParams"]
+ ) -> "FinancingOffer":
+ """
+ Acknowledges that platform has received and delivered the financing_offer to
+ the intended merchant recipient.
+ """
+ ...
+
+ @class_method_variant("_cls_mark_delivered")
+ def mark_delivered( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["FinancingOfferMarkDeliveredParams"]
+ ) -> "FinancingOffer":
+ """
+ Acknowledges that platform has received and delivered the financing_offer to
+ the intended merchant recipient.
+ """
+ return cast(
+ "FinancingOffer",
+ self._request(
+ "post",
+ "/v1/capital/financing_offers/{financing_offer}/mark_delivered".format(
+ financing_offer=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_mark_delivered_async(
+ cls,
+ financing_offer: str,
+ **params: Unpack["FinancingOfferMarkDeliveredParams"],
+ ) -> "FinancingOffer":
+ """
+ Acknowledges that platform has received and delivered the financing_offer to
+ the intended merchant recipient.
+ """
+ return cast(
+ "FinancingOffer",
+ await cls._static_request_async(
+ "post",
+ "/v1/capital/financing_offers/{financing_offer}/mark_delivered".format(
+ financing_offer=sanitize_id(financing_offer)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def mark_delivered_async(
+ financing_offer: str,
+ **params: Unpack["FinancingOfferMarkDeliveredParams"],
+ ) -> "FinancingOffer":
+ """
+ Acknowledges that platform has received and delivered the financing_offer to
+ the intended merchant recipient.
+ """
+ ...
+
+ @overload
+ async def mark_delivered_async(
+ self, **params: Unpack["FinancingOfferMarkDeliveredParams"]
+ ) -> "FinancingOffer":
+ """
+ Acknowledges that platform has received and delivered the financing_offer to
+ the intended merchant recipient.
+ """
+ ...
+
+ @class_method_variant("_cls_mark_delivered_async")
+ async def mark_delivered_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["FinancingOfferMarkDeliveredParams"]
+ ) -> "FinancingOffer":
+ """
+ Acknowledges that platform has received and delivered the financing_offer to
+ the intended merchant recipient.
+ """
+ return cast(
+ "FinancingOffer",
+ await self._request_async(
+ "post",
+ "/v1/capital/financing_offers/{financing_offer}/mark_delivered".format(
+ financing_offer=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["FinancingOfferRetrieveParams"]
+ ) -> "FinancingOffer":
+ """
+ Get the details of the financing offer
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["FinancingOfferRetrieveParams"]
+ ) -> "FinancingOffer":
+ """
+ Get the details of the financing offer
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ _inner_class_types = {
+ "accepted_terms": AcceptedTerms,
+ "offered_terms": OfferedTerms,
+ }
diff --git a/stripe/capital/_financing_offer_service.py b/stripe/capital/_financing_offer_service.py
new file mode 100644
index 000000000..cdf5e08aa
--- /dev/null
+++ b/stripe/capital/_financing_offer_service.py
@@ -0,0 +1,150 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.capital._financing_offer import FinancingOffer
+ from stripe.params.capital._financing_offer_list_params import (
+ FinancingOfferListParams,
+ )
+ from stripe.params.capital._financing_offer_mark_delivered_params import (
+ FinancingOfferMarkDeliveredParams,
+ )
+ from stripe.params.capital._financing_offer_retrieve_params import (
+ FinancingOfferRetrieveParams,
+ )
+
+
+class FinancingOfferService(StripeService):
+ def list(
+ self,
+ params: Optional["FinancingOfferListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FinancingOffer]":
+ """
+ Retrieves the financing offers available for Connected accounts that belong to your platform.
+ """
+ return cast(
+ "ListObject[FinancingOffer]",
+ self._request(
+ "get",
+ "/v1/capital/financing_offers",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["FinancingOfferListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FinancingOffer]":
+ """
+ Retrieves the financing offers available for Connected accounts that belong to your platform.
+ """
+ return cast(
+ "ListObject[FinancingOffer]",
+ await self._request_async(
+ "get",
+ "/v1/capital/financing_offers",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ financing_offer: str,
+ params: Optional["FinancingOfferRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancingOffer":
+ """
+ Get the details of the financing offer
+ """
+ return cast(
+ "FinancingOffer",
+ self._request(
+ "get",
+ "/v1/capital/financing_offers/{financing_offer}".format(
+ financing_offer=sanitize_id(financing_offer),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ financing_offer: str,
+ params: Optional["FinancingOfferRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancingOffer":
+ """
+ Get the details of the financing offer
+ """
+ return cast(
+ "FinancingOffer",
+ await self._request_async(
+ "get",
+ "/v1/capital/financing_offers/{financing_offer}".format(
+ financing_offer=sanitize_id(financing_offer),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def mark_delivered(
+ self,
+ financing_offer: str,
+ params: Optional["FinancingOfferMarkDeliveredParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancingOffer":
+ """
+ Acknowledges that platform has received and delivered the financing_offer to
+ the intended merchant recipient.
+ """
+ return cast(
+ "FinancingOffer",
+ self._request(
+ "post",
+ "/v1/capital/financing_offers/{financing_offer}/mark_delivered".format(
+ financing_offer=sanitize_id(financing_offer),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def mark_delivered_async(
+ self,
+ financing_offer: str,
+ params: Optional["FinancingOfferMarkDeliveredParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancingOffer":
+ """
+ Acknowledges that platform has received and delivered the financing_offer to
+ the intended merchant recipient.
+ """
+ return cast(
+ "FinancingOffer",
+ await self._request_async(
+ "post",
+ "/v1/capital/financing_offers/{financing_offer}/mark_delivered".format(
+ financing_offer=sanitize_id(financing_offer),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/capital/_financing_summary.py b/stripe/capital/_financing_summary.py
new file mode 100644
index 000000000..69e9fa7ef
--- /dev/null
+++ b/stripe/capital/_financing_summary.py
@@ -0,0 +1,128 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._singleton_api_resource import SingletonAPIResource
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.capital._financing_summary_retrieve_params import (
+ FinancingSummaryRetrieveParams,
+ )
+
+
+class FinancingSummary(SingletonAPIResource["FinancingSummary"]):
+ """
+ A financing summary object describes a connected account's financing status in real time.
+ A financing status is either `accepted`, `delivered`, or `none`.
+ You can read the status of your connected accounts.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["capital.financing_summary"]] = (
+ "capital.financing_summary"
+ )
+
+ class Details(StripeObject):
+ class CurrentRepaymentInterval(StripeObject):
+ due_at: float
+ """
+ The time at which the minimum payment amount will be due. If not met through withholding, the Connected account's linked bank account or account balance will be debited.
+ Given in seconds since unix epoch.
+ """
+ paid_amount: Optional[int]
+ """
+ The amount that has already been paid in the current repayment interval, in minor units. For example, 100 USD is represented as 10000.
+ """
+ remaining_amount: int
+ """
+ The amount that is yet to be paid in the current repayment interval, in minor units. For example, 100 USD is represented as 10000.
+ """
+
+ advance_amount: int
+ """
+ Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000.
+ """
+ advance_paid_out_at: Optional[float]
+ """
+ The time at which the funds were paid out to the connected account's Stripe balance. Given in milliseconds since unix epoch.
+ """
+ currency: str
+ """
+ Currency that the financing offer is transacted in. For example, `usd`.
+ """
+ current_repayment_interval: Optional[CurrentRepaymentInterval]
+ """
+ The chronologically current repayment interval for the financing offer.
+ """
+ fee_amount: int
+ """
+ Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
+ """
+ paid_amount: int
+ """
+ The amount the Connected account has paid toward the financing debt so far, in minor units. For example, 1,000 USD is represented as 100000.
+ """
+ remaining_amount: int
+ """
+ The balance remaining to be paid on the financing, in minor units. For example, 1,000 USD is represented as 100000.
+ """
+ repayments_begin_at: Optional[float]
+ """
+ The time at which Capital will begin withholding from payments. Given in seconds since unix epoch.
+ """
+ withhold_rate: float
+ """
+ Per-transaction rate at which Stripe withholds funds to repay the financing.
+ """
+ _inner_class_types = {
+ "current_repayment_interval": CurrentRepaymentInterval,
+ }
+
+ details: Optional[Details]
+ """
+ Additional information about the financing summary. Describes currency, advance amount,
+ fee amount, withhold rate, remaining amount, paid amount, current repayment interval,
+ repayment start date, and advance payout date.
+
+ Only present for financing offers with the `paid_out` status.
+ """
+ financing_offer: Optional[str]
+ """
+ The unique identifier of the Financing Offer object that corresponds to the Financing Summary object.
+ """
+ object: Literal["capital.financing_summary"]
+ """
+ The object type: financing_summary
+ """
+ status: Optional[Literal["accepted", "delivered", "none"]]
+ """
+ The financing status of the connected account.
+ """
+
+ @classmethod
+ def retrieve(
+ cls, **params: Unpack["FinancingSummaryRetrieveParams"]
+ ) -> "FinancingSummary":
+ """
+ Retrieve the financing summary object for the account.
+ """
+ instance = cls(None, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, **params: Unpack["FinancingSummaryRetrieveParams"]
+ ) -> "FinancingSummary":
+ """
+ Retrieve the financing summary object for the account.
+ """
+ instance = cls(None, **params)
+ await instance.refresh_async()
+ return instance
+
+ @classmethod
+ def class_url(cls):
+ return "/v1/capital/financing_summary"
+
+ _inner_class_types = {"details": Details}
diff --git a/stripe/capital/_financing_summary_service.py b/stripe/capital/_financing_summary_service.py
new file mode 100644
index 000000000..189044120
--- /dev/null
+++ b/stripe/capital/_financing_summary_service.py
@@ -0,0 +1,52 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.capital._financing_summary import FinancingSummary
+ from stripe.params.capital._financing_summary_retrieve_params import (
+ FinancingSummaryRetrieveParams,
+ )
+
+
+class FinancingSummaryService(StripeService):
+ def retrieve(
+ self,
+ params: Optional["FinancingSummaryRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancingSummary":
+ """
+ Retrieve the financing summary object for the account.
+ """
+ return cast(
+ "FinancingSummary",
+ self._request(
+ "get",
+ "/v1/capital/financing_summary",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ params: Optional["FinancingSummaryRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancingSummary":
+ """
+ Retrieve the financing summary object for the account.
+ """
+ return cast(
+ "FinancingSummary",
+ await self._request_async(
+ "get",
+ "/v1/capital/financing_summary",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/capital/_financing_transaction.py b/stripe/capital/_financing_transaction.py
new file mode 100644
index 000000000..e8b8420b6
--- /dev/null
+++ b/stripe/capital/_financing_transaction.py
@@ -0,0 +1,191 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.capital._financing_transaction_list_params import (
+ FinancingTransactionListParams,
+ )
+ from stripe.params.capital._financing_transaction_retrieve_params import (
+ FinancingTransactionRetrieveParams,
+ )
+
+
+class FinancingTransaction(ListableAPIResource["FinancingTransaction"]):
+ """
+ This is an object representing the details of a transaction on a Capital financing object.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["capital.financing_transaction"]] = (
+ "capital.financing_transaction"
+ )
+
+ class Details(StripeObject):
+ class Transaction(StripeObject):
+ charge: Optional[str]
+ """
+ The linked payment ID.
+ """
+ treasury_transaction: Optional[str]
+ """
+ The linked Treasury Financing Transaction ID.
+ """
+
+ advance_amount: int
+ """
+ The advance amount being repaid, paid out, or reversed in minor units.
+ """
+ currency: str
+ """
+ The currency of the financing transaction.
+ """
+ fee_amount: int
+ """
+ The fee amount being repaid, paid out, or reversed in minor units.
+ """
+ linked_payment: Optional[str]
+ """
+ The linked payment for the transaction. This field only applies to financing transactions of type `paydown` and reason `automatic_withholding`.
+ """
+ reason: Optional[
+ Literal[
+ "automatic_withholding",
+ "automatic_withholding_refund",
+ "collection",
+ "collection_failure",
+ "financing_cancellation",
+ "refill",
+ "requested_by_user",
+ "user_initiated",
+ ]
+ ]
+ """
+ The reason for the financing transaction (if applicable).
+ """
+ reversed_transaction: Optional[str]
+ """
+ The reversed transaction. This field only applies to financing
+ transactions of type `reversal`.
+ """
+ total_amount: int
+ """
+ The advance and fee amount being repaid, paid out, or reversed in minor units.
+ """
+ transaction: Optional[Transaction]
+ """
+ This is an object representing a linked transaction on a Capital Financing Transaction.
+ """
+ _inner_class_types = {"transaction": Transaction}
+
+ account: str
+ """
+ The ID of the merchant associated with this financing transaction.
+ """
+ created_at: int
+ """
+ Time at which the financing transaction was created. Given in seconds since unix epoch.
+ """
+ details: Details
+ """
+ This is an object representing a transaction on a Capital financing offer.
+ """
+ financing_offer: Optional[str]
+ """
+ The Capital financing offer for this financing transaction.
+ """
+ id: str
+ """
+ A unique identifier for the financing transaction object.
+ """
+ legacy_balance_transaction_source: Optional[str]
+ """
+ The Capital transaction object that predates the Financing Transactions API and
+ corresponds with the balance transaction that was created as a result of this
+ financing transaction.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["capital.financing_transaction"]
+ """
+ The object type: financing_transaction
+ """
+ type: Literal["payment", "payout", "reversal"]
+ """
+ The type of the financing transaction.
+ """
+ user_facing_description: Optional[str]
+ """
+ A human-friendly description of the financing transaction.
+ """
+
+ @classmethod
+ def list(
+ cls, **params: Unpack["FinancingTransactionListParams"]
+ ) -> ListObject["FinancingTransaction"]:
+ """
+ Returns a list of financing transactions. The transactions are returned in sorted order,
+ with the most recent transactions appearing first.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["FinancingTransactionListParams"]
+ ) -> ListObject["FinancingTransaction"]:
+ """
+ Returns a list of financing transactions. The transactions are returned in sorted order,
+ with the most recent transactions appearing first.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["FinancingTransactionRetrieveParams"]
+ ) -> "FinancingTransaction":
+ """
+ Retrieves a financing transaction for a financing offer.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["FinancingTransactionRetrieveParams"]
+ ) -> "FinancingTransaction":
+ """
+ Retrieves a financing transaction for a financing offer.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ _inner_class_types = {"details": Details}
diff --git a/stripe/capital/_financing_transaction_service.py b/stripe/capital/_financing_transaction_service.py
new file mode 100644
index 000000000..d58480340
--- /dev/null
+++ b/stripe/capital/_financing_transaction_service.py
@@ -0,0 +1,103 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.capital._financing_transaction import FinancingTransaction
+ from stripe.params.capital._financing_transaction_list_params import (
+ FinancingTransactionListParams,
+ )
+ from stripe.params.capital._financing_transaction_retrieve_params import (
+ FinancingTransactionRetrieveParams,
+ )
+
+
+class FinancingTransactionService(StripeService):
+ def list(
+ self,
+ params: Optional["FinancingTransactionListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FinancingTransaction]":
+ """
+ Returns a list of financing transactions. The transactions are returned in sorted order,
+ with the most recent transactions appearing first.
+ """
+ return cast(
+ "ListObject[FinancingTransaction]",
+ self._request(
+ "get",
+ "/v1/capital/financing_transactions",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["FinancingTransactionListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FinancingTransaction]":
+ """
+ Returns a list of financing transactions. The transactions are returned in sorted order,
+ with the most recent transactions appearing first.
+ """
+ return cast(
+ "ListObject[FinancingTransaction]",
+ await self._request_async(
+ "get",
+ "/v1/capital/financing_transactions",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ financing_transaction: str,
+ params: Optional["FinancingTransactionRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancingTransaction":
+ """
+ Retrieves a financing transaction for a financing offer.
+ """
+ return cast(
+ "FinancingTransaction",
+ self._request(
+ "get",
+ "/v1/capital/financing_transactions/{financing_transaction}".format(
+ financing_transaction=sanitize_id(financing_transaction),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ financing_transaction: str,
+ params: Optional["FinancingTransactionRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancingTransaction":
+ """
+ Retrieves a financing transaction for a financing offer.
+ """
+ return cast(
+ "FinancingTransaction",
+ await self._request_async(
+ "get",
+ "/v1/capital/financing_transactions/{financing_transaction}".format(
+ financing_transaction=sanitize_id(financing_transaction),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py
index 0ce3ded81..54c4212bc 100644
--- a/stripe/checkout/_session.py
+++ b/stripe/checkout/_session.py
@@ -225,19 +225,156 @@ class Address(StripeObject):
"""
_inner_class_types = {"address": Address}
+ class TaxId(StripeObject):
+ type: Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "bo_tin",
+ "br_cnpj",
+ "br_cpf",
+ "bs_tin",
+ "by_tin",
+ "ca_bn",
+ "ca_gst_hst",
+ "ca_pst_bc",
+ "ca_pst_mb",
+ "ca_pst_sk",
+ "ca_qst",
+ "cd_nif",
+ "ch_uid",
+ "ch_vat",
+ "cl_tin",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "gb_vat",
+ "ge_vat",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "ma_vat",
+ "md_vat",
+ "me_pib",
+ "mk_vat",
+ "mr_nif",
+ "mx_rfc",
+ "my_frp",
+ "my_itn",
+ "my_sst",
+ "ng_tin",
+ "no_vat",
+ "no_voec",
+ "np_pan",
+ "nz_gst",
+ "om_vat",
+ "pe_ruc",
+ "ph_tin",
+ "ro_tin",
+ "rs_pib",
+ "ru_inn",
+ "ru_kpp",
+ "sa_vat",
+ "sg_gst",
+ "sg_uen",
+ "si_tin",
+ "sn_ninea",
+ "sr_fin",
+ "sv_nit",
+ "th_vat",
+ "tj_tin",
+ "tr_tin",
+ "tw_vat",
+ "tz_vat",
+ "ua_vat",
+ "ug_tin",
+ "unknown",
+ "us_ein",
+ "uy_ruc",
+ "uz_tin",
+ "uz_vat",
+ "ve_rif",
+ "vn_tin",
+ "za_vat",
+ "zm_tin",
+ "zw_tin",
+ ]
+ """
+ The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
+ """
+ value: Optional[str]
+ """
+ The value of the tax ID.
+ """
+
business_name: Optional[str]
"""
Customer's business name for this Checkout Session
"""
+ email: Optional[str]
+ """
+ Customer's email for this Checkout Session
+ """
individual_name: Optional[str]
"""
Customer's individual name for this Checkout Session
"""
+ phone: Optional[str]
+ """
+ Customer's phone number for this Checkout Session
+ """
shipping_details: Optional[ShippingDetails]
"""
Shipping information for this Checkout Session.
"""
- _inner_class_types = {"shipping_details": ShippingDetails}
+ tax_ids: Optional[List[TaxId]]
+ """
+ Customer's tax ids for this Checkout Session.
+ """
+ _inner_class_types = {
+ "shipping_details": ShippingDetails,
+ "tax_ids": TaxId,
+ }
class Consent(StripeObject):
promotions: Optional[Literal["opt_in", "opt_out"]]
@@ -986,6 +1123,12 @@ class Restrictions(StripeObject):
Controls when the funds will be captured from the customer's account.
"""
installments: Optional[Installments]
+ request_decremental_authorization: Optional[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
+ """
request_extended_authorization: Optional[
Literal["if_available", "never"]
]
@@ -1365,6 +1508,10 @@ class Paypal(StripeObject):
When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
+ subsellers: Optional[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
class Payto(StripeObject):
class MandateOptions(StripeObject):
@@ -1436,6 +1583,48 @@ class MandateOptions(StripeObject):
_inner_class_types = {"mandate_options": MandateOptions}
class Pix(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_includes_iof: Optional[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ Type of amount.
+ """
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
+ """
+ end_date: Optional[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
+ """
+ payment_schedule: Optional[
+ Literal[
+ "halfyearly",
+ "monthly",
+ "quarterly",
+ "weekly",
+ "yearly",
+ ]
+ ]
+ """
+ Schedule at which the future payments will be charged.
+ """
+ reference: Optional[str]
+ """
+ Subscription name displayed to buyers in their bank app.
+ """
+ start_date: Optional[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`.
+ """
+
amount_includes_iof: Optional[Literal["always", "never"]]
"""
Determines if the amount includes the IOF tax.
@@ -1444,7 +1633,8 @@ class Pix(StripeObject):
"""
The number of seconds after which Pix payment will expire.
"""
- setup_future_usage: Optional[Literal["none"]]
+ mandate_options: Optional[MandateOptions]
+ setup_future_usage: Optional[Literal["none", "off_session"]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -1454,6 +1644,7 @@ class Pix(StripeObject):
When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
+ _inner_class_types = {"mandate_options": MandateOptions}
class RevolutPay(StripeObject):
capture_method: Optional[Literal["manual"]]
@@ -1548,8 +1739,19 @@ class Filters(StripeObject):
"""
The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
"""
+ institution: Optional[str]
+ """
+ The institution to use to filter for possible accounts to link.
+ """
+
+ class ManualEntry(StripeObject):
+ mode: Optional[Literal["automatic", "custom"]]
+ """
+ Settings for configuring manual entry of account details.
+ """
filters: Optional[Filters]
+ manual_entry: Optional[ManualEntry]
permissions: Optional[
List[
Literal[
@@ -1564,7 +1766,14 @@ class Filters(StripeObject):
The list of permissions to request. The `payment_method` permission must be included.
"""
prefetch: Optional[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances",
+ "inferred_balances",
+ "ownership",
+ "transactions",
+ ]
+ ]
]
"""
Data features requested to be retrieved upon account creation.
@@ -1573,7 +1782,10 @@ class Filters(StripeObject):
"""
For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
"""
- _inner_class_types = {"filters": Filters}
+ _inner_class_types = {
+ "filters": Filters,
+ "manual_entry": ManualEntry,
+ }
financial_connections: Optional[FinancialConnections]
setup_future_usage: Optional[
@@ -1688,6 +1900,36 @@ class Filters(StripeObject):
}
class Permissions(StripeObject):
+ class Update(StripeObject):
+ line_items: Optional[Literal["client_only", "server_only"]]
+ """
+ Determines which entity is allowed to update the line items.
+
+ Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
+
+ When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
+ """
+ shipping_details: Optional[Literal["client_only", "server_only"]]
+ """
+ Determines which entity is allowed to update the shipping details.
+
+ Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
+
+ When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
+ """
+
+ update: Optional[Update]
+ """
+ Permissions for updating the Checkout Session.
+ """
+ update_line_items: Optional[Literal["client_only", "server_only"]]
+ """
+ Determines which entity is allowed to update the line items.
+
+ Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
+
+ When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
+ """
update_shipping_details: Optional[
Literal["client_only", "server_only"]
]
@@ -1698,6 +1940,7 @@ class Permissions(StripeObject):
When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
"""
+ _inner_class_types = {"update": Update}
class PhoneNumberCollection(StripeObject):
enabled: bool
diff --git a/stripe/events/__init__.py b/stripe/events/__init__.py
index 89de30b71..97b92f368 100644
--- a/stripe/events/__init__.py
+++ b/stripe/events/__init__.py
@@ -21,10 +21,230 @@
V1BillingMeterNoMeterFoundEvent as V1BillingMeterNoMeterFoundEvent,
V1BillingMeterNoMeterFoundEventNotification as V1BillingMeterNoMeterFoundEventNotification,
)
+ from stripe.events._v2_core_account_closed_event import (
+ V2CoreAccountClosedEvent as V2CoreAccountClosedEvent,
+ V2CoreAccountClosedEventNotification as V2CoreAccountClosedEventNotification,
+ )
+ from stripe.events._v2_core_account_created_event import (
+ V2CoreAccountCreatedEvent as V2CoreAccountCreatedEvent,
+ V2CoreAccountCreatedEventNotification as V2CoreAccountCreatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_customer_capability_status_updated_event import (
+ V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent as V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent,
+ V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification as V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_customer_updated_event import (
+ V2CoreAccountIncludingConfigurationCustomerUpdatedEvent as V2CoreAccountIncludingConfigurationCustomerUpdatedEvent,
+ V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification as V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_merchant_capability_status_updated_event import (
+ V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent as V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent,
+ V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification as V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_merchant_updated_event import (
+ V2CoreAccountIncludingConfigurationMerchantUpdatedEvent as V2CoreAccountIncludingConfigurationMerchantUpdatedEvent,
+ V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification as V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event import (
+ V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent as V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent,
+ V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification as V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_recipient_updated_event import (
+ V2CoreAccountIncludingConfigurationRecipientUpdatedEvent as V2CoreAccountIncludingConfigurationRecipientUpdatedEvent,
+ V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification as V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event import (
+ V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent as V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent,
+ V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification as V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_storer_updated_event import (
+ V2CoreAccountIncludingConfigurationStorerUpdatedEvent as V2CoreAccountIncludingConfigurationStorerUpdatedEvent,
+ V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification as V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_defaults_updated_event import (
+ V2CoreAccountIncludingDefaultsUpdatedEvent as V2CoreAccountIncludingDefaultsUpdatedEvent,
+ V2CoreAccountIncludingDefaultsUpdatedEventNotification as V2CoreAccountIncludingDefaultsUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_identity_updated_event import (
+ V2CoreAccountIncludingIdentityUpdatedEvent as V2CoreAccountIncludingIdentityUpdatedEvent,
+ V2CoreAccountIncludingIdentityUpdatedEventNotification as V2CoreAccountIncludingIdentityUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_requirements_updated_event import (
+ V2CoreAccountIncludingRequirementsUpdatedEvent as V2CoreAccountIncludingRequirementsUpdatedEvent,
+ V2CoreAccountIncludingRequirementsUpdatedEventNotification as V2CoreAccountIncludingRequirementsUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_link_returned_event import (
+ V2CoreAccountLinkReturnedEvent as V2CoreAccountLinkReturnedEvent,
+ V2CoreAccountLinkReturnedEventNotification as V2CoreAccountLinkReturnedEventNotification,
+ )
+ from stripe.events._v2_core_account_person_created_event import (
+ V2CoreAccountPersonCreatedEvent as V2CoreAccountPersonCreatedEvent,
+ V2CoreAccountPersonCreatedEventNotification as V2CoreAccountPersonCreatedEventNotification,
+ )
+ from stripe.events._v2_core_account_person_deleted_event import (
+ V2CoreAccountPersonDeletedEvent as V2CoreAccountPersonDeletedEvent,
+ V2CoreAccountPersonDeletedEventNotification as V2CoreAccountPersonDeletedEventNotification,
+ )
+ from stripe.events._v2_core_account_person_updated_event import (
+ V2CoreAccountPersonUpdatedEvent as V2CoreAccountPersonUpdatedEvent,
+ V2CoreAccountPersonUpdatedEventNotification as V2CoreAccountPersonUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_updated_event import (
+ V2CoreAccountUpdatedEvent as V2CoreAccountUpdatedEvent,
+ V2CoreAccountUpdatedEventNotification as V2CoreAccountUpdatedEventNotification,
+ )
from stripe.events._v2_core_event_destination_ping_event import (
V2CoreEventDestinationPingEvent as V2CoreEventDestinationPingEvent,
V2CoreEventDestinationPingEventNotification as V2CoreEventDestinationPingEventNotification,
)
+ from stripe.events._v2_core_health_event_generation_failure_resolved_event import (
+ V2CoreHealthEventGenerationFailureResolvedEvent as V2CoreHealthEventGenerationFailureResolvedEvent,
+ V2CoreHealthEventGenerationFailureResolvedEventNotification as V2CoreHealthEventGenerationFailureResolvedEventNotification,
+ )
+ from stripe.events._v2_money_management_adjustment_created_event import (
+ V2MoneyManagementAdjustmentCreatedEvent as V2MoneyManagementAdjustmentCreatedEvent,
+ V2MoneyManagementAdjustmentCreatedEventNotification as V2MoneyManagementAdjustmentCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_financial_account_created_event import (
+ V2MoneyManagementFinancialAccountCreatedEvent as V2MoneyManagementFinancialAccountCreatedEvent,
+ V2MoneyManagementFinancialAccountCreatedEventNotification as V2MoneyManagementFinancialAccountCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_financial_account_updated_event import (
+ V2MoneyManagementFinancialAccountUpdatedEvent as V2MoneyManagementFinancialAccountUpdatedEvent,
+ V2MoneyManagementFinancialAccountUpdatedEventNotification as V2MoneyManagementFinancialAccountUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_financial_address_activated_event import (
+ V2MoneyManagementFinancialAddressActivatedEvent as V2MoneyManagementFinancialAddressActivatedEvent,
+ V2MoneyManagementFinancialAddressActivatedEventNotification as V2MoneyManagementFinancialAddressActivatedEventNotification,
+ )
+ from stripe.events._v2_money_management_financial_address_failed_event import (
+ V2MoneyManagementFinancialAddressFailedEvent as V2MoneyManagementFinancialAddressFailedEvent,
+ V2MoneyManagementFinancialAddressFailedEventNotification as V2MoneyManagementFinancialAddressFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_available_event import (
+ V2MoneyManagementInboundTransferAvailableEvent as V2MoneyManagementInboundTransferAvailableEvent,
+ V2MoneyManagementInboundTransferAvailableEventNotification as V2MoneyManagementInboundTransferAvailableEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_failed_event import (
+ V2MoneyManagementInboundTransferBankDebitFailedEvent as V2MoneyManagementInboundTransferBankDebitFailedEvent,
+ V2MoneyManagementInboundTransferBankDebitFailedEventNotification as V2MoneyManagementInboundTransferBankDebitFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_processing_event import (
+ V2MoneyManagementInboundTransferBankDebitProcessingEvent as V2MoneyManagementInboundTransferBankDebitProcessingEvent,
+ V2MoneyManagementInboundTransferBankDebitProcessingEventNotification as V2MoneyManagementInboundTransferBankDebitProcessingEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_queued_event import (
+ V2MoneyManagementInboundTransferBankDebitQueuedEvent as V2MoneyManagementInboundTransferBankDebitQueuedEvent,
+ V2MoneyManagementInboundTransferBankDebitQueuedEventNotification as V2MoneyManagementInboundTransferBankDebitQueuedEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_returned_event import (
+ V2MoneyManagementInboundTransferBankDebitReturnedEvent as V2MoneyManagementInboundTransferBankDebitReturnedEvent,
+ V2MoneyManagementInboundTransferBankDebitReturnedEventNotification as V2MoneyManagementInboundTransferBankDebitReturnedEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_succeeded_event import (
+ V2MoneyManagementInboundTransferBankDebitSucceededEvent as V2MoneyManagementInboundTransferBankDebitSucceededEvent,
+ V2MoneyManagementInboundTransferBankDebitSucceededEventNotification as V2MoneyManagementInboundTransferBankDebitSucceededEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_canceled_event import (
+ V2MoneyManagementOutboundPaymentCanceledEvent as V2MoneyManagementOutboundPaymentCanceledEvent,
+ V2MoneyManagementOutboundPaymentCanceledEventNotification as V2MoneyManagementOutboundPaymentCanceledEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_created_event import (
+ V2MoneyManagementOutboundPaymentCreatedEvent as V2MoneyManagementOutboundPaymentCreatedEvent,
+ V2MoneyManagementOutboundPaymentCreatedEventNotification as V2MoneyManagementOutboundPaymentCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_failed_event import (
+ V2MoneyManagementOutboundPaymentFailedEvent as V2MoneyManagementOutboundPaymentFailedEvent,
+ V2MoneyManagementOutboundPaymentFailedEventNotification as V2MoneyManagementOutboundPaymentFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_posted_event import (
+ V2MoneyManagementOutboundPaymentPostedEvent as V2MoneyManagementOutboundPaymentPostedEvent,
+ V2MoneyManagementOutboundPaymentPostedEventNotification as V2MoneyManagementOutboundPaymentPostedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_returned_event import (
+ V2MoneyManagementOutboundPaymentReturnedEvent as V2MoneyManagementOutboundPaymentReturnedEvent,
+ V2MoneyManagementOutboundPaymentReturnedEventNotification as V2MoneyManagementOutboundPaymentReturnedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_updated_event import (
+ V2MoneyManagementOutboundPaymentUpdatedEvent as V2MoneyManagementOutboundPaymentUpdatedEvent,
+ V2MoneyManagementOutboundPaymentUpdatedEventNotification as V2MoneyManagementOutboundPaymentUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_canceled_event import (
+ V2MoneyManagementOutboundTransferCanceledEvent as V2MoneyManagementOutboundTransferCanceledEvent,
+ V2MoneyManagementOutboundTransferCanceledEventNotification as V2MoneyManagementOutboundTransferCanceledEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_created_event import (
+ V2MoneyManagementOutboundTransferCreatedEvent as V2MoneyManagementOutboundTransferCreatedEvent,
+ V2MoneyManagementOutboundTransferCreatedEventNotification as V2MoneyManagementOutboundTransferCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_failed_event import (
+ V2MoneyManagementOutboundTransferFailedEvent as V2MoneyManagementOutboundTransferFailedEvent,
+ V2MoneyManagementOutboundTransferFailedEventNotification as V2MoneyManagementOutboundTransferFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_posted_event import (
+ V2MoneyManagementOutboundTransferPostedEvent as V2MoneyManagementOutboundTransferPostedEvent,
+ V2MoneyManagementOutboundTransferPostedEventNotification as V2MoneyManagementOutboundTransferPostedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_returned_event import (
+ V2MoneyManagementOutboundTransferReturnedEvent as V2MoneyManagementOutboundTransferReturnedEvent,
+ V2MoneyManagementOutboundTransferReturnedEventNotification as V2MoneyManagementOutboundTransferReturnedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_updated_event import (
+ V2MoneyManagementOutboundTransferUpdatedEvent as V2MoneyManagementOutboundTransferUpdatedEvent,
+ V2MoneyManagementOutboundTransferUpdatedEventNotification as V2MoneyManagementOutboundTransferUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_payout_method_created_event import (
+ V2MoneyManagementPayoutMethodCreatedEvent as V2MoneyManagementPayoutMethodCreatedEvent,
+ V2MoneyManagementPayoutMethodCreatedEventNotification as V2MoneyManagementPayoutMethodCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_payout_method_updated_event import (
+ V2MoneyManagementPayoutMethodUpdatedEvent as V2MoneyManagementPayoutMethodUpdatedEvent,
+ V2MoneyManagementPayoutMethodUpdatedEventNotification as V2MoneyManagementPayoutMethodUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_received_credit_available_event import (
+ V2MoneyManagementReceivedCreditAvailableEvent as V2MoneyManagementReceivedCreditAvailableEvent,
+ V2MoneyManagementReceivedCreditAvailableEventNotification as V2MoneyManagementReceivedCreditAvailableEventNotification,
+ )
+ from stripe.events._v2_money_management_received_credit_failed_event import (
+ V2MoneyManagementReceivedCreditFailedEvent as V2MoneyManagementReceivedCreditFailedEvent,
+ V2MoneyManagementReceivedCreditFailedEventNotification as V2MoneyManagementReceivedCreditFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_received_credit_returned_event import (
+ V2MoneyManagementReceivedCreditReturnedEvent as V2MoneyManagementReceivedCreditReturnedEvent,
+ V2MoneyManagementReceivedCreditReturnedEventNotification as V2MoneyManagementReceivedCreditReturnedEventNotification,
+ )
+ from stripe.events._v2_money_management_received_credit_succeeded_event import (
+ V2MoneyManagementReceivedCreditSucceededEvent as V2MoneyManagementReceivedCreditSucceededEvent,
+ V2MoneyManagementReceivedCreditSucceededEventNotification as V2MoneyManagementReceivedCreditSucceededEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_canceled_event import (
+ V2MoneyManagementReceivedDebitCanceledEvent as V2MoneyManagementReceivedDebitCanceledEvent,
+ V2MoneyManagementReceivedDebitCanceledEventNotification as V2MoneyManagementReceivedDebitCanceledEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_failed_event import (
+ V2MoneyManagementReceivedDebitFailedEvent as V2MoneyManagementReceivedDebitFailedEvent,
+ V2MoneyManagementReceivedDebitFailedEventNotification as V2MoneyManagementReceivedDebitFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_pending_event import (
+ V2MoneyManagementReceivedDebitPendingEvent as V2MoneyManagementReceivedDebitPendingEvent,
+ V2MoneyManagementReceivedDebitPendingEventNotification as V2MoneyManagementReceivedDebitPendingEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_succeeded_event import (
+ V2MoneyManagementReceivedDebitSucceededEvent as V2MoneyManagementReceivedDebitSucceededEvent,
+ V2MoneyManagementReceivedDebitSucceededEventNotification as V2MoneyManagementReceivedDebitSucceededEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_updated_event import (
+ V2MoneyManagementReceivedDebitUpdatedEvent as V2MoneyManagementReceivedDebitUpdatedEvent,
+ V2MoneyManagementReceivedDebitUpdatedEventNotification as V2MoneyManagementReceivedDebitUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_transaction_created_event import (
+ V2MoneyManagementTransactionCreatedEvent as V2MoneyManagementTransactionCreatedEvent,
+ V2MoneyManagementTransactionCreatedEventNotification as V2MoneyManagementTransactionCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_transaction_updated_event import (
+ V2MoneyManagementTransactionUpdatedEvent as V2MoneyManagementTransactionUpdatedEvent,
+ V2MoneyManagementTransactionUpdatedEventNotification as V2MoneyManagementTransactionUpdatedEventNotification,
+ )
# name -> (import_target, is_submodule)
_import_map = {
@@ -45,6 +265,150 @@
"stripe.events._v1_billing_meter_no_meter_found_event",
False,
),
+ "V2CoreAccountClosedEvent": (
+ "stripe.events._v2_core_account_closed_event",
+ False,
+ ),
+ "V2CoreAccountClosedEventNotification": (
+ "stripe.events._v2_core_account_closed_event",
+ False,
+ ),
+ "V2CoreAccountCreatedEvent": (
+ "stripe.events._v2_core_account_created_event",
+ False,
+ ),
+ "V2CoreAccountCreatedEventNotification": (
+ "stripe.events._v2_core_account_created_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent": (
+ "stripe.events._v2_core_account_including_configuration_customer_capability_status_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification": (
+ "stripe.events._v2_core_account_including_configuration_customer_capability_status_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationCustomerUpdatedEvent": (
+ "stripe.events._v2_core_account_including_configuration_customer_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification": (
+ "stripe.events._v2_core_account_including_configuration_customer_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent": (
+ "stripe.events._v2_core_account_including_configuration_merchant_capability_status_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification": (
+ "stripe.events._v2_core_account_including_configuration_merchant_capability_status_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationMerchantUpdatedEvent": (
+ "stripe.events._v2_core_account_including_configuration_merchant_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification": (
+ "stripe.events._v2_core_account_including_configuration_merchant_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent": (
+ "stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification": (
+ "stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationRecipientUpdatedEvent": (
+ "stripe.events._v2_core_account_including_configuration_recipient_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification": (
+ "stripe.events._v2_core_account_including_configuration_recipient_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent": (
+ "stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification": (
+ "stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationStorerUpdatedEvent": (
+ "stripe.events._v2_core_account_including_configuration_storer_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification": (
+ "stripe.events._v2_core_account_including_configuration_storer_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingDefaultsUpdatedEvent": (
+ "stripe.events._v2_core_account_including_defaults_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingDefaultsUpdatedEventNotification": (
+ "stripe.events._v2_core_account_including_defaults_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingIdentityUpdatedEvent": (
+ "stripe.events._v2_core_account_including_identity_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingIdentityUpdatedEventNotification": (
+ "stripe.events._v2_core_account_including_identity_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingRequirementsUpdatedEvent": (
+ "stripe.events._v2_core_account_including_requirements_updated_event",
+ False,
+ ),
+ "V2CoreAccountIncludingRequirementsUpdatedEventNotification": (
+ "stripe.events._v2_core_account_including_requirements_updated_event",
+ False,
+ ),
+ "V2CoreAccountLinkReturnedEvent": (
+ "stripe.events._v2_core_account_link_returned_event",
+ False,
+ ),
+ "V2CoreAccountLinkReturnedEventNotification": (
+ "stripe.events._v2_core_account_link_returned_event",
+ False,
+ ),
+ "V2CoreAccountPersonCreatedEvent": (
+ "stripe.events._v2_core_account_person_created_event",
+ False,
+ ),
+ "V2CoreAccountPersonCreatedEventNotification": (
+ "stripe.events._v2_core_account_person_created_event",
+ False,
+ ),
+ "V2CoreAccountPersonDeletedEvent": (
+ "stripe.events._v2_core_account_person_deleted_event",
+ False,
+ ),
+ "V2CoreAccountPersonDeletedEventNotification": (
+ "stripe.events._v2_core_account_person_deleted_event",
+ False,
+ ),
+ "V2CoreAccountPersonUpdatedEvent": (
+ "stripe.events._v2_core_account_person_updated_event",
+ False,
+ ),
+ "V2CoreAccountPersonUpdatedEventNotification": (
+ "stripe.events._v2_core_account_person_updated_event",
+ False,
+ ),
+ "V2CoreAccountUpdatedEvent": (
+ "stripe.events._v2_core_account_updated_event",
+ False,
+ ),
+ "V2CoreAccountUpdatedEventNotification": (
+ "stripe.events._v2_core_account_updated_event",
+ False,
+ ),
"V2CoreEventDestinationPingEvent": (
"stripe.events._v2_core_event_destination_ping_event",
False,
@@ -53,6 +417,302 @@
"stripe.events._v2_core_event_destination_ping_event",
False,
),
+ "V2CoreHealthEventGenerationFailureResolvedEvent": (
+ "stripe.events._v2_core_health_event_generation_failure_resolved_event",
+ False,
+ ),
+ "V2CoreHealthEventGenerationFailureResolvedEventNotification": (
+ "stripe.events._v2_core_health_event_generation_failure_resolved_event",
+ False,
+ ),
+ "V2MoneyManagementAdjustmentCreatedEvent": (
+ "stripe.events._v2_money_management_adjustment_created_event",
+ False,
+ ),
+ "V2MoneyManagementAdjustmentCreatedEventNotification": (
+ "stripe.events._v2_money_management_adjustment_created_event",
+ False,
+ ),
+ "V2MoneyManagementFinancialAccountCreatedEvent": (
+ "stripe.events._v2_money_management_financial_account_created_event",
+ False,
+ ),
+ "V2MoneyManagementFinancialAccountCreatedEventNotification": (
+ "stripe.events._v2_money_management_financial_account_created_event",
+ False,
+ ),
+ "V2MoneyManagementFinancialAccountUpdatedEvent": (
+ "stripe.events._v2_money_management_financial_account_updated_event",
+ False,
+ ),
+ "V2MoneyManagementFinancialAccountUpdatedEventNotification": (
+ "stripe.events._v2_money_management_financial_account_updated_event",
+ False,
+ ),
+ "V2MoneyManagementFinancialAddressActivatedEvent": (
+ "stripe.events._v2_money_management_financial_address_activated_event",
+ False,
+ ),
+ "V2MoneyManagementFinancialAddressActivatedEventNotification": (
+ "stripe.events._v2_money_management_financial_address_activated_event",
+ False,
+ ),
+ "V2MoneyManagementFinancialAddressFailedEvent": (
+ "stripe.events._v2_money_management_financial_address_failed_event",
+ False,
+ ),
+ "V2MoneyManagementFinancialAddressFailedEventNotification": (
+ "stripe.events._v2_money_management_financial_address_failed_event",
+ False,
+ ),
+ "V2MoneyManagementInboundTransferAvailableEvent": (
+ "stripe.events._v2_money_management_inbound_transfer_available_event",
+ False,
+ ),
+ "V2MoneyManagementInboundTransferAvailableEventNotification": (
+ "stripe.events._v2_money_management_inbound_transfer_available_event",
+ False,
+ ),
+ "V2MoneyManagementInboundTransferBankDebitFailedEvent": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_failed_event",
+ False,
+ ),
+ "V2MoneyManagementInboundTransferBankDebitFailedEventNotification": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_failed_event",
+ False,
+ ),
+ "V2MoneyManagementInboundTransferBankDebitProcessingEvent": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_processing_event",
+ False,
+ ),
+ "V2MoneyManagementInboundTransferBankDebitProcessingEventNotification": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_processing_event",
+ False,
+ ),
+ "V2MoneyManagementInboundTransferBankDebitQueuedEvent": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_queued_event",
+ False,
+ ),
+ "V2MoneyManagementInboundTransferBankDebitQueuedEventNotification": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_queued_event",
+ False,
+ ),
+ "V2MoneyManagementInboundTransferBankDebitReturnedEvent": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_returned_event",
+ False,
+ ),
+ "V2MoneyManagementInboundTransferBankDebitReturnedEventNotification": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_returned_event",
+ False,
+ ),
+ "V2MoneyManagementInboundTransferBankDebitSucceededEvent": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_succeeded_event",
+ False,
+ ),
+ "V2MoneyManagementInboundTransferBankDebitSucceededEventNotification": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_succeeded_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundPaymentCanceledEvent": (
+ "stripe.events._v2_money_management_outbound_payment_canceled_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundPaymentCanceledEventNotification": (
+ "stripe.events._v2_money_management_outbound_payment_canceled_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundPaymentCreatedEvent": (
+ "stripe.events._v2_money_management_outbound_payment_created_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundPaymentCreatedEventNotification": (
+ "stripe.events._v2_money_management_outbound_payment_created_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundPaymentFailedEvent": (
+ "stripe.events._v2_money_management_outbound_payment_failed_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundPaymentFailedEventNotification": (
+ "stripe.events._v2_money_management_outbound_payment_failed_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundPaymentPostedEvent": (
+ "stripe.events._v2_money_management_outbound_payment_posted_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundPaymentPostedEventNotification": (
+ "stripe.events._v2_money_management_outbound_payment_posted_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundPaymentReturnedEvent": (
+ "stripe.events._v2_money_management_outbound_payment_returned_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundPaymentReturnedEventNotification": (
+ "stripe.events._v2_money_management_outbound_payment_returned_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundPaymentUpdatedEvent": (
+ "stripe.events._v2_money_management_outbound_payment_updated_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundPaymentUpdatedEventNotification": (
+ "stripe.events._v2_money_management_outbound_payment_updated_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundTransferCanceledEvent": (
+ "stripe.events._v2_money_management_outbound_transfer_canceled_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundTransferCanceledEventNotification": (
+ "stripe.events._v2_money_management_outbound_transfer_canceled_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundTransferCreatedEvent": (
+ "stripe.events._v2_money_management_outbound_transfer_created_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundTransferCreatedEventNotification": (
+ "stripe.events._v2_money_management_outbound_transfer_created_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundTransferFailedEvent": (
+ "stripe.events._v2_money_management_outbound_transfer_failed_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundTransferFailedEventNotification": (
+ "stripe.events._v2_money_management_outbound_transfer_failed_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundTransferPostedEvent": (
+ "stripe.events._v2_money_management_outbound_transfer_posted_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundTransferPostedEventNotification": (
+ "stripe.events._v2_money_management_outbound_transfer_posted_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundTransferReturnedEvent": (
+ "stripe.events._v2_money_management_outbound_transfer_returned_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundTransferReturnedEventNotification": (
+ "stripe.events._v2_money_management_outbound_transfer_returned_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundTransferUpdatedEvent": (
+ "stripe.events._v2_money_management_outbound_transfer_updated_event",
+ False,
+ ),
+ "V2MoneyManagementOutboundTransferUpdatedEventNotification": (
+ "stripe.events._v2_money_management_outbound_transfer_updated_event",
+ False,
+ ),
+ "V2MoneyManagementPayoutMethodCreatedEvent": (
+ "stripe.events._v2_money_management_payout_method_created_event",
+ False,
+ ),
+ "V2MoneyManagementPayoutMethodCreatedEventNotification": (
+ "stripe.events._v2_money_management_payout_method_created_event",
+ False,
+ ),
+ "V2MoneyManagementPayoutMethodUpdatedEvent": (
+ "stripe.events._v2_money_management_payout_method_updated_event",
+ False,
+ ),
+ "V2MoneyManagementPayoutMethodUpdatedEventNotification": (
+ "stripe.events._v2_money_management_payout_method_updated_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedCreditAvailableEvent": (
+ "stripe.events._v2_money_management_received_credit_available_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedCreditAvailableEventNotification": (
+ "stripe.events._v2_money_management_received_credit_available_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedCreditFailedEvent": (
+ "stripe.events._v2_money_management_received_credit_failed_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedCreditFailedEventNotification": (
+ "stripe.events._v2_money_management_received_credit_failed_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedCreditReturnedEvent": (
+ "stripe.events._v2_money_management_received_credit_returned_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedCreditReturnedEventNotification": (
+ "stripe.events._v2_money_management_received_credit_returned_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedCreditSucceededEvent": (
+ "stripe.events._v2_money_management_received_credit_succeeded_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedCreditSucceededEventNotification": (
+ "stripe.events._v2_money_management_received_credit_succeeded_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedDebitCanceledEvent": (
+ "stripe.events._v2_money_management_received_debit_canceled_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedDebitCanceledEventNotification": (
+ "stripe.events._v2_money_management_received_debit_canceled_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedDebitFailedEvent": (
+ "stripe.events._v2_money_management_received_debit_failed_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedDebitFailedEventNotification": (
+ "stripe.events._v2_money_management_received_debit_failed_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedDebitPendingEvent": (
+ "stripe.events._v2_money_management_received_debit_pending_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedDebitPendingEventNotification": (
+ "stripe.events._v2_money_management_received_debit_pending_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedDebitSucceededEvent": (
+ "stripe.events._v2_money_management_received_debit_succeeded_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedDebitSucceededEventNotification": (
+ "stripe.events._v2_money_management_received_debit_succeeded_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedDebitUpdatedEvent": (
+ "stripe.events._v2_money_management_received_debit_updated_event",
+ False,
+ ),
+ "V2MoneyManagementReceivedDebitUpdatedEventNotification": (
+ "stripe.events._v2_money_management_received_debit_updated_event",
+ False,
+ ),
+ "V2MoneyManagementTransactionCreatedEvent": (
+ "stripe.events._v2_money_management_transaction_created_event",
+ False,
+ ),
+ "V2MoneyManagementTransactionCreatedEventNotification": (
+ "stripe.events._v2_money_management_transaction_created_event",
+ False,
+ ),
+ "V2MoneyManagementTransactionUpdatedEvent": (
+ "stripe.events._v2_money_management_transaction_updated_event",
+ False,
+ ),
+ "V2MoneyManagementTransactionUpdatedEventNotification": (
+ "stripe.events._v2_money_management_transaction_updated_event",
+ False,
+ ),
}
if not TYPE_CHECKING:
diff --git a/stripe/events/_event_classes.py b/stripe/events/_event_classes.py
index 1ee18728a..b250d1e15 100644
--- a/stripe/events/_event_classes.py
+++ b/stripe/events/_event_classes.py
@@ -13,9 +13,174 @@
from stripe.events._v1_billing_meter_no_meter_found_event import (
V1BillingMeterNoMeterFoundEventNotification,
)
+ from stripe.events._v2_core_account_closed_event import (
+ V2CoreAccountClosedEventNotification,
+ )
+ from stripe.events._v2_core_account_created_event import (
+ V2CoreAccountCreatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_customer_capability_status_updated_event import (
+ V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_customer_updated_event import (
+ V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_merchant_capability_status_updated_event import (
+ V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_merchant_updated_event import (
+ V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event import (
+ V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_recipient_updated_event import (
+ V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event import (
+ V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_configuration_storer_updated_event import (
+ V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_defaults_updated_event import (
+ V2CoreAccountIncludingDefaultsUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_identity_updated_event import (
+ V2CoreAccountIncludingIdentityUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_including_requirements_updated_event import (
+ V2CoreAccountIncludingRequirementsUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_link_returned_event import (
+ V2CoreAccountLinkReturnedEventNotification,
+ )
+ from stripe.events._v2_core_account_person_created_event import (
+ V2CoreAccountPersonCreatedEventNotification,
+ )
+ from stripe.events._v2_core_account_person_deleted_event import (
+ V2CoreAccountPersonDeletedEventNotification,
+ )
+ from stripe.events._v2_core_account_person_updated_event import (
+ V2CoreAccountPersonUpdatedEventNotification,
+ )
+ from stripe.events._v2_core_account_updated_event import (
+ V2CoreAccountUpdatedEventNotification,
+ )
from stripe.events._v2_core_event_destination_ping_event import (
V2CoreEventDestinationPingEventNotification,
)
+ from stripe.events._v2_core_health_event_generation_failure_resolved_event import (
+ V2CoreHealthEventGenerationFailureResolvedEventNotification,
+ )
+ from stripe.events._v2_money_management_adjustment_created_event import (
+ V2MoneyManagementAdjustmentCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_financial_account_created_event import (
+ V2MoneyManagementFinancialAccountCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_financial_account_updated_event import (
+ V2MoneyManagementFinancialAccountUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_financial_address_activated_event import (
+ V2MoneyManagementFinancialAddressActivatedEventNotification,
+ )
+ from stripe.events._v2_money_management_financial_address_failed_event import (
+ V2MoneyManagementFinancialAddressFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_available_event import (
+ V2MoneyManagementInboundTransferAvailableEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_failed_event import (
+ V2MoneyManagementInboundTransferBankDebitFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_processing_event import (
+ V2MoneyManagementInboundTransferBankDebitProcessingEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_queued_event import (
+ V2MoneyManagementInboundTransferBankDebitQueuedEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_returned_event import (
+ V2MoneyManagementInboundTransferBankDebitReturnedEventNotification,
+ )
+ from stripe.events._v2_money_management_inbound_transfer_bank_debit_succeeded_event import (
+ V2MoneyManagementInboundTransferBankDebitSucceededEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_canceled_event import (
+ V2MoneyManagementOutboundPaymentCanceledEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_created_event import (
+ V2MoneyManagementOutboundPaymentCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_failed_event import (
+ V2MoneyManagementOutboundPaymentFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_posted_event import (
+ V2MoneyManagementOutboundPaymentPostedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_returned_event import (
+ V2MoneyManagementOutboundPaymentReturnedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_payment_updated_event import (
+ V2MoneyManagementOutboundPaymentUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_canceled_event import (
+ V2MoneyManagementOutboundTransferCanceledEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_created_event import (
+ V2MoneyManagementOutboundTransferCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_failed_event import (
+ V2MoneyManagementOutboundTransferFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_posted_event import (
+ V2MoneyManagementOutboundTransferPostedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_returned_event import (
+ V2MoneyManagementOutboundTransferReturnedEventNotification,
+ )
+ from stripe.events._v2_money_management_outbound_transfer_updated_event import (
+ V2MoneyManagementOutboundTransferUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_payout_method_created_event import (
+ V2MoneyManagementPayoutMethodCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_payout_method_updated_event import (
+ V2MoneyManagementPayoutMethodUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_received_credit_available_event import (
+ V2MoneyManagementReceivedCreditAvailableEventNotification,
+ )
+ from stripe.events._v2_money_management_received_credit_failed_event import (
+ V2MoneyManagementReceivedCreditFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_received_credit_returned_event import (
+ V2MoneyManagementReceivedCreditReturnedEventNotification,
+ )
+ from stripe.events._v2_money_management_received_credit_succeeded_event import (
+ V2MoneyManagementReceivedCreditSucceededEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_canceled_event import (
+ V2MoneyManagementReceivedDebitCanceledEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_failed_event import (
+ V2MoneyManagementReceivedDebitFailedEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_pending_event import (
+ V2MoneyManagementReceivedDebitPendingEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_succeeded_event import (
+ V2MoneyManagementReceivedDebitSucceededEventNotification,
+ )
+ from stripe.events._v2_money_management_received_debit_updated_event import (
+ V2MoneyManagementReceivedDebitUpdatedEventNotification,
+ )
+ from stripe.events._v2_money_management_transaction_created_event import (
+ V2MoneyManagementTransactionCreatedEventNotification,
+ )
+ from stripe.events._v2_money_management_transaction_updated_event import (
+ V2MoneyManagementTransactionUpdatedEventNotification,
+ )
_V2_EVENT_CLASS_LOOKUP = {
@@ -27,10 +192,230 @@
"stripe.events._v1_billing_meter_no_meter_found_event",
"V1BillingMeterNoMeterFoundEvent",
),
+ "v2.core.account.closed": (
+ "stripe.events._v2_core_account_closed_event",
+ "V2CoreAccountClosedEvent",
+ ),
+ "v2.core.account.created": (
+ "stripe.events._v2_core_account_created_event",
+ "V2CoreAccountCreatedEvent",
+ ),
+ "v2.core.account[configuration.customer].capability_status_updated": (
+ "stripe.events._v2_core_account_including_configuration_customer_capability_status_updated_event",
+ "V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent",
+ ),
+ "v2.core.account[configuration.customer].updated": (
+ "stripe.events._v2_core_account_including_configuration_customer_updated_event",
+ "V2CoreAccountIncludingConfigurationCustomerUpdatedEvent",
+ ),
+ "v2.core.account[configuration.merchant].capability_status_updated": (
+ "stripe.events._v2_core_account_including_configuration_merchant_capability_status_updated_event",
+ "V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent",
+ ),
+ "v2.core.account[configuration.merchant].updated": (
+ "stripe.events._v2_core_account_including_configuration_merchant_updated_event",
+ "V2CoreAccountIncludingConfigurationMerchantUpdatedEvent",
+ ),
+ "v2.core.account[configuration.recipient].capability_status_updated": (
+ "stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event",
+ "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent",
+ ),
+ "v2.core.account[configuration.recipient].updated": (
+ "stripe.events._v2_core_account_including_configuration_recipient_updated_event",
+ "V2CoreAccountIncludingConfigurationRecipientUpdatedEvent",
+ ),
+ "v2.core.account[configuration.storer].capability_status_updated": (
+ "stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event",
+ "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent",
+ ),
+ "v2.core.account[configuration.storer].updated": (
+ "stripe.events._v2_core_account_including_configuration_storer_updated_event",
+ "V2CoreAccountIncludingConfigurationStorerUpdatedEvent",
+ ),
+ "v2.core.account[defaults].updated": (
+ "stripe.events._v2_core_account_including_defaults_updated_event",
+ "V2CoreAccountIncludingDefaultsUpdatedEvent",
+ ),
+ "v2.core.account[identity].updated": (
+ "stripe.events._v2_core_account_including_identity_updated_event",
+ "V2CoreAccountIncludingIdentityUpdatedEvent",
+ ),
+ "v2.core.account[requirements].updated": (
+ "stripe.events._v2_core_account_including_requirements_updated_event",
+ "V2CoreAccountIncludingRequirementsUpdatedEvent",
+ ),
+ "v2.core.account_link.returned": (
+ "stripe.events._v2_core_account_link_returned_event",
+ "V2CoreAccountLinkReturnedEvent",
+ ),
+ "v2.core.account_person.created": (
+ "stripe.events._v2_core_account_person_created_event",
+ "V2CoreAccountPersonCreatedEvent",
+ ),
+ "v2.core.account_person.deleted": (
+ "stripe.events._v2_core_account_person_deleted_event",
+ "V2CoreAccountPersonDeletedEvent",
+ ),
+ "v2.core.account_person.updated": (
+ "stripe.events._v2_core_account_person_updated_event",
+ "V2CoreAccountPersonUpdatedEvent",
+ ),
+ "v2.core.account.updated": (
+ "stripe.events._v2_core_account_updated_event",
+ "V2CoreAccountUpdatedEvent",
+ ),
"v2.core.event_destination.ping": (
"stripe.events._v2_core_event_destination_ping_event",
"V2CoreEventDestinationPingEvent",
),
+ "v2.core.health.event_generation_failure.resolved": (
+ "stripe.events._v2_core_health_event_generation_failure_resolved_event",
+ "V2CoreHealthEventGenerationFailureResolvedEvent",
+ ),
+ "v2.money_management.adjustment.created": (
+ "stripe.events._v2_money_management_adjustment_created_event",
+ "V2MoneyManagementAdjustmentCreatedEvent",
+ ),
+ "v2.money_management.financial_account.created": (
+ "stripe.events._v2_money_management_financial_account_created_event",
+ "V2MoneyManagementFinancialAccountCreatedEvent",
+ ),
+ "v2.money_management.financial_account.updated": (
+ "stripe.events._v2_money_management_financial_account_updated_event",
+ "V2MoneyManagementFinancialAccountUpdatedEvent",
+ ),
+ "v2.money_management.financial_address.activated": (
+ "stripe.events._v2_money_management_financial_address_activated_event",
+ "V2MoneyManagementFinancialAddressActivatedEvent",
+ ),
+ "v2.money_management.financial_address.failed": (
+ "stripe.events._v2_money_management_financial_address_failed_event",
+ "V2MoneyManagementFinancialAddressFailedEvent",
+ ),
+ "v2.money_management.inbound_transfer.available": (
+ "stripe.events._v2_money_management_inbound_transfer_available_event",
+ "V2MoneyManagementInboundTransferAvailableEvent",
+ ),
+ "v2.money_management.inbound_transfer.bank_debit_failed": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_failed_event",
+ "V2MoneyManagementInboundTransferBankDebitFailedEvent",
+ ),
+ "v2.money_management.inbound_transfer.bank_debit_processing": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_processing_event",
+ "V2MoneyManagementInboundTransferBankDebitProcessingEvent",
+ ),
+ "v2.money_management.inbound_transfer.bank_debit_queued": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_queued_event",
+ "V2MoneyManagementInboundTransferBankDebitQueuedEvent",
+ ),
+ "v2.money_management.inbound_transfer.bank_debit_returned": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_returned_event",
+ "V2MoneyManagementInboundTransferBankDebitReturnedEvent",
+ ),
+ "v2.money_management.inbound_transfer.bank_debit_succeeded": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_succeeded_event",
+ "V2MoneyManagementInboundTransferBankDebitSucceededEvent",
+ ),
+ "v2.money_management.outbound_payment.canceled": (
+ "stripe.events._v2_money_management_outbound_payment_canceled_event",
+ "V2MoneyManagementOutboundPaymentCanceledEvent",
+ ),
+ "v2.money_management.outbound_payment.created": (
+ "stripe.events._v2_money_management_outbound_payment_created_event",
+ "V2MoneyManagementOutboundPaymentCreatedEvent",
+ ),
+ "v2.money_management.outbound_payment.failed": (
+ "stripe.events._v2_money_management_outbound_payment_failed_event",
+ "V2MoneyManagementOutboundPaymentFailedEvent",
+ ),
+ "v2.money_management.outbound_payment.posted": (
+ "stripe.events._v2_money_management_outbound_payment_posted_event",
+ "V2MoneyManagementOutboundPaymentPostedEvent",
+ ),
+ "v2.money_management.outbound_payment.returned": (
+ "stripe.events._v2_money_management_outbound_payment_returned_event",
+ "V2MoneyManagementOutboundPaymentReturnedEvent",
+ ),
+ "v2.money_management.outbound_payment.updated": (
+ "stripe.events._v2_money_management_outbound_payment_updated_event",
+ "V2MoneyManagementOutboundPaymentUpdatedEvent",
+ ),
+ "v2.money_management.outbound_transfer.canceled": (
+ "stripe.events._v2_money_management_outbound_transfer_canceled_event",
+ "V2MoneyManagementOutboundTransferCanceledEvent",
+ ),
+ "v2.money_management.outbound_transfer.created": (
+ "stripe.events._v2_money_management_outbound_transfer_created_event",
+ "V2MoneyManagementOutboundTransferCreatedEvent",
+ ),
+ "v2.money_management.outbound_transfer.failed": (
+ "stripe.events._v2_money_management_outbound_transfer_failed_event",
+ "V2MoneyManagementOutboundTransferFailedEvent",
+ ),
+ "v2.money_management.outbound_transfer.posted": (
+ "stripe.events._v2_money_management_outbound_transfer_posted_event",
+ "V2MoneyManagementOutboundTransferPostedEvent",
+ ),
+ "v2.money_management.outbound_transfer.returned": (
+ "stripe.events._v2_money_management_outbound_transfer_returned_event",
+ "V2MoneyManagementOutboundTransferReturnedEvent",
+ ),
+ "v2.money_management.outbound_transfer.updated": (
+ "stripe.events._v2_money_management_outbound_transfer_updated_event",
+ "V2MoneyManagementOutboundTransferUpdatedEvent",
+ ),
+ "v2.money_management.payout_method.created": (
+ "stripe.events._v2_money_management_payout_method_created_event",
+ "V2MoneyManagementPayoutMethodCreatedEvent",
+ ),
+ "v2.money_management.payout_method.updated": (
+ "stripe.events._v2_money_management_payout_method_updated_event",
+ "V2MoneyManagementPayoutMethodUpdatedEvent",
+ ),
+ "v2.money_management.received_credit.available": (
+ "stripe.events._v2_money_management_received_credit_available_event",
+ "V2MoneyManagementReceivedCreditAvailableEvent",
+ ),
+ "v2.money_management.received_credit.failed": (
+ "stripe.events._v2_money_management_received_credit_failed_event",
+ "V2MoneyManagementReceivedCreditFailedEvent",
+ ),
+ "v2.money_management.received_credit.returned": (
+ "stripe.events._v2_money_management_received_credit_returned_event",
+ "V2MoneyManagementReceivedCreditReturnedEvent",
+ ),
+ "v2.money_management.received_credit.succeeded": (
+ "stripe.events._v2_money_management_received_credit_succeeded_event",
+ "V2MoneyManagementReceivedCreditSucceededEvent",
+ ),
+ "v2.money_management.received_debit.canceled": (
+ "stripe.events._v2_money_management_received_debit_canceled_event",
+ "V2MoneyManagementReceivedDebitCanceledEvent",
+ ),
+ "v2.money_management.received_debit.failed": (
+ "stripe.events._v2_money_management_received_debit_failed_event",
+ "V2MoneyManagementReceivedDebitFailedEvent",
+ ),
+ "v2.money_management.received_debit.pending": (
+ "stripe.events._v2_money_management_received_debit_pending_event",
+ "V2MoneyManagementReceivedDebitPendingEvent",
+ ),
+ "v2.money_management.received_debit.succeeded": (
+ "stripe.events._v2_money_management_received_debit_succeeded_event",
+ "V2MoneyManagementReceivedDebitSucceededEvent",
+ ),
+ "v2.money_management.received_debit.updated": (
+ "stripe.events._v2_money_management_received_debit_updated_event",
+ "V2MoneyManagementReceivedDebitUpdatedEvent",
+ ),
+ "v2.money_management.transaction.created": (
+ "stripe.events._v2_money_management_transaction_created_event",
+ "V2MoneyManagementTransactionCreatedEvent",
+ ),
+ "v2.money_management.transaction.updated": (
+ "stripe.events._v2_money_management_transaction_updated_event",
+ "V2MoneyManagementTransactionUpdatedEvent",
+ ),
}
@@ -54,10 +439,230 @@ def get_v2_event_class(type_: str):
"stripe.events._v1_billing_meter_no_meter_found_event",
"V1BillingMeterNoMeterFoundEventNotification",
),
+ "v2.core.account.closed": (
+ "stripe.events._v2_core_account_closed_event",
+ "V2CoreAccountClosedEventNotification",
+ ),
+ "v2.core.account.created": (
+ "stripe.events._v2_core_account_created_event",
+ "V2CoreAccountCreatedEventNotification",
+ ),
+ "v2.core.account[configuration.customer].capability_status_updated": (
+ "stripe.events._v2_core_account_including_configuration_customer_capability_status_updated_event",
+ "V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification",
+ ),
+ "v2.core.account[configuration.customer].updated": (
+ "stripe.events._v2_core_account_including_configuration_customer_updated_event",
+ "V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification",
+ ),
+ "v2.core.account[configuration.merchant].capability_status_updated": (
+ "stripe.events._v2_core_account_including_configuration_merchant_capability_status_updated_event",
+ "V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification",
+ ),
+ "v2.core.account[configuration.merchant].updated": (
+ "stripe.events._v2_core_account_including_configuration_merchant_updated_event",
+ "V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification",
+ ),
+ "v2.core.account[configuration.recipient].capability_status_updated": (
+ "stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event",
+ "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification",
+ ),
+ "v2.core.account[configuration.recipient].updated": (
+ "stripe.events._v2_core_account_including_configuration_recipient_updated_event",
+ "V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification",
+ ),
+ "v2.core.account[configuration.storer].capability_status_updated": (
+ "stripe.events._v2_core_account_including_configuration_storer_capability_status_updated_event",
+ "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification",
+ ),
+ "v2.core.account[configuration.storer].updated": (
+ "stripe.events._v2_core_account_including_configuration_storer_updated_event",
+ "V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification",
+ ),
+ "v2.core.account[defaults].updated": (
+ "stripe.events._v2_core_account_including_defaults_updated_event",
+ "V2CoreAccountIncludingDefaultsUpdatedEventNotification",
+ ),
+ "v2.core.account[identity].updated": (
+ "stripe.events._v2_core_account_including_identity_updated_event",
+ "V2CoreAccountIncludingIdentityUpdatedEventNotification",
+ ),
+ "v2.core.account[requirements].updated": (
+ "stripe.events._v2_core_account_including_requirements_updated_event",
+ "V2CoreAccountIncludingRequirementsUpdatedEventNotification",
+ ),
+ "v2.core.account_link.returned": (
+ "stripe.events._v2_core_account_link_returned_event",
+ "V2CoreAccountLinkReturnedEventNotification",
+ ),
+ "v2.core.account_person.created": (
+ "stripe.events._v2_core_account_person_created_event",
+ "V2CoreAccountPersonCreatedEventNotification",
+ ),
+ "v2.core.account_person.deleted": (
+ "stripe.events._v2_core_account_person_deleted_event",
+ "V2CoreAccountPersonDeletedEventNotification",
+ ),
+ "v2.core.account_person.updated": (
+ "stripe.events._v2_core_account_person_updated_event",
+ "V2CoreAccountPersonUpdatedEventNotification",
+ ),
+ "v2.core.account.updated": (
+ "stripe.events._v2_core_account_updated_event",
+ "V2CoreAccountUpdatedEventNotification",
+ ),
"v2.core.event_destination.ping": (
"stripe.events._v2_core_event_destination_ping_event",
"V2CoreEventDestinationPingEventNotification",
),
+ "v2.core.health.event_generation_failure.resolved": (
+ "stripe.events._v2_core_health_event_generation_failure_resolved_event",
+ "V2CoreHealthEventGenerationFailureResolvedEventNotification",
+ ),
+ "v2.money_management.adjustment.created": (
+ "stripe.events._v2_money_management_adjustment_created_event",
+ "V2MoneyManagementAdjustmentCreatedEventNotification",
+ ),
+ "v2.money_management.financial_account.created": (
+ "stripe.events._v2_money_management_financial_account_created_event",
+ "V2MoneyManagementFinancialAccountCreatedEventNotification",
+ ),
+ "v2.money_management.financial_account.updated": (
+ "stripe.events._v2_money_management_financial_account_updated_event",
+ "V2MoneyManagementFinancialAccountUpdatedEventNotification",
+ ),
+ "v2.money_management.financial_address.activated": (
+ "stripe.events._v2_money_management_financial_address_activated_event",
+ "V2MoneyManagementFinancialAddressActivatedEventNotification",
+ ),
+ "v2.money_management.financial_address.failed": (
+ "stripe.events._v2_money_management_financial_address_failed_event",
+ "V2MoneyManagementFinancialAddressFailedEventNotification",
+ ),
+ "v2.money_management.inbound_transfer.available": (
+ "stripe.events._v2_money_management_inbound_transfer_available_event",
+ "V2MoneyManagementInboundTransferAvailableEventNotification",
+ ),
+ "v2.money_management.inbound_transfer.bank_debit_failed": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_failed_event",
+ "V2MoneyManagementInboundTransferBankDebitFailedEventNotification",
+ ),
+ "v2.money_management.inbound_transfer.bank_debit_processing": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_processing_event",
+ "V2MoneyManagementInboundTransferBankDebitProcessingEventNotification",
+ ),
+ "v2.money_management.inbound_transfer.bank_debit_queued": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_queued_event",
+ "V2MoneyManagementInboundTransferBankDebitQueuedEventNotification",
+ ),
+ "v2.money_management.inbound_transfer.bank_debit_returned": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_returned_event",
+ "V2MoneyManagementInboundTransferBankDebitReturnedEventNotification",
+ ),
+ "v2.money_management.inbound_transfer.bank_debit_succeeded": (
+ "stripe.events._v2_money_management_inbound_transfer_bank_debit_succeeded_event",
+ "V2MoneyManagementInboundTransferBankDebitSucceededEventNotification",
+ ),
+ "v2.money_management.outbound_payment.canceled": (
+ "stripe.events._v2_money_management_outbound_payment_canceled_event",
+ "V2MoneyManagementOutboundPaymentCanceledEventNotification",
+ ),
+ "v2.money_management.outbound_payment.created": (
+ "stripe.events._v2_money_management_outbound_payment_created_event",
+ "V2MoneyManagementOutboundPaymentCreatedEventNotification",
+ ),
+ "v2.money_management.outbound_payment.failed": (
+ "stripe.events._v2_money_management_outbound_payment_failed_event",
+ "V2MoneyManagementOutboundPaymentFailedEventNotification",
+ ),
+ "v2.money_management.outbound_payment.posted": (
+ "stripe.events._v2_money_management_outbound_payment_posted_event",
+ "V2MoneyManagementOutboundPaymentPostedEventNotification",
+ ),
+ "v2.money_management.outbound_payment.returned": (
+ "stripe.events._v2_money_management_outbound_payment_returned_event",
+ "V2MoneyManagementOutboundPaymentReturnedEventNotification",
+ ),
+ "v2.money_management.outbound_payment.updated": (
+ "stripe.events._v2_money_management_outbound_payment_updated_event",
+ "V2MoneyManagementOutboundPaymentUpdatedEventNotification",
+ ),
+ "v2.money_management.outbound_transfer.canceled": (
+ "stripe.events._v2_money_management_outbound_transfer_canceled_event",
+ "V2MoneyManagementOutboundTransferCanceledEventNotification",
+ ),
+ "v2.money_management.outbound_transfer.created": (
+ "stripe.events._v2_money_management_outbound_transfer_created_event",
+ "V2MoneyManagementOutboundTransferCreatedEventNotification",
+ ),
+ "v2.money_management.outbound_transfer.failed": (
+ "stripe.events._v2_money_management_outbound_transfer_failed_event",
+ "V2MoneyManagementOutboundTransferFailedEventNotification",
+ ),
+ "v2.money_management.outbound_transfer.posted": (
+ "stripe.events._v2_money_management_outbound_transfer_posted_event",
+ "V2MoneyManagementOutboundTransferPostedEventNotification",
+ ),
+ "v2.money_management.outbound_transfer.returned": (
+ "stripe.events._v2_money_management_outbound_transfer_returned_event",
+ "V2MoneyManagementOutboundTransferReturnedEventNotification",
+ ),
+ "v2.money_management.outbound_transfer.updated": (
+ "stripe.events._v2_money_management_outbound_transfer_updated_event",
+ "V2MoneyManagementOutboundTransferUpdatedEventNotification",
+ ),
+ "v2.money_management.payout_method.created": (
+ "stripe.events._v2_money_management_payout_method_created_event",
+ "V2MoneyManagementPayoutMethodCreatedEventNotification",
+ ),
+ "v2.money_management.payout_method.updated": (
+ "stripe.events._v2_money_management_payout_method_updated_event",
+ "V2MoneyManagementPayoutMethodUpdatedEventNotification",
+ ),
+ "v2.money_management.received_credit.available": (
+ "stripe.events._v2_money_management_received_credit_available_event",
+ "V2MoneyManagementReceivedCreditAvailableEventNotification",
+ ),
+ "v2.money_management.received_credit.failed": (
+ "stripe.events._v2_money_management_received_credit_failed_event",
+ "V2MoneyManagementReceivedCreditFailedEventNotification",
+ ),
+ "v2.money_management.received_credit.returned": (
+ "stripe.events._v2_money_management_received_credit_returned_event",
+ "V2MoneyManagementReceivedCreditReturnedEventNotification",
+ ),
+ "v2.money_management.received_credit.succeeded": (
+ "stripe.events._v2_money_management_received_credit_succeeded_event",
+ "V2MoneyManagementReceivedCreditSucceededEventNotification",
+ ),
+ "v2.money_management.received_debit.canceled": (
+ "stripe.events._v2_money_management_received_debit_canceled_event",
+ "V2MoneyManagementReceivedDebitCanceledEventNotification",
+ ),
+ "v2.money_management.received_debit.failed": (
+ "stripe.events._v2_money_management_received_debit_failed_event",
+ "V2MoneyManagementReceivedDebitFailedEventNotification",
+ ),
+ "v2.money_management.received_debit.pending": (
+ "stripe.events._v2_money_management_received_debit_pending_event",
+ "V2MoneyManagementReceivedDebitPendingEventNotification",
+ ),
+ "v2.money_management.received_debit.succeeded": (
+ "stripe.events._v2_money_management_received_debit_succeeded_event",
+ "V2MoneyManagementReceivedDebitSucceededEventNotification",
+ ),
+ "v2.money_management.received_debit.updated": (
+ "stripe.events._v2_money_management_received_debit_updated_event",
+ "V2MoneyManagementReceivedDebitUpdatedEventNotification",
+ ),
+ "v2.money_management.transaction.created": (
+ "stripe.events._v2_money_management_transaction_created_event",
+ "V2MoneyManagementTransactionCreatedEventNotification",
+ ),
+ "v2.money_management.transaction.updated": (
+ "stripe.events._v2_money_management_transaction_updated_event",
+ "V2MoneyManagementTransactionUpdatedEventNotification",
+ ),
}
@@ -75,5 +680,60 @@ def get_v2_event_notification_class(type_: str):
ALL_EVENT_NOTIFICATIONS = Union[
"V1BillingMeterErrorReportTriggeredEventNotification",
"V1BillingMeterNoMeterFoundEventNotification",
+ "V2CoreAccountClosedEventNotification",
+ "V2CoreAccountCreatedEventNotification",
+ "V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification",
+ "V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification",
+ "V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification",
+ "V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification",
+ "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification",
+ "V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification",
+ "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification",
+ "V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification",
+ "V2CoreAccountIncludingDefaultsUpdatedEventNotification",
+ "V2CoreAccountIncludingIdentityUpdatedEventNotification",
+ "V2CoreAccountIncludingRequirementsUpdatedEventNotification",
+ "V2CoreAccountLinkReturnedEventNotification",
+ "V2CoreAccountPersonCreatedEventNotification",
+ "V2CoreAccountPersonDeletedEventNotification",
+ "V2CoreAccountPersonUpdatedEventNotification",
+ "V2CoreAccountUpdatedEventNotification",
"V2CoreEventDestinationPingEventNotification",
+ "V2CoreHealthEventGenerationFailureResolvedEventNotification",
+ "V2MoneyManagementAdjustmentCreatedEventNotification",
+ "V2MoneyManagementFinancialAccountCreatedEventNotification",
+ "V2MoneyManagementFinancialAccountUpdatedEventNotification",
+ "V2MoneyManagementFinancialAddressActivatedEventNotification",
+ "V2MoneyManagementFinancialAddressFailedEventNotification",
+ "V2MoneyManagementInboundTransferAvailableEventNotification",
+ "V2MoneyManagementInboundTransferBankDebitFailedEventNotification",
+ "V2MoneyManagementInboundTransferBankDebitProcessingEventNotification",
+ "V2MoneyManagementInboundTransferBankDebitQueuedEventNotification",
+ "V2MoneyManagementInboundTransferBankDebitReturnedEventNotification",
+ "V2MoneyManagementInboundTransferBankDebitSucceededEventNotification",
+ "V2MoneyManagementOutboundPaymentCanceledEventNotification",
+ "V2MoneyManagementOutboundPaymentCreatedEventNotification",
+ "V2MoneyManagementOutboundPaymentFailedEventNotification",
+ "V2MoneyManagementOutboundPaymentPostedEventNotification",
+ "V2MoneyManagementOutboundPaymentReturnedEventNotification",
+ "V2MoneyManagementOutboundPaymentUpdatedEventNotification",
+ "V2MoneyManagementOutboundTransferCanceledEventNotification",
+ "V2MoneyManagementOutboundTransferCreatedEventNotification",
+ "V2MoneyManagementOutboundTransferFailedEventNotification",
+ "V2MoneyManagementOutboundTransferPostedEventNotification",
+ "V2MoneyManagementOutboundTransferReturnedEventNotification",
+ "V2MoneyManagementOutboundTransferUpdatedEventNotification",
+ "V2MoneyManagementPayoutMethodCreatedEventNotification",
+ "V2MoneyManagementPayoutMethodUpdatedEventNotification",
+ "V2MoneyManagementReceivedCreditAvailableEventNotification",
+ "V2MoneyManagementReceivedCreditFailedEventNotification",
+ "V2MoneyManagementReceivedCreditReturnedEventNotification",
+ "V2MoneyManagementReceivedCreditSucceededEventNotification",
+ "V2MoneyManagementReceivedDebitCanceledEventNotification",
+ "V2MoneyManagementReceivedDebitFailedEventNotification",
+ "V2MoneyManagementReceivedDebitPendingEventNotification",
+ "V2MoneyManagementReceivedDebitSucceededEventNotification",
+ "V2MoneyManagementReceivedDebitUpdatedEventNotification",
+ "V2MoneyManagementTransactionCreatedEventNotification",
+ "V2MoneyManagementTransactionUpdatedEventNotification",
]
diff --git a/stripe/events/_v2_core_account_closed_event.py b/stripe/events/_v2_core_account_closed_event.py
new file mode 100644
index 000000000..30edcb63a
--- /dev/null
+++ b/stripe/events/_v2_core_account_closed_event.py
@@ -0,0 +1,108 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountClosedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.core.account.closed"
+ type: Literal["v2.core.account.closed"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreAccountClosedEvent":
+ return cast(
+ "V2CoreAccountClosedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(self) -> "V2CoreAccountClosedEvent":
+ return cast(
+ "V2CoreAccountClosedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountClosedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account.closed"
+ type: Literal["v2.core.account.closed"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_created_event.py b/stripe/events/_v2_core_account_created_event.py
new file mode 100644
index 000000000..0b2feb4eb
--- /dev/null
+++ b/stripe/events/_v2_core_account_created_event.py
@@ -0,0 +1,108 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountCreatedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.core.account.created"
+ type: Literal["v2.core.account.created"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreAccountCreatedEvent":
+ return cast(
+ "V2CoreAccountCreatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(self) -> "V2CoreAccountCreatedEvent":
+ return cast(
+ "V2CoreAccountCreatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountCreatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account.created"
+ type: Literal["v2.core.account.created"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py
new file mode 100644
index 000000000..7530b4f26
--- /dev/null
+++ b/stripe/events/_v2_core_account_including_configuration_customer_capability_status_updated_event.py
@@ -0,0 +1,164 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_mode import ApiMode
+from stripe._stripe_object import StripeObject
+from stripe._stripe_response import StripeResponse
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, Optional, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._api_requestor import _APIRequestor
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = (
+ "v2.core.account[configuration.customer].capability_status_updated"
+ )
+ type: Literal[
+ "v2.core.account[configuration.customer].capability_status_updated"
+ ]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent(
+ Event,
+):
+ LOOKUP_TYPE = (
+ "v2.core.account[configuration.customer].capability_status_updated"
+ )
+ type: Literal[
+ "v2.core.account[configuration.customer].capability_status_updated"
+ ]
+
+ class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData(
+ StripeObject,
+ ):
+ updated_capability: Literal["automatic_indirect_tax"]
+ """
+ Open Enum. The capability which had its status updated.
+ """
+
+ data: V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData
+ """
+ Data for the v2.core.account[configuration.customer].capability_status_updated event
+ """
+
+ @classmethod
+ def _construct_from(
+ cls,
+ *,
+ values: Dict[str, Any],
+ last_response: Optional[StripeResponse] = None,
+ requestor: "_APIRequestor",
+ api_mode: ApiMode,
+ ) -> "V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent":
+ evt = super()._construct_from(
+ values=values,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ if hasattr(evt, "data"):
+ evt.data = V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData._construct_from(
+ values=evt.data,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ return evt
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_including_configuration_customer_updated_event.py b/stripe/events/_v2_core_account_including_configuration_customer_updated_event.py
new file mode 100644
index 000000000..eac734ee6
--- /dev/null
+++ b/stripe/events/_v2_core_account_including_configuration_customer_updated_event.py
@@ -0,0 +1,114 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.core.account[configuration.customer].updated"
+ type: Literal["v2.core.account[configuration.customer].updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationCustomerUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationCustomerUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationCustomerUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationCustomerUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountIncludingConfigurationCustomerUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account[configuration.customer].updated"
+ type: Literal["v2.core.account[configuration.customer].updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py
new file mode 100644
index 000000000..6f9610ff9
--- /dev/null
+++ b/stripe/events/_v2_core_account_including_configuration_merchant_capability_status_updated_event.py
@@ -0,0 +1,210 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_mode import ApiMode
+from stripe._stripe_object import StripeObject
+from stripe._stripe_response import StripeResponse
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, Optional, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._api_requestor import _APIRequestor
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = (
+ "v2.core.account[configuration.merchant].capability_status_updated"
+ )
+ type: Literal[
+ "v2.core.account[configuration.merchant].capability_status_updated"
+ ]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent(
+ Event,
+):
+ LOOKUP_TYPE = (
+ "v2.core.account[configuration.merchant].capability_status_updated"
+ )
+ type: Literal[
+ "v2.core.account[configuration.merchant].capability_status_updated"
+ ]
+
+ class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData(
+ StripeObject,
+ ):
+ updated_capability: Literal[
+ "ach_debit_payments",
+ "acss_debit_payments",
+ "affirm_payments",
+ "afterpay_clearpay_payments",
+ "alma_payments",
+ "amazon_pay_payments",
+ "au_becs_debit_payments",
+ "bacs_debit_payments",
+ "bancontact_payments",
+ "blik_payments",
+ "boleto_payments",
+ "card_payments",
+ "cartes_bancaires_payments",
+ "cashapp_payments",
+ "eps_payments",
+ "fpx_payments",
+ "gb_bank_transfer_payments",
+ "grabpay_payments",
+ "ideal_payments",
+ "jcb_payments",
+ "jp_bank_transfer_payments",
+ "kakao_pay_payments",
+ "klarna_payments",
+ "konbini_payments",
+ "kr_card_payments",
+ "link_payments",
+ "mobilepay_payments",
+ "multibanco_payments",
+ "mx_bank_transfer_payments",
+ "naver_pay_payments",
+ "oxxo_payments",
+ "p24_payments",
+ "payco_payments",
+ "paynow_payments",
+ "stripe_balance.payouts",
+ "pay_by_bank_payments",
+ "promptpay_payments",
+ "revolut_pay_payments",
+ "samsung_pay_payments",
+ "sepa_bank_transfer_payments",
+ "sepa_debit_payments",
+ "swish_payments",
+ "twint_payments",
+ "us_bank_transfer_payments",
+ "zip_payments",
+ ]
+ """
+ Open Enum. The capability which had its status updated.
+ """
+
+ data: V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData
+ """
+ Data for the v2.core.account[configuration.merchant].capability_status_updated event
+ """
+
+ @classmethod
+ def _construct_from(
+ cls,
+ *,
+ values: Dict[str, Any],
+ last_response: Optional[StripeResponse] = None,
+ requestor: "_APIRequestor",
+ api_mode: ApiMode,
+ ) -> "V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent":
+ evt = super()._construct_from(
+ values=values,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ if hasattr(evt, "data"):
+ evt.data = V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData._construct_from(
+ values=evt.data,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ return evt
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_including_configuration_merchant_updated_event.py b/stripe/events/_v2_core_account_including_configuration_merchant_updated_event.py
new file mode 100644
index 000000000..90970c245
--- /dev/null
+++ b/stripe/events/_v2_core_account_including_configuration_merchant_updated_event.py
@@ -0,0 +1,114 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.core.account[configuration.merchant].updated"
+ type: Literal["v2.core.account[configuration.merchant].updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationMerchantUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationMerchantUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationMerchantUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationMerchantUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountIncludingConfigurationMerchantUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account[configuration.merchant].updated"
+ type: Literal["v2.core.account[configuration.merchant].updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_including_configuration_recipient_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_recipient_capability_status_updated_event.py
new file mode 100644
index 000000000..12911bd54
--- /dev/null
+++ b/stripe/events/_v2_core_account_including_configuration_recipient_capability_status_updated_event.py
@@ -0,0 +1,171 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_mode import ApiMode
+from stripe._stripe_object import StripeObject
+from stripe._stripe_response import StripeResponse
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, Optional, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._api_requestor import _APIRequestor
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = (
+ "v2.core.account[configuration.recipient].capability_status_updated"
+ )
+ type: Literal[
+ "v2.core.account[configuration.recipient].capability_status_updated"
+ ]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent(
+ Event,
+):
+ LOOKUP_TYPE = (
+ "v2.core.account[configuration.recipient].capability_status_updated"
+ )
+ type: Literal[
+ "v2.core.account[configuration.recipient].capability_status_updated"
+ ]
+
+ class V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventData(
+ StripeObject,
+ ):
+ updated_capability: Literal[
+ "bank_accounts.local",
+ "bank_accounts.wire",
+ "cards",
+ "stripe_balance.payouts",
+ "stripe_balance.stripe_transfers",
+ "stripe.transfers",
+ ]
+ """
+ Open Enum. The capability which had its status updated.
+ """
+
+ data: V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventData
+ """
+ Data for the v2.core.account[configuration.recipient].capability_status_updated event
+ """
+
+ @classmethod
+ def _construct_from(
+ cls,
+ *,
+ values: Dict[str, Any],
+ last_response: Optional[StripeResponse] = None,
+ requestor: "_APIRequestor",
+ api_mode: ApiMode,
+ ) -> "V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent":
+ evt = super()._construct_from(
+ values=values,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ if hasattr(evt, "data"):
+ evt.data = V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventData._construct_from(
+ values=evt.data,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ return evt
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_including_configuration_recipient_updated_event.py b/stripe/events/_v2_core_account_including_configuration_recipient_updated_event.py
new file mode 100644
index 000000000..245c65102
--- /dev/null
+++ b/stripe/events/_v2_core_account_including_configuration_recipient_updated_event.py
@@ -0,0 +1,114 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.core.account[configuration.recipient].updated"
+ type: Literal["v2.core.account[configuration.recipient].updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationRecipientUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationRecipientUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationRecipientUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationRecipientUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountIncludingConfigurationRecipientUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account[configuration.recipient].updated"
+ type: Literal["v2.core.account[configuration.recipient].updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_including_configuration_storer_capability_status_updated_event.py b/stripe/events/_v2_core_account_including_configuration_storer_capability_status_updated_event.py
new file mode 100644
index 000000000..1ce8ffd64
--- /dev/null
+++ b/stripe/events/_v2_core_account_including_configuration_storer_capability_status_updated_event.py
@@ -0,0 +1,185 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_mode import ApiMode
+from stripe._stripe_object import StripeObject
+from stripe._stripe_response import StripeResponse
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, Optional, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._api_requestor import _APIRequestor
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = (
+ "v2.core.account[configuration.storer].capability_status_updated"
+ )
+ type: Literal[
+ "v2.core.account[configuration.storer].capability_status_updated"
+ ]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> (
+ "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent"
+ ):
+ return cast(
+ "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> (
+ "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent"
+ ):
+ return cast(
+ "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent(
+ Event,
+):
+ LOOKUP_TYPE = (
+ "v2.core.account[configuration.storer].capability_status_updated"
+ )
+ type: Literal[
+ "v2.core.account[configuration.storer].capability_status_updated"
+ ]
+
+ class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData(
+ StripeObject,
+ ):
+ updated_capability: Literal[
+ "financial_addressses.bank_accounts",
+ "financial_addressses.crypto_wallets",
+ "holds_currencies.eur",
+ "holds_currencies.gbp",
+ "holds_currencies.usd",
+ "holds_currencies.usdc",
+ "inbound_transfers.bank_accounts",
+ "outbound_payments.bank_accounts",
+ "outbound_payments.cards",
+ "outbound_payments.crypto_wallets",
+ "outbound_payments.financial_accounts",
+ "outbound_transfers.bank_accounts",
+ "outbound_transfers.crypto_wallets",
+ "outbound_transfers.financial_accounts",
+ ]
+ """
+ Open Enum. The capability which had its status updated.
+ """
+
+ data: V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData
+ """
+ Data for the v2.core.account[configuration.storer].capability_status_updated event
+ """
+
+ @classmethod
+ def _construct_from(
+ cls,
+ *,
+ values: Dict[str, Any],
+ last_response: Optional[StripeResponse] = None,
+ requestor: "_APIRequestor",
+ api_mode: ApiMode,
+ ) -> (
+ "V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent"
+ ):
+ evt = super()._construct_from(
+ values=values,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ if hasattr(evt, "data"):
+ evt.data = V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData._construct_from(
+ values=evt.data,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ return evt
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_including_configuration_storer_updated_event.py b/stripe/events/_v2_core_account_including_configuration_storer_updated_event.py
new file mode 100644
index 000000000..2d086d16f
--- /dev/null
+++ b/stripe/events/_v2_core_account_including_configuration_storer_updated_event.py
@@ -0,0 +1,114 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.core.account[configuration.storer].updated"
+ type: Literal["v2.core.account[configuration.storer].updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationStorerUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationStorerUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2CoreAccountIncludingConfigurationStorerUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingConfigurationStorerUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountIncludingConfigurationStorerUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account[configuration.storer].updated"
+ type: Literal["v2.core.account[configuration.storer].updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_including_defaults_updated_event.py b/stripe/events/_v2_core_account_including_defaults_updated_event.py
new file mode 100644
index 000000000..469d65d22
--- /dev/null
+++ b/stripe/events/_v2_core_account_including_defaults_updated_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountIncludingDefaultsUpdatedEventNotification(
+ EventNotification
+):
+ LOOKUP_TYPE = "v2.core.account[defaults].updated"
+ type: Literal["v2.core.account[defaults].updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreAccountIncludingDefaultsUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingDefaultsUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2CoreAccountIncludingDefaultsUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingDefaultsUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountIncludingDefaultsUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account[defaults].updated"
+ type: Literal["v2.core.account[defaults].updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_including_identity_updated_event.py b/stripe/events/_v2_core_account_including_identity_updated_event.py
new file mode 100644
index 000000000..7f8249375
--- /dev/null
+++ b/stripe/events/_v2_core_account_including_identity_updated_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountIncludingIdentityUpdatedEventNotification(
+ EventNotification
+):
+ LOOKUP_TYPE = "v2.core.account[identity].updated"
+ type: Literal["v2.core.account[identity].updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreAccountIncludingIdentityUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingIdentityUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2CoreAccountIncludingIdentityUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingIdentityUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountIncludingIdentityUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account[identity].updated"
+ type: Literal["v2.core.account[identity].updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_including_requirements_updated_event.py b/stripe/events/_v2_core_account_including_requirements_updated_event.py
new file mode 100644
index 000000000..3d06e3a4f
--- /dev/null
+++ b/stripe/events/_v2_core_account_including_requirements_updated_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountIncludingRequirementsUpdatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.core.account[requirements].updated"
+ type: Literal["v2.core.account[requirements].updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreAccountIncludingRequirementsUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingRequirementsUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2CoreAccountIncludingRequirementsUpdatedEvent":
+ return cast(
+ "V2CoreAccountIncludingRequirementsUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountIncludingRequirementsUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account[requirements].updated"
+ type: Literal["v2.core.account[requirements].updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_link_returned_event.py b/stripe/events/_v2_core_account_link_returned_event.py
new file mode 100644
index 000000000..adc23900b
--- /dev/null
+++ b/stripe/events/_v2_core_account_link_returned_event.py
@@ -0,0 +1,80 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_mode import ApiMode
+from stripe._stripe_object import StripeObject
+from stripe._stripe_response import StripeResponse
+from stripe.v2.core._event import Event, EventNotification
+from typing import Any, Dict, List, Optional, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._api_requestor import _APIRequestor
+
+
+class V2CoreAccountLinkReturnedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.core.account_link.returned"
+ type: Literal["v2.core.account_link.returned"]
+
+ @override
+ def fetch_event(self) -> "V2CoreAccountLinkReturnedEvent":
+ return cast(
+ "V2CoreAccountLinkReturnedEvent",
+ super().fetch_event(),
+ )
+
+ @override
+ async def fetch_event_async(self) -> "V2CoreAccountLinkReturnedEvent":
+ return cast(
+ "V2CoreAccountLinkReturnedEvent",
+ await super().fetch_event_async(),
+ )
+
+
+class V2CoreAccountLinkReturnedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account_link.returned"
+ type: Literal["v2.core.account_link.returned"]
+
+ class V2CoreAccountLinkReturnedEventData(StripeObject):
+ account_id: str
+ """
+ The ID of the v2 account.
+ """
+ configurations: List[
+ Literal["customer", "merchant", "recipient", "storer"]
+ ]
+ """
+ Configurations on the Account that was onboarded via the account link.
+ """
+ use_case: Literal["account_onboarding", "account_update"]
+ """
+ Open Enum. The use case type of the account link that has been completed.
+ """
+
+ data: V2CoreAccountLinkReturnedEventData
+ """
+ Data for the v2.core.account_link.returned event
+ """
+
+ @classmethod
+ def _construct_from(
+ cls,
+ *,
+ values: Dict[str, Any],
+ last_response: Optional[StripeResponse] = None,
+ requestor: "_APIRequestor",
+ api_mode: ApiMode,
+ ) -> "V2CoreAccountLinkReturnedEvent":
+ evt = super()._construct_from(
+ values=values,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ if hasattr(evt, "data"):
+ evt.data = V2CoreAccountLinkReturnedEvent.V2CoreAccountLinkReturnedEventData._construct_from(
+ values=evt.data,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ return evt
diff --git a/stripe/events/_v2_core_account_person_created_event.py b/stripe/events/_v2_core_account_person_created_event.py
new file mode 100644
index 000000000..ef8068d39
--- /dev/null
+++ b/stripe/events/_v2_core_account_person_created_event.py
@@ -0,0 +1,146 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_mode import ApiMode
+from stripe._stripe_object import StripeObject
+from stripe._stripe_response import StripeResponse
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, Optional, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._api_requestor import _APIRequestor
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account_person import AccountPerson
+
+
+class V2CoreAccountPersonCreatedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.core.account_person.created"
+ type: Literal["v2.core.account_person.created"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreAccountPersonCreatedEvent":
+ return cast(
+ "V2CoreAccountPersonCreatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "AccountPerson":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "AccountPerson",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(self) -> "V2CoreAccountPersonCreatedEvent":
+ return cast(
+ "V2CoreAccountPersonCreatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "AccountPerson":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "AccountPerson",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountPersonCreatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account_person.created"
+ type: Literal["v2.core.account_person.created"]
+
+ class V2CoreAccountPersonCreatedEventData(StripeObject):
+ account_id: str
+ """
+ The ID of the v2 account.
+ """
+
+ data: V2CoreAccountPersonCreatedEventData
+ """
+ Data for the v2.core.account_person.created event
+ """
+
+ @classmethod
+ def _construct_from(
+ cls,
+ *,
+ values: Dict[str, Any],
+ last_response: Optional[StripeResponse] = None,
+ requestor: "_APIRequestor",
+ api_mode: ApiMode,
+ ) -> "V2CoreAccountPersonCreatedEvent":
+ evt = super()._construct_from(
+ values=values,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ if hasattr(evt, "data"):
+ evt.data = V2CoreAccountPersonCreatedEvent.V2CoreAccountPersonCreatedEventData._construct_from(
+ values=evt.data,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ return evt
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "AccountPerson":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "AccountPerson",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_person_deleted_event.py b/stripe/events/_v2_core_account_person_deleted_event.py
new file mode 100644
index 000000000..e55a1e835
--- /dev/null
+++ b/stripe/events/_v2_core_account_person_deleted_event.py
@@ -0,0 +1,146 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_mode import ApiMode
+from stripe._stripe_object import StripeObject
+from stripe._stripe_response import StripeResponse
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, Optional, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._api_requestor import _APIRequestor
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account_person import AccountPerson
+
+
+class V2CoreAccountPersonDeletedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.core.account_person.deleted"
+ type: Literal["v2.core.account_person.deleted"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreAccountPersonDeletedEvent":
+ return cast(
+ "V2CoreAccountPersonDeletedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "AccountPerson":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "AccountPerson",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(self) -> "V2CoreAccountPersonDeletedEvent":
+ return cast(
+ "V2CoreAccountPersonDeletedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "AccountPerson":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "AccountPerson",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountPersonDeletedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account_person.deleted"
+ type: Literal["v2.core.account_person.deleted"]
+
+ class V2CoreAccountPersonDeletedEventData(StripeObject):
+ account_id: str
+ """
+ The ID of the v2 account.
+ """
+
+ data: V2CoreAccountPersonDeletedEventData
+ """
+ Data for the v2.core.account_person.deleted event
+ """
+
+ @classmethod
+ def _construct_from(
+ cls,
+ *,
+ values: Dict[str, Any],
+ last_response: Optional[StripeResponse] = None,
+ requestor: "_APIRequestor",
+ api_mode: ApiMode,
+ ) -> "V2CoreAccountPersonDeletedEvent":
+ evt = super()._construct_from(
+ values=values,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ if hasattr(evt, "data"):
+ evt.data = V2CoreAccountPersonDeletedEvent.V2CoreAccountPersonDeletedEventData._construct_from(
+ values=evt.data,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ return evt
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "AccountPerson":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "AccountPerson",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_person_updated_event.py b/stripe/events/_v2_core_account_person_updated_event.py
new file mode 100644
index 000000000..293a7b069
--- /dev/null
+++ b/stripe/events/_v2_core_account_person_updated_event.py
@@ -0,0 +1,146 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_mode import ApiMode
+from stripe._stripe_object import StripeObject
+from stripe._stripe_response import StripeResponse
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, Optional, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._api_requestor import _APIRequestor
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account_person import AccountPerson
+
+
+class V2CoreAccountPersonUpdatedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.core.account_person.updated"
+ type: Literal["v2.core.account_person.updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreAccountPersonUpdatedEvent":
+ return cast(
+ "V2CoreAccountPersonUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "AccountPerson":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "AccountPerson",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(self) -> "V2CoreAccountPersonUpdatedEvent":
+ return cast(
+ "V2CoreAccountPersonUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "AccountPerson":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "AccountPerson",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountPersonUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account_person.updated"
+ type: Literal["v2.core.account_person.updated"]
+
+ class V2CoreAccountPersonUpdatedEventData(StripeObject):
+ account_id: str
+ """
+ The ID of the v2 account.
+ """
+
+ data: V2CoreAccountPersonUpdatedEventData
+ """
+ Data for the v2.core.account_person.updated event
+ """
+
+ @classmethod
+ def _construct_from(
+ cls,
+ *,
+ values: Dict[str, Any],
+ last_response: Optional[StripeResponse] = None,
+ requestor: "_APIRequestor",
+ api_mode: ApiMode,
+ ) -> "V2CoreAccountPersonUpdatedEvent":
+ evt = super()._construct_from(
+ values=values,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ if hasattr(evt, "data"):
+ evt.data = V2CoreAccountPersonUpdatedEvent.V2CoreAccountPersonUpdatedEventData._construct_from(
+ values=evt.data,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ return evt
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "AccountPerson":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "AccountPerson",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_account_updated_event.py b/stripe/events/_v2_core_account_updated_event.py
new file mode 100644
index 000000000..34a6c1d9c
--- /dev/null
+++ b/stripe/events/_v2_core_account_updated_event.py
@@ -0,0 +1,108 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.core._account import Account
+
+
+class V2CoreAccountUpdatedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.core.account.updated"
+ type: Literal["v2.core.account.updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2CoreAccountUpdatedEvent":
+ return cast(
+ "V2CoreAccountUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Account":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(self) -> "V2CoreAccountUpdatedEvent":
+ return cast(
+ "V2CoreAccountUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Account":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Account",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2CoreAccountUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.core.account.updated"
+ type: Literal["v2.core.account.updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Account":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Account",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_core_health_event_generation_failure_resolved_event.py b/stripe/events/_v2_core_health_event_generation_failure_resolved_event.py
new file mode 100644
index 000000000..12c4163a6
--- /dev/null
+++ b/stripe/events/_v2_core_health_event_generation_failure_resolved_event.py
@@ -0,0 +1,120 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_mode import ApiMode
+from stripe._stripe_object import StripeObject
+from stripe._stripe_response import StripeResponse
+from stripe.v2.core._event import Event, EventNotification
+from typing import Any, Dict, Optional, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._api_requestor import _APIRequestor
+
+
+class V2CoreHealthEventGenerationFailureResolvedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.core.health.event_generation_failure.resolved"
+ type: Literal["v2.core.health.event_generation_failure.resolved"]
+
+ @override
+ def fetch_event(self) -> "V2CoreHealthEventGenerationFailureResolvedEvent":
+ return cast(
+ "V2CoreHealthEventGenerationFailureResolvedEvent",
+ super().fetch_event(),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2CoreHealthEventGenerationFailureResolvedEvent":
+ return cast(
+ "V2CoreHealthEventGenerationFailureResolvedEvent",
+ await super().fetch_event_async(),
+ )
+
+
+class V2CoreHealthEventGenerationFailureResolvedEvent(Event):
+ LOOKUP_TYPE = "v2.core.health.event_generation_failure.resolved"
+ type: Literal["v2.core.health.event_generation_failure.resolved"]
+
+ class V2CoreHealthEventGenerationFailureResolvedEventData(StripeObject):
+ class Impact(StripeObject):
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ The ID of the related object (e.g., "pi_...").
+ """
+ type: str
+ """
+ The type of the related object (e.g., "payment_intent").
+ """
+ url: str
+ """
+ The API URL for the related object (e.g., "/v1/payment_intents/pi_...").
+ """
+
+ context: Optional[str]
+ """
+ The context the event should have been generated for. Only present when the account is a connected account.
+ """
+ event_type: str
+ """
+ The type of event that Stripe failed to generate.
+ """
+ related_object: RelatedObject
+ """
+ The related object details.
+ """
+ _inner_class_types = {"related_object": RelatedObject}
+
+ alert_id: str
+ """
+ The alert ID.
+ """
+ grouping_key: str
+ """
+ The grouping key for the alert.
+ """
+ impact: Impact
+ """
+ The user impact.
+ """
+ resolved_at: str
+ """
+ The time when the user experience has returned to expected levels.
+ """
+ summary: str
+ """
+ A short description of the alert.
+ """
+ _inner_class_types = {"impact": Impact}
+
+ data: V2CoreHealthEventGenerationFailureResolvedEventData
+ """
+ Data for the v2.core.health.event_generation_failure.resolved event
+ """
+
+ @classmethod
+ def _construct_from(
+ cls,
+ *,
+ values: Dict[str, Any],
+ last_response: Optional[StripeResponse] = None,
+ requestor: "_APIRequestor",
+ api_mode: ApiMode,
+ ) -> "V2CoreHealthEventGenerationFailureResolvedEvent":
+ evt = super()._construct_from(
+ values=values,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ if hasattr(evt, "data"):
+ evt.data = V2CoreHealthEventGenerationFailureResolvedEvent.V2CoreHealthEventGenerationFailureResolvedEventData._construct_from(
+ values=evt.data,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ return evt
diff --git a/stripe/events/_v2_money_management_adjustment_created_event.py b/stripe/events/_v2_money_management_adjustment_created_event.py
new file mode 100644
index 000000000..f15e1eef3
--- /dev/null
+++ b/stripe/events/_v2_money_management_adjustment_created_event.py
@@ -0,0 +1,110 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._adjustment import Adjustment
+
+
+class V2MoneyManagementAdjustmentCreatedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.money_management.adjustment.created"
+ type: Literal["v2.money_management.adjustment.created"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementAdjustmentCreatedEvent":
+ return cast(
+ "V2MoneyManagementAdjustmentCreatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Adjustment":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Adjustment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementAdjustmentCreatedEvent":
+ return cast(
+ "V2MoneyManagementAdjustmentCreatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Adjustment":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Adjustment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementAdjustmentCreatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.adjustment.created"
+ type: Literal["v2.money_management.adjustment.created"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Adjustment":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Adjustment",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_financial_account_created_event.py b/stripe/events/_v2_money_management_financial_account_created_event.py
new file mode 100644
index 000000000..84980d1c5
--- /dev/null
+++ b/stripe/events/_v2_money_management_financial_account_created_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._financial_account import FinancialAccount
+
+
+class V2MoneyManagementFinancialAccountCreatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.financial_account.created"
+ type: Literal["v2.money_management.financial_account.created"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementFinancialAccountCreatedEvent":
+ return cast(
+ "V2MoneyManagementFinancialAccountCreatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "FinancialAccount":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "FinancialAccount",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementFinancialAccountCreatedEvent":
+ return cast(
+ "V2MoneyManagementFinancialAccountCreatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "FinancialAccount":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "FinancialAccount",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementFinancialAccountCreatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.financial_account.created"
+ type: Literal["v2.money_management.financial_account.created"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "FinancialAccount":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "FinancialAccount",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_financial_account_updated_event.py b/stripe/events/_v2_money_management_financial_account_updated_event.py
new file mode 100644
index 000000000..6a2abd0bc
--- /dev/null
+++ b/stripe/events/_v2_money_management_financial_account_updated_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._financial_account import FinancialAccount
+
+
+class V2MoneyManagementFinancialAccountUpdatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.financial_account.updated"
+ type: Literal["v2.money_management.financial_account.updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementFinancialAccountUpdatedEvent":
+ return cast(
+ "V2MoneyManagementFinancialAccountUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "FinancialAccount":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "FinancialAccount",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementFinancialAccountUpdatedEvent":
+ return cast(
+ "V2MoneyManagementFinancialAccountUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "FinancialAccount":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "FinancialAccount",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementFinancialAccountUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.financial_account.updated"
+ type: Literal["v2.money_management.financial_account.updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "FinancialAccount":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "FinancialAccount",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_financial_address_activated_event.py b/stripe/events/_v2_money_management_financial_address_activated_event.py
new file mode 100644
index 000000000..e17cb8b83
--- /dev/null
+++ b/stripe/events/_v2_money_management_financial_address_activated_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._financial_address import FinancialAddress
+
+
+class V2MoneyManagementFinancialAddressActivatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.financial_address.activated"
+ type: Literal["v2.money_management.financial_address.activated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementFinancialAddressActivatedEvent":
+ return cast(
+ "V2MoneyManagementFinancialAddressActivatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "FinancialAddress":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "FinancialAddress",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementFinancialAddressActivatedEvent":
+ return cast(
+ "V2MoneyManagementFinancialAddressActivatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "FinancialAddress":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "FinancialAddress",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementFinancialAddressActivatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.financial_address.activated"
+ type: Literal["v2.money_management.financial_address.activated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "FinancialAddress":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "FinancialAddress",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_financial_address_failed_event.py b/stripe/events/_v2_money_management_financial_address_failed_event.py
new file mode 100644
index 000000000..afd3c8dfc
--- /dev/null
+++ b/stripe/events/_v2_money_management_financial_address_failed_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._financial_address import FinancialAddress
+
+
+class V2MoneyManagementFinancialAddressFailedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.financial_address.failed"
+ type: Literal["v2.money_management.financial_address.failed"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementFinancialAddressFailedEvent":
+ return cast(
+ "V2MoneyManagementFinancialAddressFailedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "FinancialAddress":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "FinancialAddress",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementFinancialAddressFailedEvent":
+ return cast(
+ "V2MoneyManagementFinancialAddressFailedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "FinancialAddress":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "FinancialAddress",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementFinancialAddressFailedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.financial_address.failed"
+ type: Literal["v2.money_management.financial_address.failed"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "FinancialAddress":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "FinancialAddress",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_inbound_transfer_available_event.py b/stripe/events/_v2_money_management_inbound_transfer_available_event.py
new file mode 100644
index 000000000..a675283fb
--- /dev/null
+++ b/stripe/events/_v2_money_management_inbound_transfer_available_event.py
@@ -0,0 +1,150 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_mode import ApiMode
+from stripe._stripe_object import StripeObject
+from stripe._stripe_response import StripeResponse
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, Optional, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._api_requestor import _APIRequestor
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._inbound_transfer import InboundTransfer
+
+
+class V2MoneyManagementInboundTransferAvailableEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.inbound_transfer.available"
+ type: Literal["v2.money_management.inbound_transfer.available"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementInboundTransferAvailableEvent":
+ return cast(
+ "V2MoneyManagementInboundTransferAvailableEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "InboundTransfer":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "InboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementInboundTransferAvailableEvent":
+ return cast(
+ "V2MoneyManagementInboundTransferAvailableEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "InboundTransfer":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "InboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementInboundTransferAvailableEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.inbound_transfer.available"
+ type: Literal["v2.money_management.inbound_transfer.available"]
+
+ class V2MoneyManagementInboundTransferAvailableEventData(StripeObject):
+ transaction_id: str
+ """
+ The transaction ID of the received credit.
+ """
+
+ data: V2MoneyManagementInboundTransferAvailableEventData
+ """
+ Data for the v2.money_management.inbound_transfer.available event
+ """
+
+ @classmethod
+ def _construct_from(
+ cls,
+ *,
+ values: Dict[str, Any],
+ last_response: Optional[StripeResponse] = None,
+ requestor: "_APIRequestor",
+ api_mode: ApiMode,
+ ) -> "V2MoneyManagementInboundTransferAvailableEvent":
+ evt = super()._construct_from(
+ values=values,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ if hasattr(evt, "data"):
+ evt.data = V2MoneyManagementInboundTransferAvailableEvent.V2MoneyManagementInboundTransferAvailableEventData._construct_from(
+ values=evt.data,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ return evt
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "InboundTransfer":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "InboundTransfer",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_inbound_transfer_bank_debit_failed_event.py b/stripe/events/_v2_money_management_inbound_transfer_bank_debit_failed_event.py
new file mode 100644
index 000000000..037dc0329
--- /dev/null
+++ b/stripe/events/_v2_money_management_inbound_transfer_bank_debit_failed_event.py
@@ -0,0 +1,114 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._inbound_transfer import InboundTransfer
+
+
+class V2MoneyManagementInboundTransferBankDebitFailedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.inbound_transfer.bank_debit_failed"
+ type: Literal["v2.money_management.inbound_transfer.bank_debit_failed"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> "V2MoneyManagementInboundTransferBankDebitFailedEvent":
+ return cast(
+ "V2MoneyManagementInboundTransferBankDebitFailedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "InboundTransfer":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "InboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementInboundTransferBankDebitFailedEvent":
+ return cast(
+ "V2MoneyManagementInboundTransferBankDebitFailedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "InboundTransfer":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "InboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementInboundTransferBankDebitFailedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.inbound_transfer.bank_debit_failed"
+ type: Literal["v2.money_management.inbound_transfer.bank_debit_failed"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "InboundTransfer":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "InboundTransfer",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_inbound_transfer_bank_debit_processing_event.py b/stripe/events/_v2_money_management_inbound_transfer_bank_debit_processing_event.py
new file mode 100644
index 000000000..35d17875a
--- /dev/null
+++ b/stripe/events/_v2_money_management_inbound_transfer_bank_debit_processing_event.py
@@ -0,0 +1,114 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._inbound_transfer import InboundTransfer
+
+
+class V2MoneyManagementInboundTransferBankDebitProcessingEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.inbound_transfer.bank_debit_processing"
+ type: Literal["v2.money_management.inbound_transfer.bank_debit_processing"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> "V2MoneyManagementInboundTransferBankDebitProcessingEvent":
+ return cast(
+ "V2MoneyManagementInboundTransferBankDebitProcessingEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "InboundTransfer":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "InboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementInboundTransferBankDebitProcessingEvent":
+ return cast(
+ "V2MoneyManagementInboundTransferBankDebitProcessingEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "InboundTransfer":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "InboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementInboundTransferBankDebitProcessingEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.inbound_transfer.bank_debit_processing"
+ type: Literal["v2.money_management.inbound_transfer.bank_debit_processing"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "InboundTransfer":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "InboundTransfer",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_inbound_transfer_bank_debit_queued_event.py b/stripe/events/_v2_money_management_inbound_transfer_bank_debit_queued_event.py
new file mode 100644
index 000000000..f8acb4553
--- /dev/null
+++ b/stripe/events/_v2_money_management_inbound_transfer_bank_debit_queued_event.py
@@ -0,0 +1,114 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._inbound_transfer import InboundTransfer
+
+
+class V2MoneyManagementInboundTransferBankDebitQueuedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.inbound_transfer.bank_debit_queued"
+ type: Literal["v2.money_management.inbound_transfer.bank_debit_queued"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> "V2MoneyManagementInboundTransferBankDebitQueuedEvent":
+ return cast(
+ "V2MoneyManagementInboundTransferBankDebitQueuedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "InboundTransfer":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "InboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementInboundTransferBankDebitQueuedEvent":
+ return cast(
+ "V2MoneyManagementInboundTransferBankDebitQueuedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "InboundTransfer":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "InboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementInboundTransferBankDebitQueuedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.inbound_transfer.bank_debit_queued"
+ type: Literal["v2.money_management.inbound_transfer.bank_debit_queued"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "InboundTransfer":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "InboundTransfer",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_inbound_transfer_bank_debit_returned_event.py b/stripe/events/_v2_money_management_inbound_transfer_bank_debit_returned_event.py
new file mode 100644
index 000000000..916aa81df
--- /dev/null
+++ b/stripe/events/_v2_money_management_inbound_transfer_bank_debit_returned_event.py
@@ -0,0 +1,114 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._inbound_transfer import InboundTransfer
+
+
+class V2MoneyManagementInboundTransferBankDebitReturnedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.inbound_transfer.bank_debit_returned"
+ type: Literal["v2.money_management.inbound_transfer.bank_debit_returned"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> "V2MoneyManagementInboundTransferBankDebitReturnedEvent":
+ return cast(
+ "V2MoneyManagementInboundTransferBankDebitReturnedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "InboundTransfer":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "InboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementInboundTransferBankDebitReturnedEvent":
+ return cast(
+ "V2MoneyManagementInboundTransferBankDebitReturnedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "InboundTransfer":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "InboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementInboundTransferBankDebitReturnedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.inbound_transfer.bank_debit_returned"
+ type: Literal["v2.money_management.inbound_transfer.bank_debit_returned"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "InboundTransfer":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "InboundTransfer",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_inbound_transfer_bank_debit_succeeded_event.py b/stripe/events/_v2_money_management_inbound_transfer_bank_debit_succeeded_event.py
new file mode 100644
index 000000000..256c91451
--- /dev/null
+++ b/stripe/events/_v2_money_management_inbound_transfer_bank_debit_succeeded_event.py
@@ -0,0 +1,114 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._inbound_transfer import InboundTransfer
+
+
+class V2MoneyManagementInboundTransferBankDebitSucceededEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.inbound_transfer.bank_debit_succeeded"
+ type: Literal["v2.money_management.inbound_transfer.bank_debit_succeeded"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(
+ self,
+ ) -> "V2MoneyManagementInboundTransferBankDebitSucceededEvent":
+ return cast(
+ "V2MoneyManagementInboundTransferBankDebitSucceededEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "InboundTransfer":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "InboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementInboundTransferBankDebitSucceededEvent":
+ return cast(
+ "V2MoneyManagementInboundTransferBankDebitSucceededEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "InboundTransfer":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "InboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementInboundTransferBankDebitSucceededEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.inbound_transfer.bank_debit_succeeded"
+ type: Literal["v2.money_management.inbound_transfer.bank_debit_succeeded"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "InboundTransfer":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "InboundTransfer",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_outbound_payment_canceled_event.py b/stripe/events/_v2_money_management_outbound_payment_canceled_event.py
new file mode 100644
index 000000000..15f95dd5a
--- /dev/null
+++ b/stripe/events/_v2_money_management_outbound_payment_canceled_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._outbound_payment import OutboundPayment
+
+
+class V2MoneyManagementOutboundPaymentCanceledEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.outbound_payment.canceled"
+ type: Literal["v2.money_management.outbound_payment.canceled"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementOutboundPaymentCanceledEvent":
+ return cast(
+ "V2MoneyManagementOutboundPaymentCanceledEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "OutboundPayment":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundPayment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementOutboundPaymentCanceledEvent":
+ return cast(
+ "V2MoneyManagementOutboundPaymentCanceledEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "OutboundPayment":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundPayment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementOutboundPaymentCanceledEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.outbound_payment.canceled"
+ type: Literal["v2.money_management.outbound_payment.canceled"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "OutboundPayment":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "OutboundPayment",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_outbound_payment_created_event.py b/stripe/events/_v2_money_management_outbound_payment_created_event.py
new file mode 100644
index 000000000..62a15eb48
--- /dev/null
+++ b/stripe/events/_v2_money_management_outbound_payment_created_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._outbound_payment import OutboundPayment
+
+
+class V2MoneyManagementOutboundPaymentCreatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.outbound_payment.created"
+ type: Literal["v2.money_management.outbound_payment.created"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementOutboundPaymentCreatedEvent":
+ return cast(
+ "V2MoneyManagementOutboundPaymentCreatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "OutboundPayment":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundPayment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementOutboundPaymentCreatedEvent":
+ return cast(
+ "V2MoneyManagementOutboundPaymentCreatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "OutboundPayment":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundPayment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementOutboundPaymentCreatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.outbound_payment.created"
+ type: Literal["v2.money_management.outbound_payment.created"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "OutboundPayment":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "OutboundPayment",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_outbound_payment_failed_event.py b/stripe/events/_v2_money_management_outbound_payment_failed_event.py
new file mode 100644
index 000000000..72dc74f43
--- /dev/null
+++ b/stripe/events/_v2_money_management_outbound_payment_failed_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._outbound_payment import OutboundPayment
+
+
+class V2MoneyManagementOutboundPaymentFailedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.outbound_payment.failed"
+ type: Literal["v2.money_management.outbound_payment.failed"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementOutboundPaymentFailedEvent":
+ return cast(
+ "V2MoneyManagementOutboundPaymentFailedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "OutboundPayment":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundPayment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementOutboundPaymentFailedEvent":
+ return cast(
+ "V2MoneyManagementOutboundPaymentFailedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "OutboundPayment":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundPayment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementOutboundPaymentFailedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.outbound_payment.failed"
+ type: Literal["v2.money_management.outbound_payment.failed"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "OutboundPayment":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "OutboundPayment",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_outbound_payment_posted_event.py b/stripe/events/_v2_money_management_outbound_payment_posted_event.py
new file mode 100644
index 000000000..2d4fddee3
--- /dev/null
+++ b/stripe/events/_v2_money_management_outbound_payment_posted_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._outbound_payment import OutboundPayment
+
+
+class V2MoneyManagementOutboundPaymentPostedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.outbound_payment.posted"
+ type: Literal["v2.money_management.outbound_payment.posted"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementOutboundPaymentPostedEvent":
+ return cast(
+ "V2MoneyManagementOutboundPaymentPostedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "OutboundPayment":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundPayment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementOutboundPaymentPostedEvent":
+ return cast(
+ "V2MoneyManagementOutboundPaymentPostedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "OutboundPayment":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundPayment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementOutboundPaymentPostedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.outbound_payment.posted"
+ type: Literal["v2.money_management.outbound_payment.posted"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "OutboundPayment":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "OutboundPayment",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_outbound_payment_returned_event.py b/stripe/events/_v2_money_management_outbound_payment_returned_event.py
new file mode 100644
index 000000000..f0b45dcbc
--- /dev/null
+++ b/stripe/events/_v2_money_management_outbound_payment_returned_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._outbound_payment import OutboundPayment
+
+
+class V2MoneyManagementOutboundPaymentReturnedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.outbound_payment.returned"
+ type: Literal["v2.money_management.outbound_payment.returned"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementOutboundPaymentReturnedEvent":
+ return cast(
+ "V2MoneyManagementOutboundPaymentReturnedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "OutboundPayment":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundPayment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementOutboundPaymentReturnedEvent":
+ return cast(
+ "V2MoneyManagementOutboundPaymentReturnedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "OutboundPayment":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundPayment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementOutboundPaymentReturnedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.outbound_payment.returned"
+ type: Literal["v2.money_management.outbound_payment.returned"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "OutboundPayment":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "OutboundPayment",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_outbound_payment_updated_event.py b/stripe/events/_v2_money_management_outbound_payment_updated_event.py
new file mode 100644
index 000000000..8eaae9007
--- /dev/null
+++ b/stripe/events/_v2_money_management_outbound_payment_updated_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._outbound_payment import OutboundPayment
+
+
+class V2MoneyManagementOutboundPaymentUpdatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.outbound_payment.updated"
+ type: Literal["v2.money_management.outbound_payment.updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementOutboundPaymentUpdatedEvent":
+ return cast(
+ "V2MoneyManagementOutboundPaymentUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "OutboundPayment":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundPayment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementOutboundPaymentUpdatedEvent":
+ return cast(
+ "V2MoneyManagementOutboundPaymentUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "OutboundPayment":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundPayment",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementOutboundPaymentUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.outbound_payment.updated"
+ type: Literal["v2.money_management.outbound_payment.updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "OutboundPayment":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "OutboundPayment",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_outbound_transfer_canceled_event.py b/stripe/events/_v2_money_management_outbound_transfer_canceled_event.py
new file mode 100644
index 000000000..58b1630bd
--- /dev/null
+++ b/stripe/events/_v2_money_management_outbound_transfer_canceled_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._outbound_transfer import OutboundTransfer
+
+
+class V2MoneyManagementOutboundTransferCanceledEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.outbound_transfer.canceled"
+ type: Literal["v2.money_management.outbound_transfer.canceled"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementOutboundTransferCanceledEvent":
+ return cast(
+ "V2MoneyManagementOutboundTransferCanceledEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "OutboundTransfer":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementOutboundTransferCanceledEvent":
+ return cast(
+ "V2MoneyManagementOutboundTransferCanceledEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "OutboundTransfer":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementOutboundTransferCanceledEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.outbound_transfer.canceled"
+ type: Literal["v2.money_management.outbound_transfer.canceled"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "OutboundTransfer":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "OutboundTransfer",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_outbound_transfer_created_event.py b/stripe/events/_v2_money_management_outbound_transfer_created_event.py
new file mode 100644
index 000000000..1f71768ec
--- /dev/null
+++ b/stripe/events/_v2_money_management_outbound_transfer_created_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._outbound_transfer import OutboundTransfer
+
+
+class V2MoneyManagementOutboundTransferCreatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.outbound_transfer.created"
+ type: Literal["v2.money_management.outbound_transfer.created"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementOutboundTransferCreatedEvent":
+ return cast(
+ "V2MoneyManagementOutboundTransferCreatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "OutboundTransfer":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementOutboundTransferCreatedEvent":
+ return cast(
+ "V2MoneyManagementOutboundTransferCreatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "OutboundTransfer":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementOutboundTransferCreatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.outbound_transfer.created"
+ type: Literal["v2.money_management.outbound_transfer.created"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "OutboundTransfer":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "OutboundTransfer",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_outbound_transfer_failed_event.py b/stripe/events/_v2_money_management_outbound_transfer_failed_event.py
new file mode 100644
index 000000000..45587a302
--- /dev/null
+++ b/stripe/events/_v2_money_management_outbound_transfer_failed_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._outbound_transfer import OutboundTransfer
+
+
+class V2MoneyManagementOutboundTransferFailedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.outbound_transfer.failed"
+ type: Literal["v2.money_management.outbound_transfer.failed"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementOutboundTransferFailedEvent":
+ return cast(
+ "V2MoneyManagementOutboundTransferFailedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "OutboundTransfer":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementOutboundTransferFailedEvent":
+ return cast(
+ "V2MoneyManagementOutboundTransferFailedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "OutboundTransfer":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementOutboundTransferFailedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.outbound_transfer.failed"
+ type: Literal["v2.money_management.outbound_transfer.failed"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "OutboundTransfer":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "OutboundTransfer",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_outbound_transfer_posted_event.py b/stripe/events/_v2_money_management_outbound_transfer_posted_event.py
new file mode 100644
index 000000000..03373764f
--- /dev/null
+++ b/stripe/events/_v2_money_management_outbound_transfer_posted_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._outbound_transfer import OutboundTransfer
+
+
+class V2MoneyManagementOutboundTransferPostedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.outbound_transfer.posted"
+ type: Literal["v2.money_management.outbound_transfer.posted"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementOutboundTransferPostedEvent":
+ return cast(
+ "V2MoneyManagementOutboundTransferPostedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "OutboundTransfer":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementOutboundTransferPostedEvent":
+ return cast(
+ "V2MoneyManagementOutboundTransferPostedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "OutboundTransfer":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementOutboundTransferPostedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.outbound_transfer.posted"
+ type: Literal["v2.money_management.outbound_transfer.posted"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "OutboundTransfer":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "OutboundTransfer",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_outbound_transfer_returned_event.py b/stripe/events/_v2_money_management_outbound_transfer_returned_event.py
new file mode 100644
index 000000000..c7d154b04
--- /dev/null
+++ b/stripe/events/_v2_money_management_outbound_transfer_returned_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._outbound_transfer import OutboundTransfer
+
+
+class V2MoneyManagementOutboundTransferReturnedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.outbound_transfer.returned"
+ type: Literal["v2.money_management.outbound_transfer.returned"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementOutboundTransferReturnedEvent":
+ return cast(
+ "V2MoneyManagementOutboundTransferReturnedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "OutboundTransfer":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementOutboundTransferReturnedEvent":
+ return cast(
+ "V2MoneyManagementOutboundTransferReturnedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "OutboundTransfer":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementOutboundTransferReturnedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.outbound_transfer.returned"
+ type: Literal["v2.money_management.outbound_transfer.returned"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "OutboundTransfer":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "OutboundTransfer",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_outbound_transfer_updated_event.py b/stripe/events/_v2_money_management_outbound_transfer_updated_event.py
new file mode 100644
index 000000000..00d9debe5
--- /dev/null
+++ b/stripe/events/_v2_money_management_outbound_transfer_updated_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._outbound_transfer import OutboundTransfer
+
+
+class V2MoneyManagementOutboundTransferUpdatedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.outbound_transfer.updated"
+ type: Literal["v2.money_management.outbound_transfer.updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementOutboundTransferUpdatedEvent":
+ return cast(
+ "V2MoneyManagementOutboundTransferUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "OutboundTransfer":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementOutboundTransferUpdatedEvent":
+ return cast(
+ "V2MoneyManagementOutboundTransferUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "OutboundTransfer":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "OutboundTransfer",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementOutboundTransferUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.outbound_transfer.updated"
+ type: Literal["v2.money_management.outbound_transfer.updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "OutboundTransfer":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "OutboundTransfer",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_payout_method_created_event.py b/stripe/events/_v2_money_management_payout_method_created_event.py
new file mode 100644
index 000000000..3e5123c10
--- /dev/null
+++ b/stripe/events/_v2_money_management_payout_method_created_event.py
@@ -0,0 +1,110 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._payout_method import PayoutMethod
+
+
+class V2MoneyManagementPayoutMethodCreatedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.money_management.payout_method.created"
+ type: Literal["v2.money_management.payout_method.created"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementPayoutMethodCreatedEvent":
+ return cast(
+ "V2MoneyManagementPayoutMethodCreatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "PayoutMethod":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "PayoutMethod",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementPayoutMethodCreatedEvent":
+ return cast(
+ "V2MoneyManagementPayoutMethodCreatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "PayoutMethod":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "PayoutMethod",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementPayoutMethodCreatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.payout_method.created"
+ type: Literal["v2.money_management.payout_method.created"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "PayoutMethod":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "PayoutMethod",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_payout_method_updated_event.py b/stripe/events/_v2_money_management_payout_method_updated_event.py
new file mode 100644
index 000000000..1c0ed4f18
--- /dev/null
+++ b/stripe/events/_v2_money_management_payout_method_updated_event.py
@@ -0,0 +1,110 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._payout_method import PayoutMethod
+
+
+class V2MoneyManagementPayoutMethodUpdatedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.money_management.payout_method.updated"
+ type: Literal["v2.money_management.payout_method.updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementPayoutMethodUpdatedEvent":
+ return cast(
+ "V2MoneyManagementPayoutMethodUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "PayoutMethod":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "PayoutMethod",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementPayoutMethodUpdatedEvent":
+ return cast(
+ "V2MoneyManagementPayoutMethodUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "PayoutMethod":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "PayoutMethod",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementPayoutMethodUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.payout_method.updated"
+ type: Literal["v2.money_management.payout_method.updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "PayoutMethod":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "PayoutMethod",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_received_credit_available_event.py b/stripe/events/_v2_money_management_received_credit_available_event.py
new file mode 100644
index 000000000..676a66196
--- /dev/null
+++ b/stripe/events/_v2_money_management_received_credit_available_event.py
@@ -0,0 +1,150 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_mode import ApiMode
+from stripe._stripe_object import StripeObject
+from stripe._stripe_response import StripeResponse
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, Optional, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._api_requestor import _APIRequestor
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._received_credit import ReceivedCredit
+
+
+class V2MoneyManagementReceivedCreditAvailableEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.received_credit.available"
+ type: Literal["v2.money_management.received_credit.available"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementReceivedCreditAvailableEvent":
+ return cast(
+ "V2MoneyManagementReceivedCreditAvailableEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ReceivedCredit":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedCredit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementReceivedCreditAvailableEvent":
+ return cast(
+ "V2MoneyManagementReceivedCreditAvailableEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ReceivedCredit":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedCredit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementReceivedCreditAvailableEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.received_credit.available"
+ type: Literal["v2.money_management.received_credit.available"]
+
+ class V2MoneyManagementReceivedCreditAvailableEventData(StripeObject):
+ transaction_id: str
+ """
+ The transaction ID of the received credit.
+ """
+
+ data: V2MoneyManagementReceivedCreditAvailableEventData
+ """
+ Data for the v2.money_management.received_credit.available event
+ """
+
+ @classmethod
+ def _construct_from(
+ cls,
+ *,
+ values: Dict[str, Any],
+ last_response: Optional[StripeResponse] = None,
+ requestor: "_APIRequestor",
+ api_mode: ApiMode,
+ ) -> "V2MoneyManagementReceivedCreditAvailableEvent":
+ evt = super()._construct_from(
+ values=values,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ if hasattr(evt, "data"):
+ evt.data = V2MoneyManagementReceivedCreditAvailableEvent.V2MoneyManagementReceivedCreditAvailableEventData._construct_from(
+ values=evt.data,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ return evt
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ReceivedCredit":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ReceivedCredit",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_received_credit_failed_event.py b/stripe/events/_v2_money_management_received_credit_failed_event.py
new file mode 100644
index 000000000..f8e851b58
--- /dev/null
+++ b/stripe/events/_v2_money_management_received_credit_failed_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._received_credit import ReceivedCredit
+
+
+class V2MoneyManagementReceivedCreditFailedEventNotification(
+ EventNotification
+):
+ LOOKUP_TYPE = "v2.money_management.received_credit.failed"
+ type: Literal["v2.money_management.received_credit.failed"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementReceivedCreditFailedEvent":
+ return cast(
+ "V2MoneyManagementReceivedCreditFailedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ReceivedCredit":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedCredit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementReceivedCreditFailedEvent":
+ return cast(
+ "V2MoneyManagementReceivedCreditFailedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ReceivedCredit":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedCredit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementReceivedCreditFailedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.received_credit.failed"
+ type: Literal["v2.money_management.received_credit.failed"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ReceivedCredit":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ReceivedCredit",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_received_credit_returned_event.py b/stripe/events/_v2_money_management_received_credit_returned_event.py
new file mode 100644
index 000000000..530bf7d95
--- /dev/null
+++ b/stripe/events/_v2_money_management_received_credit_returned_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._received_credit import ReceivedCredit
+
+
+class V2MoneyManagementReceivedCreditReturnedEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.received_credit.returned"
+ type: Literal["v2.money_management.received_credit.returned"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementReceivedCreditReturnedEvent":
+ return cast(
+ "V2MoneyManagementReceivedCreditReturnedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ReceivedCredit":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedCredit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementReceivedCreditReturnedEvent":
+ return cast(
+ "V2MoneyManagementReceivedCreditReturnedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ReceivedCredit":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedCredit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementReceivedCreditReturnedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.received_credit.returned"
+ type: Literal["v2.money_management.received_credit.returned"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ReceivedCredit":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ReceivedCredit",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_received_credit_succeeded_event.py b/stripe/events/_v2_money_management_received_credit_succeeded_event.py
new file mode 100644
index 000000000..2e2520da2
--- /dev/null
+++ b/stripe/events/_v2_money_management_received_credit_succeeded_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._received_credit import ReceivedCredit
+
+
+class V2MoneyManagementReceivedCreditSucceededEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.received_credit.succeeded"
+ type: Literal["v2.money_management.received_credit.succeeded"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementReceivedCreditSucceededEvent":
+ return cast(
+ "V2MoneyManagementReceivedCreditSucceededEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ReceivedCredit":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedCredit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementReceivedCreditSucceededEvent":
+ return cast(
+ "V2MoneyManagementReceivedCreditSucceededEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ReceivedCredit":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedCredit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementReceivedCreditSucceededEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.received_credit.succeeded"
+ type: Literal["v2.money_management.received_credit.succeeded"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ReceivedCredit":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ReceivedCredit",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_received_debit_canceled_event.py b/stripe/events/_v2_money_management_received_debit_canceled_event.py
new file mode 100644
index 000000000..7add70abc
--- /dev/null
+++ b/stripe/events/_v2_money_management_received_debit_canceled_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._received_debit import ReceivedDebit
+
+
+class V2MoneyManagementReceivedDebitCanceledEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.received_debit.canceled"
+ type: Literal["v2.money_management.received_debit.canceled"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementReceivedDebitCanceledEvent":
+ return cast(
+ "V2MoneyManagementReceivedDebitCanceledEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ReceivedDebit":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedDebit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementReceivedDebitCanceledEvent":
+ return cast(
+ "V2MoneyManagementReceivedDebitCanceledEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ReceivedDebit":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedDebit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementReceivedDebitCanceledEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.received_debit.canceled"
+ type: Literal["v2.money_management.received_debit.canceled"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ReceivedDebit":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ReceivedDebit",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_received_debit_failed_event.py b/stripe/events/_v2_money_management_received_debit_failed_event.py
new file mode 100644
index 000000000..b6edf869e
--- /dev/null
+++ b/stripe/events/_v2_money_management_received_debit_failed_event.py
@@ -0,0 +1,110 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._received_debit import ReceivedDebit
+
+
+class V2MoneyManagementReceivedDebitFailedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.money_management.received_debit.failed"
+ type: Literal["v2.money_management.received_debit.failed"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementReceivedDebitFailedEvent":
+ return cast(
+ "V2MoneyManagementReceivedDebitFailedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ReceivedDebit":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedDebit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementReceivedDebitFailedEvent":
+ return cast(
+ "V2MoneyManagementReceivedDebitFailedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ReceivedDebit":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedDebit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementReceivedDebitFailedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.received_debit.failed"
+ type: Literal["v2.money_management.received_debit.failed"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ReceivedDebit":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ReceivedDebit",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_received_debit_pending_event.py b/stripe/events/_v2_money_management_received_debit_pending_event.py
new file mode 100644
index 000000000..701aad393
--- /dev/null
+++ b/stripe/events/_v2_money_management_received_debit_pending_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._received_debit import ReceivedDebit
+
+
+class V2MoneyManagementReceivedDebitPendingEventNotification(
+ EventNotification
+):
+ LOOKUP_TYPE = "v2.money_management.received_debit.pending"
+ type: Literal["v2.money_management.received_debit.pending"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementReceivedDebitPendingEvent":
+ return cast(
+ "V2MoneyManagementReceivedDebitPendingEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ReceivedDebit":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedDebit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementReceivedDebitPendingEvent":
+ return cast(
+ "V2MoneyManagementReceivedDebitPendingEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ReceivedDebit":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedDebit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementReceivedDebitPendingEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.received_debit.pending"
+ type: Literal["v2.money_management.received_debit.pending"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ReceivedDebit":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ReceivedDebit",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_received_debit_succeeded_event.py b/stripe/events/_v2_money_management_received_debit_succeeded_event.py
new file mode 100644
index 000000000..bcb06e10a
--- /dev/null
+++ b/stripe/events/_v2_money_management_received_debit_succeeded_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._received_debit import ReceivedDebit
+
+
+class V2MoneyManagementReceivedDebitSucceededEventNotification(
+ EventNotification,
+):
+ LOOKUP_TYPE = "v2.money_management.received_debit.succeeded"
+ type: Literal["v2.money_management.received_debit.succeeded"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementReceivedDebitSucceededEvent":
+ return cast(
+ "V2MoneyManagementReceivedDebitSucceededEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ReceivedDebit":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedDebit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementReceivedDebitSucceededEvent":
+ return cast(
+ "V2MoneyManagementReceivedDebitSucceededEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ReceivedDebit":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedDebit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementReceivedDebitSucceededEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.received_debit.succeeded"
+ type: Literal["v2.money_management.received_debit.succeeded"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ReceivedDebit":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ReceivedDebit",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_received_debit_updated_event.py b/stripe/events/_v2_money_management_received_debit_updated_event.py
new file mode 100644
index 000000000..ca89d6795
--- /dev/null
+++ b/stripe/events/_v2_money_management_received_debit_updated_event.py
@@ -0,0 +1,112 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._received_debit import ReceivedDebit
+
+
+class V2MoneyManagementReceivedDebitUpdatedEventNotification(
+ EventNotification
+):
+ LOOKUP_TYPE = "v2.money_management.received_debit.updated"
+ type: Literal["v2.money_management.received_debit.updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementReceivedDebitUpdatedEvent":
+ return cast(
+ "V2MoneyManagementReceivedDebitUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "ReceivedDebit":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedDebit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementReceivedDebitUpdatedEvent":
+ return cast(
+ "V2MoneyManagementReceivedDebitUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "ReceivedDebit":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "ReceivedDebit",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementReceivedDebitUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.received_debit.updated"
+ type: Literal["v2.money_management.received_debit.updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "ReceivedDebit":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "ReceivedDebit",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_transaction_created_event.py b/stripe/events/_v2_money_management_transaction_created_event.py
new file mode 100644
index 000000000..d9d137098
--- /dev/null
+++ b/stripe/events/_v2_money_management_transaction_created_event.py
@@ -0,0 +1,148 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_mode import ApiMode
+from stripe._stripe_object import StripeObject
+from stripe._stripe_response import StripeResponse
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, Optional, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._api_requestor import _APIRequestor
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._transaction import Transaction
+
+
+class V2MoneyManagementTransactionCreatedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.money_management.transaction.created"
+ type: Literal["v2.money_management.transaction.created"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementTransactionCreatedEvent":
+ return cast(
+ "V2MoneyManagementTransactionCreatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Transaction":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Transaction",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementTransactionCreatedEvent":
+ return cast(
+ "V2MoneyManagementTransactionCreatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Transaction":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Transaction",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementTransactionCreatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.transaction.created"
+ type: Literal["v2.money_management.transaction.created"]
+
+ class V2MoneyManagementTransactionCreatedEventData(StripeObject):
+ v1_id: Optional[str]
+ """
+ Id of the v1 Transaction corresponding to this Transaction.
+ """
+
+ data: V2MoneyManagementTransactionCreatedEventData
+ """
+ Data for the v2.money_management.transaction.created event
+ """
+
+ @classmethod
+ def _construct_from(
+ cls,
+ *,
+ values: Dict[str, Any],
+ last_response: Optional[StripeResponse] = None,
+ requestor: "_APIRequestor",
+ api_mode: ApiMode,
+ ) -> "V2MoneyManagementTransactionCreatedEvent":
+ evt = super()._construct_from(
+ values=values,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ if hasattr(evt, "data"):
+ evt.data = V2MoneyManagementTransactionCreatedEvent.V2MoneyManagementTransactionCreatedEventData._construct_from(
+ values=evt.data,
+ last_response=last_response,
+ requestor=requestor,
+ api_mode=api_mode,
+ )
+ return evt
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Transaction":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Transaction",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/events/_v2_money_management_transaction_updated_event.py b/stripe/events/_v2_money_management_transaction_updated_event.py
new file mode 100644
index 000000000..d7a588e6c
--- /dev/null
+++ b/stripe/events/_v2_money_management_transaction_updated_event.py
@@ -0,0 +1,110 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from stripe._util import get_api_mode
+from stripe.v2.core._event import Event, EventNotification, RelatedObject
+from typing import Any, Dict, cast
+from typing_extensions import Literal, TYPE_CHECKING, override
+
+if TYPE_CHECKING:
+ from stripe._stripe_client import StripeClient
+ from stripe.v2.money_management._transaction import Transaction
+
+
+class V2MoneyManagementTransactionUpdatedEventNotification(EventNotification):
+ LOOKUP_TYPE = "v2.money_management.transaction.updated"
+ type: Literal["v2.money_management.transaction.updated"]
+ related_object: RelatedObject
+
+ def __init__(
+ self, parsed_body: Dict[str, Any], client: "StripeClient"
+ ) -> None:
+ super().__init__(
+ parsed_body,
+ client,
+ )
+ self.related_object = RelatedObject(parsed_body["related_object"])
+
+ @override
+ def fetch_event(self) -> "V2MoneyManagementTransactionUpdatedEvent":
+ return cast(
+ "V2MoneyManagementTransactionUpdatedEvent",
+ super().fetch_event(),
+ )
+
+ def fetch_related_object(self) -> "Transaction":
+ response = self._client.raw_request(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Transaction",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+ @override
+ async def fetch_event_async(
+ self,
+ ) -> "V2MoneyManagementTransactionUpdatedEvent":
+ return cast(
+ "V2MoneyManagementTransactionUpdatedEvent",
+ await super().fetch_event_async(),
+ )
+
+ async def fetch_related_object_async(self) -> "Transaction":
+ response = await self._client.raw_request_async(
+ "get",
+ self.related_object.url,
+ stripe_context=self.context,
+ usage=["fetch_related_object"],
+ )
+ return cast(
+ "Transaction",
+ self._client.deserialize(
+ response,
+ api_mode=get_api_mode(self.related_object.url),
+ ),
+ )
+
+
+class V2MoneyManagementTransactionUpdatedEvent(Event):
+ LOOKUP_TYPE = "v2.money_management.transaction.updated"
+ type: Literal["v2.money_management.transaction.updated"]
+
+ class RelatedObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object relevant to the event.
+ """
+ type: str
+ """
+ Type of the object relevant to the event.
+ """
+ url: str
+ """
+ URL to retrieve the resource.
+ """
+
+ related_object: RelatedObject
+ """
+ Object containing the reference to API resource relevant to the event
+ """
+
+ def fetch_related_object(self) -> "Transaction":
+ """
+ Retrieves the related object from the API. Makes an API request on every call.
+ """
+ return cast(
+ "Transaction",
+ self._requestor.request(
+ "get",
+ self.related_object.url,
+ base_address="api",
+ options={"stripe_context": self.context},
+ ),
+ )
diff --git a/stripe/financial_connections/__init__.py b/stripe/financial_connections/__init__.py
index 2d77fae8a..20c8f8778 100644
--- a/stripe/financial_connections/__init__.py
+++ b/stripe/financial_connections/__init__.py
@@ -5,6 +5,12 @@
if TYPE_CHECKING:
from stripe.financial_connections._account import Account as Account
+ from stripe.financial_connections._account_inferred_balance import (
+ AccountInferredBalance as AccountInferredBalance,
+ )
+ from stripe.financial_connections._account_inferred_balance_service import (
+ AccountInferredBalanceService as AccountInferredBalanceService,
+ )
from stripe.financial_connections._account_owner import (
AccountOwner as AccountOwner,
)
@@ -17,6 +23,12 @@
from stripe.financial_connections._account_service import (
AccountService as AccountService,
)
+ from stripe.financial_connections._institution import (
+ Institution as Institution,
+ )
+ from stripe.financial_connections._institution_service import (
+ InstitutionService as InstitutionService,
+ )
from stripe.financial_connections._session import Session as Session
from stripe.financial_connections._session_service import (
SessionService as SessionService,
@@ -31,6 +43,14 @@
# name -> (import_target, is_submodule)
_import_map = {
"Account": ("stripe.financial_connections._account", False),
+ "AccountInferredBalance": (
+ "stripe.financial_connections._account_inferred_balance",
+ False,
+ ),
+ "AccountInferredBalanceService": (
+ "stripe.financial_connections._account_inferred_balance_service",
+ False,
+ ),
"AccountOwner": ("stripe.financial_connections._account_owner", False),
"AccountOwnerService": (
"stripe.financial_connections._account_owner_service",
@@ -41,6 +61,11 @@
False,
),
"AccountService": ("stripe.financial_connections._account_service", False),
+ "Institution": ("stripe.financial_connections._institution", False),
+ "InstitutionService": (
+ "stripe.financial_connections._institution_service",
+ False,
+ ),
"Session": ("stripe.financial_connections._session", False),
"SessionService": ("stripe.financial_connections._session_service", False),
"Transaction": ("stripe.financial_connections._transaction", False),
diff --git a/stripe/financial_connections/_account.py b/stripe/financial_connections/_account.py
index 60377b1d6..d94098d80 100644
--- a/stripe/financial_connections/_account.py
+++ b/stripe/financial_connections/_account.py
@@ -3,6 +3,7 @@
from stripe._expandable_field import ExpandableField
from stripe._list_object import ListObject
from stripe._listable_api_resource import ListableAPIResource
+from stripe._nested_resource_class_methods import nested_resource_class_methods
from stripe._stripe_object import StripeObject
from stripe._util import class_method_variant, sanitize_id
from typing import ClassVar, Dict, List, Optional, cast, overload
@@ -11,13 +12,20 @@
if TYPE_CHECKING:
from stripe._account import Account as AccountResource
from stripe._customer import Customer
+ from stripe.financial_connections._account_inferred_balance import (
+ AccountInferredBalance,
+ )
from stripe.financial_connections._account_owner import AccountOwner
from stripe.financial_connections._account_ownership import (
AccountOwnership,
)
+ from stripe.financial_connections._institution import Institution
from stripe.params.financial_connections._account_disconnect_params import (
AccountDisconnectParams,
)
+ from stripe.params.financial_connections._account_list_inferred_balances_params import (
+ AccountListInferredBalancesParams,
+ )
from stripe.params.financial_connections._account_list_owners_params import (
AccountListOwnersParams,
)
@@ -38,6 +46,7 @@
)
+@nested_resource_class_methods("inferred_balance")
class Account(ListableAPIResource["Account"]):
"""
A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access.
@@ -135,6 +144,20 @@ class BalanceRefresh(StripeObject):
The status of the last refresh attempt.
"""
+ class InferredBalancesRefresh(StripeObject):
+ last_attempted_at: int
+ """
+ The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch.
+ """
+ next_refresh_available_at: Optional[int]
+ """
+ Time at which the next inferred balance refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch.
+ """
+ status: Literal["failed", "pending", "succeeded"]
+ """
+ The status of the last refresh attempt.
+ """
+
class OwnershipRefresh(StripeObject):
last_attempted_at: int
"""
@@ -199,6 +222,14 @@ class TransactionRefresh(StripeObject):
"""
Unique identifier for the object.
"""
+ inferred_balances_refresh: Optional[InferredBalancesRefresh]
+ """
+ The state of the most recent attempt to refresh the account's inferred balance history.
+ """
+ institution: Optional[ExpandableField["Institution"]]
+ """
+ The ID of the Financial Connections Institution this account belongs to. Note that this relationship may sometimes change in rare circumstances (e.g. institution mergers).
+ """
institution_name: str
"""
The name of the institution that holds this account.
@@ -259,7 +290,9 @@ class TransactionRefresh(StripeObject):
If `category` is `investment` or `other`, this will be `other`.
"""
- subscriptions: Optional[List[Literal["transactions"]]]
+ subscriptions: Optional[
+ List[Literal["balance", "inferred_balances", "transactions"]]
+ ]
"""
The list of data refresh subscriptions requested on this account.
"""
@@ -884,11 +917,52 @@ async def unsubscribe_async( # pyright: ignore[reportGeneralTypeIssues]
),
)
+ @classmethod
+ def list_inferred_balances(
+ cls,
+ account: str,
+ **params: Unpack["AccountListInferredBalancesParams"],
+ ) -> ListObject["AccountInferredBalance"]:
+ """
+ Lists the recorded inferred balances for a Financial Connections Account.
+ """
+ return cast(
+ ListObject["AccountInferredBalance"],
+ cls._static_request(
+ "get",
+ "/v1/financial_connections/accounts/{account}/inferred_balances".format(
+ account=sanitize_id(account)
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def list_inferred_balances_async(
+ cls,
+ account: str,
+ **params: Unpack["AccountListInferredBalancesParams"],
+ ) -> ListObject["AccountInferredBalance"]:
+ """
+ Lists the recorded inferred balances for a Financial Connections Account.
+ """
+ return cast(
+ ListObject["AccountInferredBalance"],
+ await cls._static_request_async(
+ "get",
+ "/v1/financial_connections/accounts/{account}/inferred_balances".format(
+ account=sanitize_id(account)
+ ),
+ params=params,
+ ),
+ )
+
_inner_class_types = {
"account_holder": AccountHolder,
"account_numbers": AccountNumber,
"balance": Balance,
"balance_refresh": BalanceRefresh,
+ "inferred_balances_refresh": InferredBalancesRefresh,
"ownership_refresh": OwnershipRefresh,
"transaction_refresh": TransactionRefresh,
}
diff --git a/stripe/financial_connections/_account_inferred_balance.py b/stripe/financial_connections/_account_inferred_balance.py
new file mode 100644
index 000000000..9f929bd7b
--- /dev/null
+++ b/stripe/financial_connections/_account_inferred_balance.py
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict
+from typing_extensions import Literal
+
+
+class AccountInferredBalance(StripeObject):
+ """
+ A historical balance for the account on a particular day. It may be sourced from a balance snapshot provided by a financial institution, or inferred using transactions data.
+ """
+
+ OBJECT_NAME: ClassVar[
+ Literal["financial_connections.account_inferred_balance"]
+ ] = "financial_connections.account_inferred_balance"
+ as_of: int
+ """
+ The time for which this balance was calculated, measured in seconds since the Unix epoch. If the balance was computed by Stripe and not provided directly by a financial institution, it will always be 23:59:59 UTC.
+ """
+ current: Dict[str, int]
+ """
+ The balances owed to (or by) the account holder, before subtracting any outbound pending transactions or adding any inbound pending transactions.
+
+ Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
+
+ Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ object: Literal["financial_connections.account_inferred_balance"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
diff --git a/stripe/financial_connections/_account_inferred_balance_service.py b/stripe/financial_connections/_account_inferred_balance_service.py
new file mode 100644
index 000000000..bd6373889
--- /dev/null
+++ b/stripe/financial_connections/_account_inferred_balance_service.py
@@ -0,0 +1,62 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.financial_connections._account_inferred_balance import (
+ AccountInferredBalance,
+ )
+ from stripe.params.financial_connections._account_inferred_balance_list_params import (
+ AccountInferredBalanceListParams,
+ )
+
+
+class AccountInferredBalanceService(StripeService):
+ def list(
+ self,
+ account: str,
+ params: Optional["AccountInferredBalanceListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[AccountInferredBalance]":
+ """
+ Lists the recorded inferred balances for a Financial Connections Account.
+ """
+ return cast(
+ "ListObject[AccountInferredBalance]",
+ self._request(
+ "get",
+ "/v1/financial_connections/accounts/{account}/inferred_balances".format(
+ account=sanitize_id(account),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ account: str,
+ params: Optional["AccountInferredBalanceListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[AccountInferredBalance]":
+ """
+ Lists the recorded inferred balances for a Financial Connections Account.
+ """
+ return cast(
+ "ListObject[AccountInferredBalance]",
+ await self._request_async(
+ "get",
+ "/v1/financial_connections/accounts/{account}/inferred_balances".format(
+ account=sanitize_id(account),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/financial_connections/_account_service.py b/stripe/financial_connections/_account_service.py
index a036dc406..e0cbacdb1 100644
--- a/stripe/financial_connections/_account_service.py
+++ b/stripe/financial_connections/_account_service.py
@@ -10,6 +10,9 @@
from stripe._list_object import ListObject
from stripe._request_options import RequestOptions
from stripe.financial_connections._account import Account
+ from stripe.financial_connections._account_inferred_balance_service import (
+ AccountInferredBalanceService,
+ )
from stripe.financial_connections._account_owner_service import (
AccountOwnerService,
)
@@ -33,6 +36,10 @@
)
_subservices = {
+ "inferred_balances": [
+ "stripe.financial_connections._account_inferred_balance_service",
+ "AccountInferredBalanceService",
+ ],
"owners": [
"stripe.financial_connections._account_owner_service",
"AccountOwnerService",
@@ -41,6 +48,7 @@
class AccountService(StripeService):
+ inferred_balances: "AccountInferredBalanceService"
owners: "AccountOwnerService"
def __init__(self, requestor):
diff --git a/stripe/financial_connections/_institution.py b/stripe/financial_connections/_institution.py
new file mode 100644
index 000000000..0d671827f
--- /dev/null
+++ b/stripe/financial_connections/_institution.py
@@ -0,0 +1,159 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, List, Optional
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.financial_connections._institution_list_params import (
+ InstitutionListParams,
+ )
+ from stripe.params.financial_connections._institution_retrieve_params import (
+ InstitutionRetrieveParams,
+ )
+
+
+class Institution(ListableAPIResource["Institution"]):
+ """
+ An institution represents a financial institution to which an end user can connect using the Financial Connections authentication flow.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["financial_connections.institution"]] = (
+ "financial_connections.institution"
+ )
+
+ class Features(StripeObject):
+ class Balances(StripeObject):
+ supported: bool
+ """
+ Whether the given feature is supported by this institution.
+ """
+
+ class Ownership(StripeObject):
+ supported: bool
+ """
+ Whether the given feature is supported by this institution.
+ """
+
+ class PaymentMethod(StripeObject):
+ supported: bool
+ """
+ Whether the given feature is supported by this institution.
+ """
+
+ class Transactions(StripeObject):
+ supported: bool
+ """
+ Whether the given feature is supported by this institution.
+ """
+
+ balances: Balances
+ ownership: Ownership
+ payment_method: PaymentMethod
+ transactions: Transactions
+ _inner_class_types = {
+ "balances": Balances,
+ "ownership": Ownership,
+ "payment_method": PaymentMethod,
+ "transactions": Transactions,
+ }
+
+ countries: List[str]
+ """
+ The list of countries supported by this institution, formatted as ISO country codes.
+ """
+ features: Features
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ name: str
+ """
+ The name of this institution.
+ """
+ object: Literal["financial_connections.institution"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ routing_numbers: List[str]
+ """
+ A list of routing numbers which are known to correspond to this institution. Due to the many to many relationship between institutions and routing numbers, this list may not be comprehensive and routing numbers may also be shared between institutions.
+ """
+ status: Literal["active", "degraded", "inactive"]
+ """
+ The status of this institution in the Financial Connections authentication flow.
+ """
+ url: Optional[str]
+ """
+ A URL corresponding to this institution. This URL is also displayed in the authentication flow to help end users confirm that they are authenticating with the right institution.
+ """
+
+ @classmethod
+ def list(
+ cls, **params: Unpack["InstitutionListParams"]
+ ) -> ListObject["Institution"]:
+ """
+ Returns a list of Financial Connections Institution objects.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["InstitutionListParams"]
+ ) -> ListObject["Institution"]:
+ """
+ Returns a list of Financial Connections Institution objects.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["InstitutionRetrieveParams"]
+ ) -> "Institution":
+ """
+ Retrieves the details of a Financial Connections Institution.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["InstitutionRetrieveParams"]
+ ) -> "Institution":
+ """
+ Retrieves the details of a Financial Connections Institution.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ _inner_class_types = {"features": Features}
diff --git a/stripe/financial_connections/_institution_service.py b/stripe/financial_connections/_institution_service.py
new file mode 100644
index 000000000..fbc8c3054
--- /dev/null
+++ b/stripe/financial_connections/_institution_service.py
@@ -0,0 +1,101 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.financial_connections._institution import Institution
+ from stripe.params.financial_connections._institution_list_params import (
+ InstitutionListParams,
+ )
+ from stripe.params.financial_connections._institution_retrieve_params import (
+ InstitutionRetrieveParams,
+ )
+
+
+class InstitutionService(StripeService):
+ def list(
+ self,
+ params: Optional["InstitutionListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Institution]":
+ """
+ Returns a list of Financial Connections Institution objects.
+ """
+ return cast(
+ "ListObject[Institution]",
+ self._request(
+ "get",
+ "/v1/financial_connections/institutions",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["InstitutionListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Institution]":
+ """
+ Returns a list of Financial Connections Institution objects.
+ """
+ return cast(
+ "ListObject[Institution]",
+ await self._request_async(
+ "get",
+ "/v1/financial_connections/institutions",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ institution: str,
+ params: Optional["InstitutionRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Institution":
+ """
+ Retrieves the details of a Financial Connections Institution.
+ """
+ return cast(
+ "Institution",
+ self._request(
+ "get",
+ "/v1/financial_connections/institutions/{institution}".format(
+ institution=sanitize_id(institution),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ institution: str,
+ params: Optional["InstitutionRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Institution":
+ """
+ Retrieves the details of a Financial Connections Institution.
+ """
+ return cast(
+ "Institution",
+ await self._request_async(
+ "get",
+ "/v1/financial_connections/institutions/{institution}".format(
+ institution=sanitize_id(institution),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/financial_connections/_session.py b/stripe/financial_connections/_session.py
index c466897b2..e95b7f07c 100644
--- a/stripe/financial_connections/_session.py
+++ b/stripe/financial_connections/_session.py
@@ -64,6 +64,29 @@ class Filters(StripeObject):
"""
List of countries from which to filter accounts.
"""
+ institution: Optional[str]
+ """
+ Stripe ID of the institution with which the customer should be directed to log in.
+ """
+
+ class Limits(StripeObject):
+ accounts: int
+ """
+ The number of accounts that can be linked in this Session.
+ """
+
+ class ManualEntry(StripeObject):
+ pass
+
+ class StatusDetails(StripeObject):
+ class Cancelled(StripeObject):
+ reason: Literal["custom_manual_entry", "other"]
+ """
+ The reason for the Session being cancelled.
+ """
+
+ cancelled: Optional[Cancelled]
+ _inner_class_types = {"cancelled": Cancelled}
account_holder: Optional[AccountHolder]
"""
@@ -82,10 +105,12 @@ class Filters(StripeObject):
"""
Unique identifier for the object.
"""
+ limits: Optional[Limits]
livemode: bool
"""
Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
"""
+ manual_entry: Optional[ManualEntry]
object: Literal["financial_connections.session"]
"""
String representing the object's type. Objects of the same type share the same value.
@@ -96,7 +121,13 @@ class Filters(StripeObject):
"""
Permissions requested for accounts collected during this session.
"""
- prefetch: Optional[List[Literal["balances", "ownership", "transactions"]]]
+ prefetch: Optional[
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
+ ]
"""
Data features requested to be retrieved upon account creation.
"""
@@ -104,6 +135,11 @@ class Filters(StripeObject):
"""
For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
"""
+ status: Optional[Literal["cancelled", "failed", "pending", "succeeded"]]
+ """
+ The current state of the session.
+ """
+ status_details: Optional[StatusDetails]
@classmethod
def create(cls, **params: Unpack["SessionCreateParams"]) -> "Session":
@@ -157,4 +193,10 @@ async def retrieve_async(
await instance.refresh_async()
return instance
- _inner_class_types = {"account_holder": AccountHolder, "filters": Filters}
+ _inner_class_types = {
+ "account_holder": AccountHolder,
+ "filters": Filters,
+ "limits": Limits,
+ "manual_entry": ManualEntry,
+ "status_details": StatusDetails,
+ }
diff --git a/stripe/issuing/__init__.py b/stripe/issuing/__init__.py
index 1755c40fd..d26fff122 100644
--- a/stripe/issuing/__init__.py
+++ b/stripe/issuing/__init__.py
@@ -14,10 +14,28 @@
from stripe.issuing._cardholder_service import (
CardholderService as CardholderService,
)
+ from stripe.issuing._credit_underwriting_record import (
+ CreditUnderwritingRecord as CreditUnderwritingRecord,
+ )
+ from stripe.issuing._credit_underwriting_record_service import (
+ CreditUnderwritingRecordService as CreditUnderwritingRecordService,
+ )
from stripe.issuing._dispute import Dispute as Dispute
from stripe.issuing._dispute_service import (
DisputeService as DisputeService,
)
+ from stripe.issuing._dispute_settlement_detail import (
+ DisputeSettlementDetail as DisputeSettlementDetail,
+ )
+ from stripe.issuing._dispute_settlement_detail_service import (
+ DisputeSettlementDetailService as DisputeSettlementDetailService,
+ )
+ from stripe.issuing._fraud_liability_debit import (
+ FraudLiabilityDebit as FraudLiabilityDebit,
+ )
+ from stripe.issuing._fraud_liability_debit_service import (
+ FraudLiabilityDebitService as FraudLiabilityDebitService,
+ )
from stripe.issuing._personalization_design import (
PersonalizationDesign as PersonalizationDesign,
)
@@ -30,6 +48,7 @@
from stripe.issuing._physical_bundle_service import (
PhysicalBundleService as PhysicalBundleService,
)
+ from stripe.issuing._settlement import Settlement as Settlement
from stripe.issuing._token import Token as Token
from stripe.issuing._token_service import TokenService as TokenService
from stripe.issuing._transaction import Transaction as Transaction
@@ -45,8 +64,29 @@
"CardService": ("stripe.issuing._card_service", False),
"Cardholder": ("stripe.issuing._cardholder", False),
"CardholderService": ("stripe.issuing._cardholder_service", False),
+ "CreditUnderwritingRecord": (
+ "stripe.issuing._credit_underwriting_record",
+ False,
+ ),
+ "CreditUnderwritingRecordService": (
+ "stripe.issuing._credit_underwriting_record_service",
+ False,
+ ),
"Dispute": ("stripe.issuing._dispute", False),
"DisputeService": ("stripe.issuing._dispute_service", False),
+ "DisputeSettlementDetail": (
+ "stripe.issuing._dispute_settlement_detail",
+ False,
+ ),
+ "DisputeSettlementDetailService": (
+ "stripe.issuing._dispute_settlement_detail_service",
+ False,
+ ),
+ "FraudLiabilityDebit": ("stripe.issuing._fraud_liability_debit", False),
+ "FraudLiabilityDebitService": (
+ "stripe.issuing._fraud_liability_debit_service",
+ False,
+ ),
"PersonalizationDesign": ("stripe.issuing._personalization_design", False),
"PersonalizationDesignService": (
"stripe.issuing._personalization_design_service",
@@ -57,6 +97,7 @@
"stripe.issuing._physical_bundle_service",
False,
),
+ "Settlement": ("stripe.issuing._settlement", False),
"Token": ("stripe.issuing._token", False),
"TokenService": ("stripe.issuing._token_service", False),
"Transaction": ("stripe.issuing._transaction", False),
diff --git a/stripe/issuing/_credit_underwriting_record.py b/stripe/issuing/_credit_underwriting_record.py
new file mode 100644
index 000000000..1801bfbce
--- /dev/null
+++ b/stripe/issuing/_credit_underwriting_record.py
@@ -0,0 +1,821 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._stripe_object import StripeObject
+from stripe._util import class_method_variant, sanitize_id
+from typing import ClassVar, Dict, List, Optional, cast, overload
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.issuing._credit_underwriting_record_correct_params import (
+ CreditUnderwritingRecordCorrectParams,
+ )
+ from stripe.params.issuing._credit_underwriting_record_create_from_application_params import (
+ CreditUnderwritingRecordCreateFromApplicationParams,
+ )
+ from stripe.params.issuing._credit_underwriting_record_create_from_proactive_review_params import (
+ CreditUnderwritingRecordCreateFromProactiveReviewParams,
+ )
+ from stripe.params.issuing._credit_underwriting_record_list_params import (
+ CreditUnderwritingRecordListParams,
+ )
+ from stripe.params.issuing._credit_underwriting_record_report_decision_params import (
+ CreditUnderwritingRecordReportDecisionParams,
+ )
+ from stripe.params.issuing._credit_underwriting_record_retrieve_params import (
+ CreditUnderwritingRecordRetrieveParams,
+ )
+
+
+class CreditUnderwritingRecord(
+ ListableAPIResource["CreditUnderwritingRecord"]
+):
+ """
+ Every time an applicant submits an application for a Charge Card product your platform offers, or every time your platform takes a proactive credit decision on an existing account, you must record the decision by creating a new `CreditUnderwritingRecord` object on a connected account.
+
+ [Follow the guide](https://docs.stripe.com/issuing/credit/report-credit-decisions-and-manage-aans) to learn about your requirements as a platform.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["issuing.credit_underwriting_record"]] = (
+ "issuing.credit_underwriting_record"
+ )
+
+ class Application(StripeObject):
+ application_method: Literal["in_person", "mail", "online", "phone"]
+ """
+ The channel through which the applicant has submitted their application.
+ """
+ purpose: Literal["credit_limit_increase", "credit_line_opening"]
+ """
+ Scope of demand made by the applicant.
+ """
+ submitted_at: int
+ """
+ Date when the applicant submitted their application.
+ """
+
+ class CreditUser(StripeObject):
+ email: str
+ """
+ Email of the applicant or accountholder.
+ """
+ name: str
+ """
+ Full name of the company or person.
+ """
+
+ class Decision(StripeObject):
+ class ApplicationRejected(StripeObject):
+ reason_other_explanation: Optional[str]
+ """
+ Details about the `reasons.other` when present.
+ """
+ reasons: List[
+ Literal[
+ "applicant_is_not_beneficial_owner",
+ "applicant_too_young",
+ "application_is_not_beneficial_owner",
+ "bankruptcy",
+ "business_size_too_small",
+ "current_account_tier_ineligible",
+ "customer_already_exists",
+ "customer_requested_account_closure",
+ "debt_to_cash_balance_ratio_too_high",
+ "debt_to_equity_ratio_too_high",
+ "delinquent_credit_obligations",
+ "dispute_rate_too_high",
+ "duration_of_residence",
+ "excessive_income_or_revenue_obligations",
+ "expenses_to_cash_balance_ratio_too_high",
+ "foreclosure_or_repossession",
+ "frozen_file_at_credit_bureau",
+ "garnishment_or_attachment",
+ "government_loan_program_criteria",
+ "high_concentration_of_clients",
+ "high_risk_industry",
+ "incomplete_application",
+ "inconsistent_monthly_revenues",
+ "insufficient_account_history_with_platform",
+ "insufficient_bank_account_history",
+ "insufficient_cash_balance",
+ "insufficient_cash_flow",
+ "insufficient_collateral",
+ "insufficient_credit_experience",
+ "insufficient_deposits",
+ "insufficient_income",
+ "insufficient_margin_ratio",
+ "insufficient_operating_profit",
+ "insufficient_period_in_operation",
+ "insufficient_reserves",
+ "insufficient_revenue",
+ "insufficient_social_media_performance",
+ "insufficient_time_in_network",
+ "insufficient_trade_credit_insurance",
+ "invalid_business_license",
+ "lacking_cash_account",
+ "late_payment_history_reported_to_bureau",
+ "lien_collection_action_or_judgement",
+ "negative_public_information",
+ "no_credit_file",
+ "other",
+ "outside_supported_country",
+ "outside_supported_state",
+ "poor_payment_history_with_platform",
+ "prior_or_current_legal_action",
+ "prohibited_industry",
+ "rate_of_cash_balance_fluctuation_too_high",
+ "recent_inquiries_on_business_credit_report",
+ "removal_of_bank_account_connection",
+ "revenue_discrepancy",
+ "runway_too_short",
+ "suspected_fraud",
+ "too_many_non_sufficient_funds_or_overdrafts",
+ "unable_to_verify_address",
+ "unable_to_verify_identity",
+ "unable_to_verify_income_or_revenue",
+ "unprofitable",
+ "unsupportable_business_type",
+ ]
+ ]
+ """
+ List of reasons why the application was rejected up to 4 reasons, in order of importance.
+ """
+
+ class CreditLimitApproved(StripeObject):
+ amount: int
+ """
+ Credit amount approved. An approved credit limit is required before you can set a amount in the [CreditPolicy API](https://docs.stripe.com/api/issuing/credit_policy).
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+
+ class CreditLimitDecreased(StripeObject):
+ amount: int
+ """
+ Credit amount approved after decrease. An approved credit limit is required before you can set a amount in the [CreditPolicy API](https://docs.stripe.com/api/issuing/credit_policy).
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ reason_other_explanation: Optional[str]
+ """
+ Details about the `reasons.other` when present.
+ """
+ reasons: List[
+ Literal[
+ "applicant_is_not_beneficial_owner",
+ "applicant_too_young",
+ "application_is_not_beneficial_owner",
+ "bankruptcy",
+ "business_size_too_small",
+ "change_in_financial_state",
+ "change_in_utilization_of_credit_line",
+ "current_account_tier_ineligible",
+ "customer_already_exists",
+ "customer_requested_account_closure",
+ "debt_to_cash_balance_ratio_too_high",
+ "debt_to_equity_ratio_too_high",
+ "decrease_in_income_to_expense_ratio",
+ "decrease_in_social_media_performance",
+ "delinquent_credit_obligations",
+ "dispute_rate_too_high",
+ "duration_of_residence",
+ "exceeds_acceptable_platform_exposure",
+ "excessive_income_or_revenue_obligations",
+ "expenses_to_cash_balance_ratio_too_high",
+ "foreclosure_or_repossession",
+ "frozen_file_at_credit_bureau",
+ "garnishment_or_attachment",
+ "government_loan_program_criteria",
+ "has_recent_credit_limit_increase",
+ "high_concentration_of_clients",
+ "high_risk_industry",
+ "incomplete_application",
+ "inconsistent_monthly_revenues",
+ "insufficient_account_history_with_platform",
+ "insufficient_bank_account_history",
+ "insufficient_cash_balance",
+ "insufficient_cash_flow",
+ "insufficient_collateral",
+ "insufficient_credit_experience",
+ "insufficient_credit_utilization",
+ "insufficient_deposits",
+ "insufficient_income",
+ "insufficient_margin_ratio",
+ "insufficient_operating_profit",
+ "insufficient_period_in_operation",
+ "insufficient_reserves",
+ "insufficient_revenue",
+ "insufficient_social_media_performance",
+ "insufficient_time_in_network",
+ "insufficient_trade_credit_insurance",
+ "insufficient_usage_as_qualified_expenses",
+ "invalid_business_license",
+ "lacking_cash_account",
+ "late_payment_history_reported_to_bureau",
+ "lien_collection_action_or_judgement",
+ "negative_public_information",
+ "no_credit_file",
+ "other",
+ "outside_supported_country",
+ "outside_supported_state",
+ "poor_payment_history_with_platform",
+ "prior_or_current_legal_action",
+ "prohibited_industry",
+ "rate_of_cash_balance_fluctuation_too_high",
+ "recent_inquiries_on_business_credit_report",
+ "removal_of_bank_account_connection",
+ "revenue_discrepancy",
+ "runway_too_short",
+ "suspected_fraud",
+ "too_many_non_sufficient_funds_or_overdrafts",
+ "unable_to_verify_address",
+ "unable_to_verify_identity",
+ "unable_to_verify_income_or_revenue",
+ "unprofitable",
+ "unsupportable_business_type",
+ ]
+ ]
+ """
+ List of reasons why the existing credit was decreased, up to 4 reasons, in order of importance.
+ """
+
+ class CreditLineClosed(StripeObject):
+ reason_other_explanation: Optional[str]
+ """
+ Details about the `reasons.other` when present.
+ """
+ reasons: List[
+ Literal[
+ "applicant_is_not_beneficial_owner",
+ "applicant_too_young",
+ "application_is_not_beneficial_owner",
+ "bankruptcy",
+ "business_size_too_small",
+ "change_in_financial_state",
+ "change_in_utilization_of_credit_line",
+ "current_account_tier_ineligible",
+ "customer_already_exists",
+ "customer_requested_account_closure",
+ "debt_to_cash_balance_ratio_too_high",
+ "debt_to_equity_ratio_too_high",
+ "decrease_in_income_to_expense_ratio",
+ "decrease_in_social_media_performance",
+ "delinquent_credit_obligations",
+ "dispute_rate_too_high",
+ "duration_of_residence",
+ "exceeds_acceptable_platform_exposure",
+ "excessive_income_or_revenue_obligations",
+ "expenses_to_cash_balance_ratio_too_high",
+ "foreclosure_or_repossession",
+ "frozen_file_at_credit_bureau",
+ "garnishment_or_attachment",
+ "government_loan_program_criteria",
+ "has_recent_credit_limit_increase",
+ "high_concentration_of_clients",
+ "high_risk_industry",
+ "incomplete_application",
+ "inconsistent_monthly_revenues",
+ "insufficient_account_history_with_platform",
+ "insufficient_bank_account_history",
+ "insufficient_cash_balance",
+ "insufficient_cash_flow",
+ "insufficient_collateral",
+ "insufficient_credit_experience",
+ "insufficient_credit_utilization",
+ "insufficient_deposits",
+ "insufficient_income",
+ "insufficient_margin_ratio",
+ "insufficient_operating_profit",
+ "insufficient_period_in_operation",
+ "insufficient_reserves",
+ "insufficient_revenue",
+ "insufficient_social_media_performance",
+ "insufficient_time_in_network",
+ "insufficient_trade_credit_insurance",
+ "insufficient_usage_as_qualified_expenses",
+ "invalid_business_license",
+ "lacking_cash_account",
+ "late_payment_history_reported_to_bureau",
+ "lien_collection_action_or_judgement",
+ "negative_public_information",
+ "no_credit_file",
+ "other",
+ "outside_supported_country",
+ "outside_supported_state",
+ "poor_payment_history_with_platform",
+ "prior_or_current_legal_action",
+ "prohibited_industry",
+ "rate_of_cash_balance_fluctuation_too_high",
+ "recent_inquiries_on_business_credit_report",
+ "removal_of_bank_account_connection",
+ "revenue_discrepancy",
+ "runway_too_short",
+ "suspected_fraud",
+ "too_many_non_sufficient_funds_or_overdrafts",
+ "unable_to_verify_address",
+ "unable_to_verify_identity",
+ "unable_to_verify_income_or_revenue",
+ "unprofitable",
+ "unsupportable_business_type",
+ ]
+ ]
+ """
+ List of reasons why the existing account was closed, up to 4 reasons, in order of importance.
+ """
+
+ application_rejected: Optional[ApplicationRejected]
+ """
+ Details about a decision application_rejected.
+ """
+ credit_limit_approved: Optional[CreditLimitApproved]
+ """
+ Details about a decision credit_limit_approved.
+ """
+ credit_limit_decreased: Optional[CreditLimitDecreased]
+ """
+ Details about a decision credit_limit_decreased.
+ """
+ credit_line_closed: Optional[CreditLineClosed]
+ """
+ Details about a decision credit_line_closed.
+ """
+ type: Literal[
+ "additional_information_requested",
+ "application_rejected",
+ "credit_limit_approved",
+ "credit_limit_decreased",
+ "credit_line_closed",
+ "no_changes",
+ "withdrawn_by_applicant",
+ ]
+ """
+ Outcome of the decision.
+ """
+ _inner_class_types = {
+ "application_rejected": ApplicationRejected,
+ "credit_limit_approved": CreditLimitApproved,
+ "credit_limit_decreased": CreditLimitDecreased,
+ "credit_line_closed": CreditLineClosed,
+ }
+
+ class UnderwritingException(StripeObject):
+ explanation: str
+ """
+ Written explanation for the exception.
+ """
+ original_decision_type: Literal[
+ "additional_information_requested",
+ "application_rejected",
+ "credit_limit_approved",
+ "credit_limit_decreased",
+ "credit_line_closed",
+ "no_changes",
+ "withdrawn_by_applicant",
+ ]
+ """
+ The decision before the exception was applied.
+ """
+
+ application: Optional[Application]
+ """
+ For decisions triggered by an application, details about the submission.
+ """
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ created_from: Literal["application", "proactive_review"]
+ """
+ The event that triggered the underwriting.
+ """
+ credit_user: CreditUser
+ decided_at: Optional[int]
+ """
+ Date when a decision was made.
+ """
+ decision: Optional[Decision]
+ """
+ Details about the decision.
+ """
+ decision_deadline: Optional[int]
+ """
+ For underwriting initiated by an application, a decision must be taken 30 days after the submission.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ object: Literal["issuing.credit_underwriting_record"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ regulatory_reporting_file: Optional[str]
+ """
+ File containing regulatory reporting data for the decision. Required if you are subject to this [reporting requirement](https://docs.stripe.com/issuing/credit/report-required-regulatory-data-for-credit-decisions).
+ """
+ underwriting_exception: Optional[UnderwritingException]
+ """
+ If an exception to the usual underwriting criteria was made for this application, details about the exception must be provided. Exceptions should only be granted in rare circumstances, in consultation with Stripe Compliance.
+ """
+
+ @classmethod
+ def _cls_correct(
+ cls,
+ credit_underwriting_record: str,
+ **params: Unpack["CreditUnderwritingRecordCorrectParams"],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object to correct mistakes.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ cls._static_request(
+ "post",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/correct".format(
+ credit_underwriting_record=sanitize_id(
+ credit_underwriting_record
+ )
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def correct(
+ credit_underwriting_record: str,
+ **params: Unpack["CreditUnderwritingRecordCorrectParams"],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object to correct mistakes.
+ """
+ ...
+
+ @overload
+ def correct(
+ self, **params: Unpack["CreditUnderwritingRecordCorrectParams"]
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object to correct mistakes.
+ """
+ ...
+
+ @class_method_variant("_cls_correct")
+ def correct( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["CreditUnderwritingRecordCorrectParams"]
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object to correct mistakes.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ self._request(
+ "post",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/correct".format(
+ credit_underwriting_record=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_correct_async(
+ cls,
+ credit_underwriting_record: str,
+ **params: Unpack["CreditUnderwritingRecordCorrectParams"],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object to correct mistakes.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ await cls._static_request_async(
+ "post",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/correct".format(
+ credit_underwriting_record=sanitize_id(
+ credit_underwriting_record
+ )
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def correct_async(
+ credit_underwriting_record: str,
+ **params: Unpack["CreditUnderwritingRecordCorrectParams"],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object to correct mistakes.
+ """
+ ...
+
+ @overload
+ async def correct_async(
+ self, **params: Unpack["CreditUnderwritingRecordCorrectParams"]
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object to correct mistakes.
+ """
+ ...
+
+ @class_method_variant("_cls_correct_async")
+ async def correct_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["CreditUnderwritingRecordCorrectParams"]
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object to correct mistakes.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ await self._request_async(
+ "post",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/correct".format(
+ credit_underwriting_record=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def create_from_application(
+ cls,
+ **params: Unpack[
+ "CreditUnderwritingRecordCreateFromApplicationParams"
+ ],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Creates a CreditUnderwritingRecord object with information about a credit application submission.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ cls._static_request(
+ "post",
+ "/v1/issuing/credit_underwriting_records/create_from_application",
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def create_from_application_async(
+ cls,
+ **params: Unpack[
+ "CreditUnderwritingRecordCreateFromApplicationParams"
+ ],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Creates a CreditUnderwritingRecord object with information about a credit application submission.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ await cls._static_request_async(
+ "post",
+ "/v1/issuing/credit_underwriting_records/create_from_application",
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def create_from_proactive_review(
+ cls,
+ **params: Unpack[
+ "CreditUnderwritingRecordCreateFromProactiveReviewParams"
+ ],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Creates a CreditUnderwritingRecord object from an underwriting decision coming from a proactive review of an existing accountholder.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ cls._static_request(
+ "post",
+ "/v1/issuing/credit_underwriting_records/create_from_proactive_review",
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def create_from_proactive_review_async(
+ cls,
+ **params: Unpack[
+ "CreditUnderwritingRecordCreateFromProactiveReviewParams"
+ ],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Creates a CreditUnderwritingRecord object from an underwriting decision coming from a proactive review of an existing accountholder.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ await cls._static_request_async(
+ "post",
+ "/v1/issuing/credit_underwriting_records/create_from_proactive_review",
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def list(
+ cls, **params: Unpack["CreditUnderwritingRecordListParams"]
+ ) -> ListObject["CreditUnderwritingRecord"]:
+ """
+ Retrieves a list of CreditUnderwritingRecord objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["CreditUnderwritingRecordListParams"]
+ ) -> ListObject["CreditUnderwritingRecord"]:
+ """
+ Retrieves a list of CreditUnderwritingRecord objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def _cls_report_decision(
+ cls,
+ credit_underwriting_record: str,
+ **params: Unpack["CreditUnderwritingRecordReportDecisionParams"],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object from a decision made on a credit application.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ cls._static_request(
+ "post",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/report_decision".format(
+ credit_underwriting_record=sanitize_id(
+ credit_underwriting_record
+ )
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def report_decision(
+ credit_underwriting_record: str,
+ **params: Unpack["CreditUnderwritingRecordReportDecisionParams"],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object from a decision made on a credit application.
+ """
+ ...
+
+ @overload
+ def report_decision(
+ self, **params: Unpack["CreditUnderwritingRecordReportDecisionParams"]
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object from a decision made on a credit application.
+ """
+ ...
+
+ @class_method_variant("_cls_report_decision")
+ def report_decision( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["CreditUnderwritingRecordReportDecisionParams"]
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object from a decision made on a credit application.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ self._request(
+ "post",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/report_decision".format(
+ credit_underwriting_record=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_report_decision_async(
+ cls,
+ credit_underwriting_record: str,
+ **params: Unpack["CreditUnderwritingRecordReportDecisionParams"],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object from a decision made on a credit application.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ await cls._static_request_async(
+ "post",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/report_decision".format(
+ credit_underwriting_record=sanitize_id(
+ credit_underwriting_record
+ )
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def report_decision_async(
+ credit_underwriting_record: str,
+ **params: Unpack["CreditUnderwritingRecordReportDecisionParams"],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object from a decision made on a credit application.
+ """
+ ...
+
+ @overload
+ async def report_decision_async(
+ self, **params: Unpack["CreditUnderwritingRecordReportDecisionParams"]
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object from a decision made on a credit application.
+ """
+ ...
+
+ @class_method_variant("_cls_report_decision_async")
+ async def report_decision_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["CreditUnderwritingRecordReportDecisionParams"]
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object from a decision made on a credit application.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ await self._request_async(
+ "post",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/report_decision".format(
+ credit_underwriting_record=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def retrieve(
+ cls,
+ id: str,
+ **params: Unpack["CreditUnderwritingRecordRetrieveParams"],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Retrieves a CreditUnderwritingRecord object.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls,
+ id: str,
+ **params: Unpack["CreditUnderwritingRecordRetrieveParams"],
+ ) -> "CreditUnderwritingRecord":
+ """
+ Retrieves a CreditUnderwritingRecord object.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ _inner_class_types = {
+ "application": Application,
+ "credit_user": CreditUser,
+ "decision": Decision,
+ "underwriting_exception": UnderwritingException,
+ }
diff --git a/stripe/issuing/_credit_underwriting_record_service.py b/stripe/issuing/_credit_underwriting_record_service.py
new file mode 100644
index 000000000..b67767b2a
--- /dev/null
+++ b/stripe/issuing/_credit_underwriting_record_service.py
@@ -0,0 +1,291 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.issuing._credit_underwriting_record import (
+ CreditUnderwritingRecord,
+ )
+ from stripe.params.issuing._credit_underwriting_record_correct_params import (
+ CreditUnderwritingRecordCorrectParams,
+ )
+ from stripe.params.issuing._credit_underwriting_record_create_from_application_params import (
+ CreditUnderwritingRecordCreateFromApplicationParams,
+ )
+ from stripe.params.issuing._credit_underwriting_record_create_from_proactive_review_params import (
+ CreditUnderwritingRecordCreateFromProactiveReviewParams,
+ )
+ from stripe.params.issuing._credit_underwriting_record_list_params import (
+ CreditUnderwritingRecordListParams,
+ )
+ from stripe.params.issuing._credit_underwriting_record_report_decision_params import (
+ CreditUnderwritingRecordReportDecisionParams,
+ )
+ from stripe.params.issuing._credit_underwriting_record_retrieve_params import (
+ CreditUnderwritingRecordRetrieveParams,
+ )
+
+
+class CreditUnderwritingRecordService(StripeService):
+ def list(
+ self,
+ params: Optional["CreditUnderwritingRecordListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[CreditUnderwritingRecord]":
+ """
+ Retrieves a list of CreditUnderwritingRecord objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
+ """
+ return cast(
+ "ListObject[CreditUnderwritingRecord]",
+ self._request(
+ "get",
+ "/v1/issuing/credit_underwriting_records",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["CreditUnderwritingRecordListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[CreditUnderwritingRecord]":
+ """
+ Retrieves a list of CreditUnderwritingRecord objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
+ """
+ return cast(
+ "ListObject[CreditUnderwritingRecord]",
+ await self._request_async(
+ "get",
+ "/v1/issuing/credit_underwriting_records",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ credit_underwriting_record: str,
+ params: Optional["CreditUnderwritingRecordRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "CreditUnderwritingRecord":
+ """
+ Retrieves a CreditUnderwritingRecord object.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ self._request(
+ "get",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}".format(
+ credit_underwriting_record=sanitize_id(
+ credit_underwriting_record
+ ),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ credit_underwriting_record: str,
+ params: Optional["CreditUnderwritingRecordRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "CreditUnderwritingRecord":
+ """
+ Retrieves a CreditUnderwritingRecord object.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ await self._request_async(
+ "get",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}".format(
+ credit_underwriting_record=sanitize_id(
+ credit_underwriting_record
+ ),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def correct(
+ self,
+ credit_underwriting_record: str,
+ params: Optional["CreditUnderwritingRecordCorrectParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object to correct mistakes.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ self._request(
+ "post",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/correct".format(
+ credit_underwriting_record=sanitize_id(
+ credit_underwriting_record
+ ),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def correct_async(
+ self,
+ credit_underwriting_record: str,
+ params: Optional["CreditUnderwritingRecordCorrectParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object to correct mistakes.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ await self._request_async(
+ "post",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/correct".format(
+ credit_underwriting_record=sanitize_id(
+ credit_underwriting_record
+ ),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def report_decision(
+ self,
+ credit_underwriting_record: str,
+ params: "CreditUnderwritingRecordReportDecisionParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object from a decision made on a credit application.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ self._request(
+ "post",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/report_decision".format(
+ credit_underwriting_record=sanitize_id(
+ credit_underwriting_record
+ ),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def report_decision_async(
+ self,
+ credit_underwriting_record: str,
+ params: "CreditUnderwritingRecordReportDecisionParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "CreditUnderwritingRecord":
+ """
+ Update a CreditUnderwritingRecord object from a decision made on a credit application.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ await self._request_async(
+ "post",
+ "/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/report_decision".format(
+ credit_underwriting_record=sanitize_id(
+ credit_underwriting_record
+ ),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create_from_application(
+ self,
+ params: "CreditUnderwritingRecordCreateFromApplicationParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "CreditUnderwritingRecord":
+ """
+ Creates a CreditUnderwritingRecord object with information about a credit application submission.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ self._request(
+ "post",
+ "/v1/issuing/credit_underwriting_records/create_from_application",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_from_application_async(
+ self,
+ params: "CreditUnderwritingRecordCreateFromApplicationParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "CreditUnderwritingRecord":
+ """
+ Creates a CreditUnderwritingRecord object with information about a credit application submission.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ await self._request_async(
+ "post",
+ "/v1/issuing/credit_underwriting_records/create_from_application",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create_from_proactive_review(
+ self,
+ params: "CreditUnderwritingRecordCreateFromProactiveReviewParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "CreditUnderwritingRecord":
+ """
+ Creates a CreditUnderwritingRecord object from an underwriting decision coming from a proactive review of an existing accountholder.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ self._request(
+ "post",
+ "/v1/issuing/credit_underwriting_records/create_from_proactive_review",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_from_proactive_review_async(
+ self,
+ params: "CreditUnderwritingRecordCreateFromProactiveReviewParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "CreditUnderwritingRecord":
+ """
+ Creates a CreditUnderwritingRecord object from an underwriting decision coming from a proactive review of an existing accountholder.
+ """
+ return cast(
+ "CreditUnderwritingRecord",
+ await self._request_async(
+ "post",
+ "/v1/issuing/credit_underwriting_records/create_from_proactive_review",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/issuing/_dispute_settlement_detail.py b/stripe/issuing/_dispute_settlement_detail.py
new file mode 100644
index 000000000..c94626545
--- /dev/null
+++ b/stripe/issuing/_dispute_settlement_detail.py
@@ -0,0 +1,144 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.issuing._dispute_settlement_detail_list_params import (
+ DisputeSettlementDetailListParams,
+ )
+ from stripe.params.issuing._dispute_settlement_detail_retrieve_params import (
+ DisputeSettlementDetailRetrieveParams,
+ )
+
+
+class DisputeSettlementDetail(ListableAPIResource["DisputeSettlementDetail"]):
+ """
+ Represents a record from the card network of a money movement or change in state for an Issuing dispute. These records are included in the settlement reports that we receive from networks and expose to users as Settlement objects.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["issuing.dispute_settlement_detail"]] = (
+ "issuing.dispute_settlement_detail"
+ )
+
+ class NetworkData(StripeObject):
+ processing_date: Optional[str]
+ """
+ The date the transaction was processed by the card network. This can be different from the date the seller recorded the transaction depending on when the acquirer submits the transaction to the network.
+ """
+
+ amount: int
+ """
+ Disputed amount in the card's currency and in the smallest currency unit. Usually the amount of the transaction, but can differ (usually because of currency fluctuation).
+ """
+ card: str
+ """
+ The card used to make the original transaction.
+ """
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ currency: str
+ """
+ The currency the original transaction was made in. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ dispute: str
+ """
+ The ID of the linked dispute.
+ """
+ event_type: Literal["filing", "loss", "representment", "win"]
+ """
+ The type of event corresponding to this dispute settlement detail, representing the stage in the dispute network lifecycle.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ network: Literal["maestro", "mastercard", "visa"]
+ """
+ The card network for this dispute settlement detail. One of ["visa", "mastercard", "maestro"]
+ """
+ network_data: Optional[NetworkData]
+ """
+ Details about the transaction, such as processing dates, set by the card network.
+ """
+ object: Literal["issuing.dispute_settlement_detail"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ settlement: Optional[str]
+ """
+ The ID of the linked card network settlement.
+ """
+
+ @classmethod
+ def list(
+ cls, **params: Unpack["DisputeSettlementDetailListParams"]
+ ) -> ListObject["DisputeSettlementDetail"]:
+ """
+ Returns a list of Issuing DisputeSettlementDetail objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["DisputeSettlementDetailListParams"]
+ ) -> ListObject["DisputeSettlementDetail"]:
+ """
+ Returns a list of Issuing DisputeSettlementDetail objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["DisputeSettlementDetailRetrieveParams"]
+ ) -> "DisputeSettlementDetail":
+ """
+ Retrieves an Issuing DisputeSettlementDetail object.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["DisputeSettlementDetailRetrieveParams"]
+ ) -> "DisputeSettlementDetail":
+ """
+ Retrieves an Issuing DisputeSettlementDetail object.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ _inner_class_types = {"network_data": NetworkData}
diff --git a/stripe/issuing/_dispute_settlement_detail_service.py b/stripe/issuing/_dispute_settlement_detail_service.py
new file mode 100644
index 000000000..792a52fed
--- /dev/null
+++ b/stripe/issuing/_dispute_settlement_detail_service.py
@@ -0,0 +1,107 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.issuing._dispute_settlement_detail import (
+ DisputeSettlementDetail,
+ )
+ from stripe.params.issuing._dispute_settlement_detail_list_params import (
+ DisputeSettlementDetailListParams,
+ )
+ from stripe.params.issuing._dispute_settlement_detail_retrieve_params import (
+ DisputeSettlementDetailRetrieveParams,
+ )
+
+
+class DisputeSettlementDetailService(StripeService):
+ def list(
+ self,
+ params: Optional["DisputeSettlementDetailListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[DisputeSettlementDetail]":
+ """
+ Returns a list of Issuing DisputeSettlementDetail objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
+ """
+ return cast(
+ "ListObject[DisputeSettlementDetail]",
+ self._request(
+ "get",
+ "/v1/issuing/dispute_settlement_details",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["DisputeSettlementDetailListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[DisputeSettlementDetail]":
+ """
+ Returns a list of Issuing DisputeSettlementDetail objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
+ """
+ return cast(
+ "ListObject[DisputeSettlementDetail]",
+ await self._request_async(
+ "get",
+ "/v1/issuing/dispute_settlement_details",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ dispute_settlement_detail: str,
+ params: Optional["DisputeSettlementDetailRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "DisputeSettlementDetail":
+ """
+ Retrieves an Issuing DisputeSettlementDetail object.
+ """
+ return cast(
+ "DisputeSettlementDetail",
+ self._request(
+ "get",
+ "/v1/issuing/dispute_settlement_details/{dispute_settlement_detail}".format(
+ dispute_settlement_detail=sanitize_id(
+ dispute_settlement_detail
+ ),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ dispute_settlement_detail: str,
+ params: Optional["DisputeSettlementDetailRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "DisputeSettlementDetail":
+ """
+ Retrieves an Issuing DisputeSettlementDetail object.
+ """
+ return cast(
+ "DisputeSettlementDetail",
+ await self._request_async(
+ "get",
+ "/v1/issuing/dispute_settlement_details/{dispute_settlement_detail}".format(
+ dispute_settlement_detail=sanitize_id(
+ dispute_settlement_detail
+ ),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/issuing/_fraud_liability_debit.py b/stripe/issuing/_fraud_liability_debit.py
new file mode 100644
index 000000000..8e9f8387a
--- /dev/null
+++ b/stripe/issuing/_fraud_liability_debit.py
@@ -0,0 +1,120 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._expandable_field import ExpandableField
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from typing import ClassVar, Optional
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._balance_transaction import BalanceTransaction
+ from stripe.params.issuing._fraud_liability_debit_list_params import (
+ FraudLiabilityDebitListParams,
+ )
+ from stripe.params.issuing._fraud_liability_debit_retrieve_params import (
+ FraudLiabilityDebitRetrieveParams,
+ )
+
+
+class FraudLiabilityDebit(ListableAPIResource["FraudLiabilityDebit"]):
+ """
+ A fraud liability debit occurs when Stripe debits a platform's account for fraud losses on Issuing transactions.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["issuing.fraud_liability_debit"]] = (
+ "issuing.fraud_liability_debit"
+ )
+ amount: int
+ """
+ Debited amount. This is equal to the disputed amount and is given in the card's currency and in the smallest currency unit.
+ """
+ balance_transaction: Optional[ExpandableField["BalanceTransaction"]]
+ """
+ ID of the [balance transaction](https://docs.stripe.com/api/balance_transactions) associated with this debit.
+ """
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ currency: str
+ """
+ The currency of the debit. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ dispute: str
+ """
+ The ID of the linked dispute.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["issuing.fraud_liability_debit"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+
+ @classmethod
+ def list(
+ cls, **params: Unpack["FraudLiabilityDebitListParams"]
+ ) -> ListObject["FraudLiabilityDebit"]:
+ """
+ Returns a list of Issuing FraudLiabilityDebit objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["FraudLiabilityDebitListParams"]
+ ) -> ListObject["FraudLiabilityDebit"]:
+ """
+ Returns a list of Issuing FraudLiabilityDebit objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["FraudLiabilityDebitRetrieveParams"]
+ ) -> "FraudLiabilityDebit":
+ """
+ Retrieves an Issuing FraudLiabilityDebit object.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["FraudLiabilityDebitRetrieveParams"]
+ ) -> "FraudLiabilityDebit":
+ """
+ Retrieves an Issuing FraudLiabilityDebit object.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
diff --git a/stripe/issuing/_fraud_liability_debit_service.py b/stripe/issuing/_fraud_liability_debit_service.py
new file mode 100644
index 000000000..542c492fd
--- /dev/null
+++ b/stripe/issuing/_fraud_liability_debit_service.py
@@ -0,0 +1,101 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.issuing._fraud_liability_debit import FraudLiabilityDebit
+ from stripe.params.issuing._fraud_liability_debit_list_params import (
+ FraudLiabilityDebitListParams,
+ )
+ from stripe.params.issuing._fraud_liability_debit_retrieve_params import (
+ FraudLiabilityDebitRetrieveParams,
+ )
+
+
+class FraudLiabilityDebitService(StripeService):
+ def list(
+ self,
+ params: Optional["FraudLiabilityDebitListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FraudLiabilityDebit]":
+ """
+ Returns a list of Issuing FraudLiabilityDebit objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
+ """
+ return cast(
+ "ListObject[FraudLiabilityDebit]",
+ self._request(
+ "get",
+ "/v1/issuing/fraud_liability_debits",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["FraudLiabilityDebitListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FraudLiabilityDebit]":
+ """
+ Returns a list of Issuing FraudLiabilityDebit objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
+ """
+ return cast(
+ "ListObject[FraudLiabilityDebit]",
+ await self._request_async(
+ "get",
+ "/v1/issuing/fraud_liability_debits",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ fraud_liability_debit: str,
+ params: Optional["FraudLiabilityDebitRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FraudLiabilityDebit":
+ """
+ Retrieves an Issuing FraudLiabilityDebit object.
+ """
+ return cast(
+ "FraudLiabilityDebit",
+ self._request(
+ "get",
+ "/v1/issuing/fraud_liability_debits/{fraud_liability_debit}".format(
+ fraud_liability_debit=sanitize_id(fraud_liability_debit),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ fraud_liability_debit: str,
+ params: Optional["FraudLiabilityDebitRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FraudLiabilityDebit":
+ """
+ Retrieves an Issuing FraudLiabilityDebit object.
+ """
+ return cast(
+ "FraudLiabilityDebit",
+ await self._request_async(
+ "get",
+ "/v1/issuing/fraud_liability_debits/{fraud_liability_debit}".format(
+ fraud_liability_debit=sanitize_id(fraud_liability_debit),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/issuing/_settlement.py b/stripe/issuing/_settlement.py
new file mode 100644
index 000000000..f04f49639
--- /dev/null
+++ b/stripe/issuing/_settlement.py
@@ -0,0 +1,89 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, Optional
+from typing_extensions import Literal
+
+
+class Settlement(StripeObject):
+ """
+ When a non-stripe BIN is used, any use of an [issued card](https://docs.stripe.com/issuing) must be settled directly with the card network. The net amount owed is represented by an Issuing `Settlement` object.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["issuing.settlement"]] = "issuing.settlement"
+ bin: str
+ """
+ The Bank Identification Number reflecting this settlement record.
+ """
+ clearing_date: int
+ """
+ The date that the transactions are cleared and posted to user's accounts.
+ """
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ interchange_fees_amount: int
+ """
+ The total interchange received as reimbursement for the transactions.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Dict[str, str]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ net_total_amount: int
+ """
+ The total net amount required to settle with the network.
+ """
+ network: Literal["maestro", "visa"]
+ """
+ The card network for this settlement report. One of ["visa", "maestro"]
+ """
+ network_fees_amount: int
+ """
+ The total amount of fees owed to the network.
+ """
+ network_settlement_identifier: str
+ """
+ The Settlement Identification Number assigned by the network.
+ """
+ object: Literal["issuing.settlement"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ other_fees_amount: Optional[int]
+ """
+ The total amount of any additional fees assessed by the card network.
+ """
+ other_fees_count: Optional[int]
+ """
+ The total number of additional fees assessed by the card network.
+ """
+ settlement_service: str
+ """
+ One of `international` or `uk_national_net`.
+ """
+ status: Literal["complete", "pending"]
+ """
+ The current processing status of this settlement.
+ """
+ transaction_amount: int
+ """
+ The total transaction amount reflected in this settlement.
+ """
+ transaction_count: int
+ """
+ The total number of transactions reflected in this settlement.
+ """
diff --git a/stripe/issuing/_transaction.py b/stripe/issuing/_transaction.py
index c5b3dff39..429f7e24b 100644
--- a/stripe/issuing/_transaction.py
+++ b/stripe/issuing/_transaction.py
@@ -16,6 +16,7 @@
from stripe.issuing._card import Card
from stripe.issuing._cardholder import Cardholder
from stripe.issuing._dispute import Dispute
+ from stripe.issuing._settlement import Settlement
from stripe.issuing._token import Token
from stripe.params.issuing._transaction_create_force_capture_params import (
TransactionCreateForceCaptureParams,
@@ -419,6 +420,10 @@ class Treasury(StripeObject):
"""
Additional purchase information that is optionally provided by the merchant.
"""
+ settlement: Optional[ExpandableField["Settlement"]]
+ """
+ The ID of the [settlement](https://docs.stripe.com/api/issuing/settlements) to which this transaction belongs.
+ """
token: Optional[ExpandableField["Token"]]
"""
[Token](https://docs.stripe.com/api/issuing/tokens/object) object used for this transaction. If a network token was not used for this transaction, this field will be null.
diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py
index c1740f278..5fbab3865 100644
--- a/stripe/params/__init__.py
+++ b/stripe/params/__init__.py
@@ -8,6 +8,7 @@
apps as apps,
billing as billing,
billing_portal as billing_portal,
+ capital as capital,
checkout as checkout,
climate as climate,
entitlements as entitlements,
@@ -15,8 +16,10 @@
forwarding as forwarding,
identity as identity,
issuing as issuing,
+ privacy as privacy,
radar as radar,
reporting as reporting,
+ reserve as reserve,
sigma as sigma,
tax as tax,
terminal as terminal,
@@ -55,6 +58,7 @@
AccountCreateParamsCapabilitiesAlmaPayments as AccountCreateParamsCapabilitiesAlmaPayments,
AccountCreateParamsCapabilitiesAmazonPayPayments as AccountCreateParamsCapabilitiesAmazonPayPayments,
AccountCreateParamsCapabilitiesAuBecsDebitPayments as AccountCreateParamsCapabilitiesAuBecsDebitPayments,
+ AccountCreateParamsCapabilitiesAutomaticIndirectTax as AccountCreateParamsCapabilitiesAutomaticIndirectTax,
AccountCreateParamsCapabilitiesBacsDebitPayments as AccountCreateParamsCapabilitiesBacsDebitPayments,
AccountCreateParamsCapabilitiesBancontactPayments as AccountCreateParamsCapabilitiesBancontactPayments,
AccountCreateParamsCapabilitiesBankTransferPayments as AccountCreateParamsCapabilitiesBankTransferPayments,
@@ -70,7 +74,10 @@
AccountCreateParamsCapabilitiesFpxPayments as AccountCreateParamsCapabilitiesFpxPayments,
AccountCreateParamsCapabilitiesGbBankTransferPayments as AccountCreateParamsCapabilitiesGbBankTransferPayments,
AccountCreateParamsCapabilitiesGiropayPayments as AccountCreateParamsCapabilitiesGiropayPayments,
+ AccountCreateParamsCapabilitiesGopayPayments as AccountCreateParamsCapabilitiesGopayPayments,
AccountCreateParamsCapabilitiesGrabpayPayments as AccountCreateParamsCapabilitiesGrabpayPayments,
+ AccountCreateParamsCapabilitiesIdBankTransferPayments as AccountCreateParamsCapabilitiesIdBankTransferPayments,
+ AccountCreateParamsCapabilitiesIdBankTransferPaymentsBca as AccountCreateParamsCapabilitiesIdBankTransferPaymentsBca,
AccountCreateParamsCapabilitiesIdealPayments as AccountCreateParamsCapabilitiesIdealPayments,
AccountCreateParamsCapabilitiesIndiaInternationalPayments as AccountCreateParamsCapabilitiesIndiaInternationalPayments,
AccountCreateParamsCapabilitiesJcbPayments as AccountCreateParamsCapabilitiesJcbPayments,
@@ -92,20 +99,29 @@
AccountCreateParamsCapabilitiesPayByBankPayments as AccountCreateParamsCapabilitiesPayByBankPayments,
AccountCreateParamsCapabilitiesPaycoPayments as AccountCreateParamsCapabilitiesPaycoPayments,
AccountCreateParamsCapabilitiesPaynowPayments as AccountCreateParamsCapabilitiesPaynowPayments,
+ AccountCreateParamsCapabilitiesPaypalPayments as AccountCreateParamsCapabilitiesPaypalPayments,
+ AccountCreateParamsCapabilitiesPaypayPayments as AccountCreateParamsCapabilitiesPaypayPayments,
AccountCreateParamsCapabilitiesPaytoPayments as AccountCreateParamsCapabilitiesPaytoPayments,
AccountCreateParamsCapabilitiesPixPayments as AccountCreateParamsCapabilitiesPixPayments,
AccountCreateParamsCapabilitiesPromptpayPayments as AccountCreateParamsCapabilitiesPromptpayPayments,
+ AccountCreateParamsCapabilitiesQrisPayments as AccountCreateParamsCapabilitiesQrisPayments,
+ AccountCreateParamsCapabilitiesRechnungPayments as AccountCreateParamsCapabilitiesRechnungPayments,
AccountCreateParamsCapabilitiesRevolutPayPayments as AccountCreateParamsCapabilitiesRevolutPayPayments,
AccountCreateParamsCapabilitiesSamsungPayPayments as AccountCreateParamsCapabilitiesSamsungPayPayments,
AccountCreateParamsCapabilitiesSatispayPayments as AccountCreateParamsCapabilitiesSatispayPayments,
AccountCreateParamsCapabilitiesSepaBankTransferPayments as AccountCreateParamsCapabilitiesSepaBankTransferPayments,
AccountCreateParamsCapabilitiesSepaDebitPayments as AccountCreateParamsCapabilitiesSepaDebitPayments,
+ AccountCreateParamsCapabilitiesShopeepayPayments as AccountCreateParamsCapabilitiesShopeepayPayments,
AccountCreateParamsCapabilitiesSofortPayments as AccountCreateParamsCapabilitiesSofortPayments,
+ AccountCreateParamsCapabilitiesStripeBalancePayments as AccountCreateParamsCapabilitiesStripeBalancePayments,
AccountCreateParamsCapabilitiesSwishPayments as AccountCreateParamsCapabilitiesSwishPayments,
AccountCreateParamsCapabilitiesTaxReportingUs1099K as AccountCreateParamsCapabilitiesTaxReportingUs1099K,
AccountCreateParamsCapabilitiesTaxReportingUs1099Misc as AccountCreateParamsCapabilitiesTaxReportingUs1099Misc,
AccountCreateParamsCapabilitiesTransfers as AccountCreateParamsCapabilitiesTransfers,
AccountCreateParamsCapabilitiesTreasury as AccountCreateParamsCapabilitiesTreasury,
+ AccountCreateParamsCapabilitiesTreasuryEvolve as AccountCreateParamsCapabilitiesTreasuryEvolve,
+ AccountCreateParamsCapabilitiesTreasuryFifthThird as AccountCreateParamsCapabilitiesTreasuryFifthThird,
+ AccountCreateParamsCapabilitiesTreasuryGoldmanSachs as AccountCreateParamsCapabilitiesTreasuryGoldmanSachs,
AccountCreateParamsCapabilitiesTwintPayments as AccountCreateParamsCapabilitiesTwintPayments,
AccountCreateParamsCapabilitiesUsBankAccountAchPayments as AccountCreateParamsCapabilitiesUsBankAccountAchPayments,
AccountCreateParamsCapabilitiesUsBankTransferPayments as AccountCreateParamsCapabilitiesUsBankTransferPayments,
@@ -123,6 +139,8 @@
AccountCreateParamsCompanyVerification as AccountCreateParamsCompanyVerification,
AccountCreateParamsCompanyVerificationDocument as AccountCreateParamsCompanyVerificationDocument,
AccountCreateParamsController as AccountCreateParamsController,
+ AccountCreateParamsControllerApplication as AccountCreateParamsControllerApplication,
+ AccountCreateParamsControllerDashboard as AccountCreateParamsControllerDashboard,
AccountCreateParamsControllerFees as AccountCreateParamsControllerFees,
AccountCreateParamsControllerLosses as AccountCreateParamsControllerLosses,
AccountCreateParamsControllerStripeDashboard as AccountCreateParamsControllerStripeDashboard,
@@ -149,9 +167,14 @@
AccountCreateParamsIndividualVerification as AccountCreateParamsIndividualVerification,
AccountCreateParamsIndividualVerificationAdditionalDocument as AccountCreateParamsIndividualVerificationAdditionalDocument,
AccountCreateParamsIndividualVerificationDocument as AccountCreateParamsIndividualVerificationDocument,
+ AccountCreateParamsRiskControls as AccountCreateParamsRiskControls,
+ AccountCreateParamsRiskControlsCharges as AccountCreateParamsRiskControlsCharges,
+ AccountCreateParamsRiskControlsPayouts as AccountCreateParamsRiskControlsPayouts,
AccountCreateParamsSettings as AccountCreateParamsSettings,
AccountCreateParamsSettingsBacsDebitPayments as AccountCreateParamsSettingsBacsDebitPayments,
+ AccountCreateParamsSettingsBankBcaOnboarding as AccountCreateParamsSettingsBankBcaOnboarding,
AccountCreateParamsSettingsBranding as AccountCreateParamsSettingsBranding,
+ AccountCreateParamsSettingsCapital as AccountCreateParamsSettingsCapital,
AccountCreateParamsSettingsCardIssuing as AccountCreateParamsSettingsCardIssuing,
AccountCreateParamsSettingsCardIssuingTosAcceptance as AccountCreateParamsSettingsCardIssuingTosAcceptance,
AccountCreateParamsSettingsCardPayments as AccountCreateParamsSettingsCardPayments,
@@ -160,6 +183,8 @@
AccountCreateParamsSettingsPayments as AccountCreateParamsSettingsPayments,
AccountCreateParamsSettingsPayouts as AccountCreateParamsSettingsPayouts,
AccountCreateParamsSettingsPayoutsSchedule as AccountCreateParamsSettingsPayoutsSchedule,
+ AccountCreateParamsSettingsPaypayPayments as AccountCreateParamsSettingsPaypayPayments,
+ AccountCreateParamsSettingsTaxForms as AccountCreateParamsSettingsTaxForms,
AccountCreateParamsSettingsTreasury as AccountCreateParamsSettingsTreasury,
AccountCreateParamsSettingsTreasuryTosAcceptance as AccountCreateParamsSettingsTreasuryTosAcceptance,
AccountCreateParamsTosAcceptance as AccountCreateParamsTosAcceptance,
@@ -264,6 +289,20 @@
AccountModifyPersonParamsVerificationAdditionalDocument as AccountModifyPersonParamsVerificationAdditionalDocument,
AccountModifyPersonParamsVerificationDocument as AccountModifyPersonParamsVerificationDocument,
)
+ from stripe.params._account_notice_list_params import (
+ AccountNoticeListParams as AccountNoticeListParams,
+ )
+ from stripe.params._account_notice_modify_params import (
+ AccountNoticeModifyParams as AccountNoticeModifyParams,
+ AccountNoticeModifyParamsEmail as AccountNoticeModifyParamsEmail,
+ )
+ from stripe.params._account_notice_retrieve_params import (
+ AccountNoticeRetrieveParams as AccountNoticeRetrieveParams,
+ )
+ from stripe.params._account_notice_update_params import (
+ AccountNoticeUpdateParams as AccountNoticeUpdateParams,
+ AccountNoticeUpdateParamsEmail as AccountNoticeUpdateParamsEmail,
+ )
from stripe.params._account_person_create_params import (
AccountPersonCreateParams as AccountPersonCreateParams,
AccountPersonCreateParamsAdditionalTosAcceptances as AccountPersonCreateParamsAdditionalTosAcceptances,
@@ -345,12 +384,26 @@
AccountSessionCreateParamsComponentsAccountManagementFeatures as AccountSessionCreateParamsComponentsAccountManagementFeatures,
AccountSessionCreateParamsComponentsAccountOnboarding as AccountSessionCreateParamsComponentsAccountOnboarding,
AccountSessionCreateParamsComponentsAccountOnboardingFeatures as AccountSessionCreateParamsComponentsAccountOnboardingFeatures,
+ AccountSessionCreateParamsComponentsAppInstall as AccountSessionCreateParamsComponentsAppInstall,
+ AccountSessionCreateParamsComponentsAppInstallFeatures as AccountSessionCreateParamsComponentsAppInstallFeatures,
+ AccountSessionCreateParamsComponentsAppViewport as AccountSessionCreateParamsComponentsAppViewport,
+ AccountSessionCreateParamsComponentsAppViewportFeatures as AccountSessionCreateParamsComponentsAppViewportFeatures,
AccountSessionCreateParamsComponentsBalances as AccountSessionCreateParamsComponentsBalances,
AccountSessionCreateParamsComponentsBalancesFeatures as AccountSessionCreateParamsComponentsBalancesFeatures,
+ AccountSessionCreateParamsComponentsCapitalFinancing as AccountSessionCreateParamsComponentsCapitalFinancing,
+ AccountSessionCreateParamsComponentsCapitalFinancingApplication as AccountSessionCreateParamsComponentsCapitalFinancingApplication,
+ AccountSessionCreateParamsComponentsCapitalFinancingApplicationFeatures as AccountSessionCreateParamsComponentsCapitalFinancingApplicationFeatures,
+ AccountSessionCreateParamsComponentsCapitalFinancingFeatures as AccountSessionCreateParamsComponentsCapitalFinancingFeatures,
+ AccountSessionCreateParamsComponentsCapitalFinancingPromotion as AccountSessionCreateParamsComponentsCapitalFinancingPromotion,
+ AccountSessionCreateParamsComponentsCapitalFinancingPromotionFeatures as AccountSessionCreateParamsComponentsCapitalFinancingPromotionFeatures,
+ AccountSessionCreateParamsComponentsCapitalOverview as AccountSessionCreateParamsComponentsCapitalOverview,
+ AccountSessionCreateParamsComponentsCapitalOverviewFeatures as AccountSessionCreateParamsComponentsCapitalOverviewFeatures,
AccountSessionCreateParamsComponentsDisputesList as AccountSessionCreateParamsComponentsDisputesList,
AccountSessionCreateParamsComponentsDisputesListFeatures as AccountSessionCreateParamsComponentsDisputesListFeatures,
AccountSessionCreateParamsComponentsDocuments as AccountSessionCreateParamsComponentsDocuments,
AccountSessionCreateParamsComponentsDocumentsFeatures as AccountSessionCreateParamsComponentsDocumentsFeatures,
+ AccountSessionCreateParamsComponentsExportTaxTransactions as AccountSessionCreateParamsComponentsExportTaxTransactions,
+ AccountSessionCreateParamsComponentsExportTaxTransactionsFeatures as AccountSessionCreateParamsComponentsExportTaxTransactionsFeatures,
AccountSessionCreateParamsComponentsFinancialAccount as AccountSessionCreateParamsComponentsFinancialAccount,
AccountSessionCreateParamsComponentsFinancialAccountFeatures as AccountSessionCreateParamsComponentsFinancialAccountFeatures,
AccountSessionCreateParamsComponentsFinancialAccountTransactions as AccountSessionCreateParamsComponentsFinancialAccountTransactions,
@@ -367,6 +420,8 @@
AccountSessionCreateParamsComponentsPaymentDetailsFeatures as AccountSessionCreateParamsComponentsPaymentDetailsFeatures,
AccountSessionCreateParamsComponentsPaymentDisputes as AccountSessionCreateParamsComponentsPaymentDisputes,
AccountSessionCreateParamsComponentsPaymentDisputesFeatures as AccountSessionCreateParamsComponentsPaymentDisputesFeatures,
+ AccountSessionCreateParamsComponentsPaymentMethodSettings as AccountSessionCreateParamsComponentsPaymentMethodSettings,
+ AccountSessionCreateParamsComponentsPaymentMethodSettingsFeatures as AccountSessionCreateParamsComponentsPaymentMethodSettingsFeatures,
AccountSessionCreateParamsComponentsPayments as AccountSessionCreateParamsComponentsPayments,
AccountSessionCreateParamsComponentsPaymentsFeatures as AccountSessionCreateParamsComponentsPaymentsFeatures,
AccountSessionCreateParamsComponentsPayoutDetails as AccountSessionCreateParamsComponentsPayoutDetails,
@@ -375,10 +430,18 @@
AccountSessionCreateParamsComponentsPayoutsFeatures as AccountSessionCreateParamsComponentsPayoutsFeatures,
AccountSessionCreateParamsComponentsPayoutsList as AccountSessionCreateParamsComponentsPayoutsList,
AccountSessionCreateParamsComponentsPayoutsListFeatures as AccountSessionCreateParamsComponentsPayoutsListFeatures,
+ AccountSessionCreateParamsComponentsProductTaxCodeSelector as AccountSessionCreateParamsComponentsProductTaxCodeSelector,
+ AccountSessionCreateParamsComponentsProductTaxCodeSelectorFeatures as AccountSessionCreateParamsComponentsProductTaxCodeSelectorFeatures,
+ AccountSessionCreateParamsComponentsRecipients as AccountSessionCreateParamsComponentsRecipients,
+ AccountSessionCreateParamsComponentsRecipientsFeatures as AccountSessionCreateParamsComponentsRecipientsFeatures,
+ AccountSessionCreateParamsComponentsReportingChart as AccountSessionCreateParamsComponentsReportingChart,
+ AccountSessionCreateParamsComponentsReportingChartFeatures as AccountSessionCreateParamsComponentsReportingChartFeatures,
AccountSessionCreateParamsComponentsTaxRegistrations as AccountSessionCreateParamsComponentsTaxRegistrations,
AccountSessionCreateParamsComponentsTaxRegistrationsFeatures as AccountSessionCreateParamsComponentsTaxRegistrationsFeatures,
AccountSessionCreateParamsComponentsTaxSettings as AccountSessionCreateParamsComponentsTaxSettings,
AccountSessionCreateParamsComponentsTaxSettingsFeatures as AccountSessionCreateParamsComponentsTaxSettingsFeatures,
+ AccountSessionCreateParamsComponentsTaxThresholdMonitoring as AccountSessionCreateParamsComponentsTaxThresholdMonitoring,
+ AccountSessionCreateParamsComponentsTaxThresholdMonitoringFeatures as AccountSessionCreateParamsComponentsTaxThresholdMonitoringFeatures,
)
from stripe.params._account_update_params import (
AccountUpdateParams as AccountUpdateParams,
@@ -394,6 +457,7 @@
AccountUpdateParamsCapabilitiesAlmaPayments as AccountUpdateParamsCapabilitiesAlmaPayments,
AccountUpdateParamsCapabilitiesAmazonPayPayments as AccountUpdateParamsCapabilitiesAmazonPayPayments,
AccountUpdateParamsCapabilitiesAuBecsDebitPayments as AccountUpdateParamsCapabilitiesAuBecsDebitPayments,
+ AccountUpdateParamsCapabilitiesAutomaticIndirectTax as AccountUpdateParamsCapabilitiesAutomaticIndirectTax,
AccountUpdateParamsCapabilitiesBacsDebitPayments as AccountUpdateParamsCapabilitiesBacsDebitPayments,
AccountUpdateParamsCapabilitiesBancontactPayments as AccountUpdateParamsCapabilitiesBancontactPayments,
AccountUpdateParamsCapabilitiesBankTransferPayments as AccountUpdateParamsCapabilitiesBankTransferPayments,
@@ -409,7 +473,10 @@
AccountUpdateParamsCapabilitiesFpxPayments as AccountUpdateParamsCapabilitiesFpxPayments,
AccountUpdateParamsCapabilitiesGbBankTransferPayments as AccountUpdateParamsCapabilitiesGbBankTransferPayments,
AccountUpdateParamsCapabilitiesGiropayPayments as AccountUpdateParamsCapabilitiesGiropayPayments,
+ AccountUpdateParamsCapabilitiesGopayPayments as AccountUpdateParamsCapabilitiesGopayPayments,
AccountUpdateParamsCapabilitiesGrabpayPayments as AccountUpdateParamsCapabilitiesGrabpayPayments,
+ AccountUpdateParamsCapabilitiesIdBankTransferPayments as AccountUpdateParamsCapabilitiesIdBankTransferPayments,
+ AccountUpdateParamsCapabilitiesIdBankTransferPaymentsBca as AccountUpdateParamsCapabilitiesIdBankTransferPaymentsBca,
AccountUpdateParamsCapabilitiesIdealPayments as AccountUpdateParamsCapabilitiesIdealPayments,
AccountUpdateParamsCapabilitiesIndiaInternationalPayments as AccountUpdateParamsCapabilitiesIndiaInternationalPayments,
AccountUpdateParamsCapabilitiesJcbPayments as AccountUpdateParamsCapabilitiesJcbPayments,
@@ -431,20 +498,29 @@
AccountUpdateParamsCapabilitiesPayByBankPayments as AccountUpdateParamsCapabilitiesPayByBankPayments,
AccountUpdateParamsCapabilitiesPaycoPayments as AccountUpdateParamsCapabilitiesPaycoPayments,
AccountUpdateParamsCapabilitiesPaynowPayments as AccountUpdateParamsCapabilitiesPaynowPayments,
+ AccountUpdateParamsCapabilitiesPaypalPayments as AccountUpdateParamsCapabilitiesPaypalPayments,
+ AccountUpdateParamsCapabilitiesPaypayPayments as AccountUpdateParamsCapabilitiesPaypayPayments,
AccountUpdateParamsCapabilitiesPaytoPayments as AccountUpdateParamsCapabilitiesPaytoPayments,
AccountUpdateParamsCapabilitiesPixPayments as AccountUpdateParamsCapabilitiesPixPayments,
AccountUpdateParamsCapabilitiesPromptpayPayments as AccountUpdateParamsCapabilitiesPromptpayPayments,
+ AccountUpdateParamsCapabilitiesQrisPayments as AccountUpdateParamsCapabilitiesQrisPayments,
+ AccountUpdateParamsCapabilitiesRechnungPayments as AccountUpdateParamsCapabilitiesRechnungPayments,
AccountUpdateParamsCapabilitiesRevolutPayPayments as AccountUpdateParamsCapabilitiesRevolutPayPayments,
AccountUpdateParamsCapabilitiesSamsungPayPayments as AccountUpdateParamsCapabilitiesSamsungPayPayments,
AccountUpdateParamsCapabilitiesSatispayPayments as AccountUpdateParamsCapabilitiesSatispayPayments,
AccountUpdateParamsCapabilitiesSepaBankTransferPayments as AccountUpdateParamsCapabilitiesSepaBankTransferPayments,
AccountUpdateParamsCapabilitiesSepaDebitPayments as AccountUpdateParamsCapabilitiesSepaDebitPayments,
+ AccountUpdateParamsCapabilitiesShopeepayPayments as AccountUpdateParamsCapabilitiesShopeepayPayments,
AccountUpdateParamsCapabilitiesSofortPayments as AccountUpdateParamsCapabilitiesSofortPayments,
+ AccountUpdateParamsCapabilitiesStripeBalancePayments as AccountUpdateParamsCapabilitiesStripeBalancePayments,
AccountUpdateParamsCapabilitiesSwishPayments as AccountUpdateParamsCapabilitiesSwishPayments,
AccountUpdateParamsCapabilitiesTaxReportingUs1099K as AccountUpdateParamsCapabilitiesTaxReportingUs1099K,
AccountUpdateParamsCapabilitiesTaxReportingUs1099Misc as AccountUpdateParamsCapabilitiesTaxReportingUs1099Misc,
AccountUpdateParamsCapabilitiesTransfers as AccountUpdateParamsCapabilitiesTransfers,
AccountUpdateParamsCapabilitiesTreasury as AccountUpdateParamsCapabilitiesTreasury,
+ AccountUpdateParamsCapabilitiesTreasuryEvolve as AccountUpdateParamsCapabilitiesTreasuryEvolve,
+ AccountUpdateParamsCapabilitiesTreasuryFifthThird as AccountUpdateParamsCapabilitiesTreasuryFifthThird,
+ AccountUpdateParamsCapabilitiesTreasuryGoldmanSachs as AccountUpdateParamsCapabilitiesTreasuryGoldmanSachs,
AccountUpdateParamsCapabilitiesTwintPayments as AccountUpdateParamsCapabilitiesTwintPayments,
AccountUpdateParamsCapabilitiesUsBankAccountAchPayments as AccountUpdateParamsCapabilitiesUsBankAccountAchPayments,
AccountUpdateParamsCapabilitiesUsBankTransferPayments as AccountUpdateParamsCapabilitiesUsBankTransferPayments,
@@ -484,9 +560,14 @@
AccountUpdateParamsIndividualVerification as AccountUpdateParamsIndividualVerification,
AccountUpdateParamsIndividualVerificationAdditionalDocument as AccountUpdateParamsIndividualVerificationAdditionalDocument,
AccountUpdateParamsIndividualVerificationDocument as AccountUpdateParamsIndividualVerificationDocument,
+ AccountUpdateParamsRiskControls as AccountUpdateParamsRiskControls,
+ AccountUpdateParamsRiskControlsCharges as AccountUpdateParamsRiskControlsCharges,
+ AccountUpdateParamsRiskControlsPayouts as AccountUpdateParamsRiskControlsPayouts,
AccountUpdateParamsSettings as AccountUpdateParamsSettings,
AccountUpdateParamsSettingsBacsDebitPayments as AccountUpdateParamsSettingsBacsDebitPayments,
+ AccountUpdateParamsSettingsBankBcaOnboarding as AccountUpdateParamsSettingsBankBcaOnboarding,
AccountUpdateParamsSettingsBranding as AccountUpdateParamsSettingsBranding,
+ AccountUpdateParamsSettingsCapital as AccountUpdateParamsSettingsCapital,
AccountUpdateParamsSettingsCardIssuing as AccountUpdateParamsSettingsCardIssuing,
AccountUpdateParamsSettingsCardIssuingTosAcceptance as AccountUpdateParamsSettingsCardIssuingTosAcceptance,
AccountUpdateParamsSettingsCardPayments as AccountUpdateParamsSettingsCardPayments,
@@ -495,6 +576,8 @@
AccountUpdateParamsSettingsPayments as AccountUpdateParamsSettingsPayments,
AccountUpdateParamsSettingsPayouts as AccountUpdateParamsSettingsPayouts,
AccountUpdateParamsSettingsPayoutsSchedule as AccountUpdateParamsSettingsPayoutsSchedule,
+ AccountUpdateParamsSettingsPaypayPayments as AccountUpdateParamsSettingsPaypayPayments,
+ AccountUpdateParamsSettingsTaxForms as AccountUpdateParamsSettingsTaxForms,
AccountUpdateParamsSettingsTreasury as AccountUpdateParamsSettingsTreasury,
AccountUpdateParamsSettingsTreasuryTosAcceptance as AccountUpdateParamsSettingsTreasuryTosAcceptance,
AccountUpdateParamsTosAcceptance as AccountUpdateParamsTosAcceptance,
@@ -580,6 +663,75 @@
)
from stripe.params._charge_capture_params import (
ChargeCaptureParams as ChargeCaptureParams,
+ ChargeCaptureParamsPaymentDetails as ChargeCaptureParamsPaymentDetails,
+ ChargeCaptureParamsPaymentDetailsCarRental as ChargeCaptureParamsPaymentDetailsCarRental,
+ ChargeCaptureParamsPaymentDetailsCarRentalAffiliate as ChargeCaptureParamsPaymentDetailsCarRentalAffiliate,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatum as ChargeCaptureParamsPaymentDetailsCarRentalDatum,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumAffiliate as ChargeCaptureParamsPaymentDetailsCarRentalDatumAffiliate,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumDistance as ChargeCaptureParamsPaymentDetailsCarRentalDatumDistance,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumDriver as ChargeCaptureParamsPaymentDetailsCarRentalDatumDriver,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as ChargeCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOff as ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOff,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress as ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumInsurance as ChargeCaptureParamsPaymentDetailsCarRentalDatumInsurance,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumPickup as ChargeCaptureParamsPaymentDetailsCarRentalDatumPickup,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumPickupAddress as ChargeCaptureParamsPaymentDetailsCarRentalDatumPickupAddress,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumTotal as ChargeCaptureParamsPaymentDetailsCarRentalDatumTotal,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts as ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge as ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTax as ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTax,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax as ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax,
+ ChargeCaptureParamsPaymentDetailsCarRentalDatumVehicle as ChargeCaptureParamsPaymentDetailsCarRentalDatumVehicle,
+ ChargeCaptureParamsPaymentDetailsCarRentalDelivery as ChargeCaptureParamsPaymentDetailsCarRentalDelivery,
+ ChargeCaptureParamsPaymentDetailsCarRentalDeliveryRecipient as ChargeCaptureParamsPaymentDetailsCarRentalDeliveryRecipient,
+ ChargeCaptureParamsPaymentDetailsCarRentalDistance as ChargeCaptureParamsPaymentDetailsCarRentalDistance,
+ ChargeCaptureParamsPaymentDetailsCarRentalDriver as ChargeCaptureParamsPaymentDetailsCarRentalDriver,
+ ChargeCaptureParamsPaymentDetailsCarRentalPickupAddress as ChargeCaptureParamsPaymentDetailsCarRentalPickupAddress,
+ ChargeCaptureParamsPaymentDetailsCarRentalReturnAddress as ChargeCaptureParamsPaymentDetailsCarRentalReturnAddress,
+ ChargeCaptureParamsPaymentDetailsEventDetails as ChargeCaptureParamsPaymentDetailsEventDetails,
+ ChargeCaptureParamsPaymentDetailsEventDetailsAddress as ChargeCaptureParamsPaymentDetailsEventDetailsAddress,
+ ChargeCaptureParamsPaymentDetailsEventDetailsAffiliate as ChargeCaptureParamsPaymentDetailsEventDetailsAffiliate,
+ ChargeCaptureParamsPaymentDetailsEventDetailsDelivery as ChargeCaptureParamsPaymentDetailsEventDetailsDelivery,
+ ChargeCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient as ChargeCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient,
+ ChargeCaptureParamsPaymentDetailsFlight as ChargeCaptureParamsPaymentDetailsFlight,
+ ChargeCaptureParamsPaymentDetailsFlightAffiliate as ChargeCaptureParamsPaymentDetailsFlightAffiliate,
+ ChargeCaptureParamsPaymentDetailsFlightDatum as ChargeCaptureParamsPaymentDetailsFlightDatum,
+ ChargeCaptureParamsPaymentDetailsFlightDatumAffiliate as ChargeCaptureParamsPaymentDetailsFlightDatumAffiliate,
+ ChargeCaptureParamsPaymentDetailsFlightDatumInsurance as ChargeCaptureParamsPaymentDetailsFlightDatumInsurance,
+ ChargeCaptureParamsPaymentDetailsFlightDatumPassenger as ChargeCaptureParamsPaymentDetailsFlightDatumPassenger,
+ ChargeCaptureParamsPaymentDetailsFlightDatumSegment as ChargeCaptureParamsPaymentDetailsFlightDatumSegment,
+ ChargeCaptureParamsPaymentDetailsFlightDatumSegmentArrival as ChargeCaptureParamsPaymentDetailsFlightDatumSegmentArrival,
+ ChargeCaptureParamsPaymentDetailsFlightDatumSegmentDeparture as ChargeCaptureParamsPaymentDetailsFlightDatumSegmentDeparture,
+ ChargeCaptureParamsPaymentDetailsFlightDatumTotal as ChargeCaptureParamsPaymentDetailsFlightDatumTotal,
+ ChargeCaptureParamsPaymentDetailsFlightDatumTotalDiscounts as ChargeCaptureParamsPaymentDetailsFlightDatumTotalDiscounts,
+ ChargeCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge as ChargeCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge,
+ ChargeCaptureParamsPaymentDetailsFlightDatumTotalTax as ChargeCaptureParamsPaymentDetailsFlightDatumTotalTax,
+ ChargeCaptureParamsPaymentDetailsFlightDatumTotalTaxTax as ChargeCaptureParamsPaymentDetailsFlightDatumTotalTaxTax,
+ ChargeCaptureParamsPaymentDetailsFlightDelivery as ChargeCaptureParamsPaymentDetailsFlightDelivery,
+ ChargeCaptureParamsPaymentDetailsFlightDeliveryRecipient as ChargeCaptureParamsPaymentDetailsFlightDeliveryRecipient,
+ ChargeCaptureParamsPaymentDetailsFlightPassenger as ChargeCaptureParamsPaymentDetailsFlightPassenger,
+ ChargeCaptureParamsPaymentDetailsFlightSegment as ChargeCaptureParamsPaymentDetailsFlightSegment,
+ ChargeCaptureParamsPaymentDetailsLodging as ChargeCaptureParamsPaymentDetailsLodging,
+ ChargeCaptureParamsPaymentDetailsLodgingAddress as ChargeCaptureParamsPaymentDetailsLodgingAddress,
+ ChargeCaptureParamsPaymentDetailsLodgingAffiliate as ChargeCaptureParamsPaymentDetailsLodgingAffiliate,
+ ChargeCaptureParamsPaymentDetailsLodgingDatum as ChargeCaptureParamsPaymentDetailsLodgingDatum,
+ ChargeCaptureParamsPaymentDetailsLodgingDatumAccommodation as ChargeCaptureParamsPaymentDetailsLodgingDatumAccommodation,
+ ChargeCaptureParamsPaymentDetailsLodgingDatumAffiliate as ChargeCaptureParamsPaymentDetailsLodgingDatumAffiliate,
+ ChargeCaptureParamsPaymentDetailsLodgingDatumGuest as ChargeCaptureParamsPaymentDetailsLodgingDatumGuest,
+ ChargeCaptureParamsPaymentDetailsLodgingDatumHost as ChargeCaptureParamsPaymentDetailsLodgingDatumHost,
+ ChargeCaptureParamsPaymentDetailsLodgingDatumHostAddress as ChargeCaptureParamsPaymentDetailsLodgingDatumHostAddress,
+ ChargeCaptureParamsPaymentDetailsLodgingDatumInsurance as ChargeCaptureParamsPaymentDetailsLodgingDatumInsurance,
+ ChargeCaptureParamsPaymentDetailsLodgingDatumTotal as ChargeCaptureParamsPaymentDetailsLodgingDatumTotal,
+ ChargeCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts as ChargeCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ ChargeCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge as ChargeCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTax as ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTax,
+ ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax as ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax,
+ ChargeCaptureParamsPaymentDetailsLodgingDelivery as ChargeCaptureParamsPaymentDetailsLodgingDelivery,
+ ChargeCaptureParamsPaymentDetailsLodgingDeliveryRecipient as ChargeCaptureParamsPaymentDetailsLodgingDeliveryRecipient,
+ ChargeCaptureParamsPaymentDetailsLodgingPassenger as ChargeCaptureParamsPaymentDetailsLodgingPassenger,
+ ChargeCaptureParamsPaymentDetailsSubscription as ChargeCaptureParamsPaymentDetailsSubscription,
+ ChargeCaptureParamsPaymentDetailsSubscriptionAffiliate as ChargeCaptureParamsPaymentDetailsSubscriptionAffiliate,
+ ChargeCaptureParamsPaymentDetailsSubscriptionBillingInterval as ChargeCaptureParamsPaymentDetailsSubscriptionBillingInterval,
ChargeCaptureParamsTransferData as ChargeCaptureParamsTransferData,
)
from stripe.params._charge_create_params import (
@@ -600,6 +752,75 @@
from stripe.params._charge_modify_params import (
ChargeModifyParams as ChargeModifyParams,
ChargeModifyParamsFraudDetails as ChargeModifyParamsFraudDetails,
+ ChargeModifyParamsPaymentDetails as ChargeModifyParamsPaymentDetails,
+ ChargeModifyParamsPaymentDetailsCarRental as ChargeModifyParamsPaymentDetailsCarRental,
+ ChargeModifyParamsPaymentDetailsCarRentalAffiliate as ChargeModifyParamsPaymentDetailsCarRentalAffiliate,
+ ChargeModifyParamsPaymentDetailsCarRentalDatum as ChargeModifyParamsPaymentDetailsCarRentalDatum,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumAffiliate as ChargeModifyParamsPaymentDetailsCarRentalDatumAffiliate,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumDistance as ChargeModifyParamsPaymentDetailsCarRentalDatumDistance,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumDriver as ChargeModifyParamsPaymentDetailsCarRentalDatumDriver,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as ChargeModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumDropOff as ChargeModifyParamsPaymentDetailsCarRentalDatumDropOff,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumDropOffAddress as ChargeModifyParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumInsurance as ChargeModifyParamsPaymentDetailsCarRentalDatumInsurance,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumPickup as ChargeModifyParamsPaymentDetailsCarRentalDatumPickup,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumPickupAddress as ChargeModifyParamsPaymentDetailsCarRentalDatumPickupAddress,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumTotal as ChargeModifyParamsPaymentDetailsCarRentalDatumTotal,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts as ChargeModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge as ChargeModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTax as ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTax,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax as ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax,
+ ChargeModifyParamsPaymentDetailsCarRentalDatumVehicle as ChargeModifyParamsPaymentDetailsCarRentalDatumVehicle,
+ ChargeModifyParamsPaymentDetailsCarRentalDelivery as ChargeModifyParamsPaymentDetailsCarRentalDelivery,
+ ChargeModifyParamsPaymentDetailsCarRentalDeliveryRecipient as ChargeModifyParamsPaymentDetailsCarRentalDeliveryRecipient,
+ ChargeModifyParamsPaymentDetailsCarRentalDistance as ChargeModifyParamsPaymentDetailsCarRentalDistance,
+ ChargeModifyParamsPaymentDetailsCarRentalDriver as ChargeModifyParamsPaymentDetailsCarRentalDriver,
+ ChargeModifyParamsPaymentDetailsCarRentalPickupAddress as ChargeModifyParamsPaymentDetailsCarRentalPickupAddress,
+ ChargeModifyParamsPaymentDetailsCarRentalReturnAddress as ChargeModifyParamsPaymentDetailsCarRentalReturnAddress,
+ ChargeModifyParamsPaymentDetailsEventDetails as ChargeModifyParamsPaymentDetailsEventDetails,
+ ChargeModifyParamsPaymentDetailsEventDetailsAddress as ChargeModifyParamsPaymentDetailsEventDetailsAddress,
+ ChargeModifyParamsPaymentDetailsEventDetailsAffiliate as ChargeModifyParamsPaymentDetailsEventDetailsAffiliate,
+ ChargeModifyParamsPaymentDetailsEventDetailsDelivery as ChargeModifyParamsPaymentDetailsEventDetailsDelivery,
+ ChargeModifyParamsPaymentDetailsEventDetailsDeliveryRecipient as ChargeModifyParamsPaymentDetailsEventDetailsDeliveryRecipient,
+ ChargeModifyParamsPaymentDetailsFlight as ChargeModifyParamsPaymentDetailsFlight,
+ ChargeModifyParamsPaymentDetailsFlightAffiliate as ChargeModifyParamsPaymentDetailsFlightAffiliate,
+ ChargeModifyParamsPaymentDetailsFlightDatum as ChargeModifyParamsPaymentDetailsFlightDatum,
+ ChargeModifyParamsPaymentDetailsFlightDatumAffiliate as ChargeModifyParamsPaymentDetailsFlightDatumAffiliate,
+ ChargeModifyParamsPaymentDetailsFlightDatumInsurance as ChargeModifyParamsPaymentDetailsFlightDatumInsurance,
+ ChargeModifyParamsPaymentDetailsFlightDatumPassenger as ChargeModifyParamsPaymentDetailsFlightDatumPassenger,
+ ChargeModifyParamsPaymentDetailsFlightDatumSegment as ChargeModifyParamsPaymentDetailsFlightDatumSegment,
+ ChargeModifyParamsPaymentDetailsFlightDatumSegmentArrival as ChargeModifyParamsPaymentDetailsFlightDatumSegmentArrival,
+ ChargeModifyParamsPaymentDetailsFlightDatumSegmentDeparture as ChargeModifyParamsPaymentDetailsFlightDatumSegmentDeparture,
+ ChargeModifyParamsPaymentDetailsFlightDatumTotal as ChargeModifyParamsPaymentDetailsFlightDatumTotal,
+ ChargeModifyParamsPaymentDetailsFlightDatumTotalDiscounts as ChargeModifyParamsPaymentDetailsFlightDatumTotalDiscounts,
+ ChargeModifyParamsPaymentDetailsFlightDatumTotalExtraCharge as ChargeModifyParamsPaymentDetailsFlightDatumTotalExtraCharge,
+ ChargeModifyParamsPaymentDetailsFlightDatumTotalTax as ChargeModifyParamsPaymentDetailsFlightDatumTotalTax,
+ ChargeModifyParamsPaymentDetailsFlightDatumTotalTaxTax as ChargeModifyParamsPaymentDetailsFlightDatumTotalTaxTax,
+ ChargeModifyParamsPaymentDetailsFlightDelivery as ChargeModifyParamsPaymentDetailsFlightDelivery,
+ ChargeModifyParamsPaymentDetailsFlightDeliveryRecipient as ChargeModifyParamsPaymentDetailsFlightDeliveryRecipient,
+ ChargeModifyParamsPaymentDetailsFlightPassenger as ChargeModifyParamsPaymentDetailsFlightPassenger,
+ ChargeModifyParamsPaymentDetailsFlightSegment as ChargeModifyParamsPaymentDetailsFlightSegment,
+ ChargeModifyParamsPaymentDetailsLodging as ChargeModifyParamsPaymentDetailsLodging,
+ ChargeModifyParamsPaymentDetailsLodgingAddress as ChargeModifyParamsPaymentDetailsLodgingAddress,
+ ChargeModifyParamsPaymentDetailsLodgingAffiliate as ChargeModifyParamsPaymentDetailsLodgingAffiliate,
+ ChargeModifyParamsPaymentDetailsLodgingDatum as ChargeModifyParamsPaymentDetailsLodgingDatum,
+ ChargeModifyParamsPaymentDetailsLodgingDatumAccommodation as ChargeModifyParamsPaymentDetailsLodgingDatumAccommodation,
+ ChargeModifyParamsPaymentDetailsLodgingDatumAffiliate as ChargeModifyParamsPaymentDetailsLodgingDatumAffiliate,
+ ChargeModifyParamsPaymentDetailsLodgingDatumGuest as ChargeModifyParamsPaymentDetailsLodgingDatumGuest,
+ ChargeModifyParamsPaymentDetailsLodgingDatumHost as ChargeModifyParamsPaymentDetailsLodgingDatumHost,
+ ChargeModifyParamsPaymentDetailsLodgingDatumHostAddress as ChargeModifyParamsPaymentDetailsLodgingDatumHostAddress,
+ ChargeModifyParamsPaymentDetailsLodgingDatumInsurance as ChargeModifyParamsPaymentDetailsLodgingDatumInsurance,
+ ChargeModifyParamsPaymentDetailsLodgingDatumTotal as ChargeModifyParamsPaymentDetailsLodgingDatumTotal,
+ ChargeModifyParamsPaymentDetailsLodgingDatumTotalDiscounts as ChargeModifyParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ ChargeModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge as ChargeModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ ChargeModifyParamsPaymentDetailsLodgingDatumTotalTax as ChargeModifyParamsPaymentDetailsLodgingDatumTotalTax,
+ ChargeModifyParamsPaymentDetailsLodgingDatumTotalTaxTax as ChargeModifyParamsPaymentDetailsLodgingDatumTotalTaxTax,
+ ChargeModifyParamsPaymentDetailsLodgingDelivery as ChargeModifyParamsPaymentDetailsLodgingDelivery,
+ ChargeModifyParamsPaymentDetailsLodgingDeliveryRecipient as ChargeModifyParamsPaymentDetailsLodgingDeliveryRecipient,
+ ChargeModifyParamsPaymentDetailsLodgingPassenger as ChargeModifyParamsPaymentDetailsLodgingPassenger,
+ ChargeModifyParamsPaymentDetailsSubscription as ChargeModifyParamsPaymentDetailsSubscription,
+ ChargeModifyParamsPaymentDetailsSubscriptionAffiliate as ChargeModifyParamsPaymentDetailsSubscriptionAffiliate,
+ ChargeModifyParamsPaymentDetailsSubscriptionBillingInterval as ChargeModifyParamsPaymentDetailsSubscriptionBillingInterval,
ChargeModifyParamsShipping as ChargeModifyParamsShipping,
ChargeModifyParamsShippingAddress as ChargeModifyParamsShippingAddress,
)
@@ -615,6 +836,75 @@
from stripe.params._charge_update_params import (
ChargeUpdateParams as ChargeUpdateParams,
ChargeUpdateParamsFraudDetails as ChargeUpdateParamsFraudDetails,
+ ChargeUpdateParamsPaymentDetails as ChargeUpdateParamsPaymentDetails,
+ ChargeUpdateParamsPaymentDetailsCarRental as ChargeUpdateParamsPaymentDetailsCarRental,
+ ChargeUpdateParamsPaymentDetailsCarRentalAffiliate as ChargeUpdateParamsPaymentDetailsCarRentalAffiliate,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatum as ChargeUpdateParamsPaymentDetailsCarRentalDatum,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumAffiliate as ChargeUpdateParamsPaymentDetailsCarRentalDatumAffiliate,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumDistance as ChargeUpdateParamsPaymentDetailsCarRentalDatumDistance,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumDriver as ChargeUpdateParamsPaymentDetailsCarRentalDatumDriver,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as ChargeUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOff as ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOff,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress as ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumInsurance as ChargeUpdateParamsPaymentDetailsCarRentalDatumInsurance,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumPickup as ChargeUpdateParamsPaymentDetailsCarRentalDatumPickup,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumPickupAddress as ChargeUpdateParamsPaymentDetailsCarRentalDatumPickupAddress,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumTotal as ChargeUpdateParamsPaymentDetailsCarRentalDatumTotal,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts as ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge as ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTax as ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTax,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax as ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax,
+ ChargeUpdateParamsPaymentDetailsCarRentalDatumVehicle as ChargeUpdateParamsPaymentDetailsCarRentalDatumVehicle,
+ ChargeUpdateParamsPaymentDetailsCarRentalDelivery as ChargeUpdateParamsPaymentDetailsCarRentalDelivery,
+ ChargeUpdateParamsPaymentDetailsCarRentalDeliveryRecipient as ChargeUpdateParamsPaymentDetailsCarRentalDeliveryRecipient,
+ ChargeUpdateParamsPaymentDetailsCarRentalDistance as ChargeUpdateParamsPaymentDetailsCarRentalDistance,
+ ChargeUpdateParamsPaymentDetailsCarRentalDriver as ChargeUpdateParamsPaymentDetailsCarRentalDriver,
+ ChargeUpdateParamsPaymentDetailsCarRentalPickupAddress as ChargeUpdateParamsPaymentDetailsCarRentalPickupAddress,
+ ChargeUpdateParamsPaymentDetailsCarRentalReturnAddress as ChargeUpdateParamsPaymentDetailsCarRentalReturnAddress,
+ ChargeUpdateParamsPaymentDetailsEventDetails as ChargeUpdateParamsPaymentDetailsEventDetails,
+ ChargeUpdateParamsPaymentDetailsEventDetailsAddress as ChargeUpdateParamsPaymentDetailsEventDetailsAddress,
+ ChargeUpdateParamsPaymentDetailsEventDetailsAffiliate as ChargeUpdateParamsPaymentDetailsEventDetailsAffiliate,
+ ChargeUpdateParamsPaymentDetailsEventDetailsDelivery as ChargeUpdateParamsPaymentDetailsEventDetailsDelivery,
+ ChargeUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient as ChargeUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient,
+ ChargeUpdateParamsPaymentDetailsFlight as ChargeUpdateParamsPaymentDetailsFlight,
+ ChargeUpdateParamsPaymentDetailsFlightAffiliate as ChargeUpdateParamsPaymentDetailsFlightAffiliate,
+ ChargeUpdateParamsPaymentDetailsFlightDatum as ChargeUpdateParamsPaymentDetailsFlightDatum,
+ ChargeUpdateParamsPaymentDetailsFlightDatumAffiliate as ChargeUpdateParamsPaymentDetailsFlightDatumAffiliate,
+ ChargeUpdateParamsPaymentDetailsFlightDatumInsurance as ChargeUpdateParamsPaymentDetailsFlightDatumInsurance,
+ ChargeUpdateParamsPaymentDetailsFlightDatumPassenger as ChargeUpdateParamsPaymentDetailsFlightDatumPassenger,
+ ChargeUpdateParamsPaymentDetailsFlightDatumSegment as ChargeUpdateParamsPaymentDetailsFlightDatumSegment,
+ ChargeUpdateParamsPaymentDetailsFlightDatumSegmentArrival as ChargeUpdateParamsPaymentDetailsFlightDatumSegmentArrival,
+ ChargeUpdateParamsPaymentDetailsFlightDatumSegmentDeparture as ChargeUpdateParamsPaymentDetailsFlightDatumSegmentDeparture,
+ ChargeUpdateParamsPaymentDetailsFlightDatumTotal as ChargeUpdateParamsPaymentDetailsFlightDatumTotal,
+ ChargeUpdateParamsPaymentDetailsFlightDatumTotalDiscounts as ChargeUpdateParamsPaymentDetailsFlightDatumTotalDiscounts,
+ ChargeUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge as ChargeUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge,
+ ChargeUpdateParamsPaymentDetailsFlightDatumTotalTax as ChargeUpdateParamsPaymentDetailsFlightDatumTotalTax,
+ ChargeUpdateParamsPaymentDetailsFlightDatumTotalTaxTax as ChargeUpdateParamsPaymentDetailsFlightDatumTotalTaxTax,
+ ChargeUpdateParamsPaymentDetailsFlightDelivery as ChargeUpdateParamsPaymentDetailsFlightDelivery,
+ ChargeUpdateParamsPaymentDetailsFlightDeliveryRecipient as ChargeUpdateParamsPaymentDetailsFlightDeliveryRecipient,
+ ChargeUpdateParamsPaymentDetailsFlightPassenger as ChargeUpdateParamsPaymentDetailsFlightPassenger,
+ ChargeUpdateParamsPaymentDetailsFlightSegment as ChargeUpdateParamsPaymentDetailsFlightSegment,
+ ChargeUpdateParamsPaymentDetailsLodging as ChargeUpdateParamsPaymentDetailsLodging,
+ ChargeUpdateParamsPaymentDetailsLodgingAddress as ChargeUpdateParamsPaymentDetailsLodgingAddress,
+ ChargeUpdateParamsPaymentDetailsLodgingAffiliate as ChargeUpdateParamsPaymentDetailsLodgingAffiliate,
+ ChargeUpdateParamsPaymentDetailsLodgingDatum as ChargeUpdateParamsPaymentDetailsLodgingDatum,
+ ChargeUpdateParamsPaymentDetailsLodgingDatumAccommodation as ChargeUpdateParamsPaymentDetailsLodgingDatumAccommodation,
+ ChargeUpdateParamsPaymentDetailsLodgingDatumAffiliate as ChargeUpdateParamsPaymentDetailsLodgingDatumAffiliate,
+ ChargeUpdateParamsPaymentDetailsLodgingDatumGuest as ChargeUpdateParamsPaymentDetailsLodgingDatumGuest,
+ ChargeUpdateParamsPaymentDetailsLodgingDatumHost as ChargeUpdateParamsPaymentDetailsLodgingDatumHost,
+ ChargeUpdateParamsPaymentDetailsLodgingDatumHostAddress as ChargeUpdateParamsPaymentDetailsLodgingDatumHostAddress,
+ ChargeUpdateParamsPaymentDetailsLodgingDatumInsurance as ChargeUpdateParamsPaymentDetailsLodgingDatumInsurance,
+ ChargeUpdateParamsPaymentDetailsLodgingDatumTotal as ChargeUpdateParamsPaymentDetailsLodgingDatumTotal,
+ ChargeUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts as ChargeUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ ChargeUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge as ChargeUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTax as ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTax,
+ ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax as ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax,
+ ChargeUpdateParamsPaymentDetailsLodgingDelivery as ChargeUpdateParamsPaymentDetailsLodgingDelivery,
+ ChargeUpdateParamsPaymentDetailsLodgingDeliveryRecipient as ChargeUpdateParamsPaymentDetailsLodgingDeliveryRecipient,
+ ChargeUpdateParamsPaymentDetailsLodgingPassenger as ChargeUpdateParamsPaymentDetailsLodgingPassenger,
+ ChargeUpdateParamsPaymentDetailsSubscription as ChargeUpdateParamsPaymentDetailsSubscription,
+ ChargeUpdateParamsPaymentDetailsSubscriptionAffiliate as ChargeUpdateParamsPaymentDetailsSubscriptionAffiliate,
+ ChargeUpdateParamsPaymentDetailsSubscriptionBillingInterval as ChargeUpdateParamsPaymentDetailsSubscriptionBillingInterval,
ChargeUpdateParamsShipping as ChargeUpdateParamsShipping,
ChargeUpdateParamsShippingAddress as ChargeUpdateParamsShippingAddress,
)
@@ -641,7 +931,9 @@
ConfirmationTokenCreateParamsPaymentMethodDataEps as ConfirmationTokenCreateParamsPaymentMethodDataEps,
ConfirmationTokenCreateParamsPaymentMethodDataFpx as ConfirmationTokenCreateParamsPaymentMethodDataFpx,
ConfirmationTokenCreateParamsPaymentMethodDataGiropay as ConfirmationTokenCreateParamsPaymentMethodDataGiropay,
+ ConfirmationTokenCreateParamsPaymentMethodDataGopay as ConfirmationTokenCreateParamsPaymentMethodDataGopay,
ConfirmationTokenCreateParamsPaymentMethodDataGrabpay as ConfirmationTokenCreateParamsPaymentMethodDataGrabpay,
+ ConfirmationTokenCreateParamsPaymentMethodDataIdBankTransfer as ConfirmationTokenCreateParamsPaymentMethodDataIdBankTransfer,
ConfirmationTokenCreateParamsPaymentMethodDataIdeal as ConfirmationTokenCreateParamsPaymentMethodDataIdeal,
ConfirmationTokenCreateParamsPaymentMethodDataInteracPresent as ConfirmationTokenCreateParamsPaymentMethodDataInteracPresent,
ConfirmationTokenCreateParamsPaymentMethodDataKakaoPay as ConfirmationTokenCreateParamsPaymentMethodDataKakaoPay,
@@ -661,15 +953,21 @@
ConfirmationTokenCreateParamsPaymentMethodDataPayco as ConfirmationTokenCreateParamsPaymentMethodDataPayco,
ConfirmationTokenCreateParamsPaymentMethodDataPaynow as ConfirmationTokenCreateParamsPaymentMethodDataPaynow,
ConfirmationTokenCreateParamsPaymentMethodDataPaypal as ConfirmationTokenCreateParamsPaymentMethodDataPaypal,
+ ConfirmationTokenCreateParamsPaymentMethodDataPaypay as ConfirmationTokenCreateParamsPaymentMethodDataPaypay,
ConfirmationTokenCreateParamsPaymentMethodDataPayto as ConfirmationTokenCreateParamsPaymentMethodDataPayto,
ConfirmationTokenCreateParamsPaymentMethodDataPix as ConfirmationTokenCreateParamsPaymentMethodDataPix,
ConfirmationTokenCreateParamsPaymentMethodDataPromptpay as ConfirmationTokenCreateParamsPaymentMethodDataPromptpay,
+ ConfirmationTokenCreateParamsPaymentMethodDataQris as ConfirmationTokenCreateParamsPaymentMethodDataQris,
ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions as ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions,
+ ConfirmationTokenCreateParamsPaymentMethodDataRechnung as ConfirmationTokenCreateParamsPaymentMethodDataRechnung,
+ ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob as ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob,
ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay as ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay,
ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay as ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay,
ConfirmationTokenCreateParamsPaymentMethodDataSatispay as ConfirmationTokenCreateParamsPaymentMethodDataSatispay,
ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit,
+ ConfirmationTokenCreateParamsPaymentMethodDataShopeepay as ConfirmationTokenCreateParamsPaymentMethodDataShopeepay,
ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort,
+ ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance as ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance,
ConfirmationTokenCreateParamsPaymentMethodDataSwish as ConfirmationTokenCreateParamsPaymentMethodDataSwish,
ConfirmationTokenCreateParamsPaymentMethodDataTwint as ConfirmationTokenCreateParamsPaymentMethodDataTwint,
ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount as ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount,
@@ -695,6 +993,7 @@
CouponCreateParams as CouponCreateParams,
CouponCreateParamsAppliesTo as CouponCreateParamsAppliesTo,
CouponCreateParamsCurrencyOptions as CouponCreateParamsCurrencyOptions,
+ CouponCreateParamsScript as CouponCreateParamsScript,
)
from stripe.params._coupon_delete_params import (
CouponDeleteParams as CouponDeleteParams,
@@ -946,6 +1245,8 @@
CustomerSessionCreateParamsComponentsPaymentElement as CustomerSessionCreateParamsComponentsPaymentElement,
CustomerSessionCreateParamsComponentsPaymentElementFeatures as CustomerSessionCreateParamsComponentsPaymentElementFeatures,
CustomerSessionCreateParamsComponentsPricingTable as CustomerSessionCreateParamsComponentsPricingTable,
+ CustomerSessionCreateParamsComponentsTaxIdElement as CustomerSessionCreateParamsComponentsTaxIdElement,
+ CustomerSessionCreateParamsComponentsTaxIdElementFeatures as CustomerSessionCreateParamsComponentsTaxIdElementFeatures,
)
from stripe.params._customer_tax_id_create_params import (
CustomerTaxIdCreateParams as CustomerTaxIdCreateParams,
@@ -1022,6 +1323,26 @@
from stripe.params._exchange_rate_retrieve_params import (
ExchangeRateRetrieveParams as ExchangeRateRetrieveParams,
)
+ from stripe.params._external_account_create_params import (
+ ExternalAccountCreateParams as ExternalAccountCreateParams,
+ ExternalAccountCreateParamsBankAccount as ExternalAccountCreateParamsBankAccount,
+ ExternalAccountCreateParamsCard as ExternalAccountCreateParamsCard,
+ ExternalAccountCreateParamsCardToken as ExternalAccountCreateParamsCardToken,
+ )
+ from stripe.params._external_account_delete_params import (
+ ExternalAccountDeleteParams as ExternalAccountDeleteParams,
+ )
+ from stripe.params._external_account_list_params import (
+ ExternalAccountListParams as ExternalAccountListParams,
+ )
+ from stripe.params._external_account_retrieve_params import (
+ ExternalAccountRetrieveParams as ExternalAccountRetrieveParams,
+ )
+ from stripe.params._external_account_update_params import (
+ ExternalAccountUpdateParams as ExternalAccountUpdateParams,
+ ExternalAccountUpdateParamsDocuments as ExternalAccountUpdateParamsDocuments,
+ ExternalAccountUpdateParamsDocumentsBankAccountOwnershipVerification as ExternalAccountUpdateParamsDocumentsBankAccountOwnershipVerification,
+ )
from stripe.params._file_create_params import (
FileCreateParams as FileCreateParams,
FileCreateParamsFileLinkData as FileCreateParamsFileLinkData,
@@ -1049,10 +1370,24 @@
from stripe.params._file_retrieve_params import (
FileRetrieveParams as FileRetrieveParams,
)
+ from stripe.params._fx_quote_create_params import (
+ FxQuoteCreateParams as FxQuoteCreateParams,
+ FxQuoteCreateParamsUsage as FxQuoteCreateParamsUsage,
+ FxQuoteCreateParamsUsagePayment as FxQuoteCreateParamsUsagePayment,
+ FxQuoteCreateParamsUsageTransfer as FxQuoteCreateParamsUsageTransfer,
+ )
+ from stripe.params._fx_quote_list_params import (
+ FxQuoteListParams as FxQuoteListParams,
+ )
+ from stripe.params._fx_quote_retrieve_params import (
+ FxQuoteRetrieveParams as FxQuoteRetrieveParams,
+ )
from stripe.params._invoice_add_lines_params import (
InvoiceAddLinesParams as InvoiceAddLinesParams,
InvoiceAddLinesParamsLine as InvoiceAddLinesParamsLine,
InvoiceAddLinesParamsLineDiscount as InvoiceAddLinesParamsLineDiscount,
+ InvoiceAddLinesParamsLineDiscountDiscountEnd as InvoiceAddLinesParamsLineDiscountDiscountEnd,
+ InvoiceAddLinesParamsLineDiscountDiscountEndDuration as InvoiceAddLinesParamsLineDiscountDiscountEndDuration,
InvoiceAddLinesParamsLinePeriod as InvoiceAddLinesParamsLinePeriod,
InvoiceAddLinesParamsLinePriceData as InvoiceAddLinesParamsLinePriceData,
InvoiceAddLinesParamsLinePriceDataProductData as InvoiceAddLinesParamsLinePriceDataProductData,
@@ -1062,13 +1397,17 @@
)
from stripe.params._invoice_attach_payment_params import (
InvoiceAttachPaymentParams as InvoiceAttachPaymentParams,
+ InvoiceAttachPaymentParamsPaymentRecordData as InvoiceAttachPaymentParamsPaymentRecordData,
)
from stripe.params._invoice_create_params import (
InvoiceCreateParams as InvoiceCreateParams,
+ InvoiceCreateParamsAmountsDue as InvoiceCreateParamsAmountsDue,
InvoiceCreateParamsAutomaticTax as InvoiceCreateParamsAutomaticTax,
InvoiceCreateParamsAutomaticTaxLiability as InvoiceCreateParamsAutomaticTaxLiability,
InvoiceCreateParamsCustomField as InvoiceCreateParamsCustomField,
InvoiceCreateParamsDiscount as InvoiceCreateParamsDiscount,
+ InvoiceCreateParamsDiscountDiscountEnd as InvoiceCreateParamsDiscountDiscountEnd,
+ InvoiceCreateParamsDiscountDiscountEndDuration as InvoiceCreateParamsDiscountDiscountEndDuration,
InvoiceCreateParamsFromInvoice as InvoiceCreateParamsFromInvoice,
InvoiceCreateParamsIssuer as InvoiceCreateParamsIssuer,
InvoiceCreateParamsPaymentSettings as InvoiceCreateParamsPaymentSettings,
@@ -1082,10 +1421,14 @@
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
+ InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsKonbini as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsKonbini,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPayto as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPayto,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions,
+ InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPix as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPix,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit,
+ InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUpi as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUpi,
+ InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
@@ -1113,17 +1456,52 @@
InvoiceCreatePreviewParamsCustomerDetailsTax as InvoiceCreatePreviewParamsCustomerDetailsTax,
InvoiceCreatePreviewParamsCustomerDetailsTaxId as InvoiceCreatePreviewParamsCustomerDetailsTaxId,
InvoiceCreatePreviewParamsDiscount as InvoiceCreatePreviewParamsDiscount,
+ InvoiceCreatePreviewParamsDiscountDiscountEnd as InvoiceCreatePreviewParamsDiscountDiscountEnd,
+ InvoiceCreatePreviewParamsDiscountDiscountEndDuration as InvoiceCreatePreviewParamsDiscountDiscountEndDuration,
InvoiceCreatePreviewParamsInvoiceItem as InvoiceCreatePreviewParamsInvoiceItem,
InvoiceCreatePreviewParamsInvoiceItemDiscount as InvoiceCreatePreviewParamsInvoiceItemDiscount,
+ InvoiceCreatePreviewParamsInvoiceItemDiscountDiscountEnd as InvoiceCreatePreviewParamsInvoiceItemDiscountDiscountEnd,
+ InvoiceCreatePreviewParamsInvoiceItemDiscountDiscountEndDuration as InvoiceCreatePreviewParamsInvoiceItemDiscountDiscountEndDuration,
InvoiceCreatePreviewParamsInvoiceItemPeriod as InvoiceCreatePreviewParamsInvoiceItemPeriod,
InvoiceCreatePreviewParamsInvoiceItemPriceData as InvoiceCreatePreviewParamsInvoiceItemPriceData,
InvoiceCreatePreviewParamsIssuer as InvoiceCreatePreviewParamsIssuer,
InvoiceCreatePreviewParamsScheduleDetails as InvoiceCreatePreviewParamsScheduleDetails,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendment as InvoiceCreatePreviewParamsScheduleDetailsAmendment,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEnd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEnd,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEndDiscountEnd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEndDiscountEnd,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEndDuration as InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEndDuration,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStart as InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStart,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartAmendmentEnd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartAmendmentEnd,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartDiscountEnd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartDiscountEnd,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountAction as InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountAction,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAdd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAdd,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAddDiscountEnd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAddDiscountEnd,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionRemove as InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionRemove,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionSet as InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionSet,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemAction as InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemAction,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAdd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAdd,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscount as InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscount,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEnd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEnd,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDuration as InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDuration,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddTrial as InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddTrial,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionRemove as InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionRemove,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSet as InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSet,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscount as InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscount,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEnd as InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEnd,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDuration as InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDuration,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetTrial as InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetTrial,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentMetadataAction as InvoiceCreatePreviewParamsScheduleDetailsAmendmentMetadataAction,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentSetPauseCollection as InvoiceCreatePreviewParamsScheduleDetailsAmendmentSetPauseCollection,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentSetPauseCollectionSet as InvoiceCreatePreviewParamsScheduleDetailsAmendmentSetPauseCollectionSet,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentTrialSettings as InvoiceCreatePreviewParamsScheduleDetailsAmendmentTrialSettings,
+ InvoiceCreatePreviewParamsScheduleDetailsAmendmentTrialSettingsEndBehavior as InvoiceCreatePreviewParamsScheduleDetailsAmendmentTrialSettingsEndBehavior,
InvoiceCreatePreviewParamsScheduleDetailsBillingMode as InvoiceCreatePreviewParamsScheduleDetailsBillingMode,
InvoiceCreatePreviewParamsScheduleDetailsBillingModeFlexible as InvoiceCreatePreviewParamsScheduleDetailsBillingModeFlexible,
InvoiceCreatePreviewParamsScheduleDetailsPhase as InvoiceCreatePreviewParamsScheduleDetailsPhase,
InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem as InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem,
InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscount as InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscount,
+ InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEnd as InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEnd,
+ InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndDuration as InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndDuration,
InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriod as InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriod,
InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriodEnd as InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriodEnd,
InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriodStart as InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriodStart,
@@ -1132,23 +1510,42 @@
InvoiceCreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiability as InvoiceCreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiability,
InvoiceCreatePreviewParamsScheduleDetailsPhaseBillingThresholds as InvoiceCreatePreviewParamsScheduleDetailsPhaseBillingThresholds,
InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscount as InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscount,
+ InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscountDiscountEnd as InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscountDiscountEnd,
+ InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscountDiscountEndDuration as InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscountDiscountEndDuration,
InvoiceCreatePreviewParamsScheduleDetailsPhaseDuration as InvoiceCreatePreviewParamsScheduleDetailsPhaseDuration,
InvoiceCreatePreviewParamsScheduleDetailsPhaseInvoiceSettings as InvoiceCreatePreviewParamsScheduleDetailsPhaseInvoiceSettings,
InvoiceCreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuer as InvoiceCreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuer,
InvoiceCreatePreviewParamsScheduleDetailsPhaseItem as InvoiceCreatePreviewParamsScheduleDetailsPhaseItem,
InvoiceCreatePreviewParamsScheduleDetailsPhaseItemBillingThresholds as InvoiceCreatePreviewParamsScheduleDetailsPhaseItemBillingThresholds,
InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscount as InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscount,
+ InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscountDiscountEnd as InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscountDiscountEnd,
+ InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscountDiscountEndDuration as InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscountDiscountEndDuration,
InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceData as InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceData,
InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring as InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring,
+ InvoiceCreatePreviewParamsScheduleDetailsPhaseItemTrial as InvoiceCreatePreviewParamsScheduleDetailsPhaseItemTrial,
+ InvoiceCreatePreviewParamsScheduleDetailsPhasePauseCollection as InvoiceCreatePreviewParamsScheduleDetailsPhasePauseCollection,
InvoiceCreatePreviewParamsScheduleDetailsPhaseTransferData as InvoiceCreatePreviewParamsScheduleDetailsPhaseTransferData,
+ InvoiceCreatePreviewParamsScheduleDetailsPhaseTrialSettings as InvoiceCreatePreviewParamsScheduleDetailsPhaseTrialSettings,
+ InvoiceCreatePreviewParamsScheduleDetailsPhaseTrialSettingsEndBehavior as InvoiceCreatePreviewParamsScheduleDetailsPhaseTrialSettingsEndBehavior,
+ InvoiceCreatePreviewParamsScheduleDetailsPrebilling as InvoiceCreatePreviewParamsScheduleDetailsPrebilling,
+ InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntil as InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntil,
+ InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntilAmendmentEnd as InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntilAmendmentEnd,
+ InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntilDuration as InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntilDuration,
InvoiceCreatePreviewParamsSubscriptionDetails as InvoiceCreatePreviewParamsSubscriptionDetails,
InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode as InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode,
InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible as InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible,
+ InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule as InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule,
+ InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo as InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo,
+ InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil as InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil,
+ InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration as InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration,
InvoiceCreatePreviewParamsSubscriptionDetailsItem as InvoiceCreatePreviewParamsSubscriptionDetailsItem,
InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds as InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds,
InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount as InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount,
+ InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscountDiscountEnd as InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscountDiscountEnd,
+ InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscountDiscountEndDuration as InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscountDiscountEndDuration,
InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceData as InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceData,
InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring as InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring,
+ InvoiceCreatePreviewParamsSubscriptionDetailsPrebilling as InvoiceCreatePreviewParamsSubscriptionDetailsPrebilling,
)
from stripe.params._invoice_delete_params import (
InvoiceDeleteParams as InvoiceDeleteParams,
@@ -1159,6 +1556,8 @@
from stripe.params._invoice_item_create_params import (
InvoiceItemCreateParams as InvoiceItemCreateParams,
InvoiceItemCreateParamsDiscount as InvoiceItemCreateParamsDiscount,
+ InvoiceItemCreateParamsDiscountDiscountEnd as InvoiceItemCreateParamsDiscountDiscountEnd,
+ InvoiceItemCreateParamsDiscountDiscountEndDuration as InvoiceItemCreateParamsDiscountDiscountEndDuration,
InvoiceItemCreateParamsPeriod as InvoiceItemCreateParamsPeriod,
InvoiceItemCreateParamsPriceData as InvoiceItemCreateParamsPriceData,
InvoiceItemCreateParamsPricing as InvoiceItemCreateParamsPricing,
@@ -1173,6 +1572,8 @@
from stripe.params._invoice_item_modify_params import (
InvoiceItemModifyParams as InvoiceItemModifyParams,
InvoiceItemModifyParamsDiscount as InvoiceItemModifyParamsDiscount,
+ InvoiceItemModifyParamsDiscountDiscountEnd as InvoiceItemModifyParamsDiscountDiscountEnd,
+ InvoiceItemModifyParamsDiscountDiscountEndDuration as InvoiceItemModifyParamsDiscountDiscountEndDuration,
InvoiceItemModifyParamsPeriod as InvoiceItemModifyParamsPeriod,
InvoiceItemModifyParamsPriceData as InvoiceItemModifyParamsPriceData,
InvoiceItemModifyParamsPricing as InvoiceItemModifyParamsPricing,
@@ -1183,6 +1584,8 @@
from stripe.params._invoice_item_update_params import (
InvoiceItemUpdateParams as InvoiceItemUpdateParams,
InvoiceItemUpdateParamsDiscount as InvoiceItemUpdateParamsDiscount,
+ InvoiceItemUpdateParamsDiscountDiscountEnd as InvoiceItemUpdateParamsDiscountDiscountEnd,
+ InvoiceItemUpdateParamsDiscountDiscountEndDuration as InvoiceItemUpdateParamsDiscountDiscountEndDuration,
InvoiceItemUpdateParamsPeriod as InvoiceItemUpdateParamsPeriod,
InvoiceItemUpdateParamsPriceData as InvoiceItemUpdateParamsPriceData,
InvoiceItemUpdateParamsPricing as InvoiceItemUpdateParamsPricing,
@@ -1193,6 +1596,8 @@
from stripe.params._invoice_line_item_update_params import (
InvoiceLineItemUpdateParams as InvoiceLineItemUpdateParams,
InvoiceLineItemUpdateParamsDiscount as InvoiceLineItemUpdateParamsDiscount,
+ InvoiceLineItemUpdateParamsDiscountDiscountEnd as InvoiceLineItemUpdateParamsDiscountDiscountEnd,
+ InvoiceLineItemUpdateParamsDiscountDiscountEndDuration as InvoiceLineItemUpdateParamsDiscountDiscountEndDuration,
InvoiceLineItemUpdateParamsPeriod as InvoiceLineItemUpdateParamsPeriod,
InvoiceLineItemUpdateParamsPriceData as InvoiceLineItemUpdateParamsPriceData,
InvoiceLineItemUpdateParamsPriceDataProductData as InvoiceLineItemUpdateParamsPriceDataProductData,
@@ -1213,10 +1618,13 @@
)
from stripe.params._invoice_modify_params import (
InvoiceModifyParams as InvoiceModifyParams,
+ InvoiceModifyParamsAmountsDue as InvoiceModifyParamsAmountsDue,
InvoiceModifyParamsAutomaticTax as InvoiceModifyParamsAutomaticTax,
InvoiceModifyParamsAutomaticTaxLiability as InvoiceModifyParamsAutomaticTaxLiability,
InvoiceModifyParamsCustomField as InvoiceModifyParamsCustomField,
InvoiceModifyParamsDiscount as InvoiceModifyParamsDiscount,
+ InvoiceModifyParamsDiscountDiscountEnd as InvoiceModifyParamsDiscountDiscountEnd,
+ InvoiceModifyParamsDiscountDiscountEndDuration as InvoiceModifyParamsDiscountDiscountEndDuration,
InvoiceModifyParamsIssuer as InvoiceModifyParamsIssuer,
InvoiceModifyParamsPaymentSettings as InvoiceModifyParamsPaymentSettings,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptions as InvoiceModifyParamsPaymentSettingsPaymentMethodOptions,
@@ -1229,10 +1637,14 @@
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
+ InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsKonbini as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsKonbini,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPayto as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPayto,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions,
+ InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPix as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPix,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit,
+ InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUpi as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUpi,
+ InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
@@ -1289,6 +1701,8 @@
InvoiceUpdateLinesParams as InvoiceUpdateLinesParams,
InvoiceUpdateLinesParamsLine as InvoiceUpdateLinesParamsLine,
InvoiceUpdateLinesParamsLineDiscount as InvoiceUpdateLinesParamsLineDiscount,
+ InvoiceUpdateLinesParamsLineDiscountDiscountEnd as InvoiceUpdateLinesParamsLineDiscountDiscountEnd,
+ InvoiceUpdateLinesParamsLineDiscountDiscountEndDuration as InvoiceUpdateLinesParamsLineDiscountDiscountEndDuration,
InvoiceUpdateLinesParamsLinePeriod as InvoiceUpdateLinesParamsLinePeriod,
InvoiceUpdateLinesParamsLinePriceData as InvoiceUpdateLinesParamsLinePriceData,
InvoiceUpdateLinesParamsLinePriceDataProductData as InvoiceUpdateLinesParamsLinePriceDataProductData,
@@ -1298,10 +1712,13 @@
)
from stripe.params._invoice_update_params import (
InvoiceUpdateParams as InvoiceUpdateParams,
+ InvoiceUpdateParamsAmountsDue as InvoiceUpdateParamsAmountsDue,
InvoiceUpdateParamsAutomaticTax as InvoiceUpdateParamsAutomaticTax,
InvoiceUpdateParamsAutomaticTaxLiability as InvoiceUpdateParamsAutomaticTaxLiability,
InvoiceUpdateParamsCustomField as InvoiceUpdateParamsCustomField,
InvoiceUpdateParamsDiscount as InvoiceUpdateParamsDiscount,
+ InvoiceUpdateParamsDiscountDiscountEnd as InvoiceUpdateParamsDiscountDiscountEnd,
+ InvoiceUpdateParamsDiscountDiscountEndDuration as InvoiceUpdateParamsDiscountDiscountEndDuration,
InvoiceUpdateParamsIssuer as InvoiceUpdateParamsIssuer,
InvoiceUpdateParamsPaymentSettings as InvoiceUpdateParamsPaymentSettings,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions,
@@ -1314,10 +1731,14 @@
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
+ InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPayto as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPayto,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions,
+ InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPix as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPix,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit,
+ InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUpi as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUpi,
+ InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
@@ -1337,9 +1758,309 @@
from stripe.params._invoice_void_invoice_params import (
InvoiceVoidInvoiceParams as InvoiceVoidInvoiceParams,
)
+ from stripe.params._mandate_list_params import (
+ MandateListParams as MandateListParams,
+ )
from stripe.params._mandate_retrieve_params import (
MandateRetrieveParams as MandateRetrieveParams,
)
+ from stripe.params._margin_create_params import (
+ MarginCreateParams as MarginCreateParams,
+ )
+ from stripe.params._margin_list_params import (
+ MarginListParams as MarginListParams,
+ )
+ from stripe.params._margin_modify_params import (
+ MarginModifyParams as MarginModifyParams,
+ )
+ from stripe.params._margin_retrieve_params import (
+ MarginRetrieveParams as MarginRetrieveParams,
+ )
+ from stripe.params._margin_update_params import (
+ MarginUpdateParams as MarginUpdateParams,
+ )
+ from stripe.params._order_cancel_params import (
+ OrderCancelParams as OrderCancelParams,
+ )
+ from stripe.params._order_create_params import (
+ OrderCreateParams as OrderCreateParams,
+ OrderCreateParamsAutomaticTax as OrderCreateParamsAutomaticTax,
+ OrderCreateParamsBillingDetails as OrderCreateParamsBillingDetails,
+ OrderCreateParamsBillingDetailsAddress as OrderCreateParamsBillingDetailsAddress,
+ OrderCreateParamsDiscount as OrderCreateParamsDiscount,
+ OrderCreateParamsLineItem as OrderCreateParamsLineItem,
+ OrderCreateParamsLineItemDiscount as OrderCreateParamsLineItemDiscount,
+ OrderCreateParamsLineItemPriceData as OrderCreateParamsLineItemPriceData,
+ OrderCreateParamsLineItemProductData as OrderCreateParamsLineItemProductData,
+ OrderCreateParamsLineItemProductDataPackageDimensions as OrderCreateParamsLineItemProductDataPackageDimensions,
+ OrderCreateParamsPayment as OrderCreateParamsPayment,
+ OrderCreateParamsPaymentSettings as OrderCreateParamsPaymentSettings,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptions as OrderCreateParamsPaymentSettingsPaymentMethodOptions,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit as OrderCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as OrderCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay as OrderCreateParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsAlipay as OrderCreateParamsPaymentSettingsPaymentMethodOptionsAlipay,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsBancontact as OrderCreateParamsPaymentSettingsPaymentMethodOptionsBancontact,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsCard as OrderCreateParamsPaymentSettingsPaymentMethodOptionsCard,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer as OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsIdeal as OrderCreateParamsPaymentSettingsPaymentMethodOptionsIdeal,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarna as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarna,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsLink as OrderCreateParamsPaymentSettingsPaymentMethodOptionsLink,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsOxxo as OrderCreateParamsPaymentSettingsPaymentMethodOptionsOxxo,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsP24 as OrderCreateParamsPaymentSettingsPaymentMethodOptionsP24,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypal as OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypal,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem as OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax as OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit as OrderCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions as OrderCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsSofort as OrderCreateParamsPaymentSettingsPaymentMethodOptionsSofort,
+ OrderCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay as OrderCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay,
+ OrderCreateParamsPaymentSettingsTransferData as OrderCreateParamsPaymentSettingsTransferData,
+ OrderCreateParamsShippingCost as OrderCreateParamsShippingCost,
+ OrderCreateParamsShippingCostShippingRateData as OrderCreateParamsShippingCostShippingRateData,
+ OrderCreateParamsShippingCostShippingRateDataDeliveryEstimate as OrderCreateParamsShippingCostShippingRateDataDeliveryEstimate,
+ OrderCreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum as OrderCreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum,
+ OrderCreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum as OrderCreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum,
+ OrderCreateParamsShippingCostShippingRateDataFixedAmount as OrderCreateParamsShippingCostShippingRateDataFixedAmount,
+ OrderCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions as OrderCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions,
+ OrderCreateParamsShippingDetails as OrderCreateParamsShippingDetails,
+ OrderCreateParamsShippingDetailsAddress as OrderCreateParamsShippingDetailsAddress,
+ OrderCreateParamsTaxDetails as OrderCreateParamsTaxDetails,
+ OrderCreateParamsTaxDetailsTaxId as OrderCreateParamsTaxDetailsTaxId,
+ )
+ from stripe.params._order_line_item_list_params import (
+ OrderLineItemListParams as OrderLineItemListParams,
+ )
+ from stripe.params._order_list_line_items_params import (
+ OrderListLineItemsParams as OrderListLineItemsParams,
+ )
+ from stripe.params._order_list_params import (
+ OrderListParams as OrderListParams,
+ )
+ from stripe.params._order_modify_params import (
+ OrderModifyParams as OrderModifyParams,
+ OrderModifyParamsAutomaticTax as OrderModifyParamsAutomaticTax,
+ OrderModifyParamsBillingDetails as OrderModifyParamsBillingDetails,
+ OrderModifyParamsBillingDetailsAddress as OrderModifyParamsBillingDetailsAddress,
+ OrderModifyParamsDiscount as OrderModifyParamsDiscount,
+ OrderModifyParamsLineItem as OrderModifyParamsLineItem,
+ OrderModifyParamsLineItemDiscount as OrderModifyParamsLineItemDiscount,
+ OrderModifyParamsLineItemPriceData as OrderModifyParamsLineItemPriceData,
+ OrderModifyParamsLineItemProductData as OrderModifyParamsLineItemProductData,
+ OrderModifyParamsLineItemProductDataPackageDimensions as OrderModifyParamsLineItemProductDataPackageDimensions,
+ OrderModifyParamsPayment as OrderModifyParamsPayment,
+ OrderModifyParamsPaymentSettings as OrderModifyParamsPaymentSettings,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptions as OrderModifyParamsPaymentSettingsPaymentMethodOptions,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit as OrderModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as OrderModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay as OrderModifyParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsAlipay as OrderModifyParamsPaymentSettingsPaymentMethodOptionsAlipay,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsBancontact as OrderModifyParamsPaymentSettingsPaymentMethodOptionsBancontact,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsCard as OrderModifyParamsPaymentSettingsPaymentMethodOptionsCard,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer as OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsIdeal as OrderModifyParamsPaymentSettingsPaymentMethodOptionsIdeal,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarna as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarna,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsLink as OrderModifyParamsPaymentSettingsPaymentMethodOptionsLink,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsOxxo as OrderModifyParamsPaymentSettingsPaymentMethodOptionsOxxo,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsP24 as OrderModifyParamsPaymentSettingsPaymentMethodOptionsP24,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypal as OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypal,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem as OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax as OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit as OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions as OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsSofort as OrderModifyParamsPaymentSettingsPaymentMethodOptionsSofort,
+ OrderModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay as OrderModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay,
+ OrderModifyParamsPaymentSettingsTransferData as OrderModifyParamsPaymentSettingsTransferData,
+ OrderModifyParamsShippingCost as OrderModifyParamsShippingCost,
+ OrderModifyParamsShippingCostShippingRateData as OrderModifyParamsShippingCostShippingRateData,
+ OrderModifyParamsShippingCostShippingRateDataDeliveryEstimate as OrderModifyParamsShippingCostShippingRateDataDeliveryEstimate,
+ OrderModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximum as OrderModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximum,
+ OrderModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimum as OrderModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimum,
+ OrderModifyParamsShippingCostShippingRateDataFixedAmount as OrderModifyParamsShippingCostShippingRateDataFixedAmount,
+ OrderModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions as OrderModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions,
+ OrderModifyParamsShippingDetails as OrderModifyParamsShippingDetails,
+ OrderModifyParamsShippingDetailsAddress as OrderModifyParamsShippingDetailsAddress,
+ OrderModifyParamsTaxDetails as OrderModifyParamsTaxDetails,
+ OrderModifyParamsTaxDetailsTaxId as OrderModifyParamsTaxDetailsTaxId,
+ )
+ from stripe.params._order_reopen_params import (
+ OrderReopenParams as OrderReopenParams,
+ )
+ from stripe.params._order_retrieve_params import (
+ OrderRetrieveParams as OrderRetrieveParams,
+ )
+ from stripe.params._order_submit_params import (
+ OrderSubmitParams as OrderSubmitParams,
+ )
+ from stripe.params._order_update_params import (
+ OrderUpdateParams as OrderUpdateParams,
+ OrderUpdateParamsAutomaticTax as OrderUpdateParamsAutomaticTax,
+ OrderUpdateParamsBillingDetails as OrderUpdateParamsBillingDetails,
+ OrderUpdateParamsBillingDetailsAddress as OrderUpdateParamsBillingDetailsAddress,
+ OrderUpdateParamsDiscount as OrderUpdateParamsDiscount,
+ OrderUpdateParamsLineItem as OrderUpdateParamsLineItem,
+ OrderUpdateParamsLineItemDiscount as OrderUpdateParamsLineItemDiscount,
+ OrderUpdateParamsLineItemPriceData as OrderUpdateParamsLineItemPriceData,
+ OrderUpdateParamsLineItemProductData as OrderUpdateParamsLineItemProductData,
+ OrderUpdateParamsLineItemProductDataPackageDimensions as OrderUpdateParamsLineItemProductDataPackageDimensions,
+ OrderUpdateParamsPayment as OrderUpdateParamsPayment,
+ OrderUpdateParamsPaymentSettings as OrderUpdateParamsPaymentSettings,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptions as OrderUpdateParamsPaymentSettingsPaymentMethodOptions,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAlipay as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAlipay,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCard as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCard,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsIdeal as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsIdeal,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarna as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarna,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsLink as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsLink,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsOxxo as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsOxxo,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsP24 as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsP24,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypal as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypal,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSofort as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSofort,
+ OrderUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay as OrderUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay,
+ OrderUpdateParamsPaymentSettingsTransferData as OrderUpdateParamsPaymentSettingsTransferData,
+ OrderUpdateParamsShippingCost as OrderUpdateParamsShippingCost,
+ OrderUpdateParamsShippingCostShippingRateData as OrderUpdateParamsShippingCostShippingRateData,
+ OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimate as OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimate,
+ OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximum as OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximum,
+ OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimum as OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimum,
+ OrderUpdateParamsShippingCostShippingRateDataFixedAmount as OrderUpdateParamsShippingCostShippingRateDataFixedAmount,
+ OrderUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions as OrderUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions,
+ OrderUpdateParamsShippingDetails as OrderUpdateParamsShippingDetails,
+ OrderUpdateParamsShippingDetailsAddress as OrderUpdateParamsShippingDetailsAddress,
+ OrderUpdateParamsTaxDetails as OrderUpdateParamsTaxDetails,
+ OrderUpdateParamsTaxDetailsTaxId as OrderUpdateParamsTaxDetailsTaxId,
+ )
from stripe.params._payment_attempt_record_list_params import (
PaymentAttemptRecordListParams as PaymentAttemptRecordListParams,
)
@@ -1371,6 +2092,74 @@
PaymentIntentCaptureParamsHooksInputs as PaymentIntentCaptureParamsHooksInputs,
PaymentIntentCaptureParamsHooksInputsTax as PaymentIntentCaptureParamsHooksInputsTax,
PaymentIntentCaptureParamsPaymentDetails as PaymentIntentCaptureParamsPaymentDetails,
+ PaymentIntentCaptureParamsPaymentDetailsCarRental as PaymentIntentCaptureParamsPaymentDetailsCarRental,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalAffiliate as PaymentIntentCaptureParamsPaymentDetailsCarRentalAffiliate,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDelivery as PaymentIntentCaptureParamsPaymentDetailsCarRentalDelivery,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDeliveryRecipient as PaymentIntentCaptureParamsPaymentDetailsCarRentalDeliveryRecipient,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDistance as PaymentIntentCaptureParamsPaymentDetailsCarRentalDistance,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalDriver as PaymentIntentCaptureParamsPaymentDetailsCarRentalDriver,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalPickupAddress as PaymentIntentCaptureParamsPaymentDetailsCarRentalPickupAddress,
+ PaymentIntentCaptureParamsPaymentDetailsCarRentalReturnAddress as PaymentIntentCaptureParamsPaymentDetailsCarRentalReturnAddress,
+ PaymentIntentCaptureParamsPaymentDetailsEventDetails as PaymentIntentCaptureParamsPaymentDetailsEventDetails,
+ PaymentIntentCaptureParamsPaymentDetailsEventDetailsAddress as PaymentIntentCaptureParamsPaymentDetailsEventDetailsAddress,
+ PaymentIntentCaptureParamsPaymentDetailsEventDetailsAffiliate as PaymentIntentCaptureParamsPaymentDetailsEventDetailsAffiliate,
+ PaymentIntentCaptureParamsPaymentDetailsEventDetailsDelivery as PaymentIntentCaptureParamsPaymentDetailsEventDetailsDelivery,
+ PaymentIntentCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient as PaymentIntentCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient,
+ PaymentIntentCaptureParamsPaymentDetailsFlight as PaymentIntentCaptureParamsPaymentDetailsFlight,
+ PaymentIntentCaptureParamsPaymentDetailsFlightAffiliate as PaymentIntentCaptureParamsPaymentDetailsFlightAffiliate,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDatum as PaymentIntentCaptureParamsPaymentDetailsFlightDatum,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDatumAffiliate as PaymentIntentCaptureParamsPaymentDetailsFlightDatumAffiliate,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDatumInsurance as PaymentIntentCaptureParamsPaymentDetailsFlightDatumInsurance,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDatumPassenger as PaymentIntentCaptureParamsPaymentDetailsFlightDatumPassenger,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegment as PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegment,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentArrival as PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentArrival,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentDeparture as PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentDeparture,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotal as PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotal,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalDiscounts as PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalDiscounts,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge as PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTax as PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTax,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTaxTax as PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTaxTax,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDelivery as PaymentIntentCaptureParamsPaymentDetailsFlightDelivery,
+ PaymentIntentCaptureParamsPaymentDetailsFlightDeliveryRecipient as PaymentIntentCaptureParamsPaymentDetailsFlightDeliveryRecipient,
+ PaymentIntentCaptureParamsPaymentDetailsFlightPassenger as PaymentIntentCaptureParamsPaymentDetailsFlightPassenger,
+ PaymentIntentCaptureParamsPaymentDetailsFlightSegment as PaymentIntentCaptureParamsPaymentDetailsFlightSegment,
+ PaymentIntentCaptureParamsPaymentDetailsLodging as PaymentIntentCaptureParamsPaymentDetailsLodging,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingAddress as PaymentIntentCaptureParamsPaymentDetailsLodgingAddress,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingAffiliate as PaymentIntentCaptureParamsPaymentDetailsLodgingAffiliate,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatum as PaymentIntentCaptureParamsPaymentDetailsLodgingDatum,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax as PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDelivery as PaymentIntentCaptureParamsPaymentDetailsLodgingDelivery,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingDeliveryRecipient as PaymentIntentCaptureParamsPaymentDetailsLodgingDeliveryRecipient,
+ PaymentIntentCaptureParamsPaymentDetailsLodgingPassenger as PaymentIntentCaptureParamsPaymentDetailsLodgingPassenger,
+ PaymentIntentCaptureParamsPaymentDetailsSubscription as PaymentIntentCaptureParamsPaymentDetailsSubscription,
+ PaymentIntentCaptureParamsPaymentDetailsSubscriptionAffiliate as PaymentIntentCaptureParamsPaymentDetailsSubscriptionAffiliate,
+ PaymentIntentCaptureParamsPaymentDetailsSubscriptionBillingInterval as PaymentIntentCaptureParamsPaymentDetailsSubscriptionBillingInterval,
PaymentIntentCaptureParamsTransferData as PaymentIntentCaptureParamsTransferData,
)
from stripe.params._payment_intent_confirm_params import (
@@ -1393,6 +2182,74 @@
PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOffline as PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOffline,
PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOnline as PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOnline,
PaymentIntentConfirmParamsPaymentDetails as PaymentIntentConfirmParamsPaymentDetails,
+ PaymentIntentConfirmParamsPaymentDetailsCarRental as PaymentIntentConfirmParamsPaymentDetailsCarRental,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalAffiliate as PaymentIntentConfirmParamsPaymentDetailsCarRentalAffiliate,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTax as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTax,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDelivery as PaymentIntentConfirmParamsPaymentDetailsCarRentalDelivery,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDeliveryRecipient as PaymentIntentConfirmParamsPaymentDetailsCarRentalDeliveryRecipient,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDistance as PaymentIntentConfirmParamsPaymentDetailsCarRentalDistance,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalDriver as PaymentIntentConfirmParamsPaymentDetailsCarRentalDriver,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalPickupAddress as PaymentIntentConfirmParamsPaymentDetailsCarRentalPickupAddress,
+ PaymentIntentConfirmParamsPaymentDetailsCarRentalReturnAddress as PaymentIntentConfirmParamsPaymentDetailsCarRentalReturnAddress,
+ PaymentIntentConfirmParamsPaymentDetailsEventDetails as PaymentIntentConfirmParamsPaymentDetailsEventDetails,
+ PaymentIntentConfirmParamsPaymentDetailsEventDetailsAddress as PaymentIntentConfirmParamsPaymentDetailsEventDetailsAddress,
+ PaymentIntentConfirmParamsPaymentDetailsEventDetailsAffiliate as PaymentIntentConfirmParamsPaymentDetailsEventDetailsAffiliate,
+ PaymentIntentConfirmParamsPaymentDetailsEventDetailsDelivery as PaymentIntentConfirmParamsPaymentDetailsEventDetailsDelivery,
+ PaymentIntentConfirmParamsPaymentDetailsEventDetailsDeliveryRecipient as PaymentIntentConfirmParamsPaymentDetailsEventDetailsDeliveryRecipient,
+ PaymentIntentConfirmParamsPaymentDetailsFlight as PaymentIntentConfirmParamsPaymentDetailsFlight,
+ PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate as PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDatum as PaymentIntentConfirmParamsPaymentDetailsFlightDatum,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDatumAffiliate as PaymentIntentConfirmParamsPaymentDetailsFlightDatumAffiliate,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDatumInsurance as PaymentIntentConfirmParamsPaymentDetailsFlightDatumInsurance,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDatumPassenger as PaymentIntentConfirmParamsPaymentDetailsFlightDatumPassenger,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegment as PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegment,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentArrival as PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentArrival,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentDeparture as PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentDeparture,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotal as PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotal,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalDiscounts as PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalDiscounts,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalExtraCharge as PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalExtraCharge,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTax as PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTax,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTaxTax as PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTaxTax,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDelivery as PaymentIntentConfirmParamsPaymentDetailsFlightDelivery,
+ PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient as PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient,
+ PaymentIntentConfirmParamsPaymentDetailsFlightPassenger as PaymentIntentConfirmParamsPaymentDetailsFlightPassenger,
+ PaymentIntentConfirmParamsPaymentDetailsFlightSegment as PaymentIntentConfirmParamsPaymentDetailsFlightSegment,
+ PaymentIntentConfirmParamsPaymentDetailsLodging as PaymentIntentConfirmParamsPaymentDetailsLodging,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingAddress as PaymentIntentConfirmParamsPaymentDetailsLodgingAddress,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingAffiliate as PaymentIntentConfirmParamsPaymentDetailsLodgingAffiliate,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatum as PaymentIntentConfirmParamsPaymentDetailsLodgingDatum,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTax as PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTax,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDelivery as PaymentIntentConfirmParamsPaymentDetailsLodgingDelivery,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingDeliveryRecipient as PaymentIntentConfirmParamsPaymentDetailsLodgingDeliveryRecipient,
+ PaymentIntentConfirmParamsPaymentDetailsLodgingPassenger as PaymentIntentConfirmParamsPaymentDetailsLodgingPassenger,
+ PaymentIntentConfirmParamsPaymentDetailsSubscription as PaymentIntentConfirmParamsPaymentDetailsSubscription,
+ PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate as PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate,
+ PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval as PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval,
PaymentIntentConfirmParamsPaymentMethodData as PaymentIntentConfirmParamsPaymentMethodData,
PaymentIntentConfirmParamsPaymentMethodDataAcssDebit as PaymentIntentConfirmParamsPaymentMethodDataAcssDebit,
PaymentIntentConfirmParamsPaymentMethodDataAffirm as PaymentIntentConfirmParamsPaymentMethodDataAffirm,
@@ -1414,7 +2271,9 @@
PaymentIntentConfirmParamsPaymentMethodDataEps as PaymentIntentConfirmParamsPaymentMethodDataEps,
PaymentIntentConfirmParamsPaymentMethodDataFpx as PaymentIntentConfirmParamsPaymentMethodDataFpx,
PaymentIntentConfirmParamsPaymentMethodDataGiropay as PaymentIntentConfirmParamsPaymentMethodDataGiropay,
+ PaymentIntentConfirmParamsPaymentMethodDataGopay as PaymentIntentConfirmParamsPaymentMethodDataGopay,
PaymentIntentConfirmParamsPaymentMethodDataGrabpay as PaymentIntentConfirmParamsPaymentMethodDataGrabpay,
+ PaymentIntentConfirmParamsPaymentMethodDataIdBankTransfer as PaymentIntentConfirmParamsPaymentMethodDataIdBankTransfer,
PaymentIntentConfirmParamsPaymentMethodDataIdeal as PaymentIntentConfirmParamsPaymentMethodDataIdeal,
PaymentIntentConfirmParamsPaymentMethodDataInteracPresent as PaymentIntentConfirmParamsPaymentMethodDataInteracPresent,
PaymentIntentConfirmParamsPaymentMethodDataKakaoPay as PaymentIntentConfirmParamsPaymentMethodDataKakaoPay,
@@ -1434,15 +2293,21 @@
PaymentIntentConfirmParamsPaymentMethodDataPayco as PaymentIntentConfirmParamsPaymentMethodDataPayco,
PaymentIntentConfirmParamsPaymentMethodDataPaynow as PaymentIntentConfirmParamsPaymentMethodDataPaynow,
PaymentIntentConfirmParamsPaymentMethodDataPaypal as PaymentIntentConfirmParamsPaymentMethodDataPaypal,
+ PaymentIntentConfirmParamsPaymentMethodDataPaypay as PaymentIntentConfirmParamsPaymentMethodDataPaypay,
PaymentIntentConfirmParamsPaymentMethodDataPayto as PaymentIntentConfirmParamsPaymentMethodDataPayto,
PaymentIntentConfirmParamsPaymentMethodDataPix as PaymentIntentConfirmParamsPaymentMethodDataPix,
PaymentIntentConfirmParamsPaymentMethodDataPromptpay as PaymentIntentConfirmParamsPaymentMethodDataPromptpay,
+ PaymentIntentConfirmParamsPaymentMethodDataQris as PaymentIntentConfirmParamsPaymentMethodDataQris,
PaymentIntentConfirmParamsPaymentMethodDataRadarOptions as PaymentIntentConfirmParamsPaymentMethodDataRadarOptions,
+ PaymentIntentConfirmParamsPaymentMethodDataRechnung as PaymentIntentConfirmParamsPaymentMethodDataRechnung,
+ PaymentIntentConfirmParamsPaymentMethodDataRechnungDob as PaymentIntentConfirmParamsPaymentMethodDataRechnungDob,
PaymentIntentConfirmParamsPaymentMethodDataRevolutPay as PaymentIntentConfirmParamsPaymentMethodDataRevolutPay,
PaymentIntentConfirmParamsPaymentMethodDataSamsungPay as PaymentIntentConfirmParamsPaymentMethodDataSamsungPay,
PaymentIntentConfirmParamsPaymentMethodDataSatispay as PaymentIntentConfirmParamsPaymentMethodDataSatispay,
PaymentIntentConfirmParamsPaymentMethodDataSepaDebit as PaymentIntentConfirmParamsPaymentMethodDataSepaDebit,
+ PaymentIntentConfirmParamsPaymentMethodDataShopeepay as PaymentIntentConfirmParamsPaymentMethodDataShopeepay,
PaymentIntentConfirmParamsPaymentMethodDataSofort as PaymentIntentConfirmParamsPaymentMethodDataSofort,
+ PaymentIntentConfirmParamsPaymentMethodDataStripeBalance as PaymentIntentConfirmParamsPaymentMethodDataStripeBalance,
PaymentIntentConfirmParamsPaymentMethodDataSwish as PaymentIntentConfirmParamsPaymentMethodDataSwish,
PaymentIntentConfirmParamsPaymentMethodDataTwint as PaymentIntentConfirmParamsPaymentMethodDataTwint,
PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount as PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount,
@@ -1469,6 +2334,8 @@
PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions,
PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent as PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent,
PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting as PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting,
+ PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetails as PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetails,
+ PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetailsAddress as PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetailsAddress,
PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure as PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure,
PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions as PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions,
PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires as PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires,
@@ -1480,7 +2347,9 @@
PaymentIntentConfirmParamsPaymentMethodOptionsEps as PaymentIntentConfirmParamsPaymentMethodOptionsEps,
PaymentIntentConfirmParamsPaymentMethodOptionsFpx as PaymentIntentConfirmParamsPaymentMethodOptionsFpx,
PaymentIntentConfirmParamsPaymentMethodOptionsGiropay as PaymentIntentConfirmParamsPaymentMethodOptionsGiropay,
+ PaymentIntentConfirmParamsPaymentMethodOptionsGopay as PaymentIntentConfirmParamsPaymentMethodOptionsGopay,
PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay as PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay,
+ PaymentIntentConfirmParamsPaymentMethodOptionsIdBankTransfer as PaymentIntentConfirmParamsPaymentMethodOptionsIdBankTransfer,
PaymentIntentConfirmParamsPaymentMethodOptionsIdeal as PaymentIntentConfirmParamsPaymentMethodOptionsIdeal,
PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent as PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent,
PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay as PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay,
@@ -1488,6 +2357,42 @@
PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand,
PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription,
PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger,
+ PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher,
PaymentIntentConfirmParamsPaymentMethodOptionsKonbini as PaymentIntentConfirmParamsPaymentMethodOptionsKonbini,
PaymentIntentConfirmParamsPaymentMethodOptionsKrCard as PaymentIntentConfirmParamsPaymentMethodOptionsKrCard,
PaymentIntentConfirmParamsPaymentMethodOptionsLink as PaymentIntentConfirmParamsPaymentMethodOptionsLink,
@@ -1502,21 +2407,30 @@
PaymentIntentConfirmParamsPaymentMethodOptionsPayco as PaymentIntentConfirmParamsPaymentMethodOptionsPayco,
PaymentIntentConfirmParamsPaymentMethodOptionsPaynow as PaymentIntentConfirmParamsPaymentMethodOptionsPaynow,
PaymentIntentConfirmParamsPaymentMethodOptionsPaypal as PaymentIntentConfirmParamsPaymentMethodOptionsPaypal,
+ PaymentIntentConfirmParamsPaymentMethodOptionsPaypalLineItem as PaymentIntentConfirmParamsPaymentMethodOptionsPaypalLineItem,
+ PaymentIntentConfirmParamsPaymentMethodOptionsPaypalLineItemTax as PaymentIntentConfirmParamsPaymentMethodOptionsPaypalLineItemTax,
+ PaymentIntentConfirmParamsPaymentMethodOptionsPaypay as PaymentIntentConfirmParamsPaymentMethodOptionsPaypay,
PaymentIntentConfirmParamsPaymentMethodOptionsPayto as PaymentIntentConfirmParamsPaymentMethodOptionsPayto,
PaymentIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions,
PaymentIntentConfirmParamsPaymentMethodOptionsPix as PaymentIntentConfirmParamsPaymentMethodOptionsPix,
+ PaymentIntentConfirmParamsPaymentMethodOptionsPixMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsPixMandateOptions,
PaymentIntentConfirmParamsPaymentMethodOptionsPromptpay as PaymentIntentConfirmParamsPaymentMethodOptionsPromptpay,
+ PaymentIntentConfirmParamsPaymentMethodOptionsQris as PaymentIntentConfirmParamsPaymentMethodOptionsQris,
+ PaymentIntentConfirmParamsPaymentMethodOptionsRechnung as PaymentIntentConfirmParamsPaymentMethodOptionsRechnung,
PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay as PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay,
PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay as PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay,
PaymentIntentConfirmParamsPaymentMethodOptionsSatispay as PaymentIntentConfirmParamsPaymentMethodOptionsSatispay,
PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit,
PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions,
+ PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay as PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay,
PaymentIntentConfirmParamsPaymentMethodOptionsSofort as PaymentIntentConfirmParamsPaymentMethodOptionsSofort,
+ PaymentIntentConfirmParamsPaymentMethodOptionsStripeBalance as PaymentIntentConfirmParamsPaymentMethodOptionsStripeBalance,
PaymentIntentConfirmParamsPaymentMethodOptionsSwish as PaymentIntentConfirmParamsPaymentMethodOptionsSwish,
PaymentIntentConfirmParamsPaymentMethodOptionsTwint as PaymentIntentConfirmParamsPaymentMethodOptionsTwint,
PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount as PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount,
PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections as PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
+ PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry as PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry,
PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions,
PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks as PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks,
PaymentIntentConfirmParamsPaymentMethodOptionsWechatPay as PaymentIntentConfirmParamsPaymentMethodOptionsWechatPay,
@@ -1546,6 +2460,74 @@
PaymentIntentCreateParamsMandateDataCustomerAcceptanceOffline as PaymentIntentCreateParamsMandateDataCustomerAcceptanceOffline,
PaymentIntentCreateParamsMandateDataCustomerAcceptanceOnline as PaymentIntentCreateParamsMandateDataCustomerAcceptanceOnline,
PaymentIntentCreateParamsPaymentDetails as PaymentIntentCreateParamsPaymentDetails,
+ PaymentIntentCreateParamsPaymentDetailsCarRental as PaymentIntentCreateParamsPaymentDetailsCarRental,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalAffiliate as PaymentIntentCreateParamsPaymentDetailsCarRentalAffiliate,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatum as PaymentIntentCreateParamsPaymentDetailsCarRentalDatum,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTax as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTax,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDelivery as PaymentIntentCreateParamsPaymentDetailsCarRentalDelivery,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDeliveryRecipient as PaymentIntentCreateParamsPaymentDetailsCarRentalDeliveryRecipient,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDistance as PaymentIntentCreateParamsPaymentDetailsCarRentalDistance,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalDriver as PaymentIntentCreateParamsPaymentDetailsCarRentalDriver,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalPickupAddress as PaymentIntentCreateParamsPaymentDetailsCarRentalPickupAddress,
+ PaymentIntentCreateParamsPaymentDetailsCarRentalReturnAddress as PaymentIntentCreateParamsPaymentDetailsCarRentalReturnAddress,
+ PaymentIntentCreateParamsPaymentDetailsEventDetails as PaymentIntentCreateParamsPaymentDetailsEventDetails,
+ PaymentIntentCreateParamsPaymentDetailsEventDetailsAddress as PaymentIntentCreateParamsPaymentDetailsEventDetailsAddress,
+ PaymentIntentCreateParamsPaymentDetailsEventDetailsAffiliate as PaymentIntentCreateParamsPaymentDetailsEventDetailsAffiliate,
+ PaymentIntentCreateParamsPaymentDetailsEventDetailsDelivery as PaymentIntentCreateParamsPaymentDetailsEventDetailsDelivery,
+ PaymentIntentCreateParamsPaymentDetailsEventDetailsDeliveryRecipient as PaymentIntentCreateParamsPaymentDetailsEventDetailsDeliveryRecipient,
+ PaymentIntentCreateParamsPaymentDetailsFlight as PaymentIntentCreateParamsPaymentDetailsFlight,
+ PaymentIntentCreateParamsPaymentDetailsFlightAffiliate as PaymentIntentCreateParamsPaymentDetailsFlightAffiliate,
+ PaymentIntentCreateParamsPaymentDetailsFlightDatum as PaymentIntentCreateParamsPaymentDetailsFlightDatum,
+ PaymentIntentCreateParamsPaymentDetailsFlightDatumAffiliate as PaymentIntentCreateParamsPaymentDetailsFlightDatumAffiliate,
+ PaymentIntentCreateParamsPaymentDetailsFlightDatumInsurance as PaymentIntentCreateParamsPaymentDetailsFlightDatumInsurance,
+ PaymentIntentCreateParamsPaymentDetailsFlightDatumPassenger as PaymentIntentCreateParamsPaymentDetailsFlightDatumPassenger,
+ PaymentIntentCreateParamsPaymentDetailsFlightDatumSegment as PaymentIntentCreateParamsPaymentDetailsFlightDatumSegment,
+ PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentArrival as PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentArrival,
+ PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentDeparture as PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentDeparture,
+ PaymentIntentCreateParamsPaymentDetailsFlightDatumTotal as PaymentIntentCreateParamsPaymentDetailsFlightDatumTotal,
+ PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalDiscounts as PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalDiscounts,
+ PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalExtraCharge as PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalExtraCharge,
+ PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTax as PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTax,
+ PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTaxTax as PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTaxTax,
+ PaymentIntentCreateParamsPaymentDetailsFlightDelivery as PaymentIntentCreateParamsPaymentDetailsFlightDelivery,
+ PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient as PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient,
+ PaymentIntentCreateParamsPaymentDetailsFlightPassenger as PaymentIntentCreateParamsPaymentDetailsFlightPassenger,
+ PaymentIntentCreateParamsPaymentDetailsFlightSegment as PaymentIntentCreateParamsPaymentDetailsFlightSegment,
+ PaymentIntentCreateParamsPaymentDetailsLodging as PaymentIntentCreateParamsPaymentDetailsLodging,
+ PaymentIntentCreateParamsPaymentDetailsLodgingAddress as PaymentIntentCreateParamsPaymentDetailsLodgingAddress,
+ PaymentIntentCreateParamsPaymentDetailsLodgingAffiliate as PaymentIntentCreateParamsPaymentDetailsLodgingAffiliate,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatum as PaymentIntentCreateParamsPaymentDetailsLodgingDatum,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest as PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost as PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTax as PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTax,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDelivery as PaymentIntentCreateParamsPaymentDetailsLodgingDelivery,
+ PaymentIntentCreateParamsPaymentDetailsLodgingDeliveryRecipient as PaymentIntentCreateParamsPaymentDetailsLodgingDeliveryRecipient,
+ PaymentIntentCreateParamsPaymentDetailsLodgingPassenger as PaymentIntentCreateParamsPaymentDetailsLodgingPassenger,
+ PaymentIntentCreateParamsPaymentDetailsSubscription as PaymentIntentCreateParamsPaymentDetailsSubscription,
+ PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate as PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate,
+ PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval as PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval,
PaymentIntentCreateParamsPaymentMethodData as PaymentIntentCreateParamsPaymentMethodData,
PaymentIntentCreateParamsPaymentMethodDataAcssDebit as PaymentIntentCreateParamsPaymentMethodDataAcssDebit,
PaymentIntentCreateParamsPaymentMethodDataAffirm as PaymentIntentCreateParamsPaymentMethodDataAffirm,
@@ -1567,7 +2549,9 @@
PaymentIntentCreateParamsPaymentMethodDataEps as PaymentIntentCreateParamsPaymentMethodDataEps,
PaymentIntentCreateParamsPaymentMethodDataFpx as PaymentIntentCreateParamsPaymentMethodDataFpx,
PaymentIntentCreateParamsPaymentMethodDataGiropay as PaymentIntentCreateParamsPaymentMethodDataGiropay,
+ PaymentIntentCreateParamsPaymentMethodDataGopay as PaymentIntentCreateParamsPaymentMethodDataGopay,
PaymentIntentCreateParamsPaymentMethodDataGrabpay as PaymentIntentCreateParamsPaymentMethodDataGrabpay,
+ PaymentIntentCreateParamsPaymentMethodDataIdBankTransfer as PaymentIntentCreateParamsPaymentMethodDataIdBankTransfer,
PaymentIntentCreateParamsPaymentMethodDataIdeal as PaymentIntentCreateParamsPaymentMethodDataIdeal,
PaymentIntentCreateParamsPaymentMethodDataInteracPresent as PaymentIntentCreateParamsPaymentMethodDataInteracPresent,
PaymentIntentCreateParamsPaymentMethodDataKakaoPay as PaymentIntentCreateParamsPaymentMethodDataKakaoPay,
@@ -1587,15 +2571,21 @@
PaymentIntentCreateParamsPaymentMethodDataPayco as PaymentIntentCreateParamsPaymentMethodDataPayco,
PaymentIntentCreateParamsPaymentMethodDataPaynow as PaymentIntentCreateParamsPaymentMethodDataPaynow,
PaymentIntentCreateParamsPaymentMethodDataPaypal as PaymentIntentCreateParamsPaymentMethodDataPaypal,
+ PaymentIntentCreateParamsPaymentMethodDataPaypay as PaymentIntentCreateParamsPaymentMethodDataPaypay,
PaymentIntentCreateParamsPaymentMethodDataPayto as PaymentIntentCreateParamsPaymentMethodDataPayto,
PaymentIntentCreateParamsPaymentMethodDataPix as PaymentIntentCreateParamsPaymentMethodDataPix,
PaymentIntentCreateParamsPaymentMethodDataPromptpay as PaymentIntentCreateParamsPaymentMethodDataPromptpay,
+ PaymentIntentCreateParamsPaymentMethodDataQris as PaymentIntentCreateParamsPaymentMethodDataQris,
PaymentIntentCreateParamsPaymentMethodDataRadarOptions as PaymentIntentCreateParamsPaymentMethodDataRadarOptions,
+ PaymentIntentCreateParamsPaymentMethodDataRechnung as PaymentIntentCreateParamsPaymentMethodDataRechnung,
+ PaymentIntentCreateParamsPaymentMethodDataRechnungDob as PaymentIntentCreateParamsPaymentMethodDataRechnungDob,
PaymentIntentCreateParamsPaymentMethodDataRevolutPay as PaymentIntentCreateParamsPaymentMethodDataRevolutPay,
PaymentIntentCreateParamsPaymentMethodDataSamsungPay as PaymentIntentCreateParamsPaymentMethodDataSamsungPay,
PaymentIntentCreateParamsPaymentMethodDataSatispay as PaymentIntentCreateParamsPaymentMethodDataSatispay,
PaymentIntentCreateParamsPaymentMethodDataSepaDebit as PaymentIntentCreateParamsPaymentMethodDataSepaDebit,
+ PaymentIntentCreateParamsPaymentMethodDataShopeepay as PaymentIntentCreateParamsPaymentMethodDataShopeepay,
PaymentIntentCreateParamsPaymentMethodDataSofort as PaymentIntentCreateParamsPaymentMethodDataSofort,
+ PaymentIntentCreateParamsPaymentMethodDataStripeBalance as PaymentIntentCreateParamsPaymentMethodDataStripeBalance,
PaymentIntentCreateParamsPaymentMethodDataSwish as PaymentIntentCreateParamsPaymentMethodDataSwish,
PaymentIntentCreateParamsPaymentMethodDataTwint as PaymentIntentCreateParamsPaymentMethodDataTwint,
PaymentIntentCreateParamsPaymentMethodDataUsBankAccount as PaymentIntentCreateParamsPaymentMethodDataUsBankAccount,
@@ -1622,6 +2612,8 @@
PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions,
PaymentIntentCreateParamsPaymentMethodOptionsCardPresent as PaymentIntentCreateParamsPaymentMethodOptionsCardPresent,
PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting as PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting,
+ PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetails as PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetails,
+ PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetailsAddress as PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetailsAddress,
PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure as PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure,
PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions as PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions,
PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires as PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires,
@@ -1633,7 +2625,9 @@
PaymentIntentCreateParamsPaymentMethodOptionsEps as PaymentIntentCreateParamsPaymentMethodOptionsEps,
PaymentIntentCreateParamsPaymentMethodOptionsFpx as PaymentIntentCreateParamsPaymentMethodOptionsFpx,
PaymentIntentCreateParamsPaymentMethodOptionsGiropay as PaymentIntentCreateParamsPaymentMethodOptionsGiropay,
+ PaymentIntentCreateParamsPaymentMethodOptionsGopay as PaymentIntentCreateParamsPaymentMethodOptionsGopay,
PaymentIntentCreateParamsPaymentMethodOptionsGrabpay as PaymentIntentCreateParamsPaymentMethodOptionsGrabpay,
+ PaymentIntentCreateParamsPaymentMethodOptionsIdBankTransfer as PaymentIntentCreateParamsPaymentMethodOptionsIdBankTransfer,
PaymentIntentCreateParamsPaymentMethodOptionsIdeal as PaymentIntentCreateParamsPaymentMethodOptionsIdeal,
PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent as PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent,
PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay as PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay,
@@ -1641,6 +2635,42 @@
PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand,
PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription,
PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger,
+ PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher,
PaymentIntentCreateParamsPaymentMethodOptionsKonbini as PaymentIntentCreateParamsPaymentMethodOptionsKonbini,
PaymentIntentCreateParamsPaymentMethodOptionsKrCard as PaymentIntentCreateParamsPaymentMethodOptionsKrCard,
PaymentIntentCreateParamsPaymentMethodOptionsLink as PaymentIntentCreateParamsPaymentMethodOptionsLink,
@@ -1655,21 +2685,30 @@
PaymentIntentCreateParamsPaymentMethodOptionsPayco as PaymentIntentCreateParamsPaymentMethodOptionsPayco,
PaymentIntentCreateParamsPaymentMethodOptionsPaynow as PaymentIntentCreateParamsPaymentMethodOptionsPaynow,
PaymentIntentCreateParamsPaymentMethodOptionsPaypal as PaymentIntentCreateParamsPaymentMethodOptionsPaypal,
+ PaymentIntentCreateParamsPaymentMethodOptionsPaypalLineItem as PaymentIntentCreateParamsPaymentMethodOptionsPaypalLineItem,
+ PaymentIntentCreateParamsPaymentMethodOptionsPaypalLineItemTax as PaymentIntentCreateParamsPaymentMethodOptionsPaypalLineItemTax,
+ PaymentIntentCreateParamsPaymentMethodOptionsPaypay as PaymentIntentCreateParamsPaymentMethodOptionsPaypay,
PaymentIntentCreateParamsPaymentMethodOptionsPayto as PaymentIntentCreateParamsPaymentMethodOptionsPayto,
PaymentIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions,
PaymentIntentCreateParamsPaymentMethodOptionsPix as PaymentIntentCreateParamsPaymentMethodOptionsPix,
+ PaymentIntentCreateParamsPaymentMethodOptionsPixMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsPixMandateOptions,
PaymentIntentCreateParamsPaymentMethodOptionsPromptpay as PaymentIntentCreateParamsPaymentMethodOptionsPromptpay,
+ PaymentIntentCreateParamsPaymentMethodOptionsQris as PaymentIntentCreateParamsPaymentMethodOptionsQris,
+ PaymentIntentCreateParamsPaymentMethodOptionsRechnung as PaymentIntentCreateParamsPaymentMethodOptionsRechnung,
PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay as PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay,
PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay as PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay,
PaymentIntentCreateParamsPaymentMethodOptionsSatispay as PaymentIntentCreateParamsPaymentMethodOptionsSatispay,
PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit,
PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions,
+ PaymentIntentCreateParamsPaymentMethodOptionsShopeepay as PaymentIntentCreateParamsPaymentMethodOptionsShopeepay,
PaymentIntentCreateParamsPaymentMethodOptionsSofort as PaymentIntentCreateParamsPaymentMethodOptionsSofort,
+ PaymentIntentCreateParamsPaymentMethodOptionsStripeBalance as PaymentIntentCreateParamsPaymentMethodOptionsStripeBalance,
PaymentIntentCreateParamsPaymentMethodOptionsSwish as PaymentIntentCreateParamsPaymentMethodOptionsSwish,
PaymentIntentCreateParamsPaymentMethodOptionsTwint as PaymentIntentCreateParamsPaymentMethodOptionsTwint,
PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount as PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount,
PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
+ PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry as PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry,
PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions,
PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks as PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks,
PaymentIntentCreateParamsPaymentMethodOptionsWechatPay as PaymentIntentCreateParamsPaymentMethodOptionsWechatPay,
@@ -1679,6 +2718,13 @@
PaymentIntentCreateParamsShippingAddress as PaymentIntentCreateParamsShippingAddress,
PaymentIntentCreateParamsTransferData as PaymentIntentCreateParamsTransferData,
)
+ from stripe.params._payment_intent_decrement_authorization_params import (
+ PaymentIntentDecrementAuthorizationParams as PaymentIntentDecrementAuthorizationParams,
+ PaymentIntentDecrementAuthorizationParamsHooks as PaymentIntentDecrementAuthorizationParamsHooks,
+ PaymentIntentDecrementAuthorizationParamsHooksInputs as PaymentIntentDecrementAuthorizationParamsHooksInputs,
+ PaymentIntentDecrementAuthorizationParamsHooksInputsTax as PaymentIntentDecrementAuthorizationParamsHooksInputsTax,
+ PaymentIntentDecrementAuthorizationParamsTransferData as PaymentIntentDecrementAuthorizationParamsTransferData,
+ )
from stripe.params._payment_intent_increment_authorization_params import (
PaymentIntentIncrementAuthorizationParams as PaymentIntentIncrementAuthorizationParams,
PaymentIntentIncrementAuthorizationParamsAmountDetails as PaymentIntentIncrementAuthorizationParamsAmountDetails,
@@ -1695,6 +2741,8 @@
PaymentIntentIncrementAuthorizationParamsHooksInputs as PaymentIntentIncrementAuthorizationParamsHooksInputs,
PaymentIntentIncrementAuthorizationParamsHooksInputsTax as PaymentIntentIncrementAuthorizationParamsHooksInputsTax,
PaymentIntentIncrementAuthorizationParamsPaymentDetails as PaymentIntentIncrementAuthorizationParamsPaymentDetails,
+ PaymentIntentIncrementAuthorizationParamsPaymentMethodOptions as PaymentIntentIncrementAuthorizationParamsPaymentMethodOptions,
+ PaymentIntentIncrementAuthorizationParamsPaymentMethodOptionsCard as PaymentIntentIncrementAuthorizationParamsPaymentMethodOptionsCard,
PaymentIntentIncrementAuthorizationParamsTransferData as PaymentIntentIncrementAuthorizationParamsTransferData,
)
from stripe.params._payment_intent_list_amount_details_line_items_params import (
@@ -1719,7 +2767,78 @@
PaymentIntentModifyParamsHooks as PaymentIntentModifyParamsHooks,
PaymentIntentModifyParamsHooksInputs as PaymentIntentModifyParamsHooksInputs,
PaymentIntentModifyParamsHooksInputsTax as PaymentIntentModifyParamsHooksInputsTax,
+ PaymentIntentModifyParamsMandateData as PaymentIntentModifyParamsMandateData,
+ PaymentIntentModifyParamsMandateDataCustomerAcceptance as PaymentIntentModifyParamsMandateDataCustomerAcceptance,
+ PaymentIntentModifyParamsMandateDataCustomerAcceptanceOnline as PaymentIntentModifyParamsMandateDataCustomerAcceptanceOnline,
PaymentIntentModifyParamsPaymentDetails as PaymentIntentModifyParamsPaymentDetails,
+ PaymentIntentModifyParamsPaymentDetailsCarRental as PaymentIntentModifyParamsPaymentDetailsCarRental,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalAffiliate as PaymentIntentModifyParamsPaymentDetailsCarRentalAffiliate,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatum as PaymentIntentModifyParamsPaymentDetailsCarRentalDatum,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDelivery as PaymentIntentModifyParamsPaymentDetailsCarRentalDelivery,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDeliveryRecipient as PaymentIntentModifyParamsPaymentDetailsCarRentalDeliveryRecipient,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDistance as PaymentIntentModifyParamsPaymentDetailsCarRentalDistance,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalDriver as PaymentIntentModifyParamsPaymentDetailsCarRentalDriver,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalPickupAddress as PaymentIntentModifyParamsPaymentDetailsCarRentalPickupAddress,
+ PaymentIntentModifyParamsPaymentDetailsCarRentalReturnAddress as PaymentIntentModifyParamsPaymentDetailsCarRentalReturnAddress,
+ PaymentIntentModifyParamsPaymentDetailsEventDetails as PaymentIntentModifyParamsPaymentDetailsEventDetails,
+ PaymentIntentModifyParamsPaymentDetailsEventDetailsAddress as PaymentIntentModifyParamsPaymentDetailsEventDetailsAddress,
+ PaymentIntentModifyParamsPaymentDetailsEventDetailsAffiliate as PaymentIntentModifyParamsPaymentDetailsEventDetailsAffiliate,
+ PaymentIntentModifyParamsPaymentDetailsEventDetailsDelivery as PaymentIntentModifyParamsPaymentDetailsEventDetailsDelivery,
+ PaymentIntentModifyParamsPaymentDetailsEventDetailsDeliveryRecipient as PaymentIntentModifyParamsPaymentDetailsEventDetailsDeliveryRecipient,
+ PaymentIntentModifyParamsPaymentDetailsFlight as PaymentIntentModifyParamsPaymentDetailsFlight,
+ PaymentIntentModifyParamsPaymentDetailsFlightAffiliate as PaymentIntentModifyParamsPaymentDetailsFlightAffiliate,
+ PaymentIntentModifyParamsPaymentDetailsFlightDatum as PaymentIntentModifyParamsPaymentDetailsFlightDatum,
+ PaymentIntentModifyParamsPaymentDetailsFlightDatumAffiliate as PaymentIntentModifyParamsPaymentDetailsFlightDatumAffiliate,
+ PaymentIntentModifyParamsPaymentDetailsFlightDatumInsurance as PaymentIntentModifyParamsPaymentDetailsFlightDatumInsurance,
+ PaymentIntentModifyParamsPaymentDetailsFlightDatumPassenger as PaymentIntentModifyParamsPaymentDetailsFlightDatumPassenger,
+ PaymentIntentModifyParamsPaymentDetailsFlightDatumSegment as PaymentIntentModifyParamsPaymentDetailsFlightDatumSegment,
+ PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentArrival as PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentArrival,
+ PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentDeparture as PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentDeparture,
+ PaymentIntentModifyParamsPaymentDetailsFlightDatumTotal as PaymentIntentModifyParamsPaymentDetailsFlightDatumTotal,
+ PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalDiscounts as PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalDiscounts,
+ PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalExtraCharge as PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalExtraCharge,
+ PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTax as PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTax,
+ PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTaxTax as PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTaxTax,
+ PaymentIntentModifyParamsPaymentDetailsFlightDelivery as PaymentIntentModifyParamsPaymentDetailsFlightDelivery,
+ PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient as PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient,
+ PaymentIntentModifyParamsPaymentDetailsFlightPassenger as PaymentIntentModifyParamsPaymentDetailsFlightPassenger,
+ PaymentIntentModifyParamsPaymentDetailsFlightSegment as PaymentIntentModifyParamsPaymentDetailsFlightSegment,
+ PaymentIntentModifyParamsPaymentDetailsLodging as PaymentIntentModifyParamsPaymentDetailsLodging,
+ PaymentIntentModifyParamsPaymentDetailsLodgingAddress as PaymentIntentModifyParamsPaymentDetailsLodgingAddress,
+ PaymentIntentModifyParamsPaymentDetailsLodgingAffiliate as PaymentIntentModifyParamsPaymentDetailsLodgingAffiliate,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatum as PaymentIntentModifyParamsPaymentDetailsLodgingDatum,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest as PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost as PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTax as PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTax,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDelivery as PaymentIntentModifyParamsPaymentDetailsLodgingDelivery,
+ PaymentIntentModifyParamsPaymentDetailsLodgingDeliveryRecipient as PaymentIntentModifyParamsPaymentDetailsLodgingDeliveryRecipient,
+ PaymentIntentModifyParamsPaymentDetailsLodgingPassenger as PaymentIntentModifyParamsPaymentDetailsLodgingPassenger,
+ PaymentIntentModifyParamsPaymentDetailsSubscription as PaymentIntentModifyParamsPaymentDetailsSubscription,
+ PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate as PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate,
+ PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval as PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval,
PaymentIntentModifyParamsPaymentMethodData as PaymentIntentModifyParamsPaymentMethodData,
PaymentIntentModifyParamsPaymentMethodDataAcssDebit as PaymentIntentModifyParamsPaymentMethodDataAcssDebit,
PaymentIntentModifyParamsPaymentMethodDataAffirm as PaymentIntentModifyParamsPaymentMethodDataAffirm,
@@ -1741,7 +2860,9 @@
PaymentIntentModifyParamsPaymentMethodDataEps as PaymentIntentModifyParamsPaymentMethodDataEps,
PaymentIntentModifyParamsPaymentMethodDataFpx as PaymentIntentModifyParamsPaymentMethodDataFpx,
PaymentIntentModifyParamsPaymentMethodDataGiropay as PaymentIntentModifyParamsPaymentMethodDataGiropay,
+ PaymentIntentModifyParamsPaymentMethodDataGopay as PaymentIntentModifyParamsPaymentMethodDataGopay,
PaymentIntentModifyParamsPaymentMethodDataGrabpay as PaymentIntentModifyParamsPaymentMethodDataGrabpay,
+ PaymentIntentModifyParamsPaymentMethodDataIdBankTransfer as PaymentIntentModifyParamsPaymentMethodDataIdBankTransfer,
PaymentIntentModifyParamsPaymentMethodDataIdeal as PaymentIntentModifyParamsPaymentMethodDataIdeal,
PaymentIntentModifyParamsPaymentMethodDataInteracPresent as PaymentIntentModifyParamsPaymentMethodDataInteracPresent,
PaymentIntentModifyParamsPaymentMethodDataKakaoPay as PaymentIntentModifyParamsPaymentMethodDataKakaoPay,
@@ -1761,15 +2882,21 @@
PaymentIntentModifyParamsPaymentMethodDataPayco as PaymentIntentModifyParamsPaymentMethodDataPayco,
PaymentIntentModifyParamsPaymentMethodDataPaynow as PaymentIntentModifyParamsPaymentMethodDataPaynow,
PaymentIntentModifyParamsPaymentMethodDataPaypal as PaymentIntentModifyParamsPaymentMethodDataPaypal,
+ PaymentIntentModifyParamsPaymentMethodDataPaypay as PaymentIntentModifyParamsPaymentMethodDataPaypay,
PaymentIntentModifyParamsPaymentMethodDataPayto as PaymentIntentModifyParamsPaymentMethodDataPayto,
PaymentIntentModifyParamsPaymentMethodDataPix as PaymentIntentModifyParamsPaymentMethodDataPix,
PaymentIntentModifyParamsPaymentMethodDataPromptpay as PaymentIntentModifyParamsPaymentMethodDataPromptpay,
+ PaymentIntentModifyParamsPaymentMethodDataQris as PaymentIntentModifyParamsPaymentMethodDataQris,
PaymentIntentModifyParamsPaymentMethodDataRadarOptions as PaymentIntentModifyParamsPaymentMethodDataRadarOptions,
+ PaymentIntentModifyParamsPaymentMethodDataRechnung as PaymentIntentModifyParamsPaymentMethodDataRechnung,
+ PaymentIntentModifyParamsPaymentMethodDataRechnungDob as PaymentIntentModifyParamsPaymentMethodDataRechnungDob,
PaymentIntentModifyParamsPaymentMethodDataRevolutPay as PaymentIntentModifyParamsPaymentMethodDataRevolutPay,
PaymentIntentModifyParamsPaymentMethodDataSamsungPay as PaymentIntentModifyParamsPaymentMethodDataSamsungPay,
PaymentIntentModifyParamsPaymentMethodDataSatispay as PaymentIntentModifyParamsPaymentMethodDataSatispay,
PaymentIntentModifyParamsPaymentMethodDataSepaDebit as PaymentIntentModifyParamsPaymentMethodDataSepaDebit,
+ PaymentIntentModifyParamsPaymentMethodDataShopeepay as PaymentIntentModifyParamsPaymentMethodDataShopeepay,
PaymentIntentModifyParamsPaymentMethodDataSofort as PaymentIntentModifyParamsPaymentMethodDataSofort,
+ PaymentIntentModifyParamsPaymentMethodDataStripeBalance as PaymentIntentModifyParamsPaymentMethodDataStripeBalance,
PaymentIntentModifyParamsPaymentMethodDataSwish as PaymentIntentModifyParamsPaymentMethodDataSwish,
PaymentIntentModifyParamsPaymentMethodDataTwint as PaymentIntentModifyParamsPaymentMethodDataTwint,
PaymentIntentModifyParamsPaymentMethodDataUsBankAccount as PaymentIntentModifyParamsPaymentMethodDataUsBankAccount,
@@ -1796,6 +2923,8 @@
PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions,
PaymentIntentModifyParamsPaymentMethodOptionsCardPresent as PaymentIntentModifyParamsPaymentMethodOptionsCardPresent,
PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting as PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting,
+ PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetails as PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetails,
+ PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetailsAddress as PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetailsAddress,
PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure as PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure,
PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions as PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions,
PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires as PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires,
@@ -1807,7 +2936,9 @@
PaymentIntentModifyParamsPaymentMethodOptionsEps as PaymentIntentModifyParamsPaymentMethodOptionsEps,
PaymentIntentModifyParamsPaymentMethodOptionsFpx as PaymentIntentModifyParamsPaymentMethodOptionsFpx,
PaymentIntentModifyParamsPaymentMethodOptionsGiropay as PaymentIntentModifyParamsPaymentMethodOptionsGiropay,
+ PaymentIntentModifyParamsPaymentMethodOptionsGopay as PaymentIntentModifyParamsPaymentMethodOptionsGopay,
PaymentIntentModifyParamsPaymentMethodOptionsGrabpay as PaymentIntentModifyParamsPaymentMethodOptionsGrabpay,
+ PaymentIntentModifyParamsPaymentMethodOptionsIdBankTransfer as PaymentIntentModifyParamsPaymentMethodOptionsIdBankTransfer,
PaymentIntentModifyParamsPaymentMethodOptionsIdeal as PaymentIntentModifyParamsPaymentMethodOptionsIdeal,
PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent as PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent,
PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay as PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay,
@@ -1815,6 +2946,42 @@
PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand,
PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription,
PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger,
+ PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher,
PaymentIntentModifyParamsPaymentMethodOptionsKonbini as PaymentIntentModifyParamsPaymentMethodOptionsKonbini,
PaymentIntentModifyParamsPaymentMethodOptionsKrCard as PaymentIntentModifyParamsPaymentMethodOptionsKrCard,
PaymentIntentModifyParamsPaymentMethodOptionsLink as PaymentIntentModifyParamsPaymentMethodOptionsLink,
@@ -1829,21 +2996,30 @@
PaymentIntentModifyParamsPaymentMethodOptionsPayco as PaymentIntentModifyParamsPaymentMethodOptionsPayco,
PaymentIntentModifyParamsPaymentMethodOptionsPaynow as PaymentIntentModifyParamsPaymentMethodOptionsPaynow,
PaymentIntentModifyParamsPaymentMethodOptionsPaypal as PaymentIntentModifyParamsPaymentMethodOptionsPaypal,
+ PaymentIntentModifyParamsPaymentMethodOptionsPaypalLineItem as PaymentIntentModifyParamsPaymentMethodOptionsPaypalLineItem,
+ PaymentIntentModifyParamsPaymentMethodOptionsPaypalLineItemTax as PaymentIntentModifyParamsPaymentMethodOptionsPaypalLineItemTax,
+ PaymentIntentModifyParamsPaymentMethodOptionsPaypay as PaymentIntentModifyParamsPaymentMethodOptionsPaypay,
PaymentIntentModifyParamsPaymentMethodOptionsPayto as PaymentIntentModifyParamsPaymentMethodOptionsPayto,
PaymentIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions,
PaymentIntentModifyParamsPaymentMethodOptionsPix as PaymentIntentModifyParamsPaymentMethodOptionsPix,
+ PaymentIntentModifyParamsPaymentMethodOptionsPixMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsPixMandateOptions,
PaymentIntentModifyParamsPaymentMethodOptionsPromptpay as PaymentIntentModifyParamsPaymentMethodOptionsPromptpay,
+ PaymentIntentModifyParamsPaymentMethodOptionsQris as PaymentIntentModifyParamsPaymentMethodOptionsQris,
+ PaymentIntentModifyParamsPaymentMethodOptionsRechnung as PaymentIntentModifyParamsPaymentMethodOptionsRechnung,
PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay as PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay,
PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay as PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay,
PaymentIntentModifyParamsPaymentMethodOptionsSatispay as PaymentIntentModifyParamsPaymentMethodOptionsSatispay,
PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit,
PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions,
+ PaymentIntentModifyParamsPaymentMethodOptionsShopeepay as PaymentIntentModifyParamsPaymentMethodOptionsShopeepay,
PaymentIntentModifyParamsPaymentMethodOptionsSofort as PaymentIntentModifyParamsPaymentMethodOptionsSofort,
+ PaymentIntentModifyParamsPaymentMethodOptionsStripeBalance as PaymentIntentModifyParamsPaymentMethodOptionsStripeBalance,
PaymentIntentModifyParamsPaymentMethodOptionsSwish as PaymentIntentModifyParamsPaymentMethodOptionsSwish,
PaymentIntentModifyParamsPaymentMethodOptionsTwint as PaymentIntentModifyParamsPaymentMethodOptionsTwint,
PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount as PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount,
PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections as PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
+ PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry as PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry,
PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions,
PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountNetworks as PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountNetworks,
PaymentIntentModifyParamsPaymentMethodOptionsWechatPay as PaymentIntentModifyParamsPaymentMethodOptionsWechatPay,
@@ -1858,6 +3034,10 @@
from stripe.params._payment_intent_search_params import (
PaymentIntentSearchParams as PaymentIntentSearchParams,
)
+ from stripe.params._payment_intent_trigger_action_params import (
+ PaymentIntentTriggerActionParams as PaymentIntentTriggerActionParams,
+ PaymentIntentTriggerActionParamsScanQrCode as PaymentIntentTriggerActionParamsScanQrCode,
+ )
from stripe.params._payment_intent_update_params import (
PaymentIntentUpdateParams as PaymentIntentUpdateParams,
PaymentIntentUpdateParamsAmountDetails as PaymentIntentUpdateParamsAmountDetails,
@@ -1873,7 +3053,78 @@
PaymentIntentUpdateParamsHooks as PaymentIntentUpdateParamsHooks,
PaymentIntentUpdateParamsHooksInputs as PaymentIntentUpdateParamsHooksInputs,
PaymentIntentUpdateParamsHooksInputsTax as PaymentIntentUpdateParamsHooksInputsTax,
+ PaymentIntentUpdateParamsMandateData as PaymentIntentUpdateParamsMandateData,
+ PaymentIntentUpdateParamsMandateDataCustomerAcceptance as PaymentIntentUpdateParamsMandateDataCustomerAcceptance,
+ PaymentIntentUpdateParamsMandateDataCustomerAcceptanceOnline as PaymentIntentUpdateParamsMandateDataCustomerAcceptanceOnline,
PaymentIntentUpdateParamsPaymentDetails as PaymentIntentUpdateParamsPaymentDetails,
+ PaymentIntentUpdateParamsPaymentDetailsCarRental as PaymentIntentUpdateParamsPaymentDetailsCarRental,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalAffiliate as PaymentIntentUpdateParamsPaymentDetailsCarRentalAffiliate,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle as PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDelivery as PaymentIntentUpdateParamsPaymentDetailsCarRentalDelivery,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDeliveryRecipient as PaymentIntentUpdateParamsPaymentDetailsCarRentalDeliveryRecipient,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDistance as PaymentIntentUpdateParamsPaymentDetailsCarRentalDistance,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalDriver as PaymentIntentUpdateParamsPaymentDetailsCarRentalDriver,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalPickupAddress as PaymentIntentUpdateParamsPaymentDetailsCarRentalPickupAddress,
+ PaymentIntentUpdateParamsPaymentDetailsCarRentalReturnAddress as PaymentIntentUpdateParamsPaymentDetailsCarRentalReturnAddress,
+ PaymentIntentUpdateParamsPaymentDetailsEventDetails as PaymentIntentUpdateParamsPaymentDetailsEventDetails,
+ PaymentIntentUpdateParamsPaymentDetailsEventDetailsAddress as PaymentIntentUpdateParamsPaymentDetailsEventDetailsAddress,
+ PaymentIntentUpdateParamsPaymentDetailsEventDetailsAffiliate as PaymentIntentUpdateParamsPaymentDetailsEventDetailsAffiliate,
+ PaymentIntentUpdateParamsPaymentDetailsEventDetailsDelivery as PaymentIntentUpdateParamsPaymentDetailsEventDetailsDelivery,
+ PaymentIntentUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient as PaymentIntentUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient,
+ PaymentIntentUpdateParamsPaymentDetailsFlight as PaymentIntentUpdateParamsPaymentDetailsFlight,
+ PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate as PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDatum as PaymentIntentUpdateParamsPaymentDetailsFlightDatum,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDatumAffiliate as PaymentIntentUpdateParamsPaymentDetailsFlightDatumAffiliate,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDatumInsurance as PaymentIntentUpdateParamsPaymentDetailsFlightDatumInsurance,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDatumPassenger as PaymentIntentUpdateParamsPaymentDetailsFlightDatumPassenger,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegment as PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegment,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentArrival as PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentArrival,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentDeparture as PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentDeparture,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotal as PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotal,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalDiscounts as PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalDiscounts,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge as PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTax as PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTax,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTaxTax as PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTaxTax,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDelivery as PaymentIntentUpdateParamsPaymentDetailsFlightDelivery,
+ PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient as PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient,
+ PaymentIntentUpdateParamsPaymentDetailsFlightPassenger as PaymentIntentUpdateParamsPaymentDetailsFlightPassenger,
+ PaymentIntentUpdateParamsPaymentDetailsFlightSegment as PaymentIntentUpdateParamsPaymentDetailsFlightSegment,
+ PaymentIntentUpdateParamsPaymentDetailsLodging as PaymentIntentUpdateParamsPaymentDetailsLodging,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingAddress as PaymentIntentUpdateParamsPaymentDetailsLodgingAddress,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingAffiliate as PaymentIntentUpdateParamsPaymentDetailsLodgingAffiliate,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatum as PaymentIntentUpdateParamsPaymentDetailsLodgingDatum,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax as PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDelivery as PaymentIntentUpdateParamsPaymentDetailsLodgingDelivery,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingDeliveryRecipient as PaymentIntentUpdateParamsPaymentDetailsLodgingDeliveryRecipient,
+ PaymentIntentUpdateParamsPaymentDetailsLodgingPassenger as PaymentIntentUpdateParamsPaymentDetailsLodgingPassenger,
+ PaymentIntentUpdateParamsPaymentDetailsSubscription as PaymentIntentUpdateParamsPaymentDetailsSubscription,
+ PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate as PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate,
+ PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval as PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval,
PaymentIntentUpdateParamsPaymentMethodData as PaymentIntentUpdateParamsPaymentMethodData,
PaymentIntentUpdateParamsPaymentMethodDataAcssDebit as PaymentIntentUpdateParamsPaymentMethodDataAcssDebit,
PaymentIntentUpdateParamsPaymentMethodDataAffirm as PaymentIntentUpdateParamsPaymentMethodDataAffirm,
@@ -1895,7 +3146,9 @@
PaymentIntentUpdateParamsPaymentMethodDataEps as PaymentIntentUpdateParamsPaymentMethodDataEps,
PaymentIntentUpdateParamsPaymentMethodDataFpx as PaymentIntentUpdateParamsPaymentMethodDataFpx,
PaymentIntentUpdateParamsPaymentMethodDataGiropay as PaymentIntentUpdateParamsPaymentMethodDataGiropay,
+ PaymentIntentUpdateParamsPaymentMethodDataGopay as PaymentIntentUpdateParamsPaymentMethodDataGopay,
PaymentIntentUpdateParamsPaymentMethodDataGrabpay as PaymentIntentUpdateParamsPaymentMethodDataGrabpay,
+ PaymentIntentUpdateParamsPaymentMethodDataIdBankTransfer as PaymentIntentUpdateParamsPaymentMethodDataIdBankTransfer,
PaymentIntentUpdateParamsPaymentMethodDataIdeal as PaymentIntentUpdateParamsPaymentMethodDataIdeal,
PaymentIntentUpdateParamsPaymentMethodDataInteracPresent as PaymentIntentUpdateParamsPaymentMethodDataInteracPresent,
PaymentIntentUpdateParamsPaymentMethodDataKakaoPay as PaymentIntentUpdateParamsPaymentMethodDataKakaoPay,
@@ -1915,15 +3168,21 @@
PaymentIntentUpdateParamsPaymentMethodDataPayco as PaymentIntentUpdateParamsPaymentMethodDataPayco,
PaymentIntentUpdateParamsPaymentMethodDataPaynow as PaymentIntentUpdateParamsPaymentMethodDataPaynow,
PaymentIntentUpdateParamsPaymentMethodDataPaypal as PaymentIntentUpdateParamsPaymentMethodDataPaypal,
+ PaymentIntentUpdateParamsPaymentMethodDataPaypay as PaymentIntentUpdateParamsPaymentMethodDataPaypay,
PaymentIntentUpdateParamsPaymentMethodDataPayto as PaymentIntentUpdateParamsPaymentMethodDataPayto,
PaymentIntentUpdateParamsPaymentMethodDataPix as PaymentIntentUpdateParamsPaymentMethodDataPix,
PaymentIntentUpdateParamsPaymentMethodDataPromptpay as PaymentIntentUpdateParamsPaymentMethodDataPromptpay,
+ PaymentIntentUpdateParamsPaymentMethodDataQris as PaymentIntentUpdateParamsPaymentMethodDataQris,
PaymentIntentUpdateParamsPaymentMethodDataRadarOptions as PaymentIntentUpdateParamsPaymentMethodDataRadarOptions,
+ PaymentIntentUpdateParamsPaymentMethodDataRechnung as PaymentIntentUpdateParamsPaymentMethodDataRechnung,
+ PaymentIntentUpdateParamsPaymentMethodDataRechnungDob as PaymentIntentUpdateParamsPaymentMethodDataRechnungDob,
PaymentIntentUpdateParamsPaymentMethodDataRevolutPay as PaymentIntentUpdateParamsPaymentMethodDataRevolutPay,
PaymentIntentUpdateParamsPaymentMethodDataSamsungPay as PaymentIntentUpdateParamsPaymentMethodDataSamsungPay,
PaymentIntentUpdateParamsPaymentMethodDataSatispay as PaymentIntentUpdateParamsPaymentMethodDataSatispay,
PaymentIntentUpdateParamsPaymentMethodDataSepaDebit as PaymentIntentUpdateParamsPaymentMethodDataSepaDebit,
+ PaymentIntentUpdateParamsPaymentMethodDataShopeepay as PaymentIntentUpdateParamsPaymentMethodDataShopeepay,
PaymentIntentUpdateParamsPaymentMethodDataSofort as PaymentIntentUpdateParamsPaymentMethodDataSofort,
+ PaymentIntentUpdateParamsPaymentMethodDataStripeBalance as PaymentIntentUpdateParamsPaymentMethodDataStripeBalance,
PaymentIntentUpdateParamsPaymentMethodDataSwish as PaymentIntentUpdateParamsPaymentMethodDataSwish,
PaymentIntentUpdateParamsPaymentMethodDataTwint as PaymentIntentUpdateParamsPaymentMethodDataTwint,
PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount as PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount,
@@ -1950,6 +3209,8 @@
PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions,
PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent as PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent,
PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting as PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting,
+ PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetails as PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetails,
+ PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetailsAddress as PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetailsAddress,
PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure as PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure,
PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions as PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions,
PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires as PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires,
@@ -1961,7 +3222,9 @@
PaymentIntentUpdateParamsPaymentMethodOptionsEps as PaymentIntentUpdateParamsPaymentMethodOptionsEps,
PaymentIntentUpdateParamsPaymentMethodOptionsFpx as PaymentIntentUpdateParamsPaymentMethodOptionsFpx,
PaymentIntentUpdateParamsPaymentMethodOptionsGiropay as PaymentIntentUpdateParamsPaymentMethodOptionsGiropay,
+ PaymentIntentUpdateParamsPaymentMethodOptionsGopay as PaymentIntentUpdateParamsPaymentMethodOptionsGopay,
PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay as PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay,
+ PaymentIntentUpdateParamsPaymentMethodOptionsIdBankTransfer as PaymentIntentUpdateParamsPaymentMethodOptionsIdBankTransfer,
PaymentIntentUpdateParamsPaymentMethodOptionsIdeal as PaymentIntentUpdateParamsPaymentMethodOptionsIdeal,
PaymentIntentUpdateParamsPaymentMethodOptionsInteracPresent as PaymentIntentUpdateParamsPaymentMethodOptionsInteracPresent,
PaymentIntentUpdateParamsPaymentMethodOptionsKakaoPay as PaymentIntentUpdateParamsPaymentMethodOptionsKakaoPay,
@@ -1969,6 +3232,42 @@
PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand,
PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription,
PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger,
+ PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher as PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher,
PaymentIntentUpdateParamsPaymentMethodOptionsKonbini as PaymentIntentUpdateParamsPaymentMethodOptionsKonbini,
PaymentIntentUpdateParamsPaymentMethodOptionsKrCard as PaymentIntentUpdateParamsPaymentMethodOptionsKrCard,
PaymentIntentUpdateParamsPaymentMethodOptionsLink as PaymentIntentUpdateParamsPaymentMethodOptionsLink,
@@ -1983,21 +3282,30 @@
PaymentIntentUpdateParamsPaymentMethodOptionsPayco as PaymentIntentUpdateParamsPaymentMethodOptionsPayco,
PaymentIntentUpdateParamsPaymentMethodOptionsPaynow as PaymentIntentUpdateParamsPaymentMethodOptionsPaynow,
PaymentIntentUpdateParamsPaymentMethodOptionsPaypal as PaymentIntentUpdateParamsPaymentMethodOptionsPaypal,
+ PaymentIntentUpdateParamsPaymentMethodOptionsPaypalLineItem as PaymentIntentUpdateParamsPaymentMethodOptionsPaypalLineItem,
+ PaymentIntentUpdateParamsPaymentMethodOptionsPaypalLineItemTax as PaymentIntentUpdateParamsPaymentMethodOptionsPaypalLineItemTax,
+ PaymentIntentUpdateParamsPaymentMethodOptionsPaypay as PaymentIntentUpdateParamsPaymentMethodOptionsPaypay,
PaymentIntentUpdateParamsPaymentMethodOptionsPayto as PaymentIntentUpdateParamsPaymentMethodOptionsPayto,
PaymentIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions,
PaymentIntentUpdateParamsPaymentMethodOptionsPix as PaymentIntentUpdateParamsPaymentMethodOptionsPix,
+ PaymentIntentUpdateParamsPaymentMethodOptionsPixMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsPixMandateOptions,
PaymentIntentUpdateParamsPaymentMethodOptionsPromptpay as PaymentIntentUpdateParamsPaymentMethodOptionsPromptpay,
+ PaymentIntentUpdateParamsPaymentMethodOptionsQris as PaymentIntentUpdateParamsPaymentMethodOptionsQris,
+ PaymentIntentUpdateParamsPaymentMethodOptionsRechnung as PaymentIntentUpdateParamsPaymentMethodOptionsRechnung,
PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay as PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay,
PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay as PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay,
PaymentIntentUpdateParamsPaymentMethodOptionsSatispay as PaymentIntentUpdateParamsPaymentMethodOptionsSatispay,
PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit,
PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions,
+ PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay as PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay,
PaymentIntentUpdateParamsPaymentMethodOptionsSofort as PaymentIntentUpdateParamsPaymentMethodOptionsSofort,
+ PaymentIntentUpdateParamsPaymentMethodOptionsStripeBalance as PaymentIntentUpdateParamsPaymentMethodOptionsStripeBalance,
PaymentIntentUpdateParamsPaymentMethodOptionsSwish as PaymentIntentUpdateParamsPaymentMethodOptionsSwish,
PaymentIntentUpdateParamsPaymentMethodOptionsTwint as PaymentIntentUpdateParamsPaymentMethodOptionsTwint,
PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount as PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount,
PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
+ PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry as PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry,
PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions,
PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountNetworks as PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountNetworks,
PaymentIntentUpdateParamsPaymentMethodOptionsWechatPay as PaymentIntentUpdateParamsPaymentMethodOptionsWechatPay,
@@ -2203,8 +3511,12 @@
PaymentMethodConfigurationCreateParamsGiropayDisplayPreference as PaymentMethodConfigurationCreateParamsGiropayDisplayPreference,
PaymentMethodConfigurationCreateParamsGooglePay as PaymentMethodConfigurationCreateParamsGooglePay,
PaymentMethodConfigurationCreateParamsGooglePayDisplayPreference as PaymentMethodConfigurationCreateParamsGooglePayDisplayPreference,
+ PaymentMethodConfigurationCreateParamsGopay as PaymentMethodConfigurationCreateParamsGopay,
+ PaymentMethodConfigurationCreateParamsGopayDisplayPreference as PaymentMethodConfigurationCreateParamsGopayDisplayPreference,
PaymentMethodConfigurationCreateParamsGrabpay as PaymentMethodConfigurationCreateParamsGrabpay,
PaymentMethodConfigurationCreateParamsGrabpayDisplayPreference as PaymentMethodConfigurationCreateParamsGrabpayDisplayPreference,
+ PaymentMethodConfigurationCreateParamsIdBankTransfer as PaymentMethodConfigurationCreateParamsIdBankTransfer,
+ PaymentMethodConfigurationCreateParamsIdBankTransferDisplayPreference as PaymentMethodConfigurationCreateParamsIdBankTransferDisplayPreference,
PaymentMethodConfigurationCreateParamsIdeal as PaymentMethodConfigurationCreateParamsIdeal,
PaymentMethodConfigurationCreateParamsIdealDisplayPreference as PaymentMethodConfigurationCreateParamsIdealDisplayPreference,
PaymentMethodConfigurationCreateParamsJcb as PaymentMethodConfigurationCreateParamsJcb,
@@ -2241,12 +3553,16 @@
PaymentMethodConfigurationCreateParamsPaynowDisplayPreference as PaymentMethodConfigurationCreateParamsPaynowDisplayPreference,
PaymentMethodConfigurationCreateParamsPaypal as PaymentMethodConfigurationCreateParamsPaypal,
PaymentMethodConfigurationCreateParamsPaypalDisplayPreference as PaymentMethodConfigurationCreateParamsPaypalDisplayPreference,
+ PaymentMethodConfigurationCreateParamsPaypay as PaymentMethodConfigurationCreateParamsPaypay,
+ PaymentMethodConfigurationCreateParamsPaypayDisplayPreference as PaymentMethodConfigurationCreateParamsPaypayDisplayPreference,
PaymentMethodConfigurationCreateParamsPayto as PaymentMethodConfigurationCreateParamsPayto,
PaymentMethodConfigurationCreateParamsPaytoDisplayPreference as PaymentMethodConfigurationCreateParamsPaytoDisplayPreference,
PaymentMethodConfigurationCreateParamsPix as PaymentMethodConfigurationCreateParamsPix,
PaymentMethodConfigurationCreateParamsPixDisplayPreference as PaymentMethodConfigurationCreateParamsPixDisplayPreference,
PaymentMethodConfigurationCreateParamsPromptpay as PaymentMethodConfigurationCreateParamsPromptpay,
PaymentMethodConfigurationCreateParamsPromptpayDisplayPreference as PaymentMethodConfigurationCreateParamsPromptpayDisplayPreference,
+ PaymentMethodConfigurationCreateParamsQris as PaymentMethodConfigurationCreateParamsQris,
+ PaymentMethodConfigurationCreateParamsQrisDisplayPreference as PaymentMethodConfigurationCreateParamsQrisDisplayPreference,
PaymentMethodConfigurationCreateParamsRevolutPay as PaymentMethodConfigurationCreateParamsRevolutPay,
PaymentMethodConfigurationCreateParamsRevolutPayDisplayPreference as PaymentMethodConfigurationCreateParamsRevolutPayDisplayPreference,
PaymentMethodConfigurationCreateParamsSamsungPay as PaymentMethodConfigurationCreateParamsSamsungPay,
@@ -2255,6 +3571,8 @@
PaymentMethodConfigurationCreateParamsSatispayDisplayPreference as PaymentMethodConfigurationCreateParamsSatispayDisplayPreference,
PaymentMethodConfigurationCreateParamsSepaDebit as PaymentMethodConfigurationCreateParamsSepaDebit,
PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference as PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference,
+ PaymentMethodConfigurationCreateParamsShopeepay as PaymentMethodConfigurationCreateParamsShopeepay,
+ PaymentMethodConfigurationCreateParamsShopeepayDisplayPreference as PaymentMethodConfigurationCreateParamsShopeepayDisplayPreference,
PaymentMethodConfigurationCreateParamsSofort as PaymentMethodConfigurationCreateParamsSofort,
PaymentMethodConfigurationCreateParamsSofortDisplayPreference as PaymentMethodConfigurationCreateParamsSofortDisplayPreference,
PaymentMethodConfigurationCreateParamsSwish as PaymentMethodConfigurationCreateParamsSwish,
@@ -2321,8 +3639,12 @@
PaymentMethodConfigurationModifyParamsGiropayDisplayPreference as PaymentMethodConfigurationModifyParamsGiropayDisplayPreference,
PaymentMethodConfigurationModifyParamsGooglePay as PaymentMethodConfigurationModifyParamsGooglePay,
PaymentMethodConfigurationModifyParamsGooglePayDisplayPreference as PaymentMethodConfigurationModifyParamsGooglePayDisplayPreference,
+ PaymentMethodConfigurationModifyParamsGopay as PaymentMethodConfigurationModifyParamsGopay,
+ PaymentMethodConfigurationModifyParamsGopayDisplayPreference as PaymentMethodConfigurationModifyParamsGopayDisplayPreference,
PaymentMethodConfigurationModifyParamsGrabpay as PaymentMethodConfigurationModifyParamsGrabpay,
PaymentMethodConfigurationModifyParamsGrabpayDisplayPreference as PaymentMethodConfigurationModifyParamsGrabpayDisplayPreference,
+ PaymentMethodConfigurationModifyParamsIdBankTransfer as PaymentMethodConfigurationModifyParamsIdBankTransfer,
+ PaymentMethodConfigurationModifyParamsIdBankTransferDisplayPreference as PaymentMethodConfigurationModifyParamsIdBankTransferDisplayPreference,
PaymentMethodConfigurationModifyParamsIdeal as PaymentMethodConfigurationModifyParamsIdeal,
PaymentMethodConfigurationModifyParamsIdealDisplayPreference as PaymentMethodConfigurationModifyParamsIdealDisplayPreference,
PaymentMethodConfigurationModifyParamsJcb as PaymentMethodConfigurationModifyParamsJcb,
@@ -2359,12 +3681,16 @@
PaymentMethodConfigurationModifyParamsPaynowDisplayPreference as PaymentMethodConfigurationModifyParamsPaynowDisplayPreference,
PaymentMethodConfigurationModifyParamsPaypal as PaymentMethodConfigurationModifyParamsPaypal,
PaymentMethodConfigurationModifyParamsPaypalDisplayPreference as PaymentMethodConfigurationModifyParamsPaypalDisplayPreference,
+ PaymentMethodConfigurationModifyParamsPaypay as PaymentMethodConfigurationModifyParamsPaypay,
+ PaymentMethodConfigurationModifyParamsPaypayDisplayPreference as PaymentMethodConfigurationModifyParamsPaypayDisplayPreference,
PaymentMethodConfigurationModifyParamsPayto as PaymentMethodConfigurationModifyParamsPayto,
PaymentMethodConfigurationModifyParamsPaytoDisplayPreference as PaymentMethodConfigurationModifyParamsPaytoDisplayPreference,
PaymentMethodConfigurationModifyParamsPix as PaymentMethodConfigurationModifyParamsPix,
PaymentMethodConfigurationModifyParamsPixDisplayPreference as PaymentMethodConfigurationModifyParamsPixDisplayPreference,
PaymentMethodConfigurationModifyParamsPromptpay as PaymentMethodConfigurationModifyParamsPromptpay,
PaymentMethodConfigurationModifyParamsPromptpayDisplayPreference as PaymentMethodConfigurationModifyParamsPromptpayDisplayPreference,
+ PaymentMethodConfigurationModifyParamsQris as PaymentMethodConfigurationModifyParamsQris,
+ PaymentMethodConfigurationModifyParamsQrisDisplayPreference as PaymentMethodConfigurationModifyParamsQrisDisplayPreference,
PaymentMethodConfigurationModifyParamsRevolutPay as PaymentMethodConfigurationModifyParamsRevolutPay,
PaymentMethodConfigurationModifyParamsRevolutPayDisplayPreference as PaymentMethodConfigurationModifyParamsRevolutPayDisplayPreference,
PaymentMethodConfigurationModifyParamsSamsungPay as PaymentMethodConfigurationModifyParamsSamsungPay,
@@ -2373,6 +3699,8 @@
PaymentMethodConfigurationModifyParamsSatispayDisplayPreference as PaymentMethodConfigurationModifyParamsSatispayDisplayPreference,
PaymentMethodConfigurationModifyParamsSepaDebit as PaymentMethodConfigurationModifyParamsSepaDebit,
PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference as PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference,
+ PaymentMethodConfigurationModifyParamsShopeepay as PaymentMethodConfigurationModifyParamsShopeepay,
+ PaymentMethodConfigurationModifyParamsShopeepayDisplayPreference as PaymentMethodConfigurationModifyParamsShopeepayDisplayPreference,
PaymentMethodConfigurationModifyParamsSofort as PaymentMethodConfigurationModifyParamsSofort,
PaymentMethodConfigurationModifyParamsSofortDisplayPreference as PaymentMethodConfigurationModifyParamsSofortDisplayPreference,
PaymentMethodConfigurationModifyParamsSwish as PaymentMethodConfigurationModifyParamsSwish,
@@ -2439,8 +3767,12 @@
PaymentMethodConfigurationUpdateParamsGiropayDisplayPreference as PaymentMethodConfigurationUpdateParamsGiropayDisplayPreference,
PaymentMethodConfigurationUpdateParamsGooglePay as PaymentMethodConfigurationUpdateParamsGooglePay,
PaymentMethodConfigurationUpdateParamsGooglePayDisplayPreference as PaymentMethodConfigurationUpdateParamsGooglePayDisplayPreference,
+ PaymentMethodConfigurationUpdateParamsGopay as PaymentMethodConfigurationUpdateParamsGopay,
+ PaymentMethodConfigurationUpdateParamsGopayDisplayPreference as PaymentMethodConfigurationUpdateParamsGopayDisplayPreference,
PaymentMethodConfigurationUpdateParamsGrabpay as PaymentMethodConfigurationUpdateParamsGrabpay,
PaymentMethodConfigurationUpdateParamsGrabpayDisplayPreference as PaymentMethodConfigurationUpdateParamsGrabpayDisplayPreference,
+ PaymentMethodConfigurationUpdateParamsIdBankTransfer as PaymentMethodConfigurationUpdateParamsIdBankTransfer,
+ PaymentMethodConfigurationUpdateParamsIdBankTransferDisplayPreference as PaymentMethodConfigurationUpdateParamsIdBankTransferDisplayPreference,
PaymentMethodConfigurationUpdateParamsIdeal as PaymentMethodConfigurationUpdateParamsIdeal,
PaymentMethodConfigurationUpdateParamsIdealDisplayPreference as PaymentMethodConfigurationUpdateParamsIdealDisplayPreference,
PaymentMethodConfigurationUpdateParamsJcb as PaymentMethodConfigurationUpdateParamsJcb,
@@ -2477,12 +3809,16 @@
PaymentMethodConfigurationUpdateParamsPaynowDisplayPreference as PaymentMethodConfigurationUpdateParamsPaynowDisplayPreference,
PaymentMethodConfigurationUpdateParamsPaypal as PaymentMethodConfigurationUpdateParamsPaypal,
PaymentMethodConfigurationUpdateParamsPaypalDisplayPreference as PaymentMethodConfigurationUpdateParamsPaypalDisplayPreference,
+ PaymentMethodConfigurationUpdateParamsPaypay as PaymentMethodConfigurationUpdateParamsPaypay,
+ PaymentMethodConfigurationUpdateParamsPaypayDisplayPreference as PaymentMethodConfigurationUpdateParamsPaypayDisplayPreference,
PaymentMethodConfigurationUpdateParamsPayto as PaymentMethodConfigurationUpdateParamsPayto,
PaymentMethodConfigurationUpdateParamsPaytoDisplayPreference as PaymentMethodConfigurationUpdateParamsPaytoDisplayPreference,
PaymentMethodConfigurationUpdateParamsPix as PaymentMethodConfigurationUpdateParamsPix,
PaymentMethodConfigurationUpdateParamsPixDisplayPreference as PaymentMethodConfigurationUpdateParamsPixDisplayPreference,
PaymentMethodConfigurationUpdateParamsPromptpay as PaymentMethodConfigurationUpdateParamsPromptpay,
PaymentMethodConfigurationUpdateParamsPromptpayDisplayPreference as PaymentMethodConfigurationUpdateParamsPromptpayDisplayPreference,
+ PaymentMethodConfigurationUpdateParamsQris as PaymentMethodConfigurationUpdateParamsQris,
+ PaymentMethodConfigurationUpdateParamsQrisDisplayPreference as PaymentMethodConfigurationUpdateParamsQrisDisplayPreference,
PaymentMethodConfigurationUpdateParamsRevolutPay as PaymentMethodConfigurationUpdateParamsRevolutPay,
PaymentMethodConfigurationUpdateParamsRevolutPayDisplayPreference as PaymentMethodConfigurationUpdateParamsRevolutPayDisplayPreference,
PaymentMethodConfigurationUpdateParamsSamsungPay as PaymentMethodConfigurationUpdateParamsSamsungPay,
@@ -2491,6 +3827,8 @@
PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference as PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference,
PaymentMethodConfigurationUpdateParamsSepaDebit as PaymentMethodConfigurationUpdateParamsSepaDebit,
PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference as PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference,
+ PaymentMethodConfigurationUpdateParamsShopeepay as PaymentMethodConfigurationUpdateParamsShopeepay,
+ PaymentMethodConfigurationUpdateParamsShopeepayDisplayPreference as PaymentMethodConfigurationUpdateParamsShopeepayDisplayPreference,
PaymentMethodConfigurationUpdateParamsSofort as PaymentMethodConfigurationUpdateParamsSofort,
PaymentMethodConfigurationUpdateParamsSofortDisplayPreference as PaymentMethodConfigurationUpdateParamsSofortDisplayPreference,
PaymentMethodConfigurationUpdateParamsSwish as PaymentMethodConfigurationUpdateParamsSwish,
@@ -2529,7 +3867,9 @@
PaymentMethodCreateParamsEps as PaymentMethodCreateParamsEps,
PaymentMethodCreateParamsFpx as PaymentMethodCreateParamsFpx,
PaymentMethodCreateParamsGiropay as PaymentMethodCreateParamsGiropay,
+ PaymentMethodCreateParamsGopay as PaymentMethodCreateParamsGopay,
PaymentMethodCreateParamsGrabpay as PaymentMethodCreateParamsGrabpay,
+ PaymentMethodCreateParamsIdBankTransfer as PaymentMethodCreateParamsIdBankTransfer,
PaymentMethodCreateParamsIdeal as PaymentMethodCreateParamsIdeal,
PaymentMethodCreateParamsInteracPresent as PaymentMethodCreateParamsInteracPresent,
PaymentMethodCreateParamsKakaoPay as PaymentMethodCreateParamsKakaoPay,
@@ -2549,15 +3889,21 @@
PaymentMethodCreateParamsPayco as PaymentMethodCreateParamsPayco,
PaymentMethodCreateParamsPaynow as PaymentMethodCreateParamsPaynow,
PaymentMethodCreateParamsPaypal as PaymentMethodCreateParamsPaypal,
+ PaymentMethodCreateParamsPaypay as PaymentMethodCreateParamsPaypay,
PaymentMethodCreateParamsPayto as PaymentMethodCreateParamsPayto,
PaymentMethodCreateParamsPix as PaymentMethodCreateParamsPix,
PaymentMethodCreateParamsPromptpay as PaymentMethodCreateParamsPromptpay,
+ PaymentMethodCreateParamsQris as PaymentMethodCreateParamsQris,
PaymentMethodCreateParamsRadarOptions as PaymentMethodCreateParamsRadarOptions,
+ PaymentMethodCreateParamsRechnung as PaymentMethodCreateParamsRechnung,
+ PaymentMethodCreateParamsRechnungDob as PaymentMethodCreateParamsRechnungDob,
PaymentMethodCreateParamsRevolutPay as PaymentMethodCreateParamsRevolutPay,
PaymentMethodCreateParamsSamsungPay as PaymentMethodCreateParamsSamsungPay,
PaymentMethodCreateParamsSatispay as PaymentMethodCreateParamsSatispay,
PaymentMethodCreateParamsSepaDebit as PaymentMethodCreateParamsSepaDebit,
+ PaymentMethodCreateParamsShopeepay as PaymentMethodCreateParamsShopeepay,
PaymentMethodCreateParamsSofort as PaymentMethodCreateParamsSofort,
+ PaymentMethodCreateParamsStripeBalance as PaymentMethodCreateParamsStripeBalance,
PaymentMethodCreateParamsSwish as PaymentMethodCreateParamsSwish,
PaymentMethodCreateParamsTwint as PaymentMethodCreateParamsTwint,
PaymentMethodCreateParamsUsBankAccount as PaymentMethodCreateParamsUsBankAccount,
@@ -2726,6 +4072,7 @@
PriceModifyParamsCurrencyOptions as PriceModifyParamsCurrencyOptions,
PriceModifyParamsCurrencyOptionsCustomUnitAmount as PriceModifyParamsCurrencyOptionsCustomUnitAmount,
PriceModifyParamsCurrencyOptionsTier as PriceModifyParamsCurrencyOptionsTier,
+ PriceModifyParamsMigrateTo as PriceModifyParamsMigrateTo,
)
from stripe.params._price_retrieve_params import (
PriceRetrieveParams as PriceRetrieveParams,
@@ -2738,6 +4085,7 @@
PriceUpdateParamsCurrencyOptions as PriceUpdateParamsCurrencyOptions,
PriceUpdateParamsCurrencyOptionsCustomUnitAmount as PriceUpdateParamsCurrencyOptionsCustomUnitAmount,
PriceUpdateParamsCurrencyOptionsTier as PriceUpdateParamsCurrencyOptionsTier,
+ PriceUpdateParamsMigrateTo as PriceUpdateParamsMigrateTo,
)
from stripe.params._product_create_feature_params import (
ProductCreateFeatureParams as ProductCreateFeatureParams,
@@ -2834,16 +4182,64 @@
QuoteCreateParamsAutomaticTax as QuoteCreateParamsAutomaticTax,
QuoteCreateParamsAutomaticTaxLiability as QuoteCreateParamsAutomaticTaxLiability,
QuoteCreateParamsDiscount as QuoteCreateParamsDiscount,
+ QuoteCreateParamsDiscountDiscountEnd as QuoteCreateParamsDiscountDiscountEnd,
+ QuoteCreateParamsDiscountDiscountEndDuration as QuoteCreateParamsDiscountDiscountEndDuration,
QuoteCreateParamsFromQuote as QuoteCreateParamsFromQuote,
QuoteCreateParamsInvoiceSettings as QuoteCreateParamsInvoiceSettings,
QuoteCreateParamsInvoiceSettingsIssuer as QuoteCreateParamsInvoiceSettingsIssuer,
+ QuoteCreateParamsLine as QuoteCreateParamsLine,
+ QuoteCreateParamsLineAction as QuoteCreateParamsLineAction,
+ QuoteCreateParamsLineActionAddDiscount as QuoteCreateParamsLineActionAddDiscount,
+ QuoteCreateParamsLineActionAddDiscountDiscountEnd as QuoteCreateParamsLineActionAddDiscountDiscountEnd,
+ QuoteCreateParamsLineActionAddItem as QuoteCreateParamsLineActionAddItem,
+ QuoteCreateParamsLineActionAddItemDiscount as QuoteCreateParamsLineActionAddItemDiscount,
+ QuoteCreateParamsLineActionAddItemDiscountDiscountEnd as QuoteCreateParamsLineActionAddItemDiscountDiscountEnd,
+ QuoteCreateParamsLineActionAddItemDiscountDiscountEndDuration as QuoteCreateParamsLineActionAddItemDiscountDiscountEndDuration,
+ QuoteCreateParamsLineActionAddItemTrial as QuoteCreateParamsLineActionAddItemTrial,
+ QuoteCreateParamsLineActionRemoveDiscount as QuoteCreateParamsLineActionRemoveDiscount,
+ QuoteCreateParamsLineActionRemoveItem as QuoteCreateParamsLineActionRemoveItem,
+ QuoteCreateParamsLineActionSetDiscount as QuoteCreateParamsLineActionSetDiscount,
+ QuoteCreateParamsLineActionSetItem as QuoteCreateParamsLineActionSetItem,
+ QuoteCreateParamsLineActionSetItemDiscount as QuoteCreateParamsLineActionSetItemDiscount,
+ QuoteCreateParamsLineActionSetItemDiscountDiscountEnd as QuoteCreateParamsLineActionSetItemDiscountDiscountEnd,
+ QuoteCreateParamsLineActionSetItemDiscountDiscountEndDuration as QuoteCreateParamsLineActionSetItemDiscountDiscountEndDuration,
+ QuoteCreateParamsLineActionSetItemTrial as QuoteCreateParamsLineActionSetItemTrial,
+ QuoteCreateParamsLineAppliesTo as QuoteCreateParamsLineAppliesTo,
+ QuoteCreateParamsLineCancelSubscriptionSchedule as QuoteCreateParamsLineCancelSubscriptionSchedule,
+ QuoteCreateParamsLineEndsAt as QuoteCreateParamsLineEndsAt,
+ QuoteCreateParamsLineEndsAtDiscountEnd as QuoteCreateParamsLineEndsAtDiscountEnd,
+ QuoteCreateParamsLineEndsAtDuration as QuoteCreateParamsLineEndsAtDuration,
QuoteCreateParamsLineItem as QuoteCreateParamsLineItem,
QuoteCreateParamsLineItemDiscount as QuoteCreateParamsLineItemDiscount,
+ QuoteCreateParamsLineItemDiscountDiscountEnd as QuoteCreateParamsLineItemDiscountDiscountEnd,
+ QuoteCreateParamsLineItemDiscountDiscountEndDuration as QuoteCreateParamsLineItemDiscountDiscountEndDuration,
QuoteCreateParamsLineItemPriceData as QuoteCreateParamsLineItemPriceData,
QuoteCreateParamsLineItemPriceDataRecurring as QuoteCreateParamsLineItemPriceDataRecurring,
+ QuoteCreateParamsLineSetPauseCollection as QuoteCreateParamsLineSetPauseCollection,
+ QuoteCreateParamsLineSetPauseCollectionSet as QuoteCreateParamsLineSetPauseCollectionSet,
+ QuoteCreateParamsLineStartsAt as QuoteCreateParamsLineStartsAt,
+ QuoteCreateParamsLineStartsAtDiscountEnd as QuoteCreateParamsLineStartsAtDiscountEnd,
+ QuoteCreateParamsLineStartsAtLineEndsAt as QuoteCreateParamsLineStartsAtLineEndsAt,
+ QuoteCreateParamsLineTrialSettings as QuoteCreateParamsLineTrialSettings,
+ QuoteCreateParamsLineTrialSettingsEndBehavior as QuoteCreateParamsLineTrialSettingsEndBehavior,
QuoteCreateParamsSubscriptionData as QuoteCreateParamsSubscriptionData,
+ QuoteCreateParamsSubscriptionDataBillOnAcceptance as QuoteCreateParamsSubscriptionDataBillOnAcceptance,
+ QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillFrom as QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillFrom,
+ QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt as QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt,
+ QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntil as QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntil,
+ QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntilDuration as QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntilDuration,
+ QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt as QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt,
QuoteCreateParamsSubscriptionDataBillingMode as QuoteCreateParamsSubscriptionDataBillingMode,
QuoteCreateParamsSubscriptionDataBillingModeFlexible as QuoteCreateParamsSubscriptionDataBillingModeFlexible,
+ QuoteCreateParamsSubscriptionDataOverride as QuoteCreateParamsSubscriptionDataOverride,
+ QuoteCreateParamsSubscriptionDataOverrideAppliesTo as QuoteCreateParamsSubscriptionDataOverrideAppliesTo,
+ QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptance as QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptance,
+ QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom as QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom,
+ QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt as QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt,
+ QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil as QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil,
+ QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration as QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration,
+ QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt as QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt,
+ QuoteCreateParamsSubscriptionDataPrebilling as QuoteCreateParamsSubscriptionDataPrebilling,
QuoteCreateParamsTransferData as QuoteCreateParamsTransferData,
)
from stripe.params._quote_finalize_quote_params import (
@@ -2852,32 +4248,110 @@
from stripe.params._quote_line_item_list_params import (
QuoteLineItemListParams as QuoteLineItemListParams,
)
+ from stripe.params._quote_line_list_params import (
+ QuoteLineListParams as QuoteLineListParams,
+ )
from stripe.params._quote_list_computed_upfront_line_items_params import (
QuoteListComputedUpfrontLineItemsParams as QuoteListComputedUpfrontLineItemsParams,
)
from stripe.params._quote_list_line_items_params import (
QuoteListLineItemsParams as QuoteListLineItemsParams,
)
+ from stripe.params._quote_list_lines_params import (
+ QuoteListLinesParams as QuoteListLinesParams,
+ )
from stripe.params._quote_list_params import (
QuoteListParams as QuoteListParams,
)
+ from stripe.params._quote_list_preview_invoice_lines_params import (
+ QuoteListPreviewInvoiceLinesParams as QuoteListPreviewInvoiceLinesParams,
+ )
+ from stripe.params._quote_list_preview_invoices_params import (
+ QuoteListPreviewInvoicesParams as QuoteListPreviewInvoicesParams,
+ )
+ from stripe.params._quote_list_preview_subscription_schedules_params import (
+ QuoteListPreviewSubscriptionSchedulesParams as QuoteListPreviewSubscriptionSchedulesParams,
+ )
+ from stripe.params._quote_mark_draft_params import (
+ QuoteMarkDraftParams as QuoteMarkDraftParams,
+ )
+ from stripe.params._quote_mark_stale_params import (
+ QuoteMarkStaleParams as QuoteMarkStaleParams,
+ )
from stripe.params._quote_modify_params import (
QuoteModifyParams as QuoteModifyParams,
QuoteModifyParamsAutomaticTax as QuoteModifyParamsAutomaticTax,
QuoteModifyParamsAutomaticTaxLiability as QuoteModifyParamsAutomaticTaxLiability,
QuoteModifyParamsDiscount as QuoteModifyParamsDiscount,
+ QuoteModifyParamsDiscountDiscountEnd as QuoteModifyParamsDiscountDiscountEnd,
+ QuoteModifyParamsDiscountDiscountEndDuration as QuoteModifyParamsDiscountDiscountEndDuration,
QuoteModifyParamsInvoiceSettings as QuoteModifyParamsInvoiceSettings,
QuoteModifyParamsInvoiceSettingsIssuer as QuoteModifyParamsInvoiceSettingsIssuer,
+ QuoteModifyParamsLine as QuoteModifyParamsLine,
+ QuoteModifyParamsLineAction as QuoteModifyParamsLineAction,
+ QuoteModifyParamsLineActionAddDiscount as QuoteModifyParamsLineActionAddDiscount,
+ QuoteModifyParamsLineActionAddDiscountDiscountEnd as QuoteModifyParamsLineActionAddDiscountDiscountEnd,
+ QuoteModifyParamsLineActionAddItem as QuoteModifyParamsLineActionAddItem,
+ QuoteModifyParamsLineActionAddItemDiscount as QuoteModifyParamsLineActionAddItemDiscount,
+ QuoteModifyParamsLineActionAddItemDiscountDiscountEnd as QuoteModifyParamsLineActionAddItemDiscountDiscountEnd,
+ QuoteModifyParamsLineActionAddItemDiscountDiscountEndDuration as QuoteModifyParamsLineActionAddItemDiscountDiscountEndDuration,
+ QuoteModifyParamsLineActionAddItemTrial as QuoteModifyParamsLineActionAddItemTrial,
+ QuoteModifyParamsLineActionRemoveDiscount as QuoteModifyParamsLineActionRemoveDiscount,
+ QuoteModifyParamsLineActionRemoveItem as QuoteModifyParamsLineActionRemoveItem,
+ QuoteModifyParamsLineActionSetDiscount as QuoteModifyParamsLineActionSetDiscount,
+ QuoteModifyParamsLineActionSetItem as QuoteModifyParamsLineActionSetItem,
+ QuoteModifyParamsLineActionSetItemDiscount as QuoteModifyParamsLineActionSetItemDiscount,
+ QuoteModifyParamsLineActionSetItemDiscountDiscountEnd as QuoteModifyParamsLineActionSetItemDiscountDiscountEnd,
+ QuoteModifyParamsLineActionSetItemDiscountDiscountEndDuration as QuoteModifyParamsLineActionSetItemDiscountDiscountEndDuration,
+ QuoteModifyParamsLineActionSetItemTrial as QuoteModifyParamsLineActionSetItemTrial,
+ QuoteModifyParamsLineAppliesTo as QuoteModifyParamsLineAppliesTo,
+ QuoteModifyParamsLineCancelSubscriptionSchedule as QuoteModifyParamsLineCancelSubscriptionSchedule,
+ QuoteModifyParamsLineEndsAt as QuoteModifyParamsLineEndsAt,
+ QuoteModifyParamsLineEndsAtDiscountEnd as QuoteModifyParamsLineEndsAtDiscountEnd,
+ QuoteModifyParamsLineEndsAtDuration as QuoteModifyParamsLineEndsAtDuration,
QuoteModifyParamsLineItem as QuoteModifyParamsLineItem,
QuoteModifyParamsLineItemDiscount as QuoteModifyParamsLineItemDiscount,
+ QuoteModifyParamsLineItemDiscountDiscountEnd as QuoteModifyParamsLineItemDiscountDiscountEnd,
+ QuoteModifyParamsLineItemDiscountDiscountEndDuration as QuoteModifyParamsLineItemDiscountDiscountEndDuration,
QuoteModifyParamsLineItemPriceData as QuoteModifyParamsLineItemPriceData,
QuoteModifyParamsLineItemPriceDataRecurring as QuoteModifyParamsLineItemPriceDataRecurring,
+ QuoteModifyParamsLineSetPauseCollection as QuoteModifyParamsLineSetPauseCollection,
+ QuoteModifyParamsLineSetPauseCollectionSet as QuoteModifyParamsLineSetPauseCollectionSet,
+ QuoteModifyParamsLineStartsAt as QuoteModifyParamsLineStartsAt,
+ QuoteModifyParamsLineStartsAtDiscountEnd as QuoteModifyParamsLineStartsAtDiscountEnd,
+ QuoteModifyParamsLineStartsAtLineEndsAt as QuoteModifyParamsLineStartsAtLineEndsAt,
+ QuoteModifyParamsLineTrialSettings as QuoteModifyParamsLineTrialSettings,
+ QuoteModifyParamsLineTrialSettingsEndBehavior as QuoteModifyParamsLineTrialSettingsEndBehavior,
QuoteModifyParamsSubscriptionData as QuoteModifyParamsSubscriptionData,
+ QuoteModifyParamsSubscriptionDataBillOnAcceptance as QuoteModifyParamsSubscriptionDataBillOnAcceptance,
+ QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillFrom as QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillFrom,
+ QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt as QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt,
+ QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntil as QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntil,
+ QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilDuration as QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilDuration,
+ QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt as QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt,
+ QuoteModifyParamsSubscriptionDataOverride as QuoteModifyParamsSubscriptionDataOverride,
+ QuoteModifyParamsSubscriptionDataOverrideAppliesTo as QuoteModifyParamsSubscriptionDataOverrideAppliesTo,
+ QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptance as QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptance,
+ QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom as QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom,
+ QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt as QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt,
+ QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil as QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil,
+ QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration as QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration,
+ QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt as QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt,
+ QuoteModifyParamsSubscriptionDataPrebilling as QuoteModifyParamsSubscriptionDataPrebilling,
QuoteModifyParamsTransferData as QuoteModifyParamsTransferData,
)
from stripe.params._quote_pdf_params import (
QuotePdfParams as QuotePdfParams,
)
+ from stripe.params._quote_preview_invoice_list_params import (
+ QuotePreviewInvoiceListParams as QuotePreviewInvoiceListParams,
+ )
+ from stripe.params._quote_preview_subscription_schedule_list_params import (
+ QuotePreviewSubscriptionScheduleListParams as QuotePreviewSubscriptionScheduleListParams,
+ )
+ from stripe.params._quote_reestimate_params import (
+ QuoteReestimateParams as QuoteReestimateParams,
+ )
from stripe.params._quote_retrieve_params import (
QuoteRetrieveParams as QuoteRetrieveParams,
)
@@ -2886,13 +4360,61 @@
QuoteUpdateParamsAutomaticTax as QuoteUpdateParamsAutomaticTax,
QuoteUpdateParamsAutomaticTaxLiability as QuoteUpdateParamsAutomaticTaxLiability,
QuoteUpdateParamsDiscount as QuoteUpdateParamsDiscount,
+ QuoteUpdateParamsDiscountDiscountEnd as QuoteUpdateParamsDiscountDiscountEnd,
+ QuoteUpdateParamsDiscountDiscountEndDuration as QuoteUpdateParamsDiscountDiscountEndDuration,
QuoteUpdateParamsInvoiceSettings as QuoteUpdateParamsInvoiceSettings,
QuoteUpdateParamsInvoiceSettingsIssuer as QuoteUpdateParamsInvoiceSettingsIssuer,
+ QuoteUpdateParamsLine as QuoteUpdateParamsLine,
+ QuoteUpdateParamsLineAction as QuoteUpdateParamsLineAction,
+ QuoteUpdateParamsLineActionAddDiscount as QuoteUpdateParamsLineActionAddDiscount,
+ QuoteUpdateParamsLineActionAddDiscountDiscountEnd as QuoteUpdateParamsLineActionAddDiscountDiscountEnd,
+ QuoteUpdateParamsLineActionAddItem as QuoteUpdateParamsLineActionAddItem,
+ QuoteUpdateParamsLineActionAddItemDiscount as QuoteUpdateParamsLineActionAddItemDiscount,
+ QuoteUpdateParamsLineActionAddItemDiscountDiscountEnd as QuoteUpdateParamsLineActionAddItemDiscountDiscountEnd,
+ QuoteUpdateParamsLineActionAddItemDiscountDiscountEndDuration as QuoteUpdateParamsLineActionAddItemDiscountDiscountEndDuration,
+ QuoteUpdateParamsLineActionAddItemTrial as QuoteUpdateParamsLineActionAddItemTrial,
+ QuoteUpdateParamsLineActionRemoveDiscount as QuoteUpdateParamsLineActionRemoveDiscount,
+ QuoteUpdateParamsLineActionRemoveItem as QuoteUpdateParamsLineActionRemoveItem,
+ QuoteUpdateParamsLineActionSetDiscount as QuoteUpdateParamsLineActionSetDiscount,
+ QuoteUpdateParamsLineActionSetItem as QuoteUpdateParamsLineActionSetItem,
+ QuoteUpdateParamsLineActionSetItemDiscount as QuoteUpdateParamsLineActionSetItemDiscount,
+ QuoteUpdateParamsLineActionSetItemDiscountDiscountEnd as QuoteUpdateParamsLineActionSetItemDiscountDiscountEnd,
+ QuoteUpdateParamsLineActionSetItemDiscountDiscountEndDuration as QuoteUpdateParamsLineActionSetItemDiscountDiscountEndDuration,
+ QuoteUpdateParamsLineActionSetItemTrial as QuoteUpdateParamsLineActionSetItemTrial,
+ QuoteUpdateParamsLineAppliesTo as QuoteUpdateParamsLineAppliesTo,
+ QuoteUpdateParamsLineCancelSubscriptionSchedule as QuoteUpdateParamsLineCancelSubscriptionSchedule,
+ QuoteUpdateParamsLineEndsAt as QuoteUpdateParamsLineEndsAt,
+ QuoteUpdateParamsLineEndsAtDiscountEnd as QuoteUpdateParamsLineEndsAtDiscountEnd,
+ QuoteUpdateParamsLineEndsAtDuration as QuoteUpdateParamsLineEndsAtDuration,
QuoteUpdateParamsLineItem as QuoteUpdateParamsLineItem,
QuoteUpdateParamsLineItemDiscount as QuoteUpdateParamsLineItemDiscount,
+ QuoteUpdateParamsLineItemDiscountDiscountEnd as QuoteUpdateParamsLineItemDiscountDiscountEnd,
+ QuoteUpdateParamsLineItemDiscountDiscountEndDuration as QuoteUpdateParamsLineItemDiscountDiscountEndDuration,
QuoteUpdateParamsLineItemPriceData as QuoteUpdateParamsLineItemPriceData,
QuoteUpdateParamsLineItemPriceDataRecurring as QuoteUpdateParamsLineItemPriceDataRecurring,
+ QuoteUpdateParamsLineSetPauseCollection as QuoteUpdateParamsLineSetPauseCollection,
+ QuoteUpdateParamsLineSetPauseCollectionSet as QuoteUpdateParamsLineSetPauseCollectionSet,
+ QuoteUpdateParamsLineStartsAt as QuoteUpdateParamsLineStartsAt,
+ QuoteUpdateParamsLineStartsAtDiscountEnd as QuoteUpdateParamsLineStartsAtDiscountEnd,
+ QuoteUpdateParamsLineStartsAtLineEndsAt as QuoteUpdateParamsLineStartsAtLineEndsAt,
+ QuoteUpdateParamsLineTrialSettings as QuoteUpdateParamsLineTrialSettings,
+ QuoteUpdateParamsLineTrialSettingsEndBehavior as QuoteUpdateParamsLineTrialSettingsEndBehavior,
QuoteUpdateParamsSubscriptionData as QuoteUpdateParamsSubscriptionData,
+ QuoteUpdateParamsSubscriptionDataBillOnAcceptance as QuoteUpdateParamsSubscriptionDataBillOnAcceptance,
+ QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillFrom as QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillFrom,
+ QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt as QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt,
+ QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntil as QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntil,
+ QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilDuration as QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilDuration,
+ QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt as QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt,
+ QuoteUpdateParamsSubscriptionDataOverride as QuoteUpdateParamsSubscriptionDataOverride,
+ QuoteUpdateParamsSubscriptionDataOverrideAppliesTo as QuoteUpdateParamsSubscriptionDataOverrideAppliesTo,
+ QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptance as QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptance,
+ QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom as QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom,
+ QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt as QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt,
+ QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil as QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil,
+ QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration as QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration,
+ QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt as QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt,
+ QuoteUpdateParamsSubscriptionDataPrebilling as QuoteUpdateParamsSubscriptionDataPrebilling,
QuoteUpdateParamsTransferData as QuoteUpdateParamsTransferData,
)
from stripe.params._refund_cancel_params import (
@@ -2961,7 +4483,9 @@
SetupIntentConfirmParamsPaymentMethodDataEps as SetupIntentConfirmParamsPaymentMethodDataEps,
SetupIntentConfirmParamsPaymentMethodDataFpx as SetupIntentConfirmParamsPaymentMethodDataFpx,
SetupIntentConfirmParamsPaymentMethodDataGiropay as SetupIntentConfirmParamsPaymentMethodDataGiropay,
+ SetupIntentConfirmParamsPaymentMethodDataGopay as SetupIntentConfirmParamsPaymentMethodDataGopay,
SetupIntentConfirmParamsPaymentMethodDataGrabpay as SetupIntentConfirmParamsPaymentMethodDataGrabpay,
+ SetupIntentConfirmParamsPaymentMethodDataIdBankTransfer as SetupIntentConfirmParamsPaymentMethodDataIdBankTransfer,
SetupIntentConfirmParamsPaymentMethodDataIdeal as SetupIntentConfirmParamsPaymentMethodDataIdeal,
SetupIntentConfirmParamsPaymentMethodDataInteracPresent as SetupIntentConfirmParamsPaymentMethodDataInteracPresent,
SetupIntentConfirmParamsPaymentMethodDataKakaoPay as SetupIntentConfirmParamsPaymentMethodDataKakaoPay,
@@ -2981,15 +4505,21 @@
SetupIntentConfirmParamsPaymentMethodDataPayco as SetupIntentConfirmParamsPaymentMethodDataPayco,
SetupIntentConfirmParamsPaymentMethodDataPaynow as SetupIntentConfirmParamsPaymentMethodDataPaynow,
SetupIntentConfirmParamsPaymentMethodDataPaypal as SetupIntentConfirmParamsPaymentMethodDataPaypal,
+ SetupIntentConfirmParamsPaymentMethodDataPaypay as SetupIntentConfirmParamsPaymentMethodDataPaypay,
SetupIntentConfirmParamsPaymentMethodDataPayto as SetupIntentConfirmParamsPaymentMethodDataPayto,
SetupIntentConfirmParamsPaymentMethodDataPix as SetupIntentConfirmParamsPaymentMethodDataPix,
SetupIntentConfirmParamsPaymentMethodDataPromptpay as SetupIntentConfirmParamsPaymentMethodDataPromptpay,
+ SetupIntentConfirmParamsPaymentMethodDataQris as SetupIntentConfirmParamsPaymentMethodDataQris,
SetupIntentConfirmParamsPaymentMethodDataRadarOptions as SetupIntentConfirmParamsPaymentMethodDataRadarOptions,
+ SetupIntentConfirmParamsPaymentMethodDataRechnung as SetupIntentConfirmParamsPaymentMethodDataRechnung,
+ SetupIntentConfirmParamsPaymentMethodDataRechnungDob as SetupIntentConfirmParamsPaymentMethodDataRechnungDob,
SetupIntentConfirmParamsPaymentMethodDataRevolutPay as SetupIntentConfirmParamsPaymentMethodDataRevolutPay,
SetupIntentConfirmParamsPaymentMethodDataSamsungPay as SetupIntentConfirmParamsPaymentMethodDataSamsungPay,
SetupIntentConfirmParamsPaymentMethodDataSatispay as SetupIntentConfirmParamsPaymentMethodDataSatispay,
SetupIntentConfirmParamsPaymentMethodDataSepaDebit as SetupIntentConfirmParamsPaymentMethodDataSepaDebit,
+ SetupIntentConfirmParamsPaymentMethodDataShopeepay as SetupIntentConfirmParamsPaymentMethodDataShopeepay,
SetupIntentConfirmParamsPaymentMethodDataSofort as SetupIntentConfirmParamsPaymentMethodDataSofort,
+ SetupIntentConfirmParamsPaymentMethodDataStripeBalance as SetupIntentConfirmParamsPaymentMethodDataStripeBalance,
SetupIntentConfirmParamsPaymentMethodDataSwish as SetupIntentConfirmParamsPaymentMethodDataSwish,
SetupIntentConfirmParamsPaymentMethodDataTwint as SetupIntentConfirmParamsPaymentMethodDataTwint,
SetupIntentConfirmParamsPaymentMethodDataUsBankAccount as SetupIntentConfirmParamsPaymentMethodDataUsBankAccount,
@@ -3015,11 +4545,14 @@
SetupIntentConfirmParamsPaymentMethodOptionsPaypal as SetupIntentConfirmParamsPaymentMethodOptionsPaypal,
SetupIntentConfirmParamsPaymentMethodOptionsPayto as SetupIntentConfirmParamsPaymentMethodOptionsPayto,
SetupIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions,
+ SetupIntentConfirmParamsPaymentMethodOptionsPix as SetupIntentConfirmParamsPaymentMethodOptionsPix,
+ SetupIntentConfirmParamsPaymentMethodOptionsPixMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsPixMandateOptions,
SetupIntentConfirmParamsPaymentMethodOptionsSepaDebit as SetupIntentConfirmParamsPaymentMethodOptionsSepaDebit,
SetupIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions,
SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccount as SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccount,
SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections as SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
+ SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry as SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry,
SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions,
SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks as SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks,
)
@@ -3051,7 +4584,9 @@
SetupIntentCreateParamsPaymentMethodDataEps as SetupIntentCreateParamsPaymentMethodDataEps,
SetupIntentCreateParamsPaymentMethodDataFpx as SetupIntentCreateParamsPaymentMethodDataFpx,
SetupIntentCreateParamsPaymentMethodDataGiropay as SetupIntentCreateParamsPaymentMethodDataGiropay,
+ SetupIntentCreateParamsPaymentMethodDataGopay as SetupIntentCreateParamsPaymentMethodDataGopay,
SetupIntentCreateParamsPaymentMethodDataGrabpay as SetupIntentCreateParamsPaymentMethodDataGrabpay,
+ SetupIntentCreateParamsPaymentMethodDataIdBankTransfer as SetupIntentCreateParamsPaymentMethodDataIdBankTransfer,
SetupIntentCreateParamsPaymentMethodDataIdeal as SetupIntentCreateParamsPaymentMethodDataIdeal,
SetupIntentCreateParamsPaymentMethodDataInteracPresent as SetupIntentCreateParamsPaymentMethodDataInteracPresent,
SetupIntentCreateParamsPaymentMethodDataKakaoPay as SetupIntentCreateParamsPaymentMethodDataKakaoPay,
@@ -3071,15 +4606,21 @@
SetupIntentCreateParamsPaymentMethodDataPayco as SetupIntentCreateParamsPaymentMethodDataPayco,
SetupIntentCreateParamsPaymentMethodDataPaynow as SetupIntentCreateParamsPaymentMethodDataPaynow,
SetupIntentCreateParamsPaymentMethodDataPaypal as SetupIntentCreateParamsPaymentMethodDataPaypal,
+ SetupIntentCreateParamsPaymentMethodDataPaypay as SetupIntentCreateParamsPaymentMethodDataPaypay,
SetupIntentCreateParamsPaymentMethodDataPayto as SetupIntentCreateParamsPaymentMethodDataPayto,
SetupIntentCreateParamsPaymentMethodDataPix as SetupIntentCreateParamsPaymentMethodDataPix,
SetupIntentCreateParamsPaymentMethodDataPromptpay as SetupIntentCreateParamsPaymentMethodDataPromptpay,
+ SetupIntentCreateParamsPaymentMethodDataQris as SetupIntentCreateParamsPaymentMethodDataQris,
SetupIntentCreateParamsPaymentMethodDataRadarOptions as SetupIntentCreateParamsPaymentMethodDataRadarOptions,
+ SetupIntentCreateParamsPaymentMethodDataRechnung as SetupIntentCreateParamsPaymentMethodDataRechnung,
+ SetupIntentCreateParamsPaymentMethodDataRechnungDob as SetupIntentCreateParamsPaymentMethodDataRechnungDob,
SetupIntentCreateParamsPaymentMethodDataRevolutPay as SetupIntentCreateParamsPaymentMethodDataRevolutPay,
SetupIntentCreateParamsPaymentMethodDataSamsungPay as SetupIntentCreateParamsPaymentMethodDataSamsungPay,
SetupIntentCreateParamsPaymentMethodDataSatispay as SetupIntentCreateParamsPaymentMethodDataSatispay,
SetupIntentCreateParamsPaymentMethodDataSepaDebit as SetupIntentCreateParamsPaymentMethodDataSepaDebit,
+ SetupIntentCreateParamsPaymentMethodDataShopeepay as SetupIntentCreateParamsPaymentMethodDataShopeepay,
SetupIntentCreateParamsPaymentMethodDataSofort as SetupIntentCreateParamsPaymentMethodDataSofort,
+ SetupIntentCreateParamsPaymentMethodDataStripeBalance as SetupIntentCreateParamsPaymentMethodDataStripeBalance,
SetupIntentCreateParamsPaymentMethodDataSwish as SetupIntentCreateParamsPaymentMethodDataSwish,
SetupIntentCreateParamsPaymentMethodDataTwint as SetupIntentCreateParamsPaymentMethodDataTwint,
SetupIntentCreateParamsPaymentMethodDataUsBankAccount as SetupIntentCreateParamsPaymentMethodDataUsBankAccount,
@@ -3105,11 +4646,14 @@
SetupIntentCreateParamsPaymentMethodOptionsPaypal as SetupIntentCreateParamsPaymentMethodOptionsPaypal,
SetupIntentCreateParamsPaymentMethodOptionsPayto as SetupIntentCreateParamsPaymentMethodOptionsPayto,
SetupIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions,
+ SetupIntentCreateParamsPaymentMethodOptionsPix as SetupIntentCreateParamsPaymentMethodOptionsPix,
+ SetupIntentCreateParamsPaymentMethodOptionsPixMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsPixMandateOptions,
SetupIntentCreateParamsPaymentMethodOptionsSepaDebit as SetupIntentCreateParamsPaymentMethodOptionsSepaDebit,
SetupIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions,
SetupIntentCreateParamsPaymentMethodOptionsUsBankAccount as SetupIntentCreateParamsPaymentMethodOptionsUsBankAccount,
SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
+ SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry as SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry,
SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions,
SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks as SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks,
SetupIntentCreateParamsSingleUse as SetupIntentCreateParamsSingleUse,
@@ -3141,7 +4685,9 @@
SetupIntentModifyParamsPaymentMethodDataEps as SetupIntentModifyParamsPaymentMethodDataEps,
SetupIntentModifyParamsPaymentMethodDataFpx as SetupIntentModifyParamsPaymentMethodDataFpx,
SetupIntentModifyParamsPaymentMethodDataGiropay as SetupIntentModifyParamsPaymentMethodDataGiropay,
+ SetupIntentModifyParamsPaymentMethodDataGopay as SetupIntentModifyParamsPaymentMethodDataGopay,
SetupIntentModifyParamsPaymentMethodDataGrabpay as SetupIntentModifyParamsPaymentMethodDataGrabpay,
+ SetupIntentModifyParamsPaymentMethodDataIdBankTransfer as SetupIntentModifyParamsPaymentMethodDataIdBankTransfer,
SetupIntentModifyParamsPaymentMethodDataIdeal as SetupIntentModifyParamsPaymentMethodDataIdeal,
SetupIntentModifyParamsPaymentMethodDataInteracPresent as SetupIntentModifyParamsPaymentMethodDataInteracPresent,
SetupIntentModifyParamsPaymentMethodDataKakaoPay as SetupIntentModifyParamsPaymentMethodDataKakaoPay,
@@ -3161,15 +4707,21 @@
SetupIntentModifyParamsPaymentMethodDataPayco as SetupIntentModifyParamsPaymentMethodDataPayco,
SetupIntentModifyParamsPaymentMethodDataPaynow as SetupIntentModifyParamsPaymentMethodDataPaynow,
SetupIntentModifyParamsPaymentMethodDataPaypal as SetupIntentModifyParamsPaymentMethodDataPaypal,
+ SetupIntentModifyParamsPaymentMethodDataPaypay as SetupIntentModifyParamsPaymentMethodDataPaypay,
SetupIntentModifyParamsPaymentMethodDataPayto as SetupIntentModifyParamsPaymentMethodDataPayto,
SetupIntentModifyParamsPaymentMethodDataPix as SetupIntentModifyParamsPaymentMethodDataPix,
SetupIntentModifyParamsPaymentMethodDataPromptpay as SetupIntentModifyParamsPaymentMethodDataPromptpay,
+ SetupIntentModifyParamsPaymentMethodDataQris as SetupIntentModifyParamsPaymentMethodDataQris,
SetupIntentModifyParamsPaymentMethodDataRadarOptions as SetupIntentModifyParamsPaymentMethodDataRadarOptions,
+ SetupIntentModifyParamsPaymentMethodDataRechnung as SetupIntentModifyParamsPaymentMethodDataRechnung,
+ SetupIntentModifyParamsPaymentMethodDataRechnungDob as SetupIntentModifyParamsPaymentMethodDataRechnungDob,
SetupIntentModifyParamsPaymentMethodDataRevolutPay as SetupIntentModifyParamsPaymentMethodDataRevolutPay,
SetupIntentModifyParamsPaymentMethodDataSamsungPay as SetupIntentModifyParamsPaymentMethodDataSamsungPay,
SetupIntentModifyParamsPaymentMethodDataSatispay as SetupIntentModifyParamsPaymentMethodDataSatispay,
SetupIntentModifyParamsPaymentMethodDataSepaDebit as SetupIntentModifyParamsPaymentMethodDataSepaDebit,
+ SetupIntentModifyParamsPaymentMethodDataShopeepay as SetupIntentModifyParamsPaymentMethodDataShopeepay,
SetupIntentModifyParamsPaymentMethodDataSofort as SetupIntentModifyParamsPaymentMethodDataSofort,
+ SetupIntentModifyParamsPaymentMethodDataStripeBalance as SetupIntentModifyParamsPaymentMethodDataStripeBalance,
SetupIntentModifyParamsPaymentMethodDataSwish as SetupIntentModifyParamsPaymentMethodDataSwish,
SetupIntentModifyParamsPaymentMethodDataTwint as SetupIntentModifyParamsPaymentMethodDataTwint,
SetupIntentModifyParamsPaymentMethodDataUsBankAccount as SetupIntentModifyParamsPaymentMethodDataUsBankAccount,
@@ -3195,11 +4747,14 @@
SetupIntentModifyParamsPaymentMethodOptionsPaypal as SetupIntentModifyParamsPaymentMethodOptionsPaypal,
SetupIntentModifyParamsPaymentMethodOptionsPayto as SetupIntentModifyParamsPaymentMethodOptionsPayto,
SetupIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions,
+ SetupIntentModifyParamsPaymentMethodOptionsPix as SetupIntentModifyParamsPaymentMethodOptionsPix,
+ SetupIntentModifyParamsPaymentMethodOptionsPixMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsPixMandateOptions,
SetupIntentModifyParamsPaymentMethodOptionsSepaDebit as SetupIntentModifyParamsPaymentMethodOptionsSepaDebit,
SetupIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions,
SetupIntentModifyParamsPaymentMethodOptionsUsBankAccount as SetupIntentModifyParamsPaymentMethodOptionsUsBankAccount,
SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections as SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
+ SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry as SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry,
SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions as SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions,
SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountNetworks as SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountNetworks,
)
@@ -3229,7 +4784,9 @@
SetupIntentUpdateParamsPaymentMethodDataEps as SetupIntentUpdateParamsPaymentMethodDataEps,
SetupIntentUpdateParamsPaymentMethodDataFpx as SetupIntentUpdateParamsPaymentMethodDataFpx,
SetupIntentUpdateParamsPaymentMethodDataGiropay as SetupIntentUpdateParamsPaymentMethodDataGiropay,
+ SetupIntentUpdateParamsPaymentMethodDataGopay as SetupIntentUpdateParamsPaymentMethodDataGopay,
SetupIntentUpdateParamsPaymentMethodDataGrabpay as SetupIntentUpdateParamsPaymentMethodDataGrabpay,
+ SetupIntentUpdateParamsPaymentMethodDataIdBankTransfer as SetupIntentUpdateParamsPaymentMethodDataIdBankTransfer,
SetupIntentUpdateParamsPaymentMethodDataIdeal as SetupIntentUpdateParamsPaymentMethodDataIdeal,
SetupIntentUpdateParamsPaymentMethodDataInteracPresent as SetupIntentUpdateParamsPaymentMethodDataInteracPresent,
SetupIntentUpdateParamsPaymentMethodDataKakaoPay as SetupIntentUpdateParamsPaymentMethodDataKakaoPay,
@@ -3249,15 +4806,21 @@
SetupIntentUpdateParamsPaymentMethodDataPayco as SetupIntentUpdateParamsPaymentMethodDataPayco,
SetupIntentUpdateParamsPaymentMethodDataPaynow as SetupIntentUpdateParamsPaymentMethodDataPaynow,
SetupIntentUpdateParamsPaymentMethodDataPaypal as SetupIntentUpdateParamsPaymentMethodDataPaypal,
+ SetupIntentUpdateParamsPaymentMethodDataPaypay as SetupIntentUpdateParamsPaymentMethodDataPaypay,
SetupIntentUpdateParamsPaymentMethodDataPayto as SetupIntentUpdateParamsPaymentMethodDataPayto,
SetupIntentUpdateParamsPaymentMethodDataPix as SetupIntentUpdateParamsPaymentMethodDataPix,
SetupIntentUpdateParamsPaymentMethodDataPromptpay as SetupIntentUpdateParamsPaymentMethodDataPromptpay,
+ SetupIntentUpdateParamsPaymentMethodDataQris as SetupIntentUpdateParamsPaymentMethodDataQris,
SetupIntentUpdateParamsPaymentMethodDataRadarOptions as SetupIntentUpdateParamsPaymentMethodDataRadarOptions,
+ SetupIntentUpdateParamsPaymentMethodDataRechnung as SetupIntentUpdateParamsPaymentMethodDataRechnung,
+ SetupIntentUpdateParamsPaymentMethodDataRechnungDob as SetupIntentUpdateParamsPaymentMethodDataRechnungDob,
SetupIntentUpdateParamsPaymentMethodDataRevolutPay as SetupIntentUpdateParamsPaymentMethodDataRevolutPay,
SetupIntentUpdateParamsPaymentMethodDataSamsungPay as SetupIntentUpdateParamsPaymentMethodDataSamsungPay,
SetupIntentUpdateParamsPaymentMethodDataSatispay as SetupIntentUpdateParamsPaymentMethodDataSatispay,
SetupIntentUpdateParamsPaymentMethodDataSepaDebit as SetupIntentUpdateParamsPaymentMethodDataSepaDebit,
+ SetupIntentUpdateParamsPaymentMethodDataShopeepay as SetupIntentUpdateParamsPaymentMethodDataShopeepay,
SetupIntentUpdateParamsPaymentMethodDataSofort as SetupIntentUpdateParamsPaymentMethodDataSofort,
+ SetupIntentUpdateParamsPaymentMethodDataStripeBalance as SetupIntentUpdateParamsPaymentMethodDataStripeBalance,
SetupIntentUpdateParamsPaymentMethodDataSwish as SetupIntentUpdateParamsPaymentMethodDataSwish,
SetupIntentUpdateParamsPaymentMethodDataTwint as SetupIntentUpdateParamsPaymentMethodDataTwint,
SetupIntentUpdateParamsPaymentMethodDataUsBankAccount as SetupIntentUpdateParamsPaymentMethodDataUsBankAccount,
@@ -3283,11 +4846,14 @@
SetupIntentUpdateParamsPaymentMethodOptionsPaypal as SetupIntentUpdateParamsPaymentMethodOptionsPaypal,
SetupIntentUpdateParamsPaymentMethodOptionsPayto as SetupIntentUpdateParamsPaymentMethodOptionsPayto,
SetupIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions,
+ SetupIntentUpdateParamsPaymentMethodOptionsPix as SetupIntentUpdateParamsPaymentMethodOptionsPix,
+ SetupIntentUpdateParamsPaymentMethodOptionsPixMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsPixMandateOptions,
SetupIntentUpdateParamsPaymentMethodOptionsSepaDebit as SetupIntentUpdateParamsPaymentMethodOptionsSepaDebit,
SetupIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions,
SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccount as SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccount,
SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
+ SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry as SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry,
SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions as SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions,
SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountNetworks as SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountNetworks,
)
@@ -3375,6 +4941,9 @@
from stripe.params._source_verify_params import (
SourceVerifyParams as SourceVerifyParams,
)
+ from stripe.params._subscription_attach_cadence_params import (
+ SubscriptionAttachCadenceParams as SubscriptionAttachCadenceParams,
+ )
from stripe.params._subscription_cancel_params import (
SubscriptionCancelParams as SubscriptionCancelParams,
SubscriptionCancelParamsCancellationDetails as SubscriptionCancelParamsCancellationDetails,
@@ -3383,6 +4952,8 @@
SubscriptionCreateParams as SubscriptionCreateParams,
SubscriptionCreateParamsAddInvoiceItem as SubscriptionCreateParamsAddInvoiceItem,
SubscriptionCreateParamsAddInvoiceItemDiscount as SubscriptionCreateParamsAddInvoiceItemDiscount,
+ SubscriptionCreateParamsAddInvoiceItemDiscountDiscountEnd as SubscriptionCreateParamsAddInvoiceItemDiscountDiscountEnd,
+ SubscriptionCreateParamsAddInvoiceItemDiscountDiscountEndDuration as SubscriptionCreateParamsAddInvoiceItemDiscountDiscountEndDuration,
SubscriptionCreateParamsAddInvoiceItemPeriod as SubscriptionCreateParamsAddInvoiceItemPeriod,
SubscriptionCreateParamsAddInvoiceItemPeriodEnd as SubscriptionCreateParamsAddInvoiceItemPeriodEnd,
SubscriptionCreateParamsAddInvoiceItemPeriodStart as SubscriptionCreateParamsAddInvoiceItemPeriodStart,
@@ -3392,15 +4963,24 @@
SubscriptionCreateParamsBillingCycleAnchorConfig as SubscriptionCreateParamsBillingCycleAnchorConfig,
SubscriptionCreateParamsBillingMode as SubscriptionCreateParamsBillingMode,
SubscriptionCreateParamsBillingModeFlexible as SubscriptionCreateParamsBillingModeFlexible,
+ SubscriptionCreateParamsBillingSchedule as SubscriptionCreateParamsBillingSchedule,
+ SubscriptionCreateParamsBillingScheduleAppliesTo as SubscriptionCreateParamsBillingScheduleAppliesTo,
+ SubscriptionCreateParamsBillingScheduleBillUntil as SubscriptionCreateParamsBillingScheduleBillUntil,
+ SubscriptionCreateParamsBillingScheduleBillUntilDuration as SubscriptionCreateParamsBillingScheduleBillUntilDuration,
SubscriptionCreateParamsBillingThresholds as SubscriptionCreateParamsBillingThresholds,
SubscriptionCreateParamsDiscount as SubscriptionCreateParamsDiscount,
+ SubscriptionCreateParamsDiscountDiscountEnd as SubscriptionCreateParamsDiscountDiscountEnd,
+ SubscriptionCreateParamsDiscountDiscountEndDuration as SubscriptionCreateParamsDiscountDiscountEndDuration,
SubscriptionCreateParamsInvoiceSettings as SubscriptionCreateParamsInvoiceSettings,
SubscriptionCreateParamsInvoiceSettingsIssuer as SubscriptionCreateParamsInvoiceSettingsIssuer,
SubscriptionCreateParamsItem as SubscriptionCreateParamsItem,
SubscriptionCreateParamsItemBillingThresholds as SubscriptionCreateParamsItemBillingThresholds,
SubscriptionCreateParamsItemDiscount as SubscriptionCreateParamsItemDiscount,
+ SubscriptionCreateParamsItemDiscountDiscountEnd as SubscriptionCreateParamsItemDiscountDiscountEnd,
+ SubscriptionCreateParamsItemDiscountDiscountEndDuration as SubscriptionCreateParamsItemDiscountDiscountEndDuration,
SubscriptionCreateParamsItemPriceData as SubscriptionCreateParamsItemPriceData,
SubscriptionCreateParamsItemPriceDataRecurring as SubscriptionCreateParamsItemPriceDataRecurring,
+ SubscriptionCreateParamsItemTrial as SubscriptionCreateParamsItemTrial,
SubscriptionCreateParamsPaymentSettings as SubscriptionCreateParamsPaymentSettings,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptions as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptions,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit,
@@ -3411,14 +4991,20 @@
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
+ SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsKonbini as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsKonbini,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPayto as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPayto,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions,
+ SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPix as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPix,
+ SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit,
+ SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUpi as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUpi,
+ SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
SubscriptionCreateParamsPendingInvoiceItemInterval as SubscriptionCreateParamsPendingInvoiceItemInterval,
+ SubscriptionCreateParamsPrebilling as SubscriptionCreateParamsPrebilling,
SubscriptionCreateParamsTransferData as SubscriptionCreateParamsTransferData,
SubscriptionCreateParamsTrialSettings as SubscriptionCreateParamsTrialSettings,
SubscriptionCreateParamsTrialSettingsEndBehavior as SubscriptionCreateParamsTrialSettingsEndBehavior,
@@ -3430,8 +5016,11 @@
SubscriptionItemCreateParams as SubscriptionItemCreateParams,
SubscriptionItemCreateParamsBillingThresholds as SubscriptionItemCreateParamsBillingThresholds,
SubscriptionItemCreateParamsDiscount as SubscriptionItemCreateParamsDiscount,
+ SubscriptionItemCreateParamsDiscountDiscountEnd as SubscriptionItemCreateParamsDiscountDiscountEnd,
+ SubscriptionItemCreateParamsDiscountDiscountEndDuration as SubscriptionItemCreateParamsDiscountDiscountEndDuration,
SubscriptionItemCreateParamsPriceData as SubscriptionItemCreateParamsPriceData,
SubscriptionItemCreateParamsPriceDataRecurring as SubscriptionItemCreateParamsPriceDataRecurring,
+ SubscriptionItemCreateParamsTrial as SubscriptionItemCreateParamsTrial,
)
from stripe.params._subscription_item_delete_params import (
SubscriptionItemDeleteParams as SubscriptionItemDeleteParams,
@@ -3443,6 +5032,8 @@
SubscriptionItemModifyParams as SubscriptionItemModifyParams,
SubscriptionItemModifyParamsBillingThresholds as SubscriptionItemModifyParamsBillingThresholds,
SubscriptionItemModifyParamsDiscount as SubscriptionItemModifyParamsDiscount,
+ SubscriptionItemModifyParamsDiscountDiscountEnd as SubscriptionItemModifyParamsDiscountDiscountEnd,
+ SubscriptionItemModifyParamsDiscountDiscountEndDuration as SubscriptionItemModifyParamsDiscountDiscountEndDuration,
SubscriptionItemModifyParamsPriceData as SubscriptionItemModifyParamsPriceData,
SubscriptionItemModifyParamsPriceDataRecurring as SubscriptionItemModifyParamsPriceDataRecurring,
)
@@ -3453,6 +5044,8 @@
SubscriptionItemUpdateParams as SubscriptionItemUpdateParams,
SubscriptionItemUpdateParamsBillingThresholds as SubscriptionItemUpdateParamsBillingThresholds,
SubscriptionItemUpdateParamsDiscount as SubscriptionItemUpdateParamsDiscount,
+ SubscriptionItemUpdateParamsDiscountDiscountEnd as SubscriptionItemUpdateParamsDiscountDiscountEnd,
+ SubscriptionItemUpdateParamsDiscountDiscountEndDuration as SubscriptionItemUpdateParamsDiscountDiscountEndDuration,
SubscriptionItemUpdateParamsPriceData as SubscriptionItemUpdateParamsPriceData,
SubscriptionItemUpdateParamsPriceDataRecurring as SubscriptionItemUpdateParamsPriceDataRecurring,
)
@@ -3472,20 +5065,30 @@
SubscriptionModifyParams as SubscriptionModifyParams,
SubscriptionModifyParamsAddInvoiceItem as SubscriptionModifyParamsAddInvoiceItem,
SubscriptionModifyParamsAddInvoiceItemDiscount as SubscriptionModifyParamsAddInvoiceItemDiscount,
+ SubscriptionModifyParamsAddInvoiceItemDiscountDiscountEnd as SubscriptionModifyParamsAddInvoiceItemDiscountDiscountEnd,
+ SubscriptionModifyParamsAddInvoiceItemDiscountDiscountEndDuration as SubscriptionModifyParamsAddInvoiceItemDiscountDiscountEndDuration,
SubscriptionModifyParamsAddInvoiceItemPeriod as SubscriptionModifyParamsAddInvoiceItemPeriod,
SubscriptionModifyParamsAddInvoiceItemPeriodEnd as SubscriptionModifyParamsAddInvoiceItemPeriodEnd,
SubscriptionModifyParamsAddInvoiceItemPeriodStart as SubscriptionModifyParamsAddInvoiceItemPeriodStart,
SubscriptionModifyParamsAddInvoiceItemPriceData as SubscriptionModifyParamsAddInvoiceItemPriceData,
SubscriptionModifyParamsAutomaticTax as SubscriptionModifyParamsAutomaticTax,
SubscriptionModifyParamsAutomaticTaxLiability as SubscriptionModifyParamsAutomaticTaxLiability,
+ SubscriptionModifyParamsBillingSchedule as SubscriptionModifyParamsBillingSchedule,
+ SubscriptionModifyParamsBillingScheduleAppliesTo as SubscriptionModifyParamsBillingScheduleAppliesTo,
+ SubscriptionModifyParamsBillingScheduleBillUntil as SubscriptionModifyParamsBillingScheduleBillUntil,
+ SubscriptionModifyParamsBillingScheduleBillUntilDuration as SubscriptionModifyParamsBillingScheduleBillUntilDuration,
SubscriptionModifyParamsBillingThresholds as SubscriptionModifyParamsBillingThresholds,
SubscriptionModifyParamsCancellationDetails as SubscriptionModifyParamsCancellationDetails,
SubscriptionModifyParamsDiscount as SubscriptionModifyParamsDiscount,
+ SubscriptionModifyParamsDiscountDiscountEnd as SubscriptionModifyParamsDiscountDiscountEnd,
+ SubscriptionModifyParamsDiscountDiscountEndDuration as SubscriptionModifyParamsDiscountDiscountEndDuration,
SubscriptionModifyParamsInvoiceSettings as SubscriptionModifyParamsInvoiceSettings,
SubscriptionModifyParamsInvoiceSettingsIssuer as SubscriptionModifyParamsInvoiceSettingsIssuer,
SubscriptionModifyParamsItem as SubscriptionModifyParamsItem,
SubscriptionModifyParamsItemBillingThresholds as SubscriptionModifyParamsItemBillingThresholds,
SubscriptionModifyParamsItemDiscount as SubscriptionModifyParamsItemDiscount,
+ SubscriptionModifyParamsItemDiscountDiscountEnd as SubscriptionModifyParamsItemDiscountDiscountEnd,
+ SubscriptionModifyParamsItemDiscountDiscountEndDuration as SubscriptionModifyParamsItemDiscountDiscountEndDuration,
SubscriptionModifyParamsItemPriceData as SubscriptionModifyParamsItemPriceData,
SubscriptionModifyParamsItemPriceDataRecurring as SubscriptionModifyParamsItemPriceDataRecurring,
SubscriptionModifyParamsPauseCollection as SubscriptionModifyParamsPauseCollection,
@@ -3499,14 +5102,20 @@
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
+ SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsKonbini as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsKonbini,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPayto as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPayto,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions,
+ SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPix as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPix,
+ SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit,
+ SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUpi as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUpi,
+ SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
SubscriptionModifyParamsPendingInvoiceItemInterval as SubscriptionModifyParamsPendingInvoiceItemInterval,
+ SubscriptionModifyParamsPrebilling as SubscriptionModifyParamsPrebilling,
SubscriptionModifyParamsTransferData as SubscriptionModifyParamsTransferData,
SubscriptionModifyParamsTrialSettings as SubscriptionModifyParamsTrialSettings,
SubscriptionModifyParamsTrialSettingsEndBehavior as SubscriptionModifyParamsTrialSettingsEndBehavior,
@@ -3517,6 +5126,45 @@
from stripe.params._subscription_retrieve_params import (
SubscriptionRetrieveParams as SubscriptionRetrieveParams,
)
+ from stripe.params._subscription_schedule_amend_params import (
+ SubscriptionScheduleAmendParams as SubscriptionScheduleAmendParams,
+ SubscriptionScheduleAmendParamsAmendment as SubscriptionScheduleAmendParamsAmendment,
+ SubscriptionScheduleAmendParamsAmendmentAmendmentEnd as SubscriptionScheduleAmendParamsAmendmentAmendmentEnd,
+ SubscriptionScheduleAmendParamsAmendmentAmendmentEndDiscountEnd as SubscriptionScheduleAmendParamsAmendmentAmendmentEndDiscountEnd,
+ SubscriptionScheduleAmendParamsAmendmentAmendmentEndDuration as SubscriptionScheduleAmendParamsAmendmentAmendmentEndDuration,
+ SubscriptionScheduleAmendParamsAmendmentAmendmentStart as SubscriptionScheduleAmendParamsAmendmentAmendmentStart,
+ SubscriptionScheduleAmendParamsAmendmentAmendmentStartAmendmentEnd as SubscriptionScheduleAmendParamsAmendmentAmendmentStartAmendmentEnd,
+ SubscriptionScheduleAmendParamsAmendmentAmendmentStartDiscountEnd as SubscriptionScheduleAmendParamsAmendmentAmendmentStartDiscountEnd,
+ SubscriptionScheduleAmendParamsAmendmentDiscountAction as SubscriptionScheduleAmendParamsAmendmentDiscountAction,
+ SubscriptionScheduleAmendParamsAmendmentDiscountActionAdd as SubscriptionScheduleAmendParamsAmendmentDiscountActionAdd,
+ SubscriptionScheduleAmendParamsAmendmentDiscountActionAddDiscountEnd as SubscriptionScheduleAmendParamsAmendmentDiscountActionAddDiscountEnd,
+ SubscriptionScheduleAmendParamsAmendmentDiscountActionRemove as SubscriptionScheduleAmendParamsAmendmentDiscountActionRemove,
+ SubscriptionScheduleAmendParamsAmendmentDiscountActionSet as SubscriptionScheduleAmendParamsAmendmentDiscountActionSet,
+ SubscriptionScheduleAmendParamsAmendmentItemAction as SubscriptionScheduleAmendParamsAmendmentItemAction,
+ SubscriptionScheduleAmendParamsAmendmentItemActionAdd as SubscriptionScheduleAmendParamsAmendmentItemActionAdd,
+ SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscount as SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscount,
+ SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscountDiscountEnd as SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscountDiscountEnd,
+ SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscountDiscountEndDuration as SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscountDiscountEndDuration,
+ SubscriptionScheduleAmendParamsAmendmentItemActionAddTrial as SubscriptionScheduleAmendParamsAmendmentItemActionAddTrial,
+ SubscriptionScheduleAmendParamsAmendmentItemActionRemove as SubscriptionScheduleAmendParamsAmendmentItemActionRemove,
+ SubscriptionScheduleAmendParamsAmendmentItemActionSet as SubscriptionScheduleAmendParamsAmendmentItemActionSet,
+ SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscount as SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscount,
+ SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscountDiscountEnd as SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscountDiscountEnd,
+ SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscountDiscountEndDuration as SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscountDiscountEndDuration,
+ SubscriptionScheduleAmendParamsAmendmentItemActionSetTrial as SubscriptionScheduleAmendParamsAmendmentItemActionSetTrial,
+ SubscriptionScheduleAmendParamsAmendmentMetadataAction as SubscriptionScheduleAmendParamsAmendmentMetadataAction,
+ SubscriptionScheduleAmendParamsAmendmentSetPauseCollection as SubscriptionScheduleAmendParamsAmendmentSetPauseCollection,
+ SubscriptionScheduleAmendParamsAmendmentSetPauseCollectionSet as SubscriptionScheduleAmendParamsAmendmentSetPauseCollectionSet,
+ SubscriptionScheduleAmendParamsAmendmentTrialSettings as SubscriptionScheduleAmendParamsAmendmentTrialSettings,
+ SubscriptionScheduleAmendParamsAmendmentTrialSettingsEndBehavior as SubscriptionScheduleAmendParamsAmendmentTrialSettingsEndBehavior,
+ SubscriptionScheduleAmendParamsPrebilling as SubscriptionScheduleAmendParamsPrebilling,
+ SubscriptionScheduleAmendParamsPrebillingBillFrom as SubscriptionScheduleAmendParamsPrebillingBillFrom,
+ SubscriptionScheduleAmendParamsPrebillingBillFromAmendmentStart as SubscriptionScheduleAmendParamsPrebillingBillFromAmendmentStart,
+ SubscriptionScheduleAmendParamsPrebillingBillUntil as SubscriptionScheduleAmendParamsPrebillingBillUntil,
+ SubscriptionScheduleAmendParamsPrebillingBillUntilAmendmentEnd as SubscriptionScheduleAmendParamsPrebillingBillUntilAmendmentEnd,
+ SubscriptionScheduleAmendParamsPrebillingBillUntilDuration as SubscriptionScheduleAmendParamsPrebillingBillUntilDuration,
+ SubscriptionScheduleAmendParamsScheduleSettings as SubscriptionScheduleAmendParamsScheduleSettings,
+ )
from stripe.params._subscription_schedule_cancel_params import (
SubscriptionScheduleCancelParams as SubscriptionScheduleCancelParams,
)
@@ -3534,6 +5182,8 @@
SubscriptionScheduleCreateParamsPhase as SubscriptionScheduleCreateParamsPhase,
SubscriptionScheduleCreateParamsPhaseAddInvoiceItem as SubscriptionScheduleCreateParamsPhaseAddInvoiceItem,
SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscount as SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscount,
+ SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscountDiscountEnd as SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscountDiscountEnd,
+ SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscountDiscountEndDuration as SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscountDiscountEndDuration,
SubscriptionScheduleCreateParamsPhaseAddInvoiceItemPeriod as SubscriptionScheduleCreateParamsPhaseAddInvoiceItemPeriod,
SubscriptionScheduleCreateParamsPhaseAddInvoiceItemPeriodEnd as SubscriptionScheduleCreateParamsPhaseAddInvoiceItemPeriodEnd,
SubscriptionScheduleCreateParamsPhaseAddInvoiceItemPeriodStart as SubscriptionScheduleCreateParamsPhaseAddInvoiceItemPeriodStart,
@@ -3542,15 +5192,24 @@
SubscriptionScheduleCreateParamsPhaseAutomaticTaxLiability as SubscriptionScheduleCreateParamsPhaseAutomaticTaxLiability,
SubscriptionScheduleCreateParamsPhaseBillingThresholds as SubscriptionScheduleCreateParamsPhaseBillingThresholds,
SubscriptionScheduleCreateParamsPhaseDiscount as SubscriptionScheduleCreateParamsPhaseDiscount,
+ SubscriptionScheduleCreateParamsPhaseDiscountDiscountEnd as SubscriptionScheduleCreateParamsPhaseDiscountDiscountEnd,
+ SubscriptionScheduleCreateParamsPhaseDiscountDiscountEndDuration as SubscriptionScheduleCreateParamsPhaseDiscountDiscountEndDuration,
SubscriptionScheduleCreateParamsPhaseDuration as SubscriptionScheduleCreateParamsPhaseDuration,
SubscriptionScheduleCreateParamsPhaseInvoiceSettings as SubscriptionScheduleCreateParamsPhaseInvoiceSettings,
SubscriptionScheduleCreateParamsPhaseInvoiceSettingsIssuer as SubscriptionScheduleCreateParamsPhaseInvoiceSettingsIssuer,
SubscriptionScheduleCreateParamsPhaseItem as SubscriptionScheduleCreateParamsPhaseItem,
SubscriptionScheduleCreateParamsPhaseItemBillingThresholds as SubscriptionScheduleCreateParamsPhaseItemBillingThresholds,
SubscriptionScheduleCreateParamsPhaseItemDiscount as SubscriptionScheduleCreateParamsPhaseItemDiscount,
+ SubscriptionScheduleCreateParamsPhaseItemDiscountDiscountEnd as SubscriptionScheduleCreateParamsPhaseItemDiscountDiscountEnd,
+ SubscriptionScheduleCreateParamsPhaseItemDiscountDiscountEndDuration as SubscriptionScheduleCreateParamsPhaseItemDiscountDiscountEndDuration,
SubscriptionScheduleCreateParamsPhaseItemPriceData as SubscriptionScheduleCreateParamsPhaseItemPriceData,
SubscriptionScheduleCreateParamsPhaseItemPriceDataRecurring as SubscriptionScheduleCreateParamsPhaseItemPriceDataRecurring,
+ SubscriptionScheduleCreateParamsPhaseItemTrial as SubscriptionScheduleCreateParamsPhaseItemTrial,
+ SubscriptionScheduleCreateParamsPhasePauseCollection as SubscriptionScheduleCreateParamsPhasePauseCollection,
SubscriptionScheduleCreateParamsPhaseTransferData as SubscriptionScheduleCreateParamsPhaseTransferData,
+ SubscriptionScheduleCreateParamsPhaseTrialSettings as SubscriptionScheduleCreateParamsPhaseTrialSettings,
+ SubscriptionScheduleCreateParamsPhaseTrialSettingsEndBehavior as SubscriptionScheduleCreateParamsPhaseTrialSettingsEndBehavior,
+ SubscriptionScheduleCreateParamsPrebilling as SubscriptionScheduleCreateParamsPrebilling,
)
from stripe.params._subscription_schedule_list_params import (
SubscriptionScheduleListParams as SubscriptionScheduleListParams,
@@ -3571,6 +5230,8 @@
SubscriptionScheduleModifyParamsPhase as SubscriptionScheduleModifyParamsPhase,
SubscriptionScheduleModifyParamsPhaseAddInvoiceItem as SubscriptionScheduleModifyParamsPhaseAddInvoiceItem,
SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscount as SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscount,
+ SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscountDiscountEnd as SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscountDiscountEnd,
+ SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscountDiscountEndDuration as SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscountDiscountEndDuration,
SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriod as SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriod,
SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriodEnd as SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriodEnd,
SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriodStart as SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriodStart,
@@ -3579,15 +5240,24 @@
SubscriptionScheduleModifyParamsPhaseAutomaticTaxLiability as SubscriptionScheduleModifyParamsPhaseAutomaticTaxLiability,
SubscriptionScheduleModifyParamsPhaseBillingThresholds as SubscriptionScheduleModifyParamsPhaseBillingThresholds,
SubscriptionScheduleModifyParamsPhaseDiscount as SubscriptionScheduleModifyParamsPhaseDiscount,
+ SubscriptionScheduleModifyParamsPhaseDiscountDiscountEnd as SubscriptionScheduleModifyParamsPhaseDiscountDiscountEnd,
+ SubscriptionScheduleModifyParamsPhaseDiscountDiscountEndDuration as SubscriptionScheduleModifyParamsPhaseDiscountDiscountEndDuration,
SubscriptionScheduleModifyParamsPhaseDuration as SubscriptionScheduleModifyParamsPhaseDuration,
SubscriptionScheduleModifyParamsPhaseInvoiceSettings as SubscriptionScheduleModifyParamsPhaseInvoiceSettings,
SubscriptionScheduleModifyParamsPhaseInvoiceSettingsIssuer as SubscriptionScheduleModifyParamsPhaseInvoiceSettingsIssuer,
SubscriptionScheduleModifyParamsPhaseItem as SubscriptionScheduleModifyParamsPhaseItem,
SubscriptionScheduleModifyParamsPhaseItemBillingThresholds as SubscriptionScheduleModifyParamsPhaseItemBillingThresholds,
SubscriptionScheduleModifyParamsPhaseItemDiscount as SubscriptionScheduleModifyParamsPhaseItemDiscount,
+ SubscriptionScheduleModifyParamsPhaseItemDiscountDiscountEnd as SubscriptionScheduleModifyParamsPhaseItemDiscountDiscountEnd,
+ SubscriptionScheduleModifyParamsPhaseItemDiscountDiscountEndDuration as SubscriptionScheduleModifyParamsPhaseItemDiscountDiscountEndDuration,
SubscriptionScheduleModifyParamsPhaseItemPriceData as SubscriptionScheduleModifyParamsPhaseItemPriceData,
SubscriptionScheduleModifyParamsPhaseItemPriceDataRecurring as SubscriptionScheduleModifyParamsPhaseItemPriceDataRecurring,
+ SubscriptionScheduleModifyParamsPhaseItemTrial as SubscriptionScheduleModifyParamsPhaseItemTrial,
+ SubscriptionScheduleModifyParamsPhasePauseCollection as SubscriptionScheduleModifyParamsPhasePauseCollection,
SubscriptionScheduleModifyParamsPhaseTransferData as SubscriptionScheduleModifyParamsPhaseTransferData,
+ SubscriptionScheduleModifyParamsPhaseTrialSettings as SubscriptionScheduleModifyParamsPhaseTrialSettings,
+ SubscriptionScheduleModifyParamsPhaseTrialSettingsEndBehavior as SubscriptionScheduleModifyParamsPhaseTrialSettingsEndBehavior,
+ SubscriptionScheduleModifyParamsPrebilling as SubscriptionScheduleModifyParamsPrebilling,
)
from stripe.params._subscription_schedule_release_params import (
SubscriptionScheduleReleaseParams as SubscriptionScheduleReleaseParams,
@@ -3607,6 +5277,8 @@
SubscriptionScheduleUpdateParamsPhase as SubscriptionScheduleUpdateParamsPhase,
SubscriptionScheduleUpdateParamsPhaseAddInvoiceItem as SubscriptionScheduleUpdateParamsPhaseAddInvoiceItem,
SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscount as SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscount,
+ SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscountDiscountEnd as SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscountDiscountEnd,
+ SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscountDiscountEndDuration as SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscountDiscountEndDuration,
SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriod as SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriod,
SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriodEnd as SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriodEnd,
SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriodStart as SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriodStart,
@@ -3615,15 +5287,24 @@
SubscriptionScheduleUpdateParamsPhaseAutomaticTaxLiability as SubscriptionScheduleUpdateParamsPhaseAutomaticTaxLiability,
SubscriptionScheduleUpdateParamsPhaseBillingThresholds as SubscriptionScheduleUpdateParamsPhaseBillingThresholds,
SubscriptionScheduleUpdateParamsPhaseDiscount as SubscriptionScheduleUpdateParamsPhaseDiscount,
+ SubscriptionScheduleUpdateParamsPhaseDiscountDiscountEnd as SubscriptionScheduleUpdateParamsPhaseDiscountDiscountEnd,
+ SubscriptionScheduleUpdateParamsPhaseDiscountDiscountEndDuration as SubscriptionScheduleUpdateParamsPhaseDiscountDiscountEndDuration,
SubscriptionScheduleUpdateParamsPhaseDuration as SubscriptionScheduleUpdateParamsPhaseDuration,
SubscriptionScheduleUpdateParamsPhaseInvoiceSettings as SubscriptionScheduleUpdateParamsPhaseInvoiceSettings,
SubscriptionScheduleUpdateParamsPhaseInvoiceSettingsIssuer as SubscriptionScheduleUpdateParamsPhaseInvoiceSettingsIssuer,
SubscriptionScheduleUpdateParamsPhaseItem as SubscriptionScheduleUpdateParamsPhaseItem,
SubscriptionScheduleUpdateParamsPhaseItemBillingThresholds as SubscriptionScheduleUpdateParamsPhaseItemBillingThresholds,
SubscriptionScheduleUpdateParamsPhaseItemDiscount as SubscriptionScheduleUpdateParamsPhaseItemDiscount,
+ SubscriptionScheduleUpdateParamsPhaseItemDiscountDiscountEnd as SubscriptionScheduleUpdateParamsPhaseItemDiscountDiscountEnd,
+ SubscriptionScheduleUpdateParamsPhaseItemDiscountDiscountEndDuration as SubscriptionScheduleUpdateParamsPhaseItemDiscountDiscountEndDuration,
SubscriptionScheduleUpdateParamsPhaseItemPriceData as SubscriptionScheduleUpdateParamsPhaseItemPriceData,
SubscriptionScheduleUpdateParamsPhaseItemPriceDataRecurring as SubscriptionScheduleUpdateParamsPhaseItemPriceDataRecurring,
+ SubscriptionScheduleUpdateParamsPhaseItemTrial as SubscriptionScheduleUpdateParamsPhaseItemTrial,
+ SubscriptionScheduleUpdateParamsPhasePauseCollection as SubscriptionScheduleUpdateParamsPhasePauseCollection,
SubscriptionScheduleUpdateParamsPhaseTransferData as SubscriptionScheduleUpdateParamsPhaseTransferData,
+ SubscriptionScheduleUpdateParamsPhaseTrialSettings as SubscriptionScheduleUpdateParamsPhaseTrialSettings,
+ SubscriptionScheduleUpdateParamsPhaseTrialSettingsEndBehavior as SubscriptionScheduleUpdateParamsPhaseTrialSettingsEndBehavior,
+ SubscriptionScheduleUpdateParamsPrebilling as SubscriptionScheduleUpdateParamsPrebilling,
)
from stripe.params._subscription_search_params import (
SubscriptionSearchParams as SubscriptionSearchParams,
@@ -3632,20 +5313,30 @@
SubscriptionUpdateParams as SubscriptionUpdateParams,
SubscriptionUpdateParamsAddInvoiceItem as SubscriptionUpdateParamsAddInvoiceItem,
SubscriptionUpdateParamsAddInvoiceItemDiscount as SubscriptionUpdateParamsAddInvoiceItemDiscount,
+ SubscriptionUpdateParamsAddInvoiceItemDiscountDiscountEnd as SubscriptionUpdateParamsAddInvoiceItemDiscountDiscountEnd,
+ SubscriptionUpdateParamsAddInvoiceItemDiscountDiscountEndDuration as SubscriptionUpdateParamsAddInvoiceItemDiscountDiscountEndDuration,
SubscriptionUpdateParamsAddInvoiceItemPeriod as SubscriptionUpdateParamsAddInvoiceItemPeriod,
SubscriptionUpdateParamsAddInvoiceItemPeriodEnd as SubscriptionUpdateParamsAddInvoiceItemPeriodEnd,
SubscriptionUpdateParamsAddInvoiceItemPeriodStart as SubscriptionUpdateParamsAddInvoiceItemPeriodStart,
SubscriptionUpdateParamsAddInvoiceItemPriceData as SubscriptionUpdateParamsAddInvoiceItemPriceData,
SubscriptionUpdateParamsAutomaticTax as SubscriptionUpdateParamsAutomaticTax,
SubscriptionUpdateParamsAutomaticTaxLiability as SubscriptionUpdateParamsAutomaticTaxLiability,
+ SubscriptionUpdateParamsBillingSchedule as SubscriptionUpdateParamsBillingSchedule,
+ SubscriptionUpdateParamsBillingScheduleAppliesTo as SubscriptionUpdateParamsBillingScheduleAppliesTo,
+ SubscriptionUpdateParamsBillingScheduleBillUntil as SubscriptionUpdateParamsBillingScheduleBillUntil,
+ SubscriptionUpdateParamsBillingScheduleBillUntilDuration as SubscriptionUpdateParamsBillingScheduleBillUntilDuration,
SubscriptionUpdateParamsBillingThresholds as SubscriptionUpdateParamsBillingThresholds,
SubscriptionUpdateParamsCancellationDetails as SubscriptionUpdateParamsCancellationDetails,
SubscriptionUpdateParamsDiscount as SubscriptionUpdateParamsDiscount,
+ SubscriptionUpdateParamsDiscountDiscountEnd as SubscriptionUpdateParamsDiscountDiscountEnd,
+ SubscriptionUpdateParamsDiscountDiscountEndDuration as SubscriptionUpdateParamsDiscountDiscountEndDuration,
SubscriptionUpdateParamsInvoiceSettings as SubscriptionUpdateParamsInvoiceSettings,
SubscriptionUpdateParamsInvoiceSettingsIssuer as SubscriptionUpdateParamsInvoiceSettingsIssuer,
SubscriptionUpdateParamsItem as SubscriptionUpdateParamsItem,
SubscriptionUpdateParamsItemBillingThresholds as SubscriptionUpdateParamsItemBillingThresholds,
SubscriptionUpdateParamsItemDiscount as SubscriptionUpdateParamsItemDiscount,
+ SubscriptionUpdateParamsItemDiscountDiscountEnd as SubscriptionUpdateParamsItemDiscountDiscountEnd,
+ SubscriptionUpdateParamsItemDiscountDiscountEndDuration as SubscriptionUpdateParamsItemDiscountDiscountEndDuration,
SubscriptionUpdateParamsItemPriceData as SubscriptionUpdateParamsItemPriceData,
SubscriptionUpdateParamsItemPriceDataRecurring as SubscriptionUpdateParamsItemPriceDataRecurring,
SubscriptionUpdateParamsPauseCollection as SubscriptionUpdateParamsPauseCollection,
@@ -3659,14 +5350,20 @@
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
+ SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPayto as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPayto,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions,
+ SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPix as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPix,
+ SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit,
+ SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUpi as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUpi,
+ SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
SubscriptionUpdateParamsPendingInvoiceItemInterval as SubscriptionUpdateParamsPendingInvoiceItemInterval,
+ SubscriptionUpdateParamsPrebilling as SubscriptionUpdateParamsPrebilling,
SubscriptionUpdateParamsTransferData as SubscriptionUpdateParamsTransferData,
SubscriptionUpdateParamsTrialSettings as SubscriptionUpdateParamsTrialSettings,
SubscriptionUpdateParamsTrialSettingsEndBehavior as SubscriptionUpdateParamsTrialSettingsEndBehavior,
@@ -3842,6 +5539,7 @@
"apps": ("stripe.params.apps", True),
"billing": ("stripe.params.billing", True),
"billing_portal": ("stripe.params.billing_portal", True),
+ "capital": ("stripe.params.capital", True),
"checkout": ("stripe.params.checkout", True),
"climate": ("stripe.params.climate", True),
"entitlements": ("stripe.params.entitlements", True),
@@ -3849,8 +5547,10 @@
"forwarding": ("stripe.params.forwarding", True),
"identity": ("stripe.params.identity", True),
"issuing": ("stripe.params.issuing", True),
+ "privacy": ("stripe.params.privacy", True),
"radar": ("stripe.params.radar", True),
"reporting": ("stripe.params.reporting", True),
+ "reserve": ("stripe.params.reserve", True),
"sigma": ("stripe.params.sigma", True),
"tax": ("stripe.params.tax", True),
"terminal": ("stripe.params.terminal", True),
@@ -3937,6 +5637,10 @@
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsCapabilitiesAutomaticIndirectTax": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsCapabilitiesBacsDebitPayments": (
"stripe.params._account_create_params",
False,
@@ -3997,10 +5701,22 @@
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsCapabilitiesGopayPayments": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsCapabilitiesGrabpayPayments": (
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsCapabilitiesIdBankTransferPayments": (
+ "stripe.params._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsCapabilitiesIdBankTransferPaymentsBca": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsCapabilitiesIdealPayments": (
"stripe.params._account_create_params",
False,
@@ -4085,6 +5801,14 @@
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsCapabilitiesPaypalPayments": (
+ "stripe.params._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsCapabilitiesPaypayPayments": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsCapabilitiesPaytoPayments": (
"stripe.params._account_create_params",
False,
@@ -4097,6 +5821,14 @@
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsCapabilitiesQrisPayments": (
+ "stripe.params._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsCapabilitiesRechnungPayments": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsCapabilitiesRevolutPayPayments": (
"stripe.params._account_create_params",
False,
@@ -4117,10 +5849,18 @@
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsCapabilitiesShopeepayPayments": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsCapabilitiesSofortPayments": (
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsCapabilitiesStripeBalancePayments": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsCapabilitiesSwishPayments": (
"stripe.params._account_create_params",
False,
@@ -4141,6 +5881,18 @@
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsCapabilitiesTreasuryEvolve": (
+ "stripe.params._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsCapabilitiesTreasuryFifthThird": (
+ "stripe.params._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsCapabilitiesTreasuryGoldmanSachs": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsCapabilitiesTwintPayments": (
"stripe.params._account_create_params",
False,
@@ -4206,6 +5958,14 @@
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsControllerApplication": (
+ "stripe.params._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsControllerDashboard": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsControllerFees": (
"stripe.params._account_create_params",
False,
@@ -4310,6 +6070,18 @@
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsRiskControls": (
+ "stripe.params._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsRiskControlsCharges": (
+ "stripe.params._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsRiskControlsPayouts": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsSettings": (
"stripe.params._account_create_params",
False,
@@ -4318,10 +6090,18 @@
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsSettingsBankBcaOnboarding": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsSettingsBranding": (
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsSettingsCapital": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsSettingsCardIssuing": (
"stripe.params._account_create_params",
False,
@@ -4354,6 +6134,14 @@
"stripe.params._account_create_params",
False,
),
+ "AccountCreateParamsSettingsPaypayPayments": (
+ "stripe.params._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsSettingsTaxForms": (
+ "stripe.params._account_create_params",
+ False,
+ ),
"AccountCreateParamsSettingsTreasury": (
"stripe.params._account_create_params",
False,
@@ -4613,6 +6401,30 @@
"stripe.params._account_modify_person_params",
False,
),
+ "AccountNoticeListParams": (
+ "stripe.params._account_notice_list_params",
+ False,
+ ),
+ "AccountNoticeModifyParams": (
+ "stripe.params._account_notice_modify_params",
+ False,
+ ),
+ "AccountNoticeModifyParamsEmail": (
+ "stripe.params._account_notice_modify_params",
+ False,
+ ),
+ "AccountNoticeRetrieveParams": (
+ "stripe.params._account_notice_retrieve_params",
+ False,
+ ),
+ "AccountNoticeUpdateParams": (
+ "stripe.params._account_notice_update_params",
+ False,
+ ),
+ "AccountNoticeUpdateParamsEmail": (
+ "stripe.params._account_notice_update_params",
+ False,
+ ),
"AccountPersonCreateParams": (
"stripe.params._account_person_create_params",
False,
@@ -4828,6 +6640,22 @@
"stripe.params._account_session_create_params",
False,
),
+ "AccountSessionCreateParamsComponentsAppInstall": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsAppInstallFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsAppViewport": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsAppViewportFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
"AccountSessionCreateParamsComponentsBalances": (
"stripe.params._account_session_create_params",
False,
@@ -4836,6 +6664,38 @@
"stripe.params._account_session_create_params",
False,
),
+ "AccountSessionCreateParamsComponentsCapitalFinancing": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsCapitalFinancingApplication": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsCapitalFinancingApplicationFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsCapitalFinancingFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsCapitalFinancingPromotion": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsCapitalFinancingPromotionFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsCapitalOverview": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsCapitalOverviewFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
"AccountSessionCreateParamsComponentsDisputesList": (
"stripe.params._account_session_create_params",
False,
@@ -4852,6 +6712,14 @@
"stripe.params._account_session_create_params",
False,
),
+ "AccountSessionCreateParamsComponentsExportTaxTransactions": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsExportTaxTransactionsFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
"AccountSessionCreateParamsComponentsFinancialAccount": (
"stripe.params._account_session_create_params",
False,
@@ -4916,6 +6784,14 @@
"stripe.params._account_session_create_params",
False,
),
+ "AccountSessionCreateParamsComponentsPaymentMethodSettings": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsPaymentMethodSettingsFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
"AccountSessionCreateParamsComponentsPayments": (
"stripe.params._account_session_create_params",
False,
@@ -4948,6 +6824,30 @@
"stripe.params._account_session_create_params",
False,
),
+ "AccountSessionCreateParamsComponentsProductTaxCodeSelector": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsProductTaxCodeSelectorFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsRecipients": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsRecipientsFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsReportingChart": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsReportingChartFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
"AccountSessionCreateParamsComponentsTaxRegistrations": (
"stripe.params._account_session_create_params",
False,
@@ -4964,6 +6864,14 @@
"stripe.params._account_session_create_params",
False,
),
+ "AccountSessionCreateParamsComponentsTaxThresholdMonitoring": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsTaxThresholdMonitoringFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
"AccountUpdateParams": ("stripe.params._account_update_params", False),
"AccountUpdateParamsBankAccount": (
"stripe.params._account_update_params",
@@ -5013,6 +6921,10 @@
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsCapabilitiesAutomaticIndirectTax": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsCapabilitiesBacsDebitPayments": (
"stripe.params._account_update_params",
False,
@@ -5073,10 +6985,22 @@
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsCapabilitiesGopayPayments": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsCapabilitiesGrabpayPayments": (
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsCapabilitiesIdBankTransferPayments": (
+ "stripe.params._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsCapabilitiesIdBankTransferPaymentsBca": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsCapabilitiesIdealPayments": (
"stripe.params._account_update_params",
False,
@@ -5161,6 +7085,14 @@
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsCapabilitiesPaypalPayments": (
+ "stripe.params._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsCapabilitiesPaypayPayments": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsCapabilitiesPaytoPayments": (
"stripe.params._account_update_params",
False,
@@ -5173,6 +7105,14 @@
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsCapabilitiesQrisPayments": (
+ "stripe.params._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsCapabilitiesRechnungPayments": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsCapabilitiesRevolutPayPayments": (
"stripe.params._account_update_params",
False,
@@ -5193,10 +7133,18 @@
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsCapabilitiesShopeepayPayments": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsCapabilitiesSofortPayments": (
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsCapabilitiesStripeBalancePayments": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsCapabilitiesSwishPayments": (
"stripe.params._account_update_params",
False,
@@ -5217,6 +7165,18 @@
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsCapabilitiesTreasuryEvolve": (
+ "stripe.params._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsCapabilitiesTreasuryFifthThird": (
+ "stripe.params._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsCapabilitiesTreasuryGoldmanSachs": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsCapabilitiesTwintPayments": (
"stripe.params._account_update_params",
False,
@@ -5370,6 +7330,18 @@
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsRiskControls": (
+ "stripe.params._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsRiskControlsCharges": (
+ "stripe.params._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsRiskControlsPayouts": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsSettings": (
"stripe.params._account_update_params",
False,
@@ -5378,10 +7350,18 @@
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsSettingsBankBcaOnboarding": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsSettingsBranding": (
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsSettingsCapital": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsSettingsCardIssuing": (
"stripe.params._account_update_params",
False,
@@ -5414,6 +7394,14 @@
"stripe.params._account_update_params",
False,
),
+ "AccountUpdateParamsSettingsPaypayPayments": (
+ "stripe.params._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsSettingsTaxForms": (
+ "stripe.params._account_update_params",
+ False,
+ ),
"AccountUpdateParamsSettingsTreasury": (
"stripe.params._account_update_params",
False,
@@ -5553,7100 +7541,12466 @@
),
"CardDeleteParams": ("stripe.params._card_delete_params", False),
"ChargeCaptureParams": ("stripe.params._charge_capture_params", False),
- "ChargeCaptureParamsTransferData": (
+ "ChargeCaptureParamsPaymentDetails": (
"stripe.params._charge_capture_params",
False,
),
- "ChargeCreateParams": ("stripe.params._charge_create_params", False),
- "ChargeCreateParamsDestination": (
- "stripe.params._charge_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRental": (
+ "stripe.params._charge_capture_params",
False,
),
- "ChargeCreateParamsRadarOptions": (
- "stripe.params._charge_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalAffiliate": (
+ "stripe.params._charge_capture_params",
False,
),
- "ChargeCreateParamsShipping": (
- "stripe.params._charge_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._charge_capture_params",
False,
),
- "ChargeCreateParamsShippingAddress": (
- "stripe.params._charge_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._charge_capture_params",
False,
),
- "ChargeCreateParamsTransferData": (
- "stripe.params._charge_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._charge_capture_params",
False,
),
- "ChargeListParams": ("stripe.params._charge_list_params", False),
- "ChargeListParamsCreated": ("stripe.params._charge_list_params", False),
- "ChargeListRefundsParams": (
- "stripe.params._charge_list_refunds_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._charge_capture_params",
False,
),
- "ChargeModifyParams": ("stripe.params._charge_modify_params", False),
- "ChargeModifyParamsFraudDetails": (
- "stripe.params._charge_modify_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._charge_capture_params",
False,
),
- "ChargeModifyParamsShipping": (
- "stripe.params._charge_modify_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._charge_capture_params",
False,
),
- "ChargeModifyParamsShippingAddress": (
- "stripe.params._charge_modify_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._charge_capture_params",
False,
),
- "ChargeRetrieveParams": ("stripe.params._charge_retrieve_params", False),
- "ChargeRetrieveRefundParams": (
- "stripe.params._charge_retrieve_refund_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._charge_capture_params",
False,
),
- "ChargeSearchParams": ("stripe.params._charge_search_params", False),
- "ChargeUpdateParams": ("stripe.params._charge_update_params", False),
- "ChargeUpdateParamsFraudDetails": (
- "stripe.params._charge_update_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._charge_capture_params",
False,
),
- "ChargeUpdateParamsShipping": (
- "stripe.params._charge_update_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._charge_capture_params",
False,
),
- "ChargeUpdateParamsShippingAddress": (
- "stripe.params._charge_update_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParams": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodData": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataAffirm": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataAfterpayClearpay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataAlipay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDelivery": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataAlma": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDeliveryRecipient": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataAmazonPay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDistance": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataAuBecsDebit": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalDriver": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalPickupAddress": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataBancontact": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsCarRentalReturnAddress": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataBillie": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsEventDetails": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsEventDetailsAddress": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsEventDetailsAffiliate": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataBlik": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsEventDetailsDelivery": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataBoleto": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataCashapp": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlight": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataCrypto": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightAffiliate": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDatum": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataEps": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDatumAffiliate": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataFpx": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDatumInsurance": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataGiropay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDatumPassenger": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataGrabpay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDatumSegment": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataIdeal": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDatumSegmentArrival": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataInteracPresent": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDatumSegmentDeparture": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataKakaoPay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDatumTotal": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataKlarna": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDatumTotalDiscounts": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataKlarnaDob": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataKonbini": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDatumTotalTax": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataKrCard": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDatumTotalTaxTax": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataLink": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDelivery": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataMbWay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightDeliveryRecipient": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataMobilepay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightPassenger": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataMultibanco": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsFlightSegment": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataNaverPay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodging": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataNzBankAccount": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingAddress": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataOxxo": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingAffiliate": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataP24": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataPayByBank": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataPayco": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataPaynow": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataPaypal": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataPayto": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataPix": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataPromptpay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataSatispay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDelivery": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataSofort": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingDeliveryRecipient": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataSwish": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsLodgingPassenger": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataTwint": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsSubscription": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsSubscriptionAffiliate": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataWechatPay": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsPaymentDetailsSubscriptionBillingInterval": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodDataZip": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCaptureParamsTransferData": (
+ "stripe.params._charge_capture_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodOptions": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCreateParams": ("stripe.params._charge_create_params", False),
+ "ChargeCreateParamsDestination": (
+ "stripe.params._charge_create_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodOptionsCard": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCreateParamsRadarOptions": (
+ "stripe.params._charge_create_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodOptionsCardInstallments": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCreateParamsShipping": (
+ "stripe.params._charge_create_params",
False,
),
- "ConfirmationTokenCreateParamsPaymentMethodOptionsCardInstallmentsPlan": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCreateParamsShippingAddress": (
+ "stripe.params._charge_create_params",
False,
),
- "ConfirmationTokenCreateParamsShipping": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeCreateParamsTransferData": (
+ "stripe.params._charge_create_params",
False,
),
- "ConfirmationTokenCreateParamsShippingAddress": (
- "stripe.params._confirmation_token_create_params",
+ "ChargeListParams": ("stripe.params._charge_list_params", False),
+ "ChargeListParamsCreated": ("stripe.params._charge_list_params", False),
+ "ChargeListRefundsParams": (
+ "stripe.params._charge_list_refunds_params",
False,
),
- "ConfirmationTokenRetrieveParams": (
- "stripe.params._confirmation_token_retrieve_params",
+ "ChargeModifyParams": ("stripe.params._charge_modify_params", False),
+ "ChargeModifyParamsFraudDetails": (
+ "stripe.params._charge_modify_params",
False,
),
- "CountrySpecListParams": (
- "stripe.params._country_spec_list_params",
+ "ChargeModifyParamsPaymentDetails": (
+ "stripe.params._charge_modify_params",
False,
),
- "CountrySpecRetrieveParams": (
- "stripe.params._country_spec_retrieve_params",
+ "ChargeModifyParamsPaymentDetailsCarRental": (
+ "stripe.params._charge_modify_params",
False,
),
- "CouponCreateParams": ("stripe.params._coupon_create_params", False),
- "CouponCreateParamsAppliesTo": (
- "stripe.params._coupon_create_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalAffiliate": (
+ "stripe.params._charge_modify_params",
False,
),
- "CouponCreateParamsCurrencyOptions": (
- "stripe.params._coupon_create_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._charge_modify_params",
False,
),
- "CouponDeleteParams": ("stripe.params._coupon_delete_params", False),
- "CouponListParams": ("stripe.params._coupon_list_params", False),
- "CouponListParamsCreated": ("stripe.params._coupon_list_params", False),
- "CouponModifyParams": ("stripe.params._coupon_modify_params", False),
- "CouponModifyParamsCurrencyOptions": (
- "stripe.params._coupon_modify_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._charge_modify_params",
False,
),
- "CouponRetrieveParams": ("stripe.params._coupon_retrieve_params", False),
- "CouponUpdateParams": ("stripe.params._coupon_update_params", False),
- "CouponUpdateParamsCurrencyOptions": (
- "stripe.params._coupon_update_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteCreateParams": (
- "stripe.params._credit_note_create_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteCreateParamsLine": (
- "stripe.params._credit_note_create_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteCreateParamsLineTaxAmount": (
- "stripe.params._credit_note_create_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteCreateParamsRefund": (
- "stripe.params._credit_note_create_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteCreateParamsRefundPaymentRecordRefund": (
- "stripe.params._credit_note_create_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteCreateParamsShippingCost": (
- "stripe.params._credit_note_create_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteLineItemListParams": (
- "stripe.params._credit_note_line_item_list_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteListLinesParams": (
- "stripe.params._credit_note_list_lines_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteListParams": ("stripe.params._credit_note_list_params", False),
- "CreditNoteListParamsCreated": (
- "stripe.params._credit_note_list_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteModifyParams": (
- "stripe.params._credit_note_modify_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewLinesListParams": (
- "stripe.params._credit_note_preview_lines_list_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewLinesListParamsLine": (
- "stripe.params._credit_note_preview_lines_list_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewLinesListParamsLineTaxAmount": (
- "stripe.params._credit_note_preview_lines_list_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewLinesListParamsRefund": (
- "stripe.params._credit_note_preview_lines_list_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDelivery": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewLinesListParamsRefundPaymentRecordRefund": (
- "stripe.params._credit_note_preview_lines_list_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDeliveryRecipient": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewLinesListParamsShippingCost": (
- "stripe.params._credit_note_preview_lines_list_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDistance": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewLinesParams": (
- "stripe.params._credit_note_preview_lines_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalDriver": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewLinesParamsLine": (
- "stripe.params._credit_note_preview_lines_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalPickupAddress": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewLinesParamsLineTaxAmount": (
- "stripe.params._credit_note_preview_lines_params",
+ "ChargeModifyParamsPaymentDetailsCarRentalReturnAddress": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewLinesParamsRefund": (
- "stripe.params._credit_note_preview_lines_params",
+ "ChargeModifyParamsPaymentDetailsEventDetails": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewLinesParamsRefundPaymentRecordRefund": (
- "stripe.params._credit_note_preview_lines_params",
+ "ChargeModifyParamsPaymentDetailsEventDetailsAddress": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewLinesParamsShippingCost": (
- "stripe.params._credit_note_preview_lines_params",
+ "ChargeModifyParamsPaymentDetailsEventDetailsAffiliate": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewParams": (
- "stripe.params._credit_note_preview_params",
+ "ChargeModifyParamsPaymentDetailsEventDetailsDelivery": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewParamsLine": (
- "stripe.params._credit_note_preview_params",
+ "ChargeModifyParamsPaymentDetailsEventDetailsDeliveryRecipient": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewParamsLineTaxAmount": (
- "stripe.params._credit_note_preview_params",
+ "ChargeModifyParamsPaymentDetailsFlight": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewParamsRefund": (
- "stripe.params._credit_note_preview_params",
+ "ChargeModifyParamsPaymentDetailsFlightAffiliate": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewParamsRefundPaymentRecordRefund": (
- "stripe.params._credit_note_preview_params",
+ "ChargeModifyParamsPaymentDetailsFlightDatum": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNotePreviewParamsShippingCost": (
- "stripe.params._credit_note_preview_params",
+ "ChargeModifyParamsPaymentDetailsFlightDatumAffiliate": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteRetrieveParams": (
- "stripe.params._credit_note_retrieve_params",
+ "ChargeModifyParamsPaymentDetailsFlightDatumInsurance": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteUpdateParams": (
- "stripe.params._credit_note_update_params",
+ "ChargeModifyParamsPaymentDetailsFlightDatumPassenger": (
+ "stripe.params._charge_modify_params",
False,
),
- "CreditNoteVoidCreditNoteParams": (
- "stripe.params._credit_note_void_credit_note_params",
+ "ChargeModifyParamsPaymentDetailsFlightDatumSegment": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerBalanceTransactionCreateParams": (
- "stripe.params._customer_balance_transaction_create_params",
+ "ChargeModifyParamsPaymentDetailsFlightDatumSegmentArrival": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerBalanceTransactionListParams": (
- "stripe.params._customer_balance_transaction_list_params",
+ "ChargeModifyParamsPaymentDetailsFlightDatumSegmentDeparture": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerBalanceTransactionListParamsCreated": (
- "stripe.params._customer_balance_transaction_list_params",
+ "ChargeModifyParamsPaymentDetailsFlightDatumTotal": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerBalanceTransactionRetrieveParams": (
- "stripe.params._customer_balance_transaction_retrieve_params",
+ "ChargeModifyParamsPaymentDetailsFlightDatumTotalDiscounts": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerBalanceTransactionUpdateParams": (
- "stripe.params._customer_balance_transaction_update_params",
+ "ChargeModifyParamsPaymentDetailsFlightDatumTotalExtraCharge": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCashBalanceRetrieveParams": (
- "stripe.params._customer_cash_balance_retrieve_params",
+ "ChargeModifyParamsPaymentDetailsFlightDatumTotalTax": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCashBalanceTransactionListParams": (
- "stripe.params._customer_cash_balance_transaction_list_params",
+ "ChargeModifyParamsPaymentDetailsFlightDatumTotalTaxTax": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCashBalanceTransactionRetrieveParams": (
- "stripe.params._customer_cash_balance_transaction_retrieve_params",
+ "ChargeModifyParamsPaymentDetailsFlightDelivery": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCashBalanceUpdateParams": (
- "stripe.params._customer_cash_balance_update_params",
+ "ChargeModifyParamsPaymentDetailsFlightDeliveryRecipient": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCashBalanceUpdateParamsSettings": (
- "stripe.params._customer_cash_balance_update_params",
+ "ChargeModifyParamsPaymentDetailsFlightPassenger": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateBalanceTransactionParams": (
- "stripe.params._customer_create_balance_transaction_params",
+ "ChargeModifyParamsPaymentDetailsFlightSegment": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateFundingInstructionsParams": (
- "stripe.params._customer_create_funding_instructions_params",
+ "ChargeModifyParamsPaymentDetailsLodging": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateFundingInstructionsParamsBankTransfer": (
- "stripe.params._customer_create_funding_instructions_params",
+ "ChargeModifyParamsPaymentDetailsLodgingAddress": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateFundingInstructionsParamsBankTransferEuBankTransfer": (
- "stripe.params._customer_create_funding_instructions_params",
+ "ChargeModifyParamsPaymentDetailsLodgingAffiliate": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateParams": ("stripe.params._customer_create_params", False),
- "CustomerCreateParamsAddress": (
- "stripe.params._customer_create_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateParamsCashBalance": (
- "stripe.params._customer_create_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateParamsCashBalanceSettings": (
- "stripe.params._customer_create_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateParamsInvoiceSettings": (
- "stripe.params._customer_create_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateParamsInvoiceSettingsCustomField": (
- "stripe.params._customer_create_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateParamsInvoiceSettingsRenderingOptions": (
- "stripe.params._customer_create_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateParamsShipping": (
- "stripe.params._customer_create_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateParamsShippingAddress": (
- "stripe.params._customer_create_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateParamsTax": (
- "stripe.params._customer_create_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateParamsTaxIdDatum": (
- "stripe.params._customer_create_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateSourceParams": (
- "stripe.params._customer_create_source_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerCreateTaxIdParams": (
- "stripe.params._customer_create_tax_id_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDatumTotalTaxTax": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerDeleteDiscountParams": (
- "stripe.params._customer_delete_discount_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDelivery": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerDeleteParams": ("stripe.params._customer_delete_params", False),
- "CustomerDeleteSourceParams": (
- "stripe.params._customer_delete_source_params",
+ "ChargeModifyParamsPaymentDetailsLodgingDeliveryRecipient": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerDeleteTaxIdParams": (
- "stripe.params._customer_delete_tax_id_params",
+ "ChargeModifyParamsPaymentDetailsLodgingPassenger": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerFundCashBalanceParams": (
- "stripe.params._customer_fund_cash_balance_params",
+ "ChargeModifyParamsPaymentDetailsSubscription": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerFundingInstructionsCreateParams": (
- "stripe.params._customer_funding_instructions_create_params",
+ "ChargeModifyParamsPaymentDetailsSubscriptionAffiliate": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerFundingInstructionsCreateParamsBankTransfer": (
- "stripe.params._customer_funding_instructions_create_params",
+ "ChargeModifyParamsPaymentDetailsSubscriptionBillingInterval": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerFundingInstructionsCreateParamsBankTransferEuBankTransfer": (
- "stripe.params._customer_funding_instructions_create_params",
+ "ChargeModifyParamsShipping": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerListBalanceTransactionsParams": (
- "stripe.params._customer_list_balance_transactions_params",
+ "ChargeModifyParamsShippingAddress": (
+ "stripe.params._charge_modify_params",
False,
),
- "CustomerListBalanceTransactionsParamsCreated": (
- "stripe.params._customer_list_balance_transactions_params",
+ "ChargeRetrieveParams": ("stripe.params._charge_retrieve_params", False),
+ "ChargeRetrieveRefundParams": (
+ "stripe.params._charge_retrieve_refund_params",
False,
),
- "CustomerListCashBalanceTransactionsParams": (
- "stripe.params._customer_list_cash_balance_transactions_params",
+ "ChargeSearchParams": ("stripe.params._charge_search_params", False),
+ "ChargeUpdateParams": ("stripe.params._charge_update_params", False),
+ "ChargeUpdateParamsFraudDetails": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerListParams": ("stripe.params._customer_list_params", False),
- "CustomerListParamsCreated": (
- "stripe.params._customer_list_params",
+ "ChargeUpdateParamsPaymentDetails": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerListPaymentMethodsParams": (
- "stripe.params._customer_list_payment_methods_params",
+ "ChargeUpdateParamsPaymentDetailsCarRental": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerListSourcesParams": (
- "stripe.params._customer_list_sources_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalAffiliate": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerListTaxIdsParams": (
- "stripe.params._customer_list_tax_ids_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifyBalanceTransactionParams": (
- "stripe.params._customer_modify_balance_transaction_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifyCashBalanceParams": (
- "stripe.params._customer_modify_cash_balance_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifyCashBalanceParamsSettings": (
- "stripe.params._customer_modify_cash_balance_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifyParams": ("stripe.params._customer_modify_params", False),
- "CustomerModifyParamsAddress": (
- "stripe.params._customer_modify_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifyParamsCashBalance": (
- "stripe.params._customer_modify_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifyParamsCashBalanceSettings": (
- "stripe.params._customer_modify_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifyParamsInvoiceSettings": (
- "stripe.params._customer_modify_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifyParamsInvoiceSettingsCustomField": (
- "stripe.params._customer_modify_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifyParamsInvoiceSettingsRenderingOptions": (
- "stripe.params._customer_modify_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifyParamsShipping": (
- "stripe.params._customer_modify_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifyParamsShippingAddress": (
- "stripe.params._customer_modify_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifyParamsTax": (
- "stripe.params._customer_modify_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifySourceParams": (
- "stripe.params._customer_modify_source_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifySourceParamsOwner": (
- "stripe.params._customer_modify_source_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerModifySourceParamsOwnerAddress": (
- "stripe.params._customer_modify_source_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerPaymentMethodListParams": (
- "stripe.params._customer_payment_method_list_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDelivery": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerPaymentMethodRetrieveParams": (
- "stripe.params._customer_payment_method_retrieve_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDeliveryRecipient": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerPaymentSourceCreateParams": (
- "stripe.params._customer_payment_source_create_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDistance": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerPaymentSourceDeleteParams": (
- "stripe.params._customer_payment_source_delete_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalDriver": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerPaymentSourceListParams": (
- "stripe.params._customer_payment_source_list_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalPickupAddress": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerPaymentSourceRetrieveParams": (
- "stripe.params._customer_payment_source_retrieve_params",
+ "ChargeUpdateParamsPaymentDetailsCarRentalReturnAddress": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerPaymentSourceUpdateParams": (
- "stripe.params._customer_payment_source_update_params",
+ "ChargeUpdateParamsPaymentDetailsEventDetails": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerPaymentSourceUpdateParamsOwner": (
- "stripe.params._customer_payment_source_update_params",
+ "ChargeUpdateParamsPaymentDetailsEventDetailsAddress": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerPaymentSourceUpdateParamsOwnerAddress": (
- "stripe.params._customer_payment_source_update_params",
+ "ChargeUpdateParamsPaymentDetailsEventDetailsAffiliate": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerPaymentSourceVerifyParams": (
- "stripe.params._customer_payment_source_verify_params",
+ "ChargeUpdateParamsPaymentDetailsEventDetailsDelivery": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerRetrieveBalanceTransactionParams": (
- "stripe.params._customer_retrieve_balance_transaction_params",
+ "ChargeUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerRetrieveCashBalanceParams": (
- "stripe.params._customer_retrieve_cash_balance_params",
+ "ChargeUpdateParamsPaymentDetailsFlight": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerRetrieveCashBalanceTransactionParams": (
- "stripe.params._customer_retrieve_cash_balance_transaction_params",
+ "ChargeUpdateParamsPaymentDetailsFlightAffiliate": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerRetrieveParams": (
- "stripe.params._customer_retrieve_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDatum": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerRetrievePaymentMethodParams": (
- "stripe.params._customer_retrieve_payment_method_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDatumAffiliate": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerRetrieveSourceParams": (
- "stripe.params._customer_retrieve_source_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDatumInsurance": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerRetrieveTaxIdParams": (
- "stripe.params._customer_retrieve_tax_id_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDatumPassenger": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerSearchParams": ("stripe.params._customer_search_params", False),
- "CustomerSessionCreateParams": (
- "stripe.params._customer_session_create_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDatumSegment": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerSessionCreateParamsComponents": (
- "stripe.params._customer_session_create_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDatumSegmentArrival": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerSessionCreateParamsComponentsBuyButton": (
- "stripe.params._customer_session_create_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDatumSegmentDeparture": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerSessionCreateParamsComponentsCustomerSheet": (
- "stripe.params._customer_session_create_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDatumTotal": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerSessionCreateParamsComponentsCustomerSheetFeatures": (
- "stripe.params._customer_session_create_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDatumTotalDiscounts": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerSessionCreateParamsComponentsMobilePaymentElement": (
- "stripe.params._customer_session_create_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerSessionCreateParamsComponentsMobilePaymentElementFeatures": (
- "stripe.params._customer_session_create_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDatumTotalTax": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerSessionCreateParamsComponentsPaymentElement": (
- "stripe.params._customer_session_create_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDatumTotalTaxTax": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerSessionCreateParamsComponentsPaymentElementFeatures": (
- "stripe.params._customer_session_create_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDelivery": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerSessionCreateParamsComponentsPricingTable": (
- "stripe.params._customer_session_create_params",
+ "ChargeUpdateParamsPaymentDetailsFlightDeliveryRecipient": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerTaxIdCreateParams": (
- "stripe.params._customer_tax_id_create_params",
+ "ChargeUpdateParamsPaymentDetailsFlightPassenger": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerTaxIdDeleteParams": (
- "stripe.params._customer_tax_id_delete_params",
+ "ChargeUpdateParamsPaymentDetailsFlightSegment": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerTaxIdListParams": (
- "stripe.params._customer_tax_id_list_params",
+ "ChargeUpdateParamsPaymentDetailsLodging": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerTaxIdRetrieveParams": (
- "stripe.params._customer_tax_id_retrieve_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingAddress": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerUpdateParams": ("stripe.params._customer_update_params", False),
- "CustomerUpdateParamsAddress": (
- "stripe.params._customer_update_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingAffiliate": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerUpdateParamsCashBalance": (
- "stripe.params._customer_update_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerUpdateParamsCashBalanceSettings": (
- "stripe.params._customer_update_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerUpdateParamsInvoiceSettings": (
- "stripe.params._customer_update_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerUpdateParamsInvoiceSettingsCustomField": (
- "stripe.params._customer_update_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerUpdateParamsInvoiceSettingsRenderingOptions": (
- "stripe.params._customer_update_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerUpdateParamsShipping": (
- "stripe.params._customer_update_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerUpdateParamsShippingAddress": (
- "stripe.params._customer_update_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._charge_update_params",
False,
),
- "CustomerUpdateParamsTax": (
- "stripe.params._customer_update_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeCloseParams": ("stripe.params._dispute_close_params", False),
- "DisputeListParams": ("stripe.params._dispute_list_params", False),
- "DisputeListParamsCreated": ("stripe.params._dispute_list_params", False),
- "DisputeModifyParams": ("stripe.params._dispute_modify_params", False),
- "DisputeModifyParamsEvidence": (
- "stripe.params._dispute_modify_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeModifyParamsEvidenceEnhancedEvidence": (
- "stripe.params._dispute_modify_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3": (
- "stripe.params._dispute_modify_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction": (
- "stripe.params._dispute_modify_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress": (
- "stripe.params._dispute_modify_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDelivery": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransaction": (
- "stripe.params._dispute_modify_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingDeliveryRecipient": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddress": (
- "stripe.params._dispute_modify_params",
+ "ChargeUpdateParamsPaymentDetailsLodgingPassenger": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompliance": (
- "stripe.params._dispute_modify_params",
+ "ChargeUpdateParamsPaymentDetailsSubscription": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeRetrieveParams": ("stripe.params._dispute_retrieve_params", False),
- "DisputeUpdateParams": ("stripe.params._dispute_update_params", False),
- "DisputeUpdateParamsEvidence": (
- "stripe.params._dispute_update_params",
+ "ChargeUpdateParamsPaymentDetailsSubscriptionAffiliate": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeUpdateParamsEvidenceEnhancedEvidence": (
- "stripe.params._dispute_update_params",
+ "ChargeUpdateParamsPaymentDetailsSubscriptionBillingInterval": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3": (
- "stripe.params._dispute_update_params",
+ "ChargeUpdateParamsShipping": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction": (
- "stripe.params._dispute_update_params",
+ "ChargeUpdateParamsShippingAddress": (
+ "stripe.params._charge_update_params",
False,
),
- "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress": (
- "stripe.params._dispute_update_params",
+ "ConfirmationTokenCreateParams": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransaction": (
- "stripe.params._dispute_update_params",
+ "ConfirmationTokenCreateParamsPaymentMethodData": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddress": (
- "stripe.params._dispute_update_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompliance": (
- "stripe.params._dispute_update_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataAffirm": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "EphemeralKeyCreateParams": (
- "stripe.params._ephemeral_key_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataAfterpayClearpay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "EphemeralKeyDeleteParams": (
- "stripe.params._ephemeral_key_delete_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataAlipay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "EventListParams": ("stripe.params._event_list_params", False),
- "EventListParamsCreated": ("stripe.params._event_list_params", False),
- "EventRetrieveParams": ("stripe.params._event_retrieve_params", False),
- "ExchangeRateListParams": (
- "stripe.params._exchange_rate_list_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataAlma": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "ExchangeRateRetrieveParams": (
- "stripe.params._exchange_rate_retrieve_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataAmazonPay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "FileCreateParams": ("stripe.params._file_create_params", False),
- "FileCreateParamsFileLinkData": (
- "stripe.params._file_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataAuBecsDebit": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "FileLinkCreateParams": ("stripe.params._file_link_create_params", False),
- "FileLinkListParams": ("stripe.params._file_link_list_params", False),
- "FileLinkListParamsCreated": (
- "stripe.params._file_link_list_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "FileLinkModifyParams": ("stripe.params._file_link_modify_params", False),
- "FileLinkRetrieveParams": (
- "stripe.params._file_link_retrieve_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataBancontact": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "FileLinkUpdateParams": ("stripe.params._file_link_update_params", False),
- "FileListParams": ("stripe.params._file_list_params", False),
- "FileListParamsCreated": ("stripe.params._file_list_params", False),
- "FileRetrieveParams": ("stripe.params._file_retrieve_params", False),
- "InvoiceAddLinesParams": (
- "stripe.params._invoice_add_lines_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataBillie": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceAddLinesParamsLine": (
- "stripe.params._invoice_add_lines_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceAddLinesParamsLineDiscount": (
- "stripe.params._invoice_add_lines_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceAddLinesParamsLinePeriod": (
- "stripe.params._invoice_add_lines_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataBlik": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceAddLinesParamsLinePriceData": (
- "stripe.params._invoice_add_lines_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataBoleto": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceAddLinesParamsLinePriceDataProductData": (
- "stripe.params._invoice_add_lines_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataCashapp": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceAddLinesParamsLinePricing": (
- "stripe.params._invoice_add_lines_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataCrypto": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceAddLinesParamsLineTaxAmount": (
- "stripe.params._invoice_add_lines_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceAddLinesParamsLineTaxAmountTaxRateData": (
- "stripe.params._invoice_add_lines_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataEps": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceAttachPaymentParams": (
- "stripe.params._invoice_attach_payment_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataFpx": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParams": ("stripe.params._invoice_create_params", False),
- "InvoiceCreateParamsAutomaticTax": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataGiropay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsAutomaticTaxLiability": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataGopay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsCustomField": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataGrabpay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsDiscount": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataIdBankTransfer": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsFromInvoice": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataIdeal": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsIssuer": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataInteracPresent": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettings": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataKakaoPay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptions": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataKlarna": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataKlarnaDob": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataKonbini": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataKrCard": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataLink": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataMbWay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataMobilepay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataMultibanco": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataNaverPay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataNzBankAccount": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsKonbini": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataOxxo": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPayto": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataP24": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataPayByBank": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataPayco": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataPaynow": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataPaypal": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataPaypay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsRendering": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataPayto": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsRenderingPdf": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataPix": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsShippingCost": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataPromptpay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsShippingCostShippingRateData": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataQris": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsShippingCostShippingRateDataDeliveryEstimate": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataRechnung": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsShippingCostShippingRateDataFixedAmount": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsShippingDetails": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataSatispay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsShippingDetailsAddress": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreateParamsTransferData": (
- "stripe.params._invoice_create_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataShopeepay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParams": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataSofort": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsAutomaticTax": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsAutomaticTaxLiability": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataSwish": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsCustomerDetails": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataTwint": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsCustomerDetailsAddress": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsCustomerDetailsShipping": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataWechatPay": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsCustomerDetailsShippingAddress": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsPaymentMethodDataZip": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsCustomerDetailsTax": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsPaymentMethodOptions": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsCustomerDetailsTaxId": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsPaymentMethodOptionsCard": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsDiscount": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsPaymentMethodOptionsCardInstallments": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsInvoiceItem": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsPaymentMethodOptionsCardInstallmentsPlan": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsInvoiceItemDiscount": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsShipping": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsInvoiceItemPeriod": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenCreateParamsShippingAddress": (
+ "stripe.params._confirmation_token_create_params",
False,
),
- "InvoiceCreatePreviewParamsInvoiceItemPriceData": (
- "stripe.params._invoice_create_preview_params",
+ "ConfirmationTokenRetrieveParams": (
+ "stripe.params._confirmation_token_retrieve_params",
False,
),
- "InvoiceCreatePreviewParamsIssuer": (
- "stripe.params._invoice_create_preview_params",
+ "CountrySpecListParams": (
+ "stripe.params._country_spec_list_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetails": (
- "stripe.params._invoice_create_preview_params",
+ "CountrySpecRetrieveParams": (
+ "stripe.params._country_spec_retrieve_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsBillingMode": (
- "stripe.params._invoice_create_preview_params",
+ "CouponCreateParams": ("stripe.params._coupon_create_params", False),
+ "CouponCreateParamsAppliesTo": (
+ "stripe.params._coupon_create_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsBillingModeFlexible": (
- "stripe.params._invoice_create_preview_params",
+ "CouponCreateParamsCurrencyOptions": (
+ "stripe.params._coupon_create_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhase": (
- "stripe.params._invoice_create_preview_params",
+ "CouponCreateParamsScript": ("stripe.params._coupon_create_params", False),
+ "CouponDeleteParams": ("stripe.params._coupon_delete_params", False),
+ "CouponListParams": ("stripe.params._coupon_list_params", False),
+ "CouponListParamsCreated": ("stripe.params._coupon_list_params", False),
+ "CouponModifyParams": ("stripe.params._coupon_modify_params", False),
+ "CouponModifyParamsCurrencyOptions": (
+ "stripe.params._coupon_modify_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem": (
- "stripe.params._invoice_create_preview_params",
+ "CouponRetrieveParams": ("stripe.params._coupon_retrieve_params", False),
+ "CouponUpdateParams": ("stripe.params._coupon_update_params", False),
+ "CouponUpdateParamsCurrencyOptions": (
+ "stripe.params._coupon_update_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscount": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNoteCreateParams": (
+ "stripe.params._credit_note_create_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriod": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNoteCreateParamsLine": (
+ "stripe.params._credit_note_create_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriodEnd": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNoteCreateParamsLineTaxAmount": (
+ "stripe.params._credit_note_create_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriodStart": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNoteCreateParamsRefund": (
+ "stripe.params._credit_note_create_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceData": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNoteCreateParamsRefundPaymentRecordRefund": (
+ "stripe.params._credit_note_create_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseAutomaticTax": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNoteCreateParamsShippingCost": (
+ "stripe.params._credit_note_create_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiability": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNoteLineItemListParams": (
+ "stripe.params._credit_note_line_item_list_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseBillingThresholds": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNoteListLinesParams": (
+ "stripe.params._credit_note_list_lines_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscount": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNoteListParams": ("stripe.params._credit_note_list_params", False),
+ "CreditNoteListParamsCreated": (
+ "stripe.params._credit_note_list_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseDuration": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNoteModifyParams": (
+ "stripe.params._credit_note_modify_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseInvoiceSettings": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewLinesListParams": (
+ "stripe.params._credit_note_preview_lines_list_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuer": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewLinesListParamsLine": (
+ "stripe.params._credit_note_preview_lines_list_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseItem": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewLinesListParamsLineTaxAmount": (
+ "stripe.params._credit_note_preview_lines_list_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemBillingThresholds": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewLinesListParamsRefund": (
+ "stripe.params._credit_note_preview_lines_list_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscount": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewLinesListParamsRefundPaymentRecordRefund": (
+ "stripe.params._credit_note_preview_lines_list_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceData": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewLinesListParamsShippingCost": (
+ "stripe.params._credit_note_preview_lines_list_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewLinesParams": (
+ "stripe.params._credit_note_preview_lines_params",
False,
),
- "InvoiceCreatePreviewParamsScheduleDetailsPhaseTransferData": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewLinesParamsLine": (
+ "stripe.params._credit_note_preview_lines_params",
False,
),
- "InvoiceCreatePreviewParamsSubscriptionDetails": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewLinesParamsLineTaxAmount": (
+ "stripe.params._credit_note_preview_lines_params",
False,
),
- "InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewLinesParamsRefund": (
+ "stripe.params._credit_note_preview_lines_params",
False,
),
- "InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewLinesParamsRefundPaymentRecordRefund": (
+ "stripe.params._credit_note_preview_lines_params",
False,
),
- "InvoiceCreatePreviewParamsSubscriptionDetailsItem": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewLinesParamsShippingCost": (
+ "stripe.params._credit_note_preview_lines_params",
False,
),
- "InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewParams": (
+ "stripe.params._credit_note_preview_params",
False,
),
- "InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewParamsLine": (
+ "stripe.params._credit_note_preview_params",
False,
),
- "InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceData": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewParamsLineTaxAmount": (
+ "stripe.params._credit_note_preview_params",
False,
),
- "InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring": (
- "stripe.params._invoice_create_preview_params",
+ "CreditNotePreviewParamsRefund": (
+ "stripe.params._credit_note_preview_params",
False,
),
- "InvoiceDeleteParams": ("stripe.params._invoice_delete_params", False),
- "InvoiceFinalizeInvoiceParams": (
- "stripe.params._invoice_finalize_invoice_params",
+ "CreditNotePreviewParamsRefundPaymentRecordRefund": (
+ "stripe.params._credit_note_preview_params",
False,
),
- "InvoiceItemCreateParams": (
- "stripe.params._invoice_item_create_params",
+ "CreditNotePreviewParamsShippingCost": (
+ "stripe.params._credit_note_preview_params",
False,
),
- "InvoiceItemCreateParamsDiscount": (
- "stripe.params._invoice_item_create_params",
+ "CreditNoteRetrieveParams": (
+ "stripe.params._credit_note_retrieve_params",
False,
),
- "InvoiceItemCreateParamsPeriod": (
- "stripe.params._invoice_item_create_params",
+ "CreditNoteUpdateParams": (
+ "stripe.params._credit_note_update_params",
False,
),
- "InvoiceItemCreateParamsPriceData": (
- "stripe.params._invoice_item_create_params",
+ "CreditNoteVoidCreditNoteParams": (
+ "stripe.params._credit_note_void_credit_note_params",
False,
),
- "InvoiceItemCreateParamsPricing": (
- "stripe.params._invoice_item_create_params",
+ "CustomerBalanceTransactionCreateParams": (
+ "stripe.params._customer_balance_transaction_create_params",
False,
),
- "InvoiceItemDeleteParams": (
- "stripe.params._invoice_item_delete_params",
+ "CustomerBalanceTransactionListParams": (
+ "stripe.params._customer_balance_transaction_list_params",
False,
),
- "InvoiceItemListParams": (
- "stripe.params._invoice_item_list_params",
+ "CustomerBalanceTransactionListParamsCreated": (
+ "stripe.params._customer_balance_transaction_list_params",
False,
),
- "InvoiceItemListParamsCreated": (
- "stripe.params._invoice_item_list_params",
+ "CustomerBalanceTransactionRetrieveParams": (
+ "stripe.params._customer_balance_transaction_retrieve_params",
False,
),
- "InvoiceItemModifyParams": (
- "stripe.params._invoice_item_modify_params",
+ "CustomerBalanceTransactionUpdateParams": (
+ "stripe.params._customer_balance_transaction_update_params",
False,
),
- "InvoiceItemModifyParamsDiscount": (
- "stripe.params._invoice_item_modify_params",
+ "CustomerCashBalanceRetrieveParams": (
+ "stripe.params._customer_cash_balance_retrieve_params",
False,
),
- "InvoiceItemModifyParamsPeriod": (
- "stripe.params._invoice_item_modify_params",
+ "CustomerCashBalanceTransactionListParams": (
+ "stripe.params._customer_cash_balance_transaction_list_params",
False,
),
- "InvoiceItemModifyParamsPriceData": (
- "stripe.params._invoice_item_modify_params",
+ "CustomerCashBalanceTransactionRetrieveParams": (
+ "stripe.params._customer_cash_balance_transaction_retrieve_params",
False,
),
- "InvoiceItemModifyParamsPricing": (
- "stripe.params._invoice_item_modify_params",
+ "CustomerCashBalanceUpdateParams": (
+ "stripe.params._customer_cash_balance_update_params",
False,
),
- "InvoiceItemRetrieveParams": (
- "stripe.params._invoice_item_retrieve_params",
+ "CustomerCashBalanceUpdateParamsSettings": (
+ "stripe.params._customer_cash_balance_update_params",
False,
),
- "InvoiceItemUpdateParams": (
- "stripe.params._invoice_item_update_params",
+ "CustomerCreateBalanceTransactionParams": (
+ "stripe.params._customer_create_balance_transaction_params",
False,
),
- "InvoiceItemUpdateParamsDiscount": (
- "stripe.params._invoice_item_update_params",
+ "CustomerCreateFundingInstructionsParams": (
+ "stripe.params._customer_create_funding_instructions_params",
False,
),
- "InvoiceItemUpdateParamsPeriod": (
- "stripe.params._invoice_item_update_params",
+ "CustomerCreateFundingInstructionsParamsBankTransfer": (
+ "stripe.params._customer_create_funding_instructions_params",
False,
),
- "InvoiceItemUpdateParamsPriceData": (
- "stripe.params._invoice_item_update_params",
+ "CustomerCreateFundingInstructionsParamsBankTransferEuBankTransfer": (
+ "stripe.params._customer_create_funding_instructions_params",
False,
),
- "InvoiceItemUpdateParamsPricing": (
- "stripe.params._invoice_item_update_params",
+ "CustomerCreateParams": ("stripe.params._customer_create_params", False),
+ "CustomerCreateParamsAddress": (
+ "stripe.params._customer_create_params",
False,
),
- "InvoiceLineItemListParams": (
- "stripe.params._invoice_line_item_list_params",
+ "CustomerCreateParamsCashBalance": (
+ "stripe.params._customer_create_params",
False,
),
- "InvoiceLineItemUpdateParams": (
- "stripe.params._invoice_line_item_update_params",
+ "CustomerCreateParamsCashBalanceSettings": (
+ "stripe.params._customer_create_params",
False,
),
- "InvoiceLineItemUpdateParamsDiscount": (
- "stripe.params._invoice_line_item_update_params",
+ "CustomerCreateParamsInvoiceSettings": (
+ "stripe.params._customer_create_params",
False,
),
- "InvoiceLineItemUpdateParamsPeriod": (
- "stripe.params._invoice_line_item_update_params",
+ "CustomerCreateParamsInvoiceSettingsCustomField": (
+ "stripe.params._customer_create_params",
False,
),
- "InvoiceLineItemUpdateParamsPriceData": (
- "stripe.params._invoice_line_item_update_params",
+ "CustomerCreateParamsInvoiceSettingsRenderingOptions": (
+ "stripe.params._customer_create_params",
False,
),
- "InvoiceLineItemUpdateParamsPriceDataProductData": (
- "stripe.params._invoice_line_item_update_params",
+ "CustomerCreateParamsShipping": (
+ "stripe.params._customer_create_params",
False,
),
- "InvoiceLineItemUpdateParamsPricing": (
- "stripe.params._invoice_line_item_update_params",
+ "CustomerCreateParamsShippingAddress": (
+ "stripe.params._customer_create_params",
False,
),
- "InvoiceLineItemUpdateParamsTaxAmount": (
- "stripe.params._invoice_line_item_update_params",
+ "CustomerCreateParamsTax": (
+ "stripe.params._customer_create_params",
False,
),
- "InvoiceLineItemUpdateParamsTaxAmountTaxRateData": (
- "stripe.params._invoice_line_item_update_params",
+ "CustomerCreateParamsTaxIdDatum": (
+ "stripe.params._customer_create_params",
False,
),
- "InvoiceListLinesParams": (
- "stripe.params._invoice_list_lines_params",
+ "CustomerCreateSourceParams": (
+ "stripe.params._customer_create_source_params",
False,
),
- "InvoiceListParams": ("stripe.params._invoice_list_params", False),
- "InvoiceListParamsCreated": ("stripe.params._invoice_list_params", False),
- "InvoiceListParamsDueDate": ("stripe.params._invoice_list_params", False),
- "InvoiceMarkUncollectibleParams": (
- "stripe.params._invoice_mark_uncollectible_params",
+ "CustomerCreateTaxIdParams": (
+ "stripe.params._customer_create_tax_id_params",
False,
),
- "InvoiceModifyParams": ("stripe.params._invoice_modify_params", False),
- "InvoiceModifyParamsAutomaticTax": (
- "stripe.params._invoice_modify_params",
+ "CustomerDeleteDiscountParams": (
+ "stripe.params._customer_delete_discount_params",
False,
),
- "InvoiceModifyParamsAutomaticTaxLiability": (
- "stripe.params._invoice_modify_params",
+ "CustomerDeleteParams": ("stripe.params._customer_delete_params", False),
+ "CustomerDeleteSourceParams": (
+ "stripe.params._customer_delete_source_params",
False,
),
- "InvoiceModifyParamsCustomField": (
- "stripe.params._invoice_modify_params",
+ "CustomerDeleteTaxIdParams": (
+ "stripe.params._customer_delete_tax_id_params",
False,
),
- "InvoiceModifyParamsDiscount": (
- "stripe.params._invoice_modify_params",
+ "CustomerFundCashBalanceParams": (
+ "stripe.params._customer_fund_cash_balance_params",
False,
),
- "InvoiceModifyParamsIssuer": (
- "stripe.params._invoice_modify_params",
+ "CustomerFundingInstructionsCreateParams": (
+ "stripe.params._customer_funding_instructions_create_params",
False,
),
- "InvoiceModifyParamsPaymentSettings": (
- "stripe.params._invoice_modify_params",
+ "CustomerFundingInstructionsCreateParamsBankTransfer": (
+ "stripe.params._customer_funding_instructions_create_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptions": (
- "stripe.params._invoice_modify_params",
+ "CustomerFundingInstructionsCreateParamsBankTransferEuBankTransfer": (
+ "stripe.params._customer_funding_instructions_create_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit": (
- "stripe.params._invoice_modify_params",
+ "CustomerListBalanceTransactionsParams": (
+ "stripe.params._customer_list_balance_transactions_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions": (
- "stripe.params._invoice_modify_params",
+ "CustomerListBalanceTransactionsParamsCreated": (
+ "stripe.params._customer_list_balance_transactions_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBancontact": (
- "stripe.params._invoice_modify_params",
+ "CustomerListCashBalanceTransactionsParams": (
+ "stripe.params._customer_list_cash_balance_transactions_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard": (
- "stripe.params._invoice_modify_params",
+ "CustomerListParams": ("stripe.params._customer_list_params", False),
+ "CustomerListParamsCreated": (
+ "stripe.params._customer_list_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments": (
- "stripe.params._invoice_modify_params",
+ "CustomerListPaymentMethodsParams": (
+ "stripe.params._customer_list_payment_methods_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan": (
- "stripe.params._invoice_modify_params",
+ "CustomerListSourcesParams": (
+ "stripe.params._customer_list_sources_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance": (
- "stripe.params._invoice_modify_params",
+ "CustomerListTaxIdsParams": (
+ "stripe.params._customer_list_tax_ids_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifyBalanceTransactionParams": (
+ "stripe.params._customer_modify_balance_transaction_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifyCashBalanceParams": (
+ "stripe.params._customer_modify_cash_balance_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsKonbini": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifyCashBalanceParamsSettings": (
+ "stripe.params._customer_modify_cash_balance_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPayto": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifyParams": ("stripe.params._customer_modify_params", False),
+ "CustomerModifyParamsAddress": (
+ "stripe.params._customer_modify_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifyParamsCashBalance": (
+ "stripe.params._customer_modify_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifyParamsCashBalanceSettings": (
+ "stripe.params._customer_modify_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifyParamsInvoiceSettings": (
+ "stripe.params._customer_modify_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifyParamsInvoiceSettingsCustomField": (
+ "stripe.params._customer_modify_params",
False,
),
- "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifyParamsInvoiceSettingsRenderingOptions": (
+ "stripe.params._customer_modify_params",
False,
),
- "InvoiceModifyParamsRendering": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifyParamsShipping": (
+ "stripe.params._customer_modify_params",
False,
),
- "InvoiceModifyParamsRenderingPdf": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifyParamsShippingAddress": (
+ "stripe.params._customer_modify_params",
False,
),
- "InvoiceModifyParamsShippingCost": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifyParamsTax": (
+ "stripe.params._customer_modify_params",
False,
),
- "InvoiceModifyParamsShippingCostShippingRateData": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifySourceParams": (
+ "stripe.params._customer_modify_source_params",
False,
),
- "InvoiceModifyParamsShippingCostShippingRateDataDeliveryEstimate": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifySourceParamsOwner": (
+ "stripe.params._customer_modify_source_params",
False,
),
- "InvoiceModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximum": (
- "stripe.params._invoice_modify_params",
+ "CustomerModifySourceParamsOwnerAddress": (
+ "stripe.params._customer_modify_source_params",
False,
),
- "InvoiceModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimum": (
- "stripe.params._invoice_modify_params",
+ "CustomerPaymentMethodListParams": (
+ "stripe.params._customer_payment_method_list_params",
False,
),
- "InvoiceModifyParamsShippingCostShippingRateDataFixedAmount": (
- "stripe.params._invoice_modify_params",
+ "CustomerPaymentMethodRetrieveParams": (
+ "stripe.params._customer_payment_method_retrieve_params",
False,
),
- "InvoiceModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions": (
- "stripe.params._invoice_modify_params",
+ "CustomerPaymentSourceCreateParams": (
+ "stripe.params._customer_payment_source_create_params",
False,
),
- "InvoiceModifyParamsShippingDetails": (
- "stripe.params._invoice_modify_params",
+ "CustomerPaymentSourceDeleteParams": (
+ "stripe.params._customer_payment_source_delete_params",
False,
),
- "InvoiceModifyParamsShippingDetailsAddress": (
- "stripe.params._invoice_modify_params",
+ "CustomerPaymentSourceListParams": (
+ "stripe.params._customer_payment_source_list_params",
False,
),
- "InvoiceModifyParamsTransferData": (
- "stripe.params._invoice_modify_params",
+ "CustomerPaymentSourceRetrieveParams": (
+ "stripe.params._customer_payment_source_retrieve_params",
False,
),
- "InvoicePayParams": ("stripe.params._invoice_pay_params", False),
- "InvoicePaymentListParams": (
- "stripe.params._invoice_payment_list_params",
+ "CustomerPaymentSourceUpdateParams": (
+ "stripe.params._customer_payment_source_update_params",
False,
),
- "InvoicePaymentListParamsCreated": (
- "stripe.params._invoice_payment_list_params",
+ "CustomerPaymentSourceUpdateParamsOwner": (
+ "stripe.params._customer_payment_source_update_params",
False,
),
- "InvoicePaymentListParamsPayment": (
- "stripe.params._invoice_payment_list_params",
+ "CustomerPaymentSourceUpdateParamsOwnerAddress": (
+ "stripe.params._customer_payment_source_update_params",
False,
),
- "InvoicePaymentRetrieveParams": (
- "stripe.params._invoice_payment_retrieve_params",
+ "CustomerPaymentSourceVerifyParams": (
+ "stripe.params._customer_payment_source_verify_params",
False,
),
- "InvoiceRemoveLinesParams": (
- "stripe.params._invoice_remove_lines_params",
+ "CustomerRetrieveBalanceTransactionParams": (
+ "stripe.params._customer_retrieve_balance_transaction_params",
False,
),
- "InvoiceRemoveLinesParamsLine": (
- "stripe.params._invoice_remove_lines_params",
+ "CustomerRetrieveCashBalanceParams": (
+ "stripe.params._customer_retrieve_cash_balance_params",
False,
),
- "InvoiceRenderingTemplateArchiveParams": (
- "stripe.params._invoice_rendering_template_archive_params",
+ "CustomerRetrieveCashBalanceTransactionParams": (
+ "stripe.params._customer_retrieve_cash_balance_transaction_params",
False,
),
- "InvoiceRenderingTemplateListParams": (
- "stripe.params._invoice_rendering_template_list_params",
+ "CustomerRetrieveParams": (
+ "stripe.params._customer_retrieve_params",
False,
),
- "InvoiceRenderingTemplateRetrieveParams": (
- "stripe.params._invoice_rendering_template_retrieve_params",
+ "CustomerRetrievePaymentMethodParams": (
+ "stripe.params._customer_retrieve_payment_method_params",
False,
),
- "InvoiceRenderingTemplateUnarchiveParams": (
- "stripe.params._invoice_rendering_template_unarchive_params",
+ "CustomerRetrieveSourceParams": (
+ "stripe.params._customer_retrieve_source_params",
False,
),
- "InvoiceRetrieveParams": ("stripe.params._invoice_retrieve_params", False),
- "InvoiceSearchParams": ("stripe.params._invoice_search_params", False),
- "InvoiceSendInvoiceParams": (
- "stripe.params._invoice_send_invoice_params",
+ "CustomerRetrieveTaxIdParams": (
+ "stripe.params._customer_retrieve_tax_id_params",
False,
),
- "InvoiceUpdateLinesParams": (
- "stripe.params._invoice_update_lines_params",
+ "CustomerSearchParams": ("stripe.params._customer_search_params", False),
+ "CustomerSessionCreateParams": (
+ "stripe.params._customer_session_create_params",
False,
),
- "InvoiceUpdateLinesParamsLine": (
- "stripe.params._invoice_update_lines_params",
+ "CustomerSessionCreateParamsComponents": (
+ "stripe.params._customer_session_create_params",
False,
),
- "InvoiceUpdateLinesParamsLineDiscount": (
- "stripe.params._invoice_update_lines_params",
+ "CustomerSessionCreateParamsComponentsBuyButton": (
+ "stripe.params._customer_session_create_params",
False,
),
- "InvoiceUpdateLinesParamsLinePeriod": (
- "stripe.params._invoice_update_lines_params",
+ "CustomerSessionCreateParamsComponentsCustomerSheet": (
+ "stripe.params._customer_session_create_params",
False,
),
- "InvoiceUpdateLinesParamsLinePriceData": (
- "stripe.params._invoice_update_lines_params",
+ "CustomerSessionCreateParamsComponentsCustomerSheetFeatures": (
+ "stripe.params._customer_session_create_params",
False,
),
- "InvoiceUpdateLinesParamsLinePriceDataProductData": (
- "stripe.params._invoice_update_lines_params",
+ "CustomerSessionCreateParamsComponentsMobilePaymentElement": (
+ "stripe.params._customer_session_create_params",
False,
),
- "InvoiceUpdateLinesParamsLinePricing": (
- "stripe.params._invoice_update_lines_params",
+ "CustomerSessionCreateParamsComponentsMobilePaymentElementFeatures": (
+ "stripe.params._customer_session_create_params",
False,
),
- "InvoiceUpdateLinesParamsLineTaxAmount": (
- "stripe.params._invoice_update_lines_params",
+ "CustomerSessionCreateParamsComponentsPaymentElement": (
+ "stripe.params._customer_session_create_params",
False,
),
- "InvoiceUpdateLinesParamsLineTaxAmountTaxRateData": (
- "stripe.params._invoice_update_lines_params",
+ "CustomerSessionCreateParamsComponentsPaymentElementFeatures": (
+ "stripe.params._customer_session_create_params",
False,
),
- "InvoiceUpdateParams": ("stripe.params._invoice_update_params", False),
- "InvoiceUpdateParamsAutomaticTax": (
- "stripe.params._invoice_update_params",
+ "CustomerSessionCreateParamsComponentsPricingTable": (
+ "stripe.params._customer_session_create_params",
False,
),
- "InvoiceUpdateParamsAutomaticTaxLiability": (
- "stripe.params._invoice_update_params",
+ "CustomerSessionCreateParamsComponentsTaxIdElement": (
+ "stripe.params._customer_session_create_params",
False,
),
- "InvoiceUpdateParamsCustomField": (
- "stripe.params._invoice_update_params",
+ "CustomerSessionCreateParamsComponentsTaxIdElementFeatures": (
+ "stripe.params._customer_session_create_params",
False,
),
- "InvoiceUpdateParamsDiscount": (
- "stripe.params._invoice_update_params",
+ "CustomerTaxIdCreateParams": (
+ "stripe.params._customer_tax_id_create_params",
False,
),
- "InvoiceUpdateParamsIssuer": (
- "stripe.params._invoice_update_params",
+ "CustomerTaxIdDeleteParams": (
+ "stripe.params._customer_tax_id_delete_params",
False,
),
- "InvoiceUpdateParamsPaymentSettings": (
- "stripe.params._invoice_update_params",
+ "CustomerTaxIdListParams": (
+ "stripe.params._customer_tax_id_list_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions": (
- "stripe.params._invoice_update_params",
+ "CustomerTaxIdRetrieveParams": (
+ "stripe.params._customer_tax_id_retrieve_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit": (
- "stripe.params._invoice_update_params",
+ "CustomerUpdateParams": ("stripe.params._customer_update_params", False),
+ "CustomerUpdateParamsAddress": (
+ "stripe.params._customer_update_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions": (
- "stripe.params._invoice_update_params",
+ "CustomerUpdateParamsCashBalance": (
+ "stripe.params._customer_update_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact": (
- "stripe.params._invoice_update_params",
+ "CustomerUpdateParamsCashBalanceSettings": (
+ "stripe.params._customer_update_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard": (
- "stripe.params._invoice_update_params",
+ "CustomerUpdateParamsInvoiceSettings": (
+ "stripe.params._customer_update_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments": (
- "stripe.params._invoice_update_params",
+ "CustomerUpdateParamsInvoiceSettingsCustomField": (
+ "stripe.params._customer_update_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan": (
- "stripe.params._invoice_update_params",
+ "CustomerUpdateParamsInvoiceSettingsRenderingOptions": (
+ "stripe.params._customer_update_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance": (
- "stripe.params._invoice_update_params",
+ "CustomerUpdateParamsShipping": (
+ "stripe.params._customer_update_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer": (
- "stripe.params._invoice_update_params",
+ "CustomerUpdateParamsShippingAddress": (
+ "stripe.params._customer_update_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
- "stripe.params._invoice_update_params",
+ "CustomerUpdateParamsTax": (
+ "stripe.params._customer_update_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini": (
- "stripe.params._invoice_update_params",
+ "DisputeCloseParams": ("stripe.params._dispute_close_params", False),
+ "DisputeListParams": ("stripe.params._dispute_list_params", False),
+ "DisputeListParamsCreated": ("stripe.params._dispute_list_params", False),
+ "DisputeModifyParams": ("stripe.params._dispute_modify_params", False),
+ "DisputeModifyParamsEvidence": (
+ "stripe.params._dispute_modify_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPayto": (
- "stripe.params._invoice_update_params",
+ "DisputeModifyParamsEvidenceEnhancedEvidence": (
+ "stripe.params._dispute_modify_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions": (
- "stripe.params._invoice_update_params",
+ "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3": (
+ "stripe.params._dispute_modify_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit": (
- "stripe.params._invoice_update_params",
+ "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction": (
+ "stripe.params._dispute_modify_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount": (
- "stripe.params._invoice_update_params",
+ "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress": (
+ "stripe.params._dispute_modify_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections": (
- "stripe.params._invoice_update_params",
+ "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransaction": (
+ "stripe.params._dispute_modify_params",
False,
),
- "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
- "stripe.params._invoice_update_params",
+ "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddress": (
+ "stripe.params._dispute_modify_params",
False,
),
- "InvoiceUpdateParamsRendering": (
- "stripe.params._invoice_update_params",
+ "DisputeModifyParamsEvidenceEnhancedEvidenceVisaCompliance": (
+ "stripe.params._dispute_modify_params",
False,
),
- "InvoiceUpdateParamsRenderingPdf": (
- "stripe.params._invoice_update_params",
+ "DisputeRetrieveParams": ("stripe.params._dispute_retrieve_params", False),
+ "DisputeUpdateParams": ("stripe.params._dispute_update_params", False),
+ "DisputeUpdateParamsEvidence": (
+ "stripe.params._dispute_update_params",
False,
),
- "InvoiceUpdateParamsShippingCost": (
- "stripe.params._invoice_update_params",
+ "DisputeUpdateParamsEvidenceEnhancedEvidence": (
+ "stripe.params._dispute_update_params",
False,
),
- "InvoiceUpdateParamsShippingCostShippingRateData": (
- "stripe.params._invoice_update_params",
+ "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3": (
+ "stripe.params._dispute_update_params",
False,
),
- "InvoiceUpdateParamsShippingCostShippingRateDataDeliveryEstimate": (
- "stripe.params._invoice_update_params",
+ "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransaction": (
+ "stripe.params._dispute_update_params",
False,
),
- "InvoiceUpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximum": (
- "stripe.params._invoice_update_params",
+ "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3DisputedTransactionShippingAddress": (
+ "stripe.params._dispute_update_params",
False,
),
- "InvoiceUpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimum": (
- "stripe.params._invoice_update_params",
+ "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransaction": (
+ "stripe.params._dispute_update_params",
False,
),
- "InvoiceUpdateParamsShippingCostShippingRateDataFixedAmount": (
- "stripe.params._invoice_update_params",
+ "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputedTransactionShippingAddress": (
+ "stripe.params._dispute_update_params",
False,
),
- "InvoiceUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions": (
- "stripe.params._invoice_update_params",
+ "DisputeUpdateParamsEvidenceEnhancedEvidenceVisaCompliance": (
+ "stripe.params._dispute_update_params",
False,
),
- "InvoiceUpdateParamsShippingDetails": (
- "stripe.params._invoice_update_params",
+ "EphemeralKeyCreateParams": (
+ "stripe.params._ephemeral_key_create_params",
False,
),
- "InvoiceUpdateParamsShippingDetailsAddress": (
- "stripe.params._invoice_update_params",
+ "EphemeralKeyDeleteParams": (
+ "stripe.params._ephemeral_key_delete_params",
False,
),
- "InvoiceUpdateParamsTransferData": (
- "stripe.params._invoice_update_params",
+ "EventListParams": ("stripe.params._event_list_params", False),
+ "EventListParamsCreated": ("stripe.params._event_list_params", False),
+ "EventRetrieveParams": ("stripe.params._event_retrieve_params", False),
+ "ExchangeRateListParams": (
+ "stripe.params._exchange_rate_list_params",
False,
),
- "InvoiceVoidInvoiceParams": (
- "stripe.params._invoice_void_invoice_params",
+ "ExchangeRateRetrieveParams": (
+ "stripe.params._exchange_rate_retrieve_params",
False,
),
- "MandateRetrieveParams": ("stripe.params._mandate_retrieve_params", False),
- "PaymentAttemptRecordListParams": (
- "stripe.params._payment_attempt_record_list_params",
+ "ExternalAccountCreateParams": (
+ "stripe.params._external_account_create_params",
False,
),
- "PaymentAttemptRecordRetrieveParams": (
- "stripe.params._payment_attempt_record_retrieve_params",
+ "ExternalAccountCreateParamsBankAccount": (
+ "stripe.params._external_account_create_params",
False,
),
- "PaymentIntentAmountDetailsLineItemListParams": (
- "stripe.params._payment_intent_amount_details_line_item_list_params",
+ "ExternalAccountCreateParamsCard": (
+ "stripe.params._external_account_create_params",
False,
),
- "PaymentIntentApplyCustomerBalanceParams": (
- "stripe.params._payment_intent_apply_customer_balance_params",
+ "ExternalAccountCreateParamsCardToken": (
+ "stripe.params._external_account_create_params",
False,
),
- "PaymentIntentCancelParams": (
- "stripe.params._payment_intent_cancel_params",
+ "ExternalAccountDeleteParams": (
+ "stripe.params._external_account_delete_params",
False,
),
- "PaymentIntentCaptureParams": (
- "stripe.params._payment_intent_capture_params",
+ "ExternalAccountListParams": (
+ "stripe.params._external_account_list_params",
False,
),
- "PaymentIntentCaptureParamsAmountDetails": (
- "stripe.params._payment_intent_capture_params",
+ "ExternalAccountRetrieveParams": (
+ "stripe.params._external_account_retrieve_params",
False,
),
- "PaymentIntentCaptureParamsAmountDetailsLineItem": (
- "stripe.params._payment_intent_capture_params",
+ "ExternalAccountUpdateParams": (
+ "stripe.params._external_account_update_params",
False,
),
- "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptions": (
- "stripe.params._payment_intent_capture_params",
+ "ExternalAccountUpdateParamsDocuments": (
+ "stripe.params._external_account_update_params",
False,
),
- "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCard": (
- "stripe.params._payment_intent_capture_params",
+ "ExternalAccountUpdateParamsDocumentsBankAccountOwnershipVerification": (
+ "stripe.params._external_account_update_params",
False,
),
- "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent": (
- "stripe.params._payment_intent_capture_params",
+ "FileCreateParams": ("stripe.params._file_create_params", False),
+ "FileCreateParamsFileLinkData": (
+ "stripe.params._file_create_params",
False,
),
- "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": (
- "stripe.params._payment_intent_capture_params",
+ "FileLinkCreateParams": ("stripe.params._file_link_create_params", False),
+ "FileLinkListParams": ("stripe.params._file_link_list_params", False),
+ "FileLinkListParamsCreated": (
+ "stripe.params._file_link_list_params",
False,
),
- "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsPaypal": (
- "stripe.params._payment_intent_capture_params",
+ "FileLinkModifyParams": ("stripe.params._file_link_modify_params", False),
+ "FileLinkRetrieveParams": (
+ "stripe.params._file_link_retrieve_params",
False,
),
- "PaymentIntentCaptureParamsAmountDetailsLineItemTax": (
- "stripe.params._payment_intent_capture_params",
+ "FileLinkUpdateParams": ("stripe.params._file_link_update_params", False),
+ "FileListParams": ("stripe.params._file_list_params", False),
+ "FileListParamsCreated": ("stripe.params._file_list_params", False),
+ "FileRetrieveParams": ("stripe.params._file_retrieve_params", False),
+ "FxQuoteCreateParams": ("stripe.params._fx_quote_create_params", False),
+ "FxQuoteCreateParamsUsage": (
+ "stripe.params._fx_quote_create_params",
False,
),
- "PaymentIntentCaptureParamsAmountDetailsShipping": (
- "stripe.params._payment_intent_capture_params",
+ "FxQuoteCreateParamsUsagePayment": (
+ "stripe.params._fx_quote_create_params",
False,
),
- "PaymentIntentCaptureParamsAmountDetailsTax": (
- "stripe.params._payment_intent_capture_params",
+ "FxQuoteCreateParamsUsageTransfer": (
+ "stripe.params._fx_quote_create_params",
False,
),
- "PaymentIntentCaptureParamsHooks": (
- "stripe.params._payment_intent_capture_params",
+ "FxQuoteListParams": ("stripe.params._fx_quote_list_params", False),
+ "FxQuoteRetrieveParams": (
+ "stripe.params._fx_quote_retrieve_params",
False,
),
- "PaymentIntentCaptureParamsHooksInputs": (
- "stripe.params._payment_intent_capture_params",
+ "InvoiceAddLinesParams": (
+ "stripe.params._invoice_add_lines_params",
False,
),
- "PaymentIntentCaptureParamsHooksInputsTax": (
- "stripe.params._payment_intent_capture_params",
+ "InvoiceAddLinesParamsLine": (
+ "stripe.params._invoice_add_lines_params",
False,
),
- "PaymentIntentCaptureParamsPaymentDetails": (
- "stripe.params._payment_intent_capture_params",
+ "InvoiceAddLinesParamsLineDiscount": (
+ "stripe.params._invoice_add_lines_params",
False,
),
- "PaymentIntentCaptureParamsTransferData": (
- "stripe.params._payment_intent_capture_params",
+ "InvoiceAddLinesParamsLineDiscountDiscountEnd": (
+ "stripe.params._invoice_add_lines_params",
False,
),
- "PaymentIntentConfirmParams": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceAddLinesParamsLineDiscountDiscountEndDuration": (
+ "stripe.params._invoice_add_lines_params",
False,
),
- "PaymentIntentConfirmParamsAmountDetails": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceAddLinesParamsLinePeriod": (
+ "stripe.params._invoice_add_lines_params",
False,
),
- "PaymentIntentConfirmParamsAmountDetailsLineItem": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceAddLinesParamsLinePriceData": (
+ "stripe.params._invoice_add_lines_params",
False,
),
- "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptions": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceAddLinesParamsLinePriceDataProductData": (
+ "stripe.params._invoice_add_lines_params",
False,
),
- "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCard": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceAddLinesParamsLinePricing": (
+ "stripe.params._invoice_add_lines_params",
False,
),
- "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceAddLinesParamsLineTaxAmount": (
+ "stripe.params._invoice_add_lines_params",
False,
),
- "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceAddLinesParamsLineTaxAmountTaxRateData": (
+ "stripe.params._invoice_add_lines_params",
False,
),
- "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsPaypal": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceAttachPaymentParams": (
+ "stripe.params._invoice_attach_payment_params",
False,
),
- "PaymentIntentConfirmParamsAmountDetailsLineItemTax": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceAttachPaymentParamsPaymentRecordData": (
+ "stripe.params._invoice_attach_payment_params",
False,
),
- "PaymentIntentConfirmParamsAmountDetailsShipping": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParams": ("stripe.params._invoice_create_params", False),
+ "InvoiceCreateParamsAmountsDue": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsAmountDetailsTax": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsAutomaticTax": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsHooks": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsAutomaticTaxLiability": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsHooksInputs": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsCustomField": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsHooksInputsTax": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsDiscount": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsMandateData": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsDiscountDiscountEnd": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsMandateDataCustomerAcceptance": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsDiscountDiscountEndDuration": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOffline": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsFromInvoice": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOnline": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsIssuer": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentDetails": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettings": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodData": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptions": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataAcssDebit": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataAffirm": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataAfterpayClearpay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataAlipay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataAlma": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataAmazonPay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit": (
- "stripe.params._payment_intent_confirm_params",
- False,
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance": (
+ "stripe.params._invoice_create_params",
+ False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataBacsDebit": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataBancontact": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataBillie": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataBillingDetails": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsKonbini": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPayto": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataBlik": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataBoleto": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPix": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataCashapp": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataCrypto": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUpi": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataEps": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataFpx": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataGiropay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataGrabpay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsRendering": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataIdeal": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsRenderingPdf": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataInteracPresent": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsShippingCost": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataKakaoPay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsShippingCostShippingRateData": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataKlarna": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsShippingCostShippingRateDataDeliveryEstimate": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataKlarnaDob": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataKonbini": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataKrCard": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsShippingCostShippingRateDataFixedAmount": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataLink": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataMbWay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsShippingDetails": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataMobilepay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsShippingDetailsAddress": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataMultibanco": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreateParamsTransferData": (
+ "stripe.params._invoice_create_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataNaverPay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParams": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataNzBankAccount": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsAutomaticTax": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataOxxo": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsAutomaticTaxLiability": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataP24": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsCustomerDetails": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataPayByBank": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsCustomerDetailsAddress": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataPayco": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsCustomerDetailsShipping": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataPaynow": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsCustomerDetailsShippingAddress": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataPaypal": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsCustomerDetailsTax": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataPayto": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsCustomerDetailsTaxId": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataPix": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsDiscount": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataPromptpay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsDiscountDiscountEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataRadarOptions": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsDiscountDiscountEndDuration": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataRevolutPay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsInvoiceItem": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataSamsungPay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsInvoiceItemDiscount": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataSatispay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsInvoiceItemDiscountDiscountEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsInvoiceItemDiscountDiscountEndDuration": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataSofort": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsInvoiceItemPeriod": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataSwish": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsInvoiceItemPriceData": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataTwint": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsIssuer": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetails": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataWechatPay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendment": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodDataZip": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptions": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEndDiscountEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebit": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEndDuration": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStart": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsAffirm": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartAmendmentEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsAfterpayClearpay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartDiscountEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsAlipay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountAction": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsAlma": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAdd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsAmazonPay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAddDiscountEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionRemove": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionSet": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemAction": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsBancontact": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAdd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsBillie": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscount": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsBlik": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsBoleto": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDuration": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCard": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddTrial": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionRemove": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallmentsPlan": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSet": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscount": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDuration": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetTrial": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentMetadataAction": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentSetPauseCollection": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCashapp": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentSetPauseCollectionSet": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCrypto": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentTrialSettings": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalance": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentTrialSettingsEndBehavior": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransfer": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsBillingMode": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsBillingModeFlexible": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsEps": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhase": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsFpx": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsGiropay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscount": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsIdeal": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndDuration": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriod": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriodEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsKlarna": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriodStart": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceData": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAutomaticTax": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiability": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsKonbini": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseBillingThresholds": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsKrCard": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscount": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsLink": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscountDiscountEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsMbWay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscountDiscountEndDuration": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsMobilepay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseDuration": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsMultibanco": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseInvoiceSettings": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsNaverPay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuer": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsNzBankAccount": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseItem": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsOxxo": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemBillingThresholds": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsP24": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscount": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsPayByBank": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscountDiscountEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsPayco": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscountDiscountEndDuration": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsPaynow": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceData": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsPaypal": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsPayto": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemTrial": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhasePauseCollection": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsPix": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseTransferData": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsPromptpay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseTrialSettings": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseTrialSettingsEndBehavior": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPrebilling": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsSatispay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntil": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntilAmendmentEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntilDuration": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsSofort": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetails": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsSwish": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsTwint": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsItem": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsWechatPay": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsPaymentMethodOptionsZip": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsRadarOptions": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscountDiscountEnd": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsShipping": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscountDiscountEndDuration": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentConfirmParamsShippingAddress": (
- "stripe.params._payment_intent_confirm_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceData": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentCreateParams": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentCreateParamsAmountDetails": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceCreatePreviewParamsSubscriptionDetailsPrebilling": (
+ "stripe.params._invoice_create_preview_params",
False,
),
- "PaymentIntentCreateParamsAmountDetailsLineItem": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceDeleteParams": ("stripe.params._invoice_delete_params", False),
+ "InvoiceFinalizeInvoiceParams": (
+ "stripe.params._invoice_finalize_invoice_params",
False,
),
- "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptions": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemCreateParams": (
+ "stripe.params._invoice_item_create_params",
False,
),
- "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCard": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemCreateParamsDiscount": (
+ "stripe.params._invoice_item_create_params",
False,
),
- "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemCreateParamsDiscountDiscountEnd": (
+ "stripe.params._invoice_item_create_params",
False,
),
- "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemCreateParamsDiscountDiscountEndDuration": (
+ "stripe.params._invoice_item_create_params",
False,
),
- "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsPaypal": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemCreateParamsPeriod": (
+ "stripe.params._invoice_item_create_params",
False,
),
- "PaymentIntentCreateParamsAmountDetailsLineItemTax": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemCreateParamsPriceData": (
+ "stripe.params._invoice_item_create_params",
False,
),
- "PaymentIntentCreateParamsAmountDetailsShipping": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemCreateParamsPricing": (
+ "stripe.params._invoice_item_create_params",
False,
),
- "PaymentIntentCreateParamsAmountDetailsTax": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemDeleteParams": (
+ "stripe.params._invoice_item_delete_params",
False,
),
- "PaymentIntentCreateParamsAutomaticPaymentMethods": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemListParams": (
+ "stripe.params._invoice_item_list_params",
False,
),
- "PaymentIntentCreateParamsHooks": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemListParamsCreated": (
+ "stripe.params._invoice_item_list_params",
False,
),
- "PaymentIntentCreateParamsHooksInputs": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemModifyParams": (
+ "stripe.params._invoice_item_modify_params",
False,
),
- "PaymentIntentCreateParamsHooksInputsTax": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemModifyParamsDiscount": (
+ "stripe.params._invoice_item_modify_params",
False,
),
- "PaymentIntentCreateParamsMandateData": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemModifyParamsDiscountDiscountEnd": (
+ "stripe.params._invoice_item_modify_params",
False,
),
- "PaymentIntentCreateParamsMandateDataCustomerAcceptance": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemModifyParamsDiscountDiscountEndDuration": (
+ "stripe.params._invoice_item_modify_params",
False,
),
- "PaymentIntentCreateParamsMandateDataCustomerAcceptanceOffline": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemModifyParamsPeriod": (
+ "stripe.params._invoice_item_modify_params",
False,
),
- "PaymentIntentCreateParamsMandateDataCustomerAcceptanceOnline": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemModifyParamsPriceData": (
+ "stripe.params._invoice_item_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentDetails": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemModifyParamsPricing": (
+ "stripe.params._invoice_item_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodData": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemRetrieveParams": (
+ "stripe.params._invoice_item_retrieve_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataAcssDebit": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemUpdateParams": (
+ "stripe.params._invoice_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataAffirm": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemUpdateParamsDiscount": (
+ "stripe.params._invoice_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemUpdateParamsDiscountDiscountEnd": (
+ "stripe.params._invoice_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataAlipay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemUpdateParamsDiscountDiscountEndDuration": (
+ "stripe.params._invoice_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataAlma": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemUpdateParamsPeriod": (
+ "stripe.params._invoice_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataAmazonPay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemUpdateParamsPriceData": (
+ "stripe.params._invoice_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceItemUpdateParamsPricing": (
+ "stripe.params._invoice_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataBacsDebit": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceLineItemListParams": (
+ "stripe.params._invoice_line_item_list_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataBancontact": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceLineItemUpdateParams": (
+ "stripe.params._invoice_line_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataBillie": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceLineItemUpdateParamsDiscount": (
+ "stripe.params._invoice_line_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataBillingDetails": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceLineItemUpdateParamsDiscountDiscountEnd": (
+ "stripe.params._invoice_line_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceLineItemUpdateParamsDiscountDiscountEndDuration": (
+ "stripe.params._invoice_line_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataBlik": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceLineItemUpdateParamsPeriod": (
+ "stripe.params._invoice_line_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataBoleto": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceLineItemUpdateParamsPriceData": (
+ "stripe.params._invoice_line_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataCashapp": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceLineItemUpdateParamsPriceDataProductData": (
+ "stripe.params._invoice_line_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataCrypto": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceLineItemUpdateParamsPricing": (
+ "stripe.params._invoice_line_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataCustomerBalance": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceLineItemUpdateParamsTaxAmount": (
+ "stripe.params._invoice_line_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataEps": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceLineItemUpdateParamsTaxAmountTaxRateData": (
+ "stripe.params._invoice_line_item_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataFpx": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceListLinesParams": (
+ "stripe.params._invoice_list_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataGiropay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceListParams": ("stripe.params._invoice_list_params", False),
+ "InvoiceListParamsCreated": ("stripe.params._invoice_list_params", False),
+ "InvoiceListParamsDueDate": ("stripe.params._invoice_list_params", False),
+ "InvoiceMarkUncollectibleParams": (
+ "stripe.params._invoice_mark_uncollectible_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataGrabpay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParams": ("stripe.params._invoice_modify_params", False),
+ "InvoiceModifyParamsAmountsDue": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataIdeal": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsAutomaticTax": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataInteracPresent": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsAutomaticTaxLiability": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataKakaoPay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsCustomField": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataKlarna": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsDiscount": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataKlarnaDob": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsDiscountDiscountEnd": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataKonbini": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsDiscountDiscountEndDuration": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataKrCard": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsIssuer": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataLink": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettings": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataMbWay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptions": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataMobilepay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataMultibanco": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataNaverPay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBancontact": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataNzBankAccount": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataOxxo": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataP24": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataPayByBank": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataPayco": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataPaynow": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataPaypal": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataPayto": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsKonbini": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataPix": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPayto": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataPromptpay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataRadarOptions": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPix": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataRevolutPay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataSamsungPay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUpi": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataSatispay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataSepaDebit": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataSofort": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataSwish": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataTwint": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsRendering": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataUsBankAccount": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsRenderingPdf": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataWechatPay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsShippingCost": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodDataZip": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsShippingCostShippingRateData": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptions": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsShippingCostShippingRateDataDeliveryEstimate": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximum": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimum": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsAffirm": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsShippingCostShippingRateDataFixedAmount": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsAfterpayClearpay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsAlipay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsShippingDetails": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsAlma": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsShippingDetailsAddress": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceModifyParamsTransferData": (
+ "stripe.params._invoice_modify_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit": (
- "stripe.params._payment_intent_create_params",
+ "InvoicePayParams": ("stripe.params._invoice_pay_params", False),
+ "InvoicePaymentListParams": (
+ "stripe.params._invoice_payment_list_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit": (
- "stripe.params._payment_intent_create_params",
+ "InvoicePaymentListParamsCreated": (
+ "stripe.params._invoice_payment_list_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions": (
- "stripe.params._payment_intent_create_params",
+ "InvoicePaymentListParamsPayment": (
+ "stripe.params._invoice_payment_list_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsBancontact": (
- "stripe.params._payment_intent_create_params",
+ "InvoicePaymentRetrieveParams": (
+ "stripe.params._invoice_payment_retrieve_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsBillie": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceRemoveLinesParams": (
+ "stripe.params._invoice_remove_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsBlik": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceRemoveLinesParamsLine": (
+ "stripe.params._invoice_remove_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsBoleto": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceRenderingTemplateArchiveParams": (
+ "stripe.params._invoice_rendering_template_archive_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCard": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceRenderingTemplateListParams": (
+ "stripe.params._invoice_rendering_template_list_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceRenderingTemplateRetrieveParams": (
+ "stripe.params._invoice_rendering_template_retrieve_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCardInstallmentsPlan": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceRenderingTemplateUnarchiveParams": (
+ "stripe.params._invoice_rendering_template_unarchive_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceRetrieveParams": ("stripe.params._invoice_retrieve_params", False),
+ "InvoiceSearchParams": ("stripe.params._invoice_search_params", False),
+ "InvoiceSendInvoiceParams": (
+ "stripe.params._invoice_send_invoice_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCardPresent": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateLinesParams": (
+ "stripe.params._invoice_update_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateLinesParamsLine": (
+ "stripe.params._invoice_update_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateLinesParamsLineDiscount": (
+ "stripe.params._invoice_update_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateLinesParamsLineDiscountDiscountEnd": (
+ "stripe.params._invoice_update_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateLinesParamsLineDiscountDiscountEndDuration": (
+ "stripe.params._invoice_update_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCashapp": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateLinesParamsLinePeriod": (
+ "stripe.params._invoice_update_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCrypto": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateLinesParamsLinePriceData": (
+ "stripe.params._invoice_update_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalance": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateLinesParamsLinePriceDataProductData": (
+ "stripe.params._invoice_update_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateLinesParamsLinePricing": (
+ "stripe.params._invoice_update_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateLinesParamsLineTaxAmount": (
+ "stripe.params._invoice_update_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsEps": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateLinesParamsLineTaxAmountTaxRateData": (
+ "stripe.params._invoice_update_lines_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsFpx": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParams": ("stripe.params._invoice_update_params", False),
+ "InvoiceUpdateParamsAmountsDue": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsGiropay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsAutomaticTax": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsGrabpay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsAutomaticTaxLiability": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsIdeal": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsCustomField": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsDiscount": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsDiscountDiscountEnd": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsKlarna": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsDiscountDiscountEndDuration": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsIssuer": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettings": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsKonbini": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsKrCard": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsLink": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsMbWay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsMobilepay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsMultibanco": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsNaverPay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsNzBankAccount": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsOxxo": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsP24": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsPayByBank": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsPayco": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPayto": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsPaynow": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsPaypal": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPix": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsPayto": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUpi": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsPix": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsPromptpay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsSatispay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsRendering": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsRenderingPdf": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsShippingCost": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsSofort": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsShippingCostShippingRateData": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsSwish": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsShippingCostShippingRateDataDeliveryEstimate": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsTwint": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximum": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimum": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsShippingCostShippingRateDataFixedAmount": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsShippingDetails": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsShippingDetailsAddress": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsWechatPay": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceUpdateParamsTransferData": (
+ "stripe.params._invoice_update_params",
False,
),
- "PaymentIntentCreateParamsPaymentMethodOptionsZip": (
- "stripe.params._payment_intent_create_params",
+ "InvoiceVoidInvoiceParams": (
+ "stripe.params._invoice_void_invoice_params",
False,
),
- "PaymentIntentCreateParamsRadarOptions": (
- "stripe.params._payment_intent_create_params",
+ "MandateListParams": ("stripe.params._mandate_list_params", False),
+ "MandateRetrieveParams": ("stripe.params._mandate_retrieve_params", False),
+ "MarginCreateParams": ("stripe.params._margin_create_params", False),
+ "MarginListParams": ("stripe.params._margin_list_params", False),
+ "MarginModifyParams": ("stripe.params._margin_modify_params", False),
+ "MarginRetrieveParams": ("stripe.params._margin_retrieve_params", False),
+ "MarginUpdateParams": ("stripe.params._margin_update_params", False),
+ "OrderCancelParams": ("stripe.params._order_cancel_params", False),
+ "OrderCreateParams": ("stripe.params._order_create_params", False),
+ "OrderCreateParamsAutomaticTax": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentCreateParamsShipping": (
- "stripe.params._payment_intent_create_params",
+ "OrderCreateParamsBillingDetails": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentCreateParamsShippingAddress": (
- "stripe.params._payment_intent_create_params",
+ "OrderCreateParamsBillingDetailsAddress": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentCreateParamsTransferData": (
- "stripe.params._payment_intent_create_params",
+ "OrderCreateParamsDiscount": ("stripe.params._order_create_params", False),
+ "OrderCreateParamsLineItem": ("stripe.params._order_create_params", False),
+ "OrderCreateParamsLineItemDiscount": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParams": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsLineItemPriceData": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsAmountDetails": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsLineItemProductData": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItem": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsLineItemProductDataPackageDimensions": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptions": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPayment": ("stripe.params._order_create_params", False),
+ "OrderCreateParamsPaymentSettings": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCard": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptions": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsPaypal": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemTax": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsAlipay": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsAmountDetailsShipping": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsBancontact": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsAmountDetailsTax": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsCard": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsHooks": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsHooksInputs": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsHooksInputsTax": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsPaymentDetails": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsIdeal": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentIncrementAuthorizationParamsTransferData": (
- "stripe.params._payment_intent_increment_authorization_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarna": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentListAmountDetailsLineItemsParams": (
- "stripe.params._payment_intent_list_amount_details_line_items_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentListParams": (
- "stripe.params._payment_intent_list_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentListParamsCreated": (
- "stripe.params._payment_intent_list_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParams": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsAmountDetails": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsAmountDetailsLineItem": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptions": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCard": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsPaypal": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsAmountDetailsLineItemTax": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsAmountDetailsShipping": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsAmountDetailsTax": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsHooks": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsHooksInputs": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsHooksInputsTax": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentDetails": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodData": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataAcssDebit": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataAffirm": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataAfterpayClearpay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataAlipay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataAlma": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataAmazonPay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataBacsDebit": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataBancontact": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataBillie": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataBillingDetails": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataBlik": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataBoleto": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataCashapp": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataCrypto": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataCustomerBalance": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataEps": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataFpx": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataGiropay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataGrabpay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsLink": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataIdeal": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsOxxo": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataInteracPresent": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsP24": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataKakaoPay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypal": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataKlarna": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataKlarnaDob": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataKonbini": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataKrCard": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataLink": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsSofort": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataMbWay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataMobilepay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsPaymentSettingsTransferData": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataMultibanco": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsShippingCost": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataNaverPay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsShippingCostShippingRateData": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataNzBankAccount": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsShippingCostShippingRateDataDeliveryEstimate": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataOxxo": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataP24": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataPayByBank": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsShippingCostShippingRateDataFixedAmount": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataPayco": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataPaynow": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsShippingDetails": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataPaypal": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsShippingDetailsAddress": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataPayto": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsTaxDetails": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataPix": (
- "stripe.params._payment_intent_modify_params",
+ "OrderCreateParamsTaxDetailsTaxId": (
+ "stripe.params._order_create_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataPromptpay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderLineItemListParams": (
+ "stripe.params._order_line_item_list_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataRadarOptions": (
- "stripe.params._payment_intent_modify_params",
+ "OrderListLineItemsParams": (
+ "stripe.params._order_list_line_items_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataRevolutPay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderListParams": ("stripe.params._order_list_params", False),
+ "OrderModifyParams": ("stripe.params._order_modify_params", False),
+ "OrderModifyParamsAutomaticTax": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataSamsungPay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsBillingDetails": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataSatispay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsBillingDetailsAddress": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataSepaDebit": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsDiscount": ("stripe.params._order_modify_params", False),
+ "OrderModifyParamsLineItem": ("stripe.params._order_modify_params", False),
+ "OrderModifyParamsLineItemDiscount": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataSofort": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsLineItemPriceData": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataSwish": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsLineItemProductData": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataTwint": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsLineItemProductDataPackageDimensions": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataUsBankAccount": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPayment": ("stripe.params._order_modify_params", False),
+ "OrderModifyParamsPaymentSettings": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataWechatPay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptions": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodDataZip": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptions": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsAcssDebit": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsAcssDebitMandateOptions": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsAlipay": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsAffirm": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsBancontact": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsAfterpayClearpay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsCard": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsAlipay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsAlma": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsAmazonPay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsIdeal": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarna": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsBancontact": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsBillie": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsBlik": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsBoleto": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCard": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCardInstallmentsPlan": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCardPresent": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCashapp": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCrypto": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalance": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransfer": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsEps": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsFpx": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsGiropay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsGrabpay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsIdeal": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsKlarna": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsKonbini": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsKrCard": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsLink": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsMbWay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsMobilepay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsMultibanco": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsNaverPay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsNzBankAccount": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsOxxo": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsP24": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsLink": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsPayByBank": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsOxxo": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsPayco": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsP24": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsPaynow": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypal": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsPaypal": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsPayto": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsPix": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsPromptpay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsSofort": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsPaymentSettingsTransferData": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsSatispay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsShippingCost": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsShippingCostShippingRateData": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsShippingCostShippingRateDataDeliveryEstimate": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsSofort": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximum": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsSwish": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimum": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsTwint": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsShippingCostShippingRateDataFixedAmount": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsShippingDetails": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsShippingDetailsAddress": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsTaxDetails": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountNetworks": (
- "stripe.params._payment_intent_modify_params",
+ "OrderModifyParamsTaxDetailsTaxId": (
+ "stripe.params._order_modify_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsWechatPay": (
- "stripe.params._payment_intent_modify_params",
+ "OrderReopenParams": ("stripe.params._order_reopen_params", False),
+ "OrderRetrieveParams": ("stripe.params._order_retrieve_params", False),
+ "OrderSubmitParams": ("stripe.params._order_submit_params", False),
+ "OrderUpdateParams": ("stripe.params._order_update_params", False),
+ "OrderUpdateParamsAutomaticTax": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentModifyParamsPaymentMethodOptionsZip": (
- "stripe.params._payment_intent_modify_params",
+ "OrderUpdateParamsBillingDetails": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentModifyParamsShipping": (
- "stripe.params._payment_intent_modify_params",
+ "OrderUpdateParamsBillingDetailsAddress": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentModifyParamsShippingAddress": (
- "stripe.params._payment_intent_modify_params",
+ "OrderUpdateParamsDiscount": ("stripe.params._order_update_params", False),
+ "OrderUpdateParamsLineItem": ("stripe.params._order_update_params", False),
+ "OrderUpdateParamsLineItemDiscount": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentModifyParamsTransferData": (
- "stripe.params._payment_intent_modify_params",
+ "OrderUpdateParamsLineItemPriceData": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentRetrieveParams": (
- "stripe.params._payment_intent_retrieve_params",
+ "OrderUpdateParamsLineItemProductData": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentSearchParams": (
- "stripe.params._payment_intent_search_params",
+ "OrderUpdateParamsLineItemProductDataPackageDimensions": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParams": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPayment": ("stripe.params._order_update_params", False),
+ "OrderUpdateParamsPaymentSettings": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsAmountDetails": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptions": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsAmountDetailsLineItem": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptions": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCard": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAlipay": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsPaypal": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCard": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsAmountDetailsLineItemTax": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsAmountDetailsShipping": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsAmountDetailsTax": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsHooks": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsIdeal": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsHooksInputs": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarna": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsHooksInputsTax": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentDetails": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodData": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataAcssDebit": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataAffirm": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataAfterpayClearpay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataAlipay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataAlma": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataAmazonPay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataBacsDebit": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataBancontact": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataBillie": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataBillingDetails": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataBlik": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataBoleto": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataCashapp": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataCrypto": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataEps": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataFpx": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataGiropay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataGrabpay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataIdeal": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataInteracPresent": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataKakaoPay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataKlarna": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataKlarnaDob": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataKonbini": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataKrCard": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataLink": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataMbWay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataMobilepay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataMultibanco": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataNaverPay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataNzBankAccount": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataOxxo": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataP24": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataPayByBank": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsLink": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataPayco": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsOxxo": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataPaynow": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsP24": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataPaypal": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypal": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataPayto": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataPix": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataPromptpay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataRadarOptions": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataRevolutPay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSofort": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataSamsungPay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataSatispay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsPaymentSettingsTransferData": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsShippingCost": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataSofort": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsShippingCostShippingRateData": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataSwish": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimate": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataTwint": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximum": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimum": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataWechatPay": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsShippingCostShippingRateDataFixedAmount": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodDataZip": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptions": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsShippingDetails": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebit": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsShippingDetailsAddress": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsTaxDetails": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsAffirm": (
- "stripe.params._payment_intent_update_params",
+ "OrderUpdateParamsTaxDetailsTaxId": (
+ "stripe.params._order_update_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsAfterpayClearpay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentAttemptRecordListParams": (
+ "stripe.params._payment_attempt_record_list_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsAlipay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentAttemptRecordRetrieveParams": (
+ "stripe.params._payment_attempt_record_retrieve_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsAlma": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentAmountDetailsLineItemListParams": (
+ "stripe.params._payment_intent_amount_details_line_item_list_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsAmazonPay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentApplyCustomerBalanceParams": (
+ "stripe.params._payment_intent_apply_customer_balance_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCancelParams": (
+ "stripe.params._payment_intent_cancel_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParams": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsAmountDetails": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsBancontact": (
- "stripe.params._payment_intent_update_params",
- False,
+ "PaymentIntentCaptureParamsAmountDetailsLineItem": (
+ "stripe.params._payment_intent_capture_params",
+ False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsBillie": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptions": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsBlik": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCard": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsBoleto": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCard": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsPaypal": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallmentsPlan": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsAmountDetailsLineItemTax": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsAmountDetailsShipping": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsAmountDetailsTax": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsHooks": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsHooksInputs": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsHooksInputsTax": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetails": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCashapp": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRental": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCrypto": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalAffiliate": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalance": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsEps": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsFpx": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsGiropay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsIdeal": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsInteracPresent": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsKakaoPay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsKlarna": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsKonbini": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsKrCard": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsLink": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDelivery": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsMbWay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDeliveryRecipient": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsMobilepay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDistance": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsMultibanco": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDriver": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsNaverPay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalPickupAddress": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsNzBankAccount": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalReturnAddress": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsOxxo": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsEventDetails": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsP24": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsEventDetailsAddress": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsPayByBank": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsEventDetailsAffiliate": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsPayco": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsEventDetailsDelivery": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsPaynow": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsPaypal": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlight": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsPayto": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightAffiliate": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatum": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsPix": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumAffiliate": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsPromptpay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumInsurance": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumPassenger": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegment": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsSatispay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentArrival": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentDeparture": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotal": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsSofort": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalDiscounts": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsSwish": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsTwint": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTax": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTaxTax": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDelivery": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDeliveryRecipient": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightPassenger": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountNetworks": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsFlightSegment": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsWechatPay": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodging": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsPaymentMethodOptionsZip": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingAddress": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsShipping": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingAffiliate": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsShippingAddress": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentUpdateParamsTransferData": (
- "stripe.params._payment_intent_update_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentIntentVerifyMicrodepositsParams": (
- "stripe.params._payment_intent_verify_microdeposits_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParams": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsAfterCompletion": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsAfterCompletionHostedConfirmation": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsAfterCompletionRedirect": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsAutomaticTax": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsAutomaticTaxLiability": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsConsentCollection": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsConsentCollectionPaymentMethodReuseAgreement": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsCustomField": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsCustomFieldDropdown": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDelivery": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsCustomFieldDropdownOption": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDeliveryRecipient": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsCustomFieldLabel": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingPassenger": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsCustomFieldNumeric": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsSubscription": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsCustomFieldText": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsSubscriptionAffiliate": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsCustomText": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsPaymentDetailsSubscriptionBillingInterval": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsCustomTextAfterSubmit": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentCaptureParamsTransferData": (
+ "stripe.params._payment_intent_capture_params",
False,
),
- "PaymentLinkCreateParamsCustomTextShippingAddress": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParams": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsCustomTextSubmit": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsAmountDetails": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsCustomTextTermsOfServiceAcceptance": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsAmountDetailsLineItem": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsInvoiceCreation": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptions": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsInvoiceCreationInvoiceData": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCard": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsInvoiceCreationInvoiceDataCustomField": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsInvoiceCreationInvoiceDataIssuer": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsInvoiceCreationInvoiceDataRenderingOptions": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsPaypal": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsLineItem": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsAmountDetailsLineItemTax": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsLineItemAdjustableQuantity": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsAmountDetailsShipping": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsLineItemPriceData": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsAmountDetailsTax": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsLineItemPriceDataProductData": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsHooks": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsLineItemPriceDataRecurring": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsHooksInputs": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsNameCollection": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsHooksInputsTax": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsNameCollectionBusiness": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsMandateData": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsNameCollectionIndividual": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsMandateDataCustomerAcceptance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsOptionalItem": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOffline": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsOptionalItemAdjustableQuantity": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOnline": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsPaymentIntentData": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetails": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsPhoneNumberCollection": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRental": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsRestrictions": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalAffiliate": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsRestrictionsCompletedSessions": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsShippingAddressCollection": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsShippingOption": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsSubscriptionData": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsSubscriptionDataInvoiceSettings": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsSubscriptionDataInvoiceSettingsIssuer": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsSubscriptionDataTrialSettings": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsSubscriptionDataTrialSettingsEndBehavior": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsTaxIdCollection": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkCreateParamsTransferData": (
- "stripe.params._payment_link_create_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkLineItemListParams": (
- "stripe.params._payment_link_line_item_list_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkListLineItemsParams": (
- "stripe.params._payment_link_list_line_items_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkListParams": (
- "stripe.params._payment_link_list_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParams": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsAfterCompletion": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTax": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsAfterCompletionHostedConfirmation": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsAfterCompletionRedirect": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDelivery": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsAutomaticTax": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDeliveryRecipient": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsAutomaticTaxLiability": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDistance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsCustomField": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDriver": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsCustomFieldDropdown": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalPickupAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsCustomFieldDropdownOption": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalReturnAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsCustomFieldLabel": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsEventDetails": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsCustomFieldNumeric": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsEventDetailsAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsCustomFieldText": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsEventDetailsAffiliate": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsCustomText": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsEventDetailsDelivery": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsCustomTextAfterSubmit": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsEventDetailsDeliveryRecipient": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsCustomTextShippingAddress": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlight": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsCustomTextSubmit": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsCustomTextTermsOfServiceAcceptance": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatum": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsInvoiceCreation": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumAffiliate": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsInvoiceCreationInvoiceData": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumInsurance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsInvoiceCreationInvoiceDataCustomField": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumPassenger": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsInvoiceCreationInvoiceDataIssuer": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegment": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsInvoiceCreationInvoiceDataRenderingOptions": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentArrival": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsLineItem": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentDeparture": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsLineItemAdjustableQuantity": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotal": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsNameCollection": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalDiscounts": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsNameCollectionBusiness": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsNameCollectionIndividual": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTax": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsPaymentIntentData": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTaxTax": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsPhoneNumberCollection": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDelivery": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsRestrictions": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsRestrictionsCompletedSessions": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightPassenger": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsShippingAddressCollection": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsFlightSegment": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsSubscriptionData": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodging": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsSubscriptionDataInvoiceSettings": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsSubscriptionDataInvoiceSettingsIssuer": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingAffiliate": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsSubscriptionDataTrialSettings": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsSubscriptionDataTrialSettingsEndBehavior": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkModifyParamsTaxIdCollection": (
- "stripe.params._payment_link_modify_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkRetrieveParams": (
- "stripe.params._payment_link_retrieve_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParams": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsAfterCompletion": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsAfterCompletionHostedConfirmation": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsAfterCompletionRedirect": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsAutomaticTax": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsAutomaticTaxLiability": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsCustomField": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsCustomFieldDropdown": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTax": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsCustomFieldDropdownOption": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDelivery": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsCustomFieldLabel": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDeliveryRecipient": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsCustomFieldNumeric": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingPassenger": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsCustomFieldText": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsSubscription": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsCustomText": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsCustomTextAfterSubmit": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsCustomTextShippingAddress": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodData": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsCustomTextSubmit": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataAcssDebit": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsCustomTextTermsOfServiceAcceptance": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataAffirm": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsInvoiceCreation": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataAfterpayClearpay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsInvoiceCreationInvoiceData": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataAlipay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsInvoiceCreationInvoiceDataCustomField": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataAlma": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsInvoiceCreationInvoiceDataIssuer": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataAmazonPay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsInvoiceCreationInvoiceDataRenderingOptions": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsLineItem": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataBacsDebit": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsLineItemAdjustableQuantity": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataBancontact": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsNameCollection": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataBillie": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsNameCollectionBusiness": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataBillingDetails": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsNameCollectionIndividual": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsPaymentIntentData": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataBlik": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsPhoneNumberCollection": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataBoleto": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsRestrictions": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataCashapp": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsRestrictionsCompletedSessions": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataCrypto": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsShippingAddressCollection": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsSubscriptionData": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataEps": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsSubscriptionDataInvoiceSettings": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataFpx": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsSubscriptionDataInvoiceSettingsIssuer": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataGiropay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsSubscriptionDataTrialSettings": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataGopay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsSubscriptionDataTrialSettingsEndBehavior": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataGrabpay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentLinkUpdateParamsTaxIdCollection": (
- "stripe.params._payment_link_update_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataIdBankTransfer": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodAttachParams": (
- "stripe.params._payment_method_attach_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataIdeal": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParams": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataInteracPresent": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAcssDebit": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataKakaoPay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAcssDebitDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataKlarna": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAffirm": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataKlarnaDob": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAffirmDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataKonbini": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAfterpayClearpay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataKrCard": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAfterpayClearpayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataLink": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAlipay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataMbWay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAlipayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataMobilepay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAlma": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataMultibanco": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAlmaDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataNaverPay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAmazonPay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataNzBankAccount": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAmazonPayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataOxxo": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsApplePay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataP24": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsApplePayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataPayByBank": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsApplePayLater": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataPayco": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsApplePayLaterDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataPaynow": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAuBecsDebit": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataPaypal": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsAuBecsDebitDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataPaypay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsBacsDebit": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataPayto": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsBacsDebitDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataPix": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsBancontact": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataPromptpay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsBancontactDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataQris": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsBillie": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataRadarOptions": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsBillieDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataRechnung": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsBlik": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataRechnungDob": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsBlikDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataRevolutPay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsBoleto": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataSamsungPay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsBoletoDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataSatispay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsCard": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsCardDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataShopeepay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsCartesBancaires": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataSofort": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsCartesBancairesDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataStripeBalance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsCashapp": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataSwish": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsCashappDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataTwint": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsCrypto": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsCryptoDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataWechatPay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsCustomerBalance": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodDataZip": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsCustomerBalanceDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptions": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsEps": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebit": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsEpsDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsFpx": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsAffirm": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsFpxDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsAfterpayClearpay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsFrMealVoucherConecs": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsAlipay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsFrMealVoucherConecsDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsAlma": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsGiropay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsAmazonPay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsGiropayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsGooglePay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsGooglePayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsGrabpay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsBancontact": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsGrabpayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsBillie": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsIdeal": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsBlik": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsIdealDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsBoleto": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsJcb": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCard": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsJcbDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsKakaoPay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallmentsPlan": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsKakaoPayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsKlarna": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsKlarnaDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsKonbini": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetails": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsKonbiniDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetailsAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsKrCard": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsKrCardDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsLink": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsLinkDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCashapp": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsMbWay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCrypto": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsMbWayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsMobilepay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransfer": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsMobilepayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsMultibanco": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsEps": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsMultibancoDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsFpx": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsNaverPay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsGiropay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsNaverPayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsGopay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsNzBankAccount": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsNzBankAccountDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsIdBankTransfer": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsOxxo": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsIdeal": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsOxxoDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsP24": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsP24DisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarna": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPayByBank": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPayByBankDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPayco": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPaycoDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPaynow": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPaynowDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPaypal": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPaypalDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPayto": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPaytoDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPix": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPixDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPromptpay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsPromptpayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsRevolutPay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsRevolutPayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsSamsungPay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsSamsungPayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsSatispay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsSatispayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsSepaDebit": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsSofort": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsSofortDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsSwish": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsSwishDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsTwint": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsTwintDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsUsBankAccount": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsUsBankAccountDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsWechatPay": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsWechatPayDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsZip": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationCreateParamsZipDisplayPreference": (
- "stripe.params._payment_method_configuration_create_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationListParams": (
- "stripe.params._payment_method_configuration_list_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParams": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAcssDebit": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAcssDebitDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAffirm": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAffirmDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKonbini": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAfterpayClearpay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKrCard": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAfterpayClearpayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsLink": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAlipay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsMbWay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAlipayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsMobilepay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAlma": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsMultibanco": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAlmaDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsNaverPay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAmazonPay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsNzBankAccount": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAmazonPayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsOxxo": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsApplePay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsP24": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsApplePayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPayByBank": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsApplePayLater": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPayco": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsApplePayLaterDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPaynow": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAuBecsDebit": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPaypal": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsAuBecsDebitDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPaypalLineItem": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsBacsDebit": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPaypalLineItemTax": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsBacsDebitDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPaypay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsBancontact": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPayto": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsBancontactDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsBillie": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPix": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsBillieDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPixMandateOptions": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsBlik": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPromptpay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsBlikDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsQris": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsBoleto": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsRechnung": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsBoletoDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsCard": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsCardDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsSatispay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsCartesBancaires": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsCartesBancairesDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsCashapp": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsCashappDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsSofort": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsCrypto": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsStripeBalance": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsCryptoDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsSwish": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsCustomerBalance": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsTwint": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsCustomerBalanceDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsEps": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsEpsDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsFpx": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsFpxDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsFrMealVoucherConecs": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsFrMealVoucherConecsDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsWechatPay": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsGiropay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsPaymentMethodOptionsZip": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsGiropayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsRadarOptions": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsGooglePay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsShipping": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsGooglePayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentConfirmParamsShippingAddress": (
+ "stripe.params._payment_intent_confirm_params",
False,
),
- "PaymentMethodConfigurationModifyParamsGrabpay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParams": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsGrabpayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsAmountDetails": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsIdeal": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsAmountDetailsLineItem": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsIdealDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptions": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsJcb": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCard": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsJcbDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsKakaoPay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsKakaoPayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsPaypal": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsKlarna": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsAmountDetailsLineItemTax": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsKlarnaDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsAmountDetailsShipping": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsKonbini": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsAmountDetailsTax": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsKonbiniDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsAutomaticPaymentMethods": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsKrCard": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsHooks": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsKrCardDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsHooksInputs": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsLink": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsHooksInputsTax": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsLinkDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsMandateData": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsMbWay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsMandateDataCustomerAcceptance": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsMbWayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsMandateDataCustomerAcceptanceOffline": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsMobilepay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsMandateDataCustomerAcceptanceOnline": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsMobilepayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetails": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsMultibanco": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRental": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsMultibancoDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalAffiliate": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsNaverPay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsNaverPayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsNzBankAccount": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsNzBankAccountDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsOxxo": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsOxxoDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsP24": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsP24DisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPayByBank": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPayByBankDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPayco": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPaycoDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPaynow": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPaynowDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPaypal": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTax": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPaypalDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPayto": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDelivery": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPaytoDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDeliveryRecipient": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPix": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDistance": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPixDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDriver": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPromptpay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalPickupAddress": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsPromptpayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalReturnAddress": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsRevolutPay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsEventDetails": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsRevolutPayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsEventDetailsAddress": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsSamsungPay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsEventDetailsAffiliate": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsSamsungPayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsEventDetailsDelivery": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsSatispay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsEventDetailsDeliveryRecipient": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsSatispayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlight": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsSepaDebit": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightAffiliate": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatum": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsSofort": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumAffiliate": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsSofortDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumInsurance": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsSwish": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumPassenger": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsSwishDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumSegment": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsTwint": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentArrival": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsTwintDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentDeparture": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsUsBankAccount": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotal": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsUsBankAccountDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalDiscounts": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsWechatPay": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsWechatPayDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTax": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsZip": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTaxTax": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationModifyParamsZipDisplayPreference": (
- "stripe.params._payment_method_configuration_modify_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDelivery": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationRetrieveParams": (
- "stripe.params._payment_method_configuration_retrieve_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParams": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightPassenger": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAcssDebit": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsFlightSegment": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAcssDebitDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodging": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAffirm": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingAddress": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAffirmDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingAffiliate": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAfterpayClearpay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAfterpayClearpayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAlipay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAlipayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAlma": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAlmaDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAmazonPay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAmazonPayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsApplePay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsApplePayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsApplePayLater": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsApplePayLaterDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTax": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAuBecsDebit": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDelivery": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsAuBecsDebitDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDeliveryRecipient": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsBacsDebit": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsLodgingPassenger": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsBacsDebitDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsSubscription": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsBancontact": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsBancontactDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsBillie": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodData": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsBillieDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataAcssDebit": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsBlik": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataAffirm": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsBlikDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsBoleto": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataAlipay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsBoletoDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataAlma": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsCard": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataAmazonPay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsCardDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsCartesBancaires": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataBacsDebit": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsCartesBancairesDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataBancontact": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsCashapp": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataBillie": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsCashappDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataBillingDetails": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsCrypto": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsCryptoDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataBlik": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsCustomerBalance": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataBoleto": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsCustomerBalanceDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataCashapp": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsEps": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataCrypto": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsEpsDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataCustomerBalance": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsFpx": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataEps": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsFpxDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataFpx": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsFrMealVoucherConecs": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataGiropay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsFrMealVoucherConecsDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataGopay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsGiropay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataGrabpay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsGiropayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataIdBankTransfer": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsGooglePay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataIdeal": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsGooglePayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataInteracPresent": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsGrabpay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataKakaoPay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsGrabpayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataKlarna": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsIdeal": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataKlarnaDob": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsIdealDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataKonbini": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsJcb": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataKrCard": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsJcbDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataLink": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsKakaoPay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataMbWay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsKakaoPayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataMobilepay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsKlarna": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataMultibanco": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsKlarnaDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataNaverPay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsKonbini": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataNzBankAccount": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsKonbiniDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataOxxo": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsKrCard": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataP24": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsKrCardDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataPayByBank": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsLink": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataPayco": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsLinkDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataPaynow": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsMbWay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataPaypal": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsMbWayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataPaypay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsMobilepay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataPayto": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsMobilepayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataPix": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsMultibanco": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataPromptpay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsMultibancoDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataQris": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsNaverPay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataRadarOptions": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsNaverPayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataRechnung": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsNzBankAccount": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataRechnungDob": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsNzBankAccountDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataRevolutPay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsOxxo": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataSamsungPay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsOxxoDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataSatispay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsP24": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataSepaDebit": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsP24DisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataShopeepay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPayByBank": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataSofort": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPayByBankDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataStripeBalance": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPayco": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataSwish": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPaycoDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataTwint": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPaynow": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataUsBankAccount": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPaynowDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataWechatPay": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPaypal": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodDataZip": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPaypalDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodOptions": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPayto": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPaytoDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions": (
+ "stripe.params._payment_intent_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPix": (
- "stripe.params._payment_method_configuration_update_params",
+ "PaymentIntentCreateParamsPaymentMethodOptionsAffirm": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsAfterpayClearpay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsAlipay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsAlma": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsBancontact": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsBillie": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsBlik": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsBoleto": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCard": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardInstallmentsPlan": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardPresent": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetails": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetailsAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCashapp": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCrypto": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalance": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsEps": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsFpx": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsGiropay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsGopay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsGrabpay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsIdBankTransfer": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsIdeal": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarna": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKonbini": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsKrCard": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsLink": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsMbWay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsMobilepay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsMultibanco": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsNaverPay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsNzBankAccount": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsOxxo": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsP24": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsPayByBank": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsPayco": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsPaynow": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsPaypal": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsPaypalLineItem": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsPaypalLineItemTax": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsPaypay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsPayto": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsPix": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsPixMandateOptions": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsPromptpay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsQris": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsRechnung": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsSatispay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsShopeepay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsSofort": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsStripeBalance": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsSwish": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsTwint": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsWechatPay": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsPaymentMethodOptionsZip": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsRadarOptions": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsShipping": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsShippingAddress": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentCreateParamsTransferData": (
+ "stripe.params._payment_intent_create_params",
+ False,
+ ),
+ "PaymentIntentDecrementAuthorizationParams": (
+ "stripe.params._payment_intent_decrement_authorization_params",
+ False,
+ ),
+ "PaymentIntentDecrementAuthorizationParamsHooks": (
+ "stripe.params._payment_intent_decrement_authorization_params",
+ False,
+ ),
+ "PaymentIntentDecrementAuthorizationParamsHooksInputs": (
+ "stripe.params._payment_intent_decrement_authorization_params",
+ False,
+ ),
+ "PaymentIntentDecrementAuthorizationParamsHooksInputsTax": (
+ "stripe.params._payment_intent_decrement_authorization_params",
+ False,
+ ),
+ "PaymentIntentDecrementAuthorizationParamsTransferData": (
+ "stripe.params._payment_intent_decrement_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParams": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsAmountDetails": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItem": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptions": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCard": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsPaypal": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemTax": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsAmountDetailsShipping": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsAmountDetailsTax": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsHooks": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsHooksInputs": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsHooksInputsTax": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsPaymentDetails": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsPaymentMethodOptions": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsPaymentMethodOptionsCard": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentIncrementAuthorizationParamsTransferData": (
+ "stripe.params._payment_intent_increment_authorization_params",
+ False,
+ ),
+ "PaymentIntentListAmountDetailsLineItemsParams": (
+ "stripe.params._payment_intent_list_amount_details_line_items_params",
+ False,
+ ),
+ "PaymentIntentListParams": (
+ "stripe.params._payment_intent_list_params",
+ False,
+ ),
+ "PaymentIntentListParamsCreated": (
+ "stripe.params._payment_intent_list_params",
+ False,
+ ),
+ "PaymentIntentModifyParams": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsAmountDetails": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsAmountDetailsLineItem": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCard": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsPaypal": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsAmountDetailsLineItemTax": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsAmountDetailsShipping": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsAmountDetailsTax": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsHooks": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsHooksInputs": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsHooksInputsTax": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsMandateData": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsMandateDataCustomerAcceptance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsMandateDataCustomerAcceptanceOnline": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetails": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRental": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalAffiliate": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDelivery": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDeliveryRecipient": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDistance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDriver": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalPickupAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalReturnAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsEventDetails": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsEventDetailsAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsEventDetailsAffiliate": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsEventDetailsDelivery": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsEventDetailsDeliveryRecipient": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlight": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightAffiliate": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatum": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumAffiliate": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumInsurance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumPassenger": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumSegment": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentArrival": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentDeparture": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotal": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalDiscounts": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTax": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTaxTax": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDelivery": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightPassenger": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsFlightSegment": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodging": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingAffiliate": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTax": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDelivery": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDeliveryRecipient": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsLodgingPassenger": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsSubscription": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodData": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataAcssDebit": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataAffirm": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataAfterpayClearpay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataAlipay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataAlma": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataAmazonPay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataBacsDebit": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataBancontact": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataBillie": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataBillingDetails": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataBlik": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataBoleto": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataCashapp": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataCrypto": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataCustomerBalance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataEps": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataFpx": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataGiropay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataGopay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataGrabpay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataIdBankTransfer": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataIdeal": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataInteracPresent": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataKakaoPay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataKlarna": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataKlarnaDob": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataKonbini": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataKrCard": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataLink": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataMbWay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataMobilepay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataMultibanco": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataNaverPay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataNzBankAccount": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataOxxo": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataP24": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataPayByBank": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataPayco": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataPaynow": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataPaypal": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataPaypay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataPayto": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataPix": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataPromptpay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataQris": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataRadarOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataRechnung": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataRechnungDob": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataRevolutPay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataSamsungPay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataSatispay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataSepaDebit": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataShopeepay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataSofort": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataStripeBalance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataSwish": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataTwint": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataUsBankAccount": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataWechatPay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodDataZip": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsAcssDebit": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsAcssDebitMandateOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsAffirm": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsAfterpayClearpay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsAlipay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsAlma": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsAmazonPay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsBancontact": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsBillie": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsBlik": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsBoleto": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCard": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardInstallmentsPlan": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardPresent": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetails": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetailsAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCashapp": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCrypto": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransfer": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsEps": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsFpx": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsGiropay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsGopay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsGrabpay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsIdBankTransfer": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsIdeal": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarna": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKonbini": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsKrCard": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsLink": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsMbWay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsMobilepay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsMultibanco": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsNaverPay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsNzBankAccount": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsOxxo": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsP24": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsPayByBank": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsPayco": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsPaynow": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsPaypal": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsPaypalLineItem": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsPaypalLineItemTax": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsPaypay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsPayto": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsPix": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsPixMandateOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsPromptpay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsQris": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsRechnung": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsSatispay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsShopeepay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsSofort": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsStripeBalance": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsSwish": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsTwint": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountNetworks": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsWechatPay": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsPaymentMethodOptionsZip": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsShipping": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsShippingAddress": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentModifyParamsTransferData": (
+ "stripe.params._payment_intent_modify_params",
+ False,
+ ),
+ "PaymentIntentRetrieveParams": (
+ "stripe.params._payment_intent_retrieve_params",
+ False,
+ ),
+ "PaymentIntentSearchParams": (
+ "stripe.params._payment_intent_search_params",
+ False,
+ ),
+ "PaymentIntentTriggerActionParams": (
+ "stripe.params._payment_intent_trigger_action_params",
+ False,
+ ),
+ "PaymentIntentTriggerActionParamsScanQrCode": (
+ "stripe.params._payment_intent_trigger_action_params",
+ False,
+ ),
+ "PaymentIntentUpdateParams": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsAmountDetails": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsAmountDetailsLineItem": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCard": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsPaypal": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsAmountDetailsLineItemTax": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsAmountDetailsShipping": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsAmountDetailsTax": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsHooks": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsHooksInputs": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsHooksInputsTax": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsMandateData": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsMandateDataCustomerAcceptance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsMandateDataCustomerAcceptanceOnline": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetails": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRental": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalAffiliate": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDelivery": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDeliveryRecipient": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDistance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDriver": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalPickupAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalReturnAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsEventDetails": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsEventDetailsAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsEventDetailsAffiliate": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsEventDetailsDelivery": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlight": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatum": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumAffiliate": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumInsurance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumPassenger": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegment": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentArrival": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentDeparture": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotal": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalDiscounts": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTax": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTaxTax": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDelivery": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightPassenger": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsFlightSegment": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodging": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingAffiliate": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatum": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDelivery": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDeliveryRecipient": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingPassenger": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsSubscription": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodData": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataAcssDebit": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataAffirm": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataAfterpayClearpay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataAlipay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataAlma": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataAmazonPay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataBacsDebit": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataBancontact": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataBillie": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataBillingDetails": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataBlik": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataBoleto": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataCashapp": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataCrypto": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataEps": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataFpx": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataGiropay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataGopay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataGrabpay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataIdBankTransfer": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataIdeal": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataInteracPresent": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataKakaoPay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataKlarna": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataKlarnaDob": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataKonbini": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataKrCard": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataLink": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataMbWay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataMobilepay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataMultibanco": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataNaverPay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataNzBankAccount": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataOxxo": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataP24": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataPayByBank": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataPayco": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataPaynow": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataPaypal": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataPaypay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataPayto": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataPix": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataPromptpay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataQris": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataRadarOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataRechnung": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataRechnungDob": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataRevolutPay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataSamsungPay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataSatispay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataShopeepay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataSofort": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataStripeBalance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataSwish": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataTwint": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataWechatPay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodDataZip": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebit": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsAffirm": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsAfterpayClearpay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsAlipay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsAlma": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsAmazonPay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsBancontact": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsBillie": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsBlik": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsBoleto": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCard": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallmentsPlan": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetails": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetailsAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCashapp": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCrypto": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsEps": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsFpx": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsGiropay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsGopay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsIdBankTransfer": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsIdeal": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsInteracPresent": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKakaoPay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarna": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKonbini": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKrCard": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsLink": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsMbWay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsMobilepay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsMultibanco": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsNaverPay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsNzBankAccount": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsOxxo": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsP24": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPayByBank": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPayco": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPaynow": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPaypal": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPaypalLineItem": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPaypalLineItemTax": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPaypay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPayto": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPix": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPixMandateOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPromptpay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsQris": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsRechnung": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsSatispay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsSofort": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsStripeBalance": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsSwish": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsTwint": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountNetworks": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsWechatPay": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsPaymentMethodOptionsZip": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsShipping": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsShippingAddress": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentUpdateParamsTransferData": (
+ "stripe.params._payment_intent_update_params",
+ False,
+ ),
+ "PaymentIntentVerifyMicrodepositsParams": (
+ "stripe.params._payment_intent_verify_microdeposits_params",
+ False,
+ ),
+ "PaymentLinkCreateParams": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsAfterCompletion": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsAfterCompletionHostedConfirmation": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsAfterCompletionRedirect": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsAutomaticTax": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsAutomaticTaxLiability": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsConsentCollection": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsConsentCollectionPaymentMethodReuseAgreement": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsCustomField": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsCustomFieldDropdown": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsCustomFieldDropdownOption": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsCustomFieldLabel": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsCustomFieldNumeric": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsCustomFieldText": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsCustomText": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsCustomTextAfterSubmit": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsCustomTextShippingAddress": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsCustomTextSubmit": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsCustomTextTermsOfServiceAcceptance": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsInvoiceCreation": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsInvoiceCreationInvoiceData": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsInvoiceCreationInvoiceDataCustomField": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsInvoiceCreationInvoiceDataIssuer": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsInvoiceCreationInvoiceDataRenderingOptions": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsLineItem": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsLineItemAdjustableQuantity": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsLineItemPriceData": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsLineItemPriceDataProductData": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsLineItemPriceDataRecurring": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsNameCollection": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsNameCollectionBusiness": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsNameCollectionIndividual": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsOptionalItem": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsOptionalItemAdjustableQuantity": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsPaymentIntentData": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsPhoneNumberCollection": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsRestrictions": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsRestrictionsCompletedSessions": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsShippingAddressCollection": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsShippingOption": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsSubscriptionData": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsSubscriptionDataInvoiceSettings": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsSubscriptionDataInvoiceSettingsIssuer": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsSubscriptionDataTrialSettings": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsSubscriptionDataTrialSettingsEndBehavior": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsTaxIdCollection": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkCreateParamsTransferData": (
+ "stripe.params._payment_link_create_params",
+ False,
+ ),
+ "PaymentLinkLineItemListParams": (
+ "stripe.params._payment_link_line_item_list_params",
+ False,
+ ),
+ "PaymentLinkListLineItemsParams": (
+ "stripe.params._payment_link_list_line_items_params",
+ False,
+ ),
+ "PaymentLinkListParams": (
+ "stripe.params._payment_link_list_params",
+ False,
+ ),
+ "PaymentLinkModifyParams": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsAfterCompletion": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsAfterCompletionHostedConfirmation": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsAfterCompletionRedirect": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsAutomaticTax": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsAutomaticTaxLiability": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsCustomField": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsCustomFieldDropdown": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsCustomFieldDropdownOption": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsCustomFieldLabel": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsCustomFieldNumeric": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsCustomFieldText": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsCustomText": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsCustomTextAfterSubmit": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsCustomTextShippingAddress": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsCustomTextSubmit": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsCustomTextTermsOfServiceAcceptance": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsInvoiceCreation": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsInvoiceCreationInvoiceData": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsInvoiceCreationInvoiceDataCustomField": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsInvoiceCreationInvoiceDataIssuer": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsInvoiceCreationInvoiceDataRenderingOptions": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsLineItem": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsLineItemAdjustableQuantity": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsNameCollection": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsNameCollectionBusiness": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsNameCollectionIndividual": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsPaymentIntentData": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsPhoneNumberCollection": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsRestrictions": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsRestrictionsCompletedSessions": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsShippingAddressCollection": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsSubscriptionData": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsSubscriptionDataInvoiceSettings": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsSubscriptionDataInvoiceSettingsIssuer": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsSubscriptionDataTrialSettings": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsSubscriptionDataTrialSettingsEndBehavior": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkModifyParamsTaxIdCollection": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
+ "PaymentLinkRetrieveParams": (
+ "stripe.params._payment_link_retrieve_params",
+ False,
+ ),
+ "PaymentLinkUpdateParams": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsAfterCompletion": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsAfterCompletionHostedConfirmation": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsAfterCompletionRedirect": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsAutomaticTax": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsAutomaticTaxLiability": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsCustomField": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsCustomFieldDropdown": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsCustomFieldDropdownOption": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsCustomFieldLabel": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsCustomFieldNumeric": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsCustomFieldText": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsCustomText": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsCustomTextAfterSubmit": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsCustomTextShippingAddress": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsCustomTextSubmit": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsCustomTextTermsOfServiceAcceptance": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsInvoiceCreation": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsInvoiceCreationInvoiceData": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsInvoiceCreationInvoiceDataCustomField": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsInvoiceCreationInvoiceDataIssuer": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsInvoiceCreationInvoiceDataRenderingOptions": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsLineItem": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsLineItemAdjustableQuantity": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsNameCollection": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsNameCollectionBusiness": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsNameCollectionIndividual": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsPaymentIntentData": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsPhoneNumberCollection": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsRestrictions": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsRestrictionsCompletedSessions": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsShippingAddressCollection": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsSubscriptionData": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsSubscriptionDataInvoiceSettings": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsSubscriptionDataInvoiceSettingsIssuer": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsSubscriptionDataTrialSettings": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsSubscriptionDataTrialSettingsEndBehavior": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentLinkUpdateParamsTaxIdCollection": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
+ "PaymentMethodAttachParams": (
+ "stripe.params._payment_method_attach_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParams": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAcssDebit": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAcssDebitDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAffirm": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAffirmDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAfterpayClearpay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAfterpayClearpayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAlipay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAlipayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAlma": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAlmaDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAmazonPay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAmazonPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsApplePay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsApplePayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsApplePayLater": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsApplePayLaterDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAuBecsDebit": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsAuBecsDebitDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsBacsDebit": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsBacsDebitDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsBancontact": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsBancontactDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsBillie": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsBillieDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsBlik": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsBlikDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsBoleto": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsBoletoDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsCard": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsCardDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsCartesBancaires": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsCartesBancairesDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsCashapp": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsCashappDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsCrypto": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsCryptoDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsCustomerBalance": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsCustomerBalanceDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsEps": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsEpsDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsFpx": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsFpxDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsFrMealVoucherConecs": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsFrMealVoucherConecsDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsGiropay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsGiropayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsGooglePay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsGooglePayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsGopay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsGopayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsGrabpay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsGrabpayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsIdBankTransfer": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsIdBankTransferDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsIdeal": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsIdealDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsJcb": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsJcbDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsKakaoPay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsKakaoPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsKlarna": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsKlarnaDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsKonbini": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsKonbiniDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsKrCard": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsKrCardDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsLink": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsLinkDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsMbWay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsMbWayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsMobilepay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsMobilepayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsMultibanco": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsMultibancoDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsNaverPay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsNaverPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsNzBankAccount": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsNzBankAccountDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsOxxo": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsOxxoDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsP24": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsP24DisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPayByBank": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPayByBankDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPayco": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPaycoDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPaynow": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPaynowDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPaypal": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPaypalDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPaypay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPaypayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPayto": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPaytoDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPix": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPixDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPromptpay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsPromptpayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsQris": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsQrisDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsRevolutPay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsRevolutPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsSamsungPay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsSamsungPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsSatispay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsSatispayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsSepaDebit": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsShopeepay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsShopeepayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsSofort": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsSofortDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsSwish": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsSwishDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsTwint": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsTwintDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsUsBankAccount": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsUsBankAccountDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsWechatPay": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsWechatPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsZip": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationCreateParamsZipDisplayPreference": (
+ "stripe.params._payment_method_configuration_create_params",
+ False,
+ ),
+ "PaymentMethodConfigurationListParams": (
+ "stripe.params._payment_method_configuration_list_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParams": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAcssDebit": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAcssDebitDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAffirm": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAffirmDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAfterpayClearpay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAfterpayClearpayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAlipay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAlipayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAlma": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAlmaDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAmazonPay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAmazonPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsApplePay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsApplePayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsApplePayLater": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsApplePayLaterDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAuBecsDebit": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsAuBecsDebitDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsBacsDebit": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsBacsDebitDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsBancontact": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsBancontactDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsBillie": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsBillieDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsBlik": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsBlikDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsBoleto": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsBoletoDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsCard": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsCardDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsCartesBancaires": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsCartesBancairesDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsCashapp": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsCashappDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsCrypto": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsCryptoDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsCustomerBalance": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsCustomerBalanceDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsEps": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsEpsDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsFpx": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsFpxDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsFrMealVoucherConecs": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsFrMealVoucherConecsDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsGiropay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsGiropayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsGooglePay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsGooglePayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsGopay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsGopayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsGrabpay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsGrabpayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsIdBankTransfer": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsIdBankTransferDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsIdeal": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsIdealDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsJcb": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsJcbDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsKakaoPay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsKakaoPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsKlarna": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsKlarnaDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsKonbini": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsKonbiniDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsKrCard": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsKrCardDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsLink": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsLinkDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsMbWay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsMbWayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsMobilepay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsMobilepayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsMultibanco": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsMultibancoDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsNaverPay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsNaverPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsNzBankAccount": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsNzBankAccountDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsOxxo": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsOxxoDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsP24": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsP24DisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPayByBank": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPayByBankDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPayco": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPaycoDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPaynow": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPaynowDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPaypal": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPaypalDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPaypay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPaypayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPayto": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPaytoDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPix": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPixDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPromptpay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsPromptpayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsQris": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsQrisDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsRevolutPay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsRevolutPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsSamsungPay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsSamsungPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsSatispay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsSatispayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsSepaDebit": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsShopeepay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsShopeepayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsSofort": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsSofortDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsSwish": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsSwishDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsTwint": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsTwintDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsUsBankAccount": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsUsBankAccountDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsWechatPay": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsWechatPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsZip": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationModifyParamsZipDisplayPreference": (
+ "stripe.params._payment_method_configuration_modify_params",
+ False,
+ ),
+ "PaymentMethodConfigurationRetrieveParams": (
+ "stripe.params._payment_method_configuration_retrieve_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParams": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAcssDebit": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAcssDebitDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAffirm": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAffirmDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAfterpayClearpay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAfterpayClearpayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAlipay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAlipayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAlma": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAlmaDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAmazonPay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAmazonPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsApplePay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsApplePayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsApplePayLater": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsApplePayLaterDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAuBecsDebit": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsAuBecsDebitDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsBacsDebit": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsBacsDebitDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsBancontact": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsBancontactDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsBillie": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsBillieDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsBlik": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsBlikDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsBoleto": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsBoletoDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsCard": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsCardDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsCartesBancaires": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsCartesBancairesDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsCashapp": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsCashappDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsCrypto": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsCryptoDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsCustomerBalance": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsCustomerBalanceDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsEps": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsEpsDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsFpx": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsFpxDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsFrMealVoucherConecs": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsFrMealVoucherConecsDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsGiropay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsGiropayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsGooglePay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsGooglePayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsGopay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsGopayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsGrabpay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsGrabpayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsIdBankTransfer": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsIdBankTransferDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsIdeal": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsIdealDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsJcb": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsJcbDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsKakaoPay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsKakaoPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsKlarna": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsKlarnaDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsKonbini": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsKonbiniDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsKrCard": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsKrCardDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsLink": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsLinkDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsMbWay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsMbWayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsMobilepay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsMobilepayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsMultibanco": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsMultibancoDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsNaverPay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsNaverPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsNzBankAccount": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsNzBankAccountDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsOxxo": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsOxxoDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsP24": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsP24DisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPayByBank": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPayByBankDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPayco": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPaycoDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPaynow": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPaynowDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPaypal": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPaypalDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPaypay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPaypayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPayto": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPaytoDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPix": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPixDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPromptpay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsPromptpayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsQris": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsQrisDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsRevolutPay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsRevolutPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsSamsungPay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsSamsungPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsSatispay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsSepaDebit": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsShopeepay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsShopeepayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsSofort": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsSofortDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsSwish": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsSwishDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsTwint": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsTwintDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsUsBankAccount": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsUsBankAccountDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsWechatPay": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsWechatPayDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsZip": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodConfigurationUpdateParamsZipDisplayPreference": (
+ "stripe.params._payment_method_configuration_update_params",
+ False,
+ ),
+ "PaymentMethodCreateParams": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsAcssDebit": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsAffirm": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsAfterpayClearpay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsAlipay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsAlma": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsAmazonPay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsAuBecsDebit": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsBacsDebit": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsBancontact": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsBillie": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsBillingDetails": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsBillingDetailsAddress": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsBlik": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsBoleto": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsCard": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsCardNetworks": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsCashapp": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsCrypto": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsCustom": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsCustomerBalance": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsEps": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsFpx": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsGiropay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsGopay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsGrabpay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsIdBankTransfer": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsIdeal": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsInteracPresent": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsKakaoPay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsKlarna": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsKlarnaDob": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsKonbini": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsKrCard": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsLink": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsMbWay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsMobilepay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsMultibanco": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsNaverPay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsNzBankAccount": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsOxxo": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsP24": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsPayByBank": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsPayco": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsPaynow": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsPaypal": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsPaypay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsPayto": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsPix": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsPromptpay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsQris": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsRadarOptions": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsRechnung": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsRechnungDob": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsRevolutPay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsSamsungPay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsSatispay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsSepaDebit": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsShopeepay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsSofort": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsStripeBalance": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsSwish": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsTwint": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsUsBankAccount": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsWechatPay": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodCreateParamsZip": (
+ "stripe.params._payment_method_create_params",
+ False,
+ ),
+ "PaymentMethodDetachParams": (
+ "stripe.params._payment_method_detach_params",
+ False,
+ ),
+ "PaymentMethodDomainCreateParams": (
+ "stripe.params._payment_method_domain_create_params",
+ False,
+ ),
+ "PaymentMethodDomainListParams": (
+ "stripe.params._payment_method_domain_list_params",
+ False,
+ ),
+ "PaymentMethodDomainModifyParams": (
+ "stripe.params._payment_method_domain_modify_params",
+ False,
+ ),
+ "PaymentMethodDomainRetrieveParams": (
+ "stripe.params._payment_method_domain_retrieve_params",
+ False,
+ ),
+ "PaymentMethodDomainUpdateParams": (
+ "stripe.params._payment_method_domain_update_params",
+ False,
+ ),
+ "PaymentMethodDomainValidateParams": (
+ "stripe.params._payment_method_domain_validate_params",
+ False,
+ ),
+ "PaymentMethodListParams": (
+ "stripe.params._payment_method_list_params",
+ False,
+ ),
+ "PaymentMethodModifyParams": (
+ "stripe.params._payment_method_modify_params",
+ False,
+ ),
+ "PaymentMethodModifyParamsBillingDetails": (
+ "stripe.params._payment_method_modify_params",
+ False,
+ ),
+ "PaymentMethodModifyParamsBillingDetailsAddress": (
+ "stripe.params._payment_method_modify_params",
+ False,
+ ),
+ "PaymentMethodModifyParamsCard": (
+ "stripe.params._payment_method_modify_params",
+ False,
+ ),
+ "PaymentMethodModifyParamsCardNetworks": (
+ "stripe.params._payment_method_modify_params",
+ False,
+ ),
+ "PaymentMethodModifyParamsPayto": (
+ "stripe.params._payment_method_modify_params",
+ False,
+ ),
+ "PaymentMethodModifyParamsUsBankAccount": (
+ "stripe.params._payment_method_modify_params",
+ False,
+ ),
+ "PaymentMethodRetrieveParams": (
+ "stripe.params._payment_method_retrieve_params",
+ False,
+ ),
+ "PaymentMethodUpdateParams": (
+ "stripe.params._payment_method_update_params",
+ False,
+ ),
+ "PaymentMethodUpdateParamsBillingDetails": (
+ "stripe.params._payment_method_update_params",
+ False,
+ ),
+ "PaymentMethodUpdateParamsBillingDetailsAddress": (
+ "stripe.params._payment_method_update_params",
+ False,
+ ),
+ "PaymentMethodUpdateParamsCard": (
+ "stripe.params._payment_method_update_params",
+ False,
+ ),
+ "PaymentMethodUpdateParamsCardNetworks": (
+ "stripe.params._payment_method_update_params",
+ False,
+ ),
+ "PaymentMethodUpdateParamsPayto": (
+ "stripe.params._payment_method_update_params",
+ False,
+ ),
+ "PaymentMethodUpdateParamsUsBankAccount": (
+ "stripe.params._payment_method_update_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptCanceledParams": (
+ "stripe.params._payment_record_report_payment_attempt_canceled_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptFailedParams": (
+ "stripe.params._payment_record_report_payment_attempt_failed_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptGuaranteedParams": (
+ "stripe.params._payment_record_report_payment_attempt_guaranteed_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptInformationalParams": (
+ "stripe.params._payment_record_report_payment_attempt_informational_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptInformationalParamsCustomerDetails": (
+ "stripe.params._payment_record_report_payment_attempt_informational_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptInformationalParamsShippingDetails": (
+ "stripe.params._payment_record_report_payment_attempt_informational_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptInformationalParamsShippingDetailsAddress": (
+ "stripe.params._payment_record_report_payment_attempt_informational_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptParams": (
+ "stripe.params._payment_record_report_payment_attempt_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptParamsFailed": (
+ "stripe.params._payment_record_report_payment_attempt_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptParamsGuaranteed": (
+ "stripe.params._payment_record_report_payment_attempt_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptParamsPaymentMethodDetails": (
+ "stripe.params._payment_record_report_payment_attempt_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptParamsPaymentMethodDetailsBillingDetails": (
+ "stripe.params._payment_record_report_payment_attempt_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptParamsPaymentMethodDetailsBillingDetailsAddress": (
+ "stripe.params._payment_record_report_payment_attempt_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptParamsPaymentMethodDetailsCustom": (
+ "stripe.params._payment_record_report_payment_attempt_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptParamsShippingDetails": (
+ "stripe.params._payment_record_report_payment_attempt_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentAttemptParamsShippingDetailsAddress": (
+ "stripe.params._payment_record_report_payment_attempt_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParams": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParamsAmountRequested": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParamsCustomerDetails": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParamsFailed": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParamsGuaranteed": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParamsPaymentMethodDetails": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParamsPaymentMethodDetailsBillingDetails": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParamsPaymentMethodDetailsBillingDetailsAddress": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParamsPaymentMethodDetailsCustom": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParamsProcessorDetails": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParamsProcessorDetailsCustom": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParamsShippingDetails": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportPaymentParamsShippingDetailsAddress": (
+ "stripe.params._payment_record_report_payment_params",
+ False,
+ ),
+ "PaymentRecordReportRefundParams": (
+ "stripe.params._payment_record_report_refund_params",
+ False,
+ ),
+ "PaymentRecordReportRefundParamsAmount": (
+ "stripe.params._payment_record_report_refund_params",
+ False,
+ ),
+ "PaymentRecordReportRefundParamsProcessorDetails": (
+ "stripe.params._payment_record_report_refund_params",
+ False,
+ ),
+ "PaymentRecordReportRefundParamsProcessorDetailsCustom": (
+ "stripe.params._payment_record_report_refund_params",
+ False,
+ ),
+ "PaymentRecordReportRefundParamsRefunded": (
+ "stripe.params._payment_record_report_refund_params",
+ False,
+ ),
+ "PaymentRecordRetrieveParams": (
+ "stripe.params._payment_record_retrieve_params",
+ False,
+ ),
+ "PayoutCancelParams": ("stripe.params._payout_cancel_params", False),
+ "PayoutCreateParams": ("stripe.params._payout_create_params", False),
+ "PayoutListParams": ("stripe.params._payout_list_params", False),
+ "PayoutListParamsArrivalDate": (
+ "stripe.params._payout_list_params",
+ False,
+ ),
+ "PayoutListParamsCreated": ("stripe.params._payout_list_params", False),
+ "PayoutModifyParams": ("stripe.params._payout_modify_params", False),
+ "PayoutRetrieveParams": ("stripe.params._payout_retrieve_params", False),
+ "PayoutReverseParams": ("stripe.params._payout_reverse_params", False),
+ "PayoutUpdateParams": ("stripe.params._payout_update_params", False),
+ "PlanCreateParams": ("stripe.params._plan_create_params", False),
+ "PlanCreateParamsProduct": ("stripe.params._plan_create_params", False),
+ "PlanCreateParamsTier": ("stripe.params._plan_create_params", False),
+ "PlanCreateParamsTransformUsage": (
+ "stripe.params._plan_create_params",
+ False,
+ ),
+ "PlanDeleteParams": ("stripe.params._plan_delete_params", False),
+ "PlanListParams": ("stripe.params._plan_list_params", False),
+ "PlanListParamsCreated": ("stripe.params._plan_list_params", False),
+ "PlanModifyParams": ("stripe.params._plan_modify_params", False),
+ "PlanRetrieveParams": ("stripe.params._plan_retrieve_params", False),
+ "PlanUpdateParams": ("stripe.params._plan_update_params", False),
+ "PriceCreateParams": ("stripe.params._price_create_params", False),
+ "PriceCreateParamsCurrencyOptions": (
+ "stripe.params._price_create_params",
+ False,
+ ),
+ "PriceCreateParamsCurrencyOptionsCustomUnitAmount": (
+ "stripe.params._price_create_params",
+ False,
+ ),
+ "PriceCreateParamsCurrencyOptionsTier": (
+ "stripe.params._price_create_params",
+ False,
+ ),
+ "PriceCreateParamsCustomUnitAmount": (
+ "stripe.params._price_create_params",
+ False,
+ ),
+ "PriceCreateParamsProductData": (
+ "stripe.params._price_create_params",
+ False,
+ ),
+ "PriceCreateParamsRecurring": (
+ "stripe.params._price_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPixDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PriceCreateParamsTier": ("stripe.params._price_create_params", False),
+ "PriceCreateParamsTransformQuantity": (
+ "stripe.params._price_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPromptpay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PriceListParams": ("stripe.params._price_list_params", False),
+ "PriceListParamsCreated": ("stripe.params._price_list_params", False),
+ "PriceListParamsRecurring": ("stripe.params._price_list_params", False),
+ "PriceModifyParams": ("stripe.params._price_modify_params", False),
+ "PriceModifyParamsCurrencyOptions": (
+ "stripe.params._price_modify_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsPromptpayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PriceModifyParamsCurrencyOptionsCustomUnitAmount": (
+ "stripe.params._price_modify_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsRevolutPay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PriceModifyParamsCurrencyOptionsTier": (
+ "stripe.params._price_modify_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsRevolutPayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PriceModifyParamsMigrateTo": (
+ "stripe.params._price_modify_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsSamsungPay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PriceRetrieveParams": ("stripe.params._price_retrieve_params", False),
+ "PriceSearchParams": ("stripe.params._price_search_params", False),
+ "PriceUpdateParams": ("stripe.params._price_update_params", False),
+ "PriceUpdateParamsCurrencyOptions": (
+ "stripe.params._price_update_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsSamsungPayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PriceUpdateParamsCurrencyOptionsCustomUnitAmount": (
+ "stripe.params._price_update_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsSatispay": (
- "stripe.params._payment_method_configuration_update_params",
+ "PriceUpdateParamsCurrencyOptionsTier": (
+ "stripe.params._price_update_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsSatispayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "PriceUpdateParamsMigrateTo": (
+ "stripe.params._price_update_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsSepaDebit": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductCreateFeatureParams": (
+ "stripe.params._product_create_feature_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductCreateParams": ("stripe.params._product_create_params", False),
+ "ProductCreateParamsDefaultPriceData": (
+ "stripe.params._product_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsSofort": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductCreateParamsDefaultPriceDataCurrencyOptions": (
+ "stripe.params._product_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsSofortDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductCreateParamsDefaultPriceDataCurrencyOptionsCustomUnitAmount": (
+ "stripe.params._product_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsSwish": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductCreateParamsDefaultPriceDataCurrencyOptionsTier": (
+ "stripe.params._product_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsSwishDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductCreateParamsDefaultPriceDataCustomUnitAmount": (
+ "stripe.params._product_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsTwint": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductCreateParamsDefaultPriceDataRecurring": (
+ "stripe.params._product_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsTwintDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductCreateParamsMarketingFeature": (
+ "stripe.params._product_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsUsBankAccount": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductCreateParamsPackageDimensions": (
+ "stripe.params._product_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsUsBankAccountDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductDeleteFeatureParams": (
+ "stripe.params._product_delete_feature_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsWechatPay": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductDeleteParams": ("stripe.params._product_delete_params", False),
+ "ProductFeatureCreateParams": (
+ "stripe.params._product_feature_create_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsWechatPayDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductFeatureDeleteParams": (
+ "stripe.params._product_feature_delete_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsZip": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductFeatureListParams": (
+ "stripe.params._product_feature_list_params",
False,
),
- "PaymentMethodConfigurationUpdateParamsZipDisplayPreference": (
- "stripe.params._payment_method_configuration_update_params",
+ "ProductFeatureRetrieveParams": (
+ "stripe.params._product_feature_retrieve_params",
False,
),
- "PaymentMethodCreateParams": (
- "stripe.params._payment_method_create_params",
+ "ProductListFeaturesParams": (
+ "stripe.params._product_list_features_params",
False,
),
- "PaymentMethodCreateParamsAcssDebit": (
- "stripe.params._payment_method_create_params",
+ "ProductListParams": ("stripe.params._product_list_params", False),
+ "ProductListParamsCreated": ("stripe.params._product_list_params", False),
+ "ProductModifyParams": ("stripe.params._product_modify_params", False),
+ "ProductModifyParamsMarketingFeature": (
+ "stripe.params._product_modify_params",
False,
),
- "PaymentMethodCreateParamsAffirm": (
- "stripe.params._payment_method_create_params",
+ "ProductModifyParamsPackageDimensions": (
+ "stripe.params._product_modify_params",
False,
),
- "PaymentMethodCreateParamsAfterpayClearpay": (
- "stripe.params._payment_method_create_params",
+ "ProductRetrieveFeatureParams": (
+ "stripe.params._product_retrieve_feature_params",
False,
),
- "PaymentMethodCreateParamsAlipay": (
- "stripe.params._payment_method_create_params",
+ "ProductRetrieveParams": ("stripe.params._product_retrieve_params", False),
+ "ProductSearchParams": ("stripe.params._product_search_params", False),
+ "ProductUpdateParams": ("stripe.params._product_update_params", False),
+ "ProductUpdateParamsMarketingFeature": (
+ "stripe.params._product_update_params",
False,
),
- "PaymentMethodCreateParamsAlma": (
- "stripe.params._payment_method_create_params",
+ "ProductUpdateParamsPackageDimensions": (
+ "stripe.params._product_update_params",
False,
),
- "PaymentMethodCreateParamsAmazonPay": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeCreateParams": (
+ "stripe.params._promotion_code_create_params",
False,
),
- "PaymentMethodCreateParamsAuBecsDebit": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeCreateParamsPromotion": (
+ "stripe.params._promotion_code_create_params",
False,
),
- "PaymentMethodCreateParamsBacsDebit": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeCreateParamsRestrictions": (
+ "stripe.params._promotion_code_create_params",
False,
),
- "PaymentMethodCreateParamsBancontact": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeCreateParamsRestrictionsCurrencyOptions": (
+ "stripe.params._promotion_code_create_params",
False,
),
- "PaymentMethodCreateParamsBillie": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeListParams": (
+ "stripe.params._promotion_code_list_params",
False,
),
- "PaymentMethodCreateParamsBillingDetails": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeListParamsCreated": (
+ "stripe.params._promotion_code_list_params",
False,
),
- "PaymentMethodCreateParamsBillingDetailsAddress": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeModifyParams": (
+ "stripe.params._promotion_code_modify_params",
False,
),
- "PaymentMethodCreateParamsBlik": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeModifyParamsRestrictions": (
+ "stripe.params._promotion_code_modify_params",
False,
),
- "PaymentMethodCreateParamsBoleto": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeModifyParamsRestrictionsCurrencyOptions": (
+ "stripe.params._promotion_code_modify_params",
False,
),
- "PaymentMethodCreateParamsCard": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeRetrieveParams": (
+ "stripe.params._promotion_code_retrieve_params",
False,
),
- "PaymentMethodCreateParamsCardNetworks": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeUpdateParams": (
+ "stripe.params._promotion_code_update_params",
False,
),
- "PaymentMethodCreateParamsCashapp": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeUpdateParamsRestrictions": (
+ "stripe.params._promotion_code_update_params",
False,
),
- "PaymentMethodCreateParamsCrypto": (
- "stripe.params._payment_method_create_params",
+ "PromotionCodeUpdateParamsRestrictionsCurrencyOptions": (
+ "stripe.params._promotion_code_update_params",
False,
),
- "PaymentMethodCreateParamsCustom": (
- "stripe.params._payment_method_create_params",
+ "QuoteAcceptParams": ("stripe.params._quote_accept_params", False),
+ "QuoteCancelParams": ("stripe.params._quote_cancel_params", False),
+ "QuoteComputedUpfrontLineItemsListParams": (
+ "stripe.params._quote_computed_upfront_line_items_list_params",
False,
),
- "PaymentMethodCreateParamsCustomerBalance": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParams": ("stripe.params._quote_create_params", False),
+ "QuoteCreateParamsAutomaticTax": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsEps": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsAutomaticTaxLiability": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsFpx": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsDiscount": ("stripe.params._quote_create_params", False),
+ "QuoteCreateParamsDiscountDiscountEnd": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsGiropay": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsDiscountDiscountEndDuration": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsGrabpay": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsFromQuote": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsIdeal": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsInvoiceSettings": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsInteracPresent": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsInvoiceSettingsIssuer": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsKakaoPay": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLine": ("stripe.params._quote_create_params", False),
+ "QuoteCreateParamsLineAction": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsKlarna": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionAddDiscount": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsKlarnaDob": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionAddDiscountDiscountEnd": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsKonbini": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionAddItem": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsKrCard": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionAddItemDiscount": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsLink": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionAddItemDiscountDiscountEnd": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsMbWay": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionAddItemDiscountDiscountEndDuration": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsMobilepay": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionAddItemTrial": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsMultibanco": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionRemoveDiscount": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsNaverPay": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionRemoveItem": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsNzBankAccount": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionSetDiscount": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsOxxo": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionSetItem": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsP24": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionSetItemDiscount": (
+ "stripe.params._quote_create_params",
+ False,
+ ),
+ "QuoteCreateParamsLineActionSetItemDiscountDiscountEnd": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsPayByBank": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionSetItemDiscountDiscountEndDuration": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsPayco": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineActionSetItemTrial": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsPaynow": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineAppliesTo": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsPaypal": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineCancelSubscriptionSchedule": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsPayto": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineEndsAt": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsPix": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineEndsAtDiscountEnd": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsPromptpay": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineEndsAtDuration": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsRadarOptions": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineItem": ("stripe.params._quote_create_params", False),
+ "QuoteCreateParamsLineItemDiscount": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsRevolutPay": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineItemDiscountDiscountEnd": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsSamsungPay": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineItemDiscountDiscountEndDuration": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsSatispay": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineItemPriceData": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsSepaDebit": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineItemPriceDataRecurring": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsSofort": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineSetPauseCollection": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsSwish": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineSetPauseCollectionSet": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsTwint": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineStartsAt": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsUsBankAccount": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineStartsAtDiscountEnd": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsWechatPay": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineStartsAtLineEndsAt": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodCreateParamsZip": (
- "stripe.params._payment_method_create_params",
+ "QuoteCreateParamsLineTrialSettings": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodDetachParams": (
- "stripe.params._payment_method_detach_params",
+ "QuoteCreateParamsLineTrialSettingsEndBehavior": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodDomainCreateParams": (
- "stripe.params._payment_method_domain_create_params",
+ "QuoteCreateParamsSubscriptionData": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodDomainListParams": (
- "stripe.params._payment_method_domain_list_params",
+ "QuoteCreateParamsSubscriptionDataBillOnAcceptance": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodDomainModifyParams": (
- "stripe.params._payment_method_domain_modify_params",
+ "QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillFrom": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodDomainRetrieveParams": (
- "stripe.params._payment_method_domain_retrieve_params",
+ "QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodDomainUpdateParams": (
- "stripe.params._payment_method_domain_update_params",
+ "QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntil": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodDomainValidateParams": (
- "stripe.params._payment_method_domain_validate_params",
+ "QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntilDuration": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodListParams": (
- "stripe.params._payment_method_list_params",
+ "QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodModifyParams": (
- "stripe.params._payment_method_modify_params",
+ "QuoteCreateParamsSubscriptionDataBillingMode": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodModifyParamsBillingDetails": (
- "stripe.params._payment_method_modify_params",
+ "QuoteCreateParamsSubscriptionDataBillingModeFlexible": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodModifyParamsBillingDetailsAddress": (
- "stripe.params._payment_method_modify_params",
+ "QuoteCreateParamsSubscriptionDataOverride": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodModifyParamsCard": (
- "stripe.params._payment_method_modify_params",
+ "QuoteCreateParamsSubscriptionDataOverrideAppliesTo": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodModifyParamsCardNetworks": (
- "stripe.params._payment_method_modify_params",
+ "QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptance": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodModifyParamsPayto": (
- "stripe.params._payment_method_modify_params",
+ "QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodModifyParamsUsBankAccount": (
- "stripe.params._payment_method_modify_params",
+ "QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodRetrieveParams": (
- "stripe.params._payment_method_retrieve_params",
+ "QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodUpdateParams": (
- "stripe.params._payment_method_update_params",
+ "QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodUpdateParamsBillingDetails": (
- "stripe.params._payment_method_update_params",
+ "QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodUpdateParamsBillingDetailsAddress": (
- "stripe.params._payment_method_update_params",
+ "QuoteCreateParamsSubscriptionDataPrebilling": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodUpdateParamsCard": (
- "stripe.params._payment_method_update_params",
+ "QuoteCreateParamsTransferData": (
+ "stripe.params._quote_create_params",
False,
),
- "PaymentMethodUpdateParamsCardNetworks": (
- "stripe.params._payment_method_update_params",
+ "QuoteFinalizeQuoteParams": (
+ "stripe.params._quote_finalize_quote_params",
False,
),
- "PaymentMethodUpdateParamsPayto": (
- "stripe.params._payment_method_update_params",
+ "QuoteLineItemListParams": (
+ "stripe.params._quote_line_item_list_params",
False,
),
- "PaymentMethodUpdateParamsUsBankAccount": (
- "stripe.params._payment_method_update_params",
+ "QuoteLineListParams": ("stripe.params._quote_line_list_params", False),
+ "QuoteListComputedUpfrontLineItemsParams": (
+ "stripe.params._quote_list_computed_upfront_line_items_params",
False,
),
- "PaymentRecordReportPaymentAttemptCanceledParams": (
- "stripe.params._payment_record_report_payment_attempt_canceled_params",
+ "QuoteListLineItemsParams": (
+ "stripe.params._quote_list_line_items_params",
False,
),
- "PaymentRecordReportPaymentAttemptFailedParams": (
- "stripe.params._payment_record_report_payment_attempt_failed_params",
+ "QuoteListLinesParams": ("stripe.params._quote_list_lines_params", False),
+ "QuoteListParams": ("stripe.params._quote_list_params", False),
+ "QuoteListPreviewInvoiceLinesParams": (
+ "stripe.params._quote_list_preview_invoice_lines_params",
False,
),
- "PaymentRecordReportPaymentAttemptGuaranteedParams": (
- "stripe.params._payment_record_report_payment_attempt_guaranteed_params",
+ "QuoteListPreviewInvoicesParams": (
+ "stripe.params._quote_list_preview_invoices_params",
False,
),
- "PaymentRecordReportPaymentAttemptInformationalParams": (
- "stripe.params._payment_record_report_payment_attempt_informational_params",
+ "QuoteListPreviewSubscriptionSchedulesParams": (
+ "stripe.params._quote_list_preview_subscription_schedules_params",
False,
),
- "PaymentRecordReportPaymentAttemptInformationalParamsCustomerDetails": (
- "stripe.params._payment_record_report_payment_attempt_informational_params",
+ "QuoteMarkDraftParams": ("stripe.params._quote_mark_draft_params", False),
+ "QuoteMarkStaleParams": ("stripe.params._quote_mark_stale_params", False),
+ "QuoteModifyParams": ("stripe.params._quote_modify_params", False),
+ "QuoteModifyParamsAutomaticTax": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentAttemptInformationalParamsShippingDetails": (
- "stripe.params._payment_record_report_payment_attempt_informational_params",
+ "QuoteModifyParamsAutomaticTaxLiability": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentAttemptInformationalParamsShippingDetailsAddress": (
- "stripe.params._payment_record_report_payment_attempt_informational_params",
+ "QuoteModifyParamsDiscount": ("stripe.params._quote_modify_params", False),
+ "QuoteModifyParamsDiscountDiscountEnd": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentAttemptParams": (
- "stripe.params._payment_record_report_payment_attempt_params",
+ "QuoteModifyParamsDiscountDiscountEndDuration": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentAttemptParamsFailed": (
- "stripe.params._payment_record_report_payment_attempt_params",
+ "QuoteModifyParamsInvoiceSettings": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentAttemptParamsGuaranteed": (
- "stripe.params._payment_record_report_payment_attempt_params",
+ "QuoteModifyParamsInvoiceSettingsIssuer": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentAttemptParamsPaymentMethodDetails": (
- "stripe.params._payment_record_report_payment_attempt_params",
+ "QuoteModifyParamsLine": ("stripe.params._quote_modify_params", False),
+ "QuoteModifyParamsLineAction": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentAttemptParamsPaymentMethodDetailsBillingDetails": (
- "stripe.params._payment_record_report_payment_attempt_params",
+ "QuoteModifyParamsLineActionAddDiscount": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentAttemptParamsPaymentMethodDetailsBillingDetailsAddress": (
- "stripe.params._payment_record_report_payment_attempt_params",
+ "QuoteModifyParamsLineActionAddDiscountDiscountEnd": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentAttemptParamsPaymentMethodDetailsCustom": (
- "stripe.params._payment_record_report_payment_attempt_params",
+ "QuoteModifyParamsLineActionAddItem": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentAttemptParamsShippingDetails": (
- "stripe.params._payment_record_report_payment_attempt_params",
+ "QuoteModifyParamsLineActionAddItemDiscount": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentAttemptParamsShippingDetailsAddress": (
- "stripe.params._payment_record_report_payment_attempt_params",
+ "QuoteModifyParamsLineActionAddItemDiscountDiscountEnd": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParams": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineActionAddItemDiscountDiscountEndDuration": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParamsAmountRequested": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineActionAddItemTrial": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParamsCustomerDetails": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineActionRemoveDiscount": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParamsFailed": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineActionRemoveItem": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParamsGuaranteed": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineActionSetDiscount": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParamsPaymentMethodDetails": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineActionSetItem": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParamsPaymentMethodDetailsBillingDetails": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineActionSetItemDiscount": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParamsPaymentMethodDetailsBillingDetailsAddress": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineActionSetItemDiscountDiscountEnd": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParamsPaymentMethodDetailsCustom": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineActionSetItemDiscountDiscountEndDuration": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParamsProcessorDetails": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineActionSetItemTrial": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParamsProcessorDetailsCustom": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineAppliesTo": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParamsShippingDetails": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineCancelSubscriptionSchedule": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportPaymentParamsShippingDetailsAddress": (
- "stripe.params._payment_record_report_payment_params",
+ "QuoteModifyParamsLineEndsAt": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportRefundParams": (
- "stripe.params._payment_record_report_refund_params",
+ "QuoteModifyParamsLineEndsAtDiscountEnd": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportRefundParamsAmount": (
- "stripe.params._payment_record_report_refund_params",
+ "QuoteModifyParamsLineEndsAtDuration": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportRefundParamsProcessorDetails": (
- "stripe.params._payment_record_report_refund_params",
+ "QuoteModifyParamsLineItem": ("stripe.params._quote_modify_params", False),
+ "QuoteModifyParamsLineItemDiscount": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportRefundParamsProcessorDetailsCustom": (
- "stripe.params._payment_record_report_refund_params",
+ "QuoteModifyParamsLineItemDiscountDiscountEnd": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordReportRefundParamsRefunded": (
- "stripe.params._payment_record_report_refund_params",
+ "QuoteModifyParamsLineItemDiscountDiscountEndDuration": (
+ "stripe.params._quote_modify_params",
False,
),
- "PaymentRecordRetrieveParams": (
- "stripe.params._payment_record_retrieve_params",
+ "QuoteModifyParamsLineItemPriceData": (
+ "stripe.params._quote_modify_params",
False,
),
- "PayoutCancelParams": ("stripe.params._payout_cancel_params", False),
- "PayoutCreateParams": ("stripe.params._payout_create_params", False),
- "PayoutListParams": ("stripe.params._payout_list_params", False),
- "PayoutListParamsArrivalDate": (
- "stripe.params._payout_list_params",
+ "QuoteModifyParamsLineItemPriceDataRecurring": (
+ "stripe.params._quote_modify_params",
False,
),
- "PayoutListParamsCreated": ("stripe.params._payout_list_params", False),
- "PayoutModifyParams": ("stripe.params._payout_modify_params", False),
- "PayoutRetrieveParams": ("stripe.params._payout_retrieve_params", False),
- "PayoutReverseParams": ("stripe.params._payout_reverse_params", False),
- "PayoutUpdateParams": ("stripe.params._payout_update_params", False),
- "PlanCreateParams": ("stripe.params._plan_create_params", False),
- "PlanCreateParamsProduct": ("stripe.params._plan_create_params", False),
- "PlanCreateParamsTier": ("stripe.params._plan_create_params", False),
- "PlanCreateParamsTransformUsage": (
- "stripe.params._plan_create_params",
+ "QuoteModifyParamsLineSetPauseCollection": (
+ "stripe.params._quote_modify_params",
False,
),
- "PlanDeleteParams": ("stripe.params._plan_delete_params", False),
- "PlanListParams": ("stripe.params._plan_list_params", False),
- "PlanListParamsCreated": ("stripe.params._plan_list_params", False),
- "PlanModifyParams": ("stripe.params._plan_modify_params", False),
- "PlanRetrieveParams": ("stripe.params._plan_retrieve_params", False),
- "PlanUpdateParams": ("stripe.params._plan_update_params", False),
- "PriceCreateParams": ("stripe.params._price_create_params", False),
- "PriceCreateParamsCurrencyOptions": (
- "stripe.params._price_create_params",
+ "QuoteModifyParamsLineSetPauseCollectionSet": (
+ "stripe.params._quote_modify_params",
False,
),
- "PriceCreateParamsCurrencyOptionsCustomUnitAmount": (
- "stripe.params._price_create_params",
+ "QuoteModifyParamsLineStartsAt": (
+ "stripe.params._quote_modify_params",
False,
),
- "PriceCreateParamsCurrencyOptionsTier": (
- "stripe.params._price_create_params",
+ "QuoteModifyParamsLineStartsAtDiscountEnd": (
+ "stripe.params._quote_modify_params",
False,
),
- "PriceCreateParamsCustomUnitAmount": (
- "stripe.params._price_create_params",
+ "QuoteModifyParamsLineStartsAtLineEndsAt": (
+ "stripe.params._quote_modify_params",
False,
),
- "PriceCreateParamsProductData": (
- "stripe.params._price_create_params",
+ "QuoteModifyParamsLineTrialSettings": (
+ "stripe.params._quote_modify_params",
False,
),
- "PriceCreateParamsRecurring": (
- "stripe.params._price_create_params",
+ "QuoteModifyParamsLineTrialSettingsEndBehavior": (
+ "stripe.params._quote_modify_params",
False,
),
- "PriceCreateParamsTier": ("stripe.params._price_create_params", False),
- "PriceCreateParamsTransformQuantity": (
- "stripe.params._price_create_params",
+ "QuoteModifyParamsSubscriptionData": (
+ "stripe.params._quote_modify_params",
False,
),
- "PriceListParams": ("stripe.params._price_list_params", False),
- "PriceListParamsCreated": ("stripe.params._price_list_params", False),
- "PriceListParamsRecurring": ("stripe.params._price_list_params", False),
- "PriceModifyParams": ("stripe.params._price_modify_params", False),
- "PriceModifyParamsCurrencyOptions": (
- "stripe.params._price_modify_params",
+ "QuoteModifyParamsSubscriptionDataBillOnAcceptance": (
+ "stripe.params._quote_modify_params",
False,
),
- "PriceModifyParamsCurrencyOptionsCustomUnitAmount": (
- "stripe.params._price_modify_params",
+ "QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillFrom": (
+ "stripe.params._quote_modify_params",
False,
),
- "PriceModifyParamsCurrencyOptionsTier": (
- "stripe.params._price_modify_params",
+ "QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt": (
+ "stripe.params._quote_modify_params",
False,
),
- "PriceRetrieveParams": ("stripe.params._price_retrieve_params", False),
- "PriceSearchParams": ("stripe.params._price_search_params", False),
- "PriceUpdateParams": ("stripe.params._price_update_params", False),
- "PriceUpdateParamsCurrencyOptions": (
- "stripe.params._price_update_params",
+ "QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntil": (
+ "stripe.params._quote_modify_params",
False,
),
- "PriceUpdateParamsCurrencyOptionsCustomUnitAmount": (
- "stripe.params._price_update_params",
+ "QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilDuration": (
+ "stripe.params._quote_modify_params",
False,
),
- "PriceUpdateParamsCurrencyOptionsTier": (
- "stripe.params._price_update_params",
+ "QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt": (
+ "stripe.params._quote_modify_params",
False,
),
- "ProductCreateFeatureParams": (
- "stripe.params._product_create_feature_params",
+ "QuoteModifyParamsSubscriptionDataOverride": (
+ "stripe.params._quote_modify_params",
False,
),
- "ProductCreateParams": ("stripe.params._product_create_params", False),
- "ProductCreateParamsDefaultPriceData": (
- "stripe.params._product_create_params",
+ "QuoteModifyParamsSubscriptionDataOverrideAppliesTo": (
+ "stripe.params._quote_modify_params",
False,
),
- "ProductCreateParamsDefaultPriceDataCurrencyOptions": (
- "stripe.params._product_create_params",
+ "QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptance": (
+ "stripe.params._quote_modify_params",
False,
),
- "ProductCreateParamsDefaultPriceDataCurrencyOptionsCustomUnitAmount": (
- "stripe.params._product_create_params",
+ "QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom": (
+ "stripe.params._quote_modify_params",
False,
),
- "ProductCreateParamsDefaultPriceDataCurrencyOptionsTier": (
- "stripe.params._product_create_params",
+ "QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt": (
+ "stripe.params._quote_modify_params",
False,
),
- "ProductCreateParamsDefaultPriceDataCustomUnitAmount": (
- "stripe.params._product_create_params",
+ "QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil": (
+ "stripe.params._quote_modify_params",
False,
),
- "ProductCreateParamsDefaultPriceDataRecurring": (
- "stripe.params._product_create_params",
+ "QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration": (
+ "stripe.params._quote_modify_params",
False,
),
- "ProductCreateParamsMarketingFeature": (
- "stripe.params._product_create_params",
+ "QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt": (
+ "stripe.params._quote_modify_params",
False,
),
- "ProductCreateParamsPackageDimensions": (
- "stripe.params._product_create_params",
+ "QuoteModifyParamsSubscriptionDataPrebilling": (
+ "stripe.params._quote_modify_params",
False,
),
- "ProductDeleteFeatureParams": (
- "stripe.params._product_delete_feature_params",
+ "QuoteModifyParamsTransferData": (
+ "stripe.params._quote_modify_params",
False,
),
- "ProductDeleteParams": ("stripe.params._product_delete_params", False),
- "ProductFeatureCreateParams": (
- "stripe.params._product_feature_create_params",
+ "QuotePdfParams": ("stripe.params._quote_pdf_params", False),
+ "QuotePreviewInvoiceListParams": (
+ "stripe.params._quote_preview_invoice_list_params",
False,
),
- "ProductFeatureDeleteParams": (
- "stripe.params._product_feature_delete_params",
+ "QuotePreviewSubscriptionScheduleListParams": (
+ "stripe.params._quote_preview_subscription_schedule_list_params",
False,
),
- "ProductFeatureListParams": (
- "stripe.params._product_feature_list_params",
+ "QuoteReestimateParams": ("stripe.params._quote_reestimate_params", False),
+ "QuoteRetrieveParams": ("stripe.params._quote_retrieve_params", False),
+ "QuoteUpdateParams": ("stripe.params._quote_update_params", False),
+ "QuoteUpdateParamsAutomaticTax": (
+ "stripe.params._quote_update_params",
False,
),
- "ProductFeatureRetrieveParams": (
- "stripe.params._product_feature_retrieve_params",
+ "QuoteUpdateParamsAutomaticTaxLiability": (
+ "stripe.params._quote_update_params",
False,
),
- "ProductListFeaturesParams": (
- "stripe.params._product_list_features_params",
+ "QuoteUpdateParamsDiscount": ("stripe.params._quote_update_params", False),
+ "QuoteUpdateParamsDiscountDiscountEnd": (
+ "stripe.params._quote_update_params",
False,
),
- "ProductListParams": ("stripe.params._product_list_params", False),
- "ProductListParamsCreated": ("stripe.params._product_list_params", False),
- "ProductModifyParams": ("stripe.params._product_modify_params", False),
- "ProductModifyParamsMarketingFeature": (
- "stripe.params._product_modify_params",
+ "QuoteUpdateParamsDiscountDiscountEndDuration": (
+ "stripe.params._quote_update_params",
False,
),
- "ProductModifyParamsPackageDimensions": (
- "stripe.params._product_modify_params",
+ "QuoteUpdateParamsInvoiceSettings": (
+ "stripe.params._quote_update_params",
False,
),
- "ProductRetrieveFeatureParams": (
- "stripe.params._product_retrieve_feature_params",
+ "QuoteUpdateParamsInvoiceSettingsIssuer": (
+ "stripe.params._quote_update_params",
False,
),
- "ProductRetrieveParams": ("stripe.params._product_retrieve_params", False),
- "ProductSearchParams": ("stripe.params._product_search_params", False),
- "ProductUpdateParams": ("stripe.params._product_update_params", False),
- "ProductUpdateParamsMarketingFeature": (
- "stripe.params._product_update_params",
+ "QuoteUpdateParamsLine": ("stripe.params._quote_update_params", False),
+ "QuoteUpdateParamsLineAction": (
+ "stripe.params._quote_update_params",
False,
),
- "ProductUpdateParamsPackageDimensions": (
- "stripe.params._product_update_params",
+ "QuoteUpdateParamsLineActionAddDiscount": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeCreateParams": (
- "stripe.params._promotion_code_create_params",
+ "QuoteUpdateParamsLineActionAddDiscountDiscountEnd": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeCreateParamsPromotion": (
- "stripe.params._promotion_code_create_params",
+ "QuoteUpdateParamsLineActionAddItem": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeCreateParamsRestrictions": (
- "stripe.params._promotion_code_create_params",
+ "QuoteUpdateParamsLineActionAddItemDiscount": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeCreateParamsRestrictionsCurrencyOptions": (
- "stripe.params._promotion_code_create_params",
+ "QuoteUpdateParamsLineActionAddItemDiscountDiscountEnd": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeListParams": (
- "stripe.params._promotion_code_list_params",
+ "QuoteUpdateParamsLineActionAddItemDiscountDiscountEndDuration": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeListParamsCreated": (
- "stripe.params._promotion_code_list_params",
+ "QuoteUpdateParamsLineActionAddItemTrial": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeModifyParams": (
- "stripe.params._promotion_code_modify_params",
+ "QuoteUpdateParamsLineActionRemoveDiscount": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeModifyParamsRestrictions": (
- "stripe.params._promotion_code_modify_params",
+ "QuoteUpdateParamsLineActionRemoveItem": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeModifyParamsRestrictionsCurrencyOptions": (
- "stripe.params._promotion_code_modify_params",
+ "QuoteUpdateParamsLineActionSetDiscount": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeRetrieveParams": (
- "stripe.params._promotion_code_retrieve_params",
+ "QuoteUpdateParamsLineActionSetItem": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeUpdateParams": (
- "stripe.params._promotion_code_update_params",
+ "QuoteUpdateParamsLineActionSetItemDiscount": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeUpdateParamsRestrictions": (
- "stripe.params._promotion_code_update_params",
+ "QuoteUpdateParamsLineActionSetItemDiscountDiscountEnd": (
+ "stripe.params._quote_update_params",
False,
),
- "PromotionCodeUpdateParamsRestrictionsCurrencyOptions": (
- "stripe.params._promotion_code_update_params",
+ "QuoteUpdateParamsLineActionSetItemDiscountDiscountEndDuration": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteAcceptParams": ("stripe.params._quote_accept_params", False),
- "QuoteCancelParams": ("stripe.params._quote_cancel_params", False),
- "QuoteComputedUpfrontLineItemsListParams": (
- "stripe.params._quote_computed_upfront_line_items_list_params",
+ "QuoteUpdateParamsLineActionSetItemTrial": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteCreateParams": ("stripe.params._quote_create_params", False),
- "QuoteCreateParamsAutomaticTax": (
- "stripe.params._quote_create_params",
+ "QuoteUpdateParamsLineAppliesTo": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteCreateParamsAutomaticTaxLiability": (
- "stripe.params._quote_create_params",
+ "QuoteUpdateParamsLineCancelSubscriptionSchedule": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteCreateParamsDiscount": ("stripe.params._quote_create_params", False),
- "QuoteCreateParamsFromQuote": (
- "stripe.params._quote_create_params",
+ "QuoteUpdateParamsLineEndsAt": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteCreateParamsInvoiceSettings": (
- "stripe.params._quote_create_params",
+ "QuoteUpdateParamsLineEndsAtDiscountEnd": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteCreateParamsInvoiceSettingsIssuer": (
- "stripe.params._quote_create_params",
+ "QuoteUpdateParamsLineEndsAtDuration": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteCreateParamsLineItem": ("stripe.params._quote_create_params", False),
- "QuoteCreateParamsLineItemDiscount": (
- "stripe.params._quote_create_params",
+ "QuoteUpdateParamsLineItem": ("stripe.params._quote_update_params", False),
+ "QuoteUpdateParamsLineItemDiscount": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteCreateParamsLineItemPriceData": (
- "stripe.params._quote_create_params",
+ "QuoteUpdateParamsLineItemDiscountDiscountEnd": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteCreateParamsLineItemPriceDataRecurring": (
- "stripe.params._quote_create_params",
+ "QuoteUpdateParamsLineItemDiscountDiscountEndDuration": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteCreateParamsSubscriptionData": (
- "stripe.params._quote_create_params",
+ "QuoteUpdateParamsLineItemPriceData": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteCreateParamsSubscriptionDataBillingMode": (
- "stripe.params._quote_create_params",
+ "QuoteUpdateParamsLineItemPriceDataRecurring": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteCreateParamsSubscriptionDataBillingModeFlexible": (
- "stripe.params._quote_create_params",
+ "QuoteUpdateParamsLineSetPauseCollection": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteCreateParamsTransferData": (
- "stripe.params._quote_create_params",
+ "QuoteUpdateParamsLineSetPauseCollectionSet": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteFinalizeQuoteParams": (
- "stripe.params._quote_finalize_quote_params",
+ "QuoteUpdateParamsLineStartsAt": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteLineItemListParams": (
- "stripe.params._quote_line_item_list_params",
+ "QuoteUpdateParamsLineStartsAtDiscountEnd": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteListComputedUpfrontLineItemsParams": (
- "stripe.params._quote_list_computed_upfront_line_items_params",
+ "QuoteUpdateParamsLineStartsAtLineEndsAt": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteListLineItemsParams": (
- "stripe.params._quote_list_line_items_params",
+ "QuoteUpdateParamsLineTrialSettings": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteListParams": ("stripe.params._quote_list_params", False),
- "QuoteModifyParams": ("stripe.params._quote_modify_params", False),
- "QuoteModifyParamsAutomaticTax": (
- "stripe.params._quote_modify_params",
+ "QuoteUpdateParamsLineTrialSettingsEndBehavior": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteModifyParamsAutomaticTaxLiability": (
- "stripe.params._quote_modify_params",
+ "QuoteUpdateParamsSubscriptionData": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteModifyParamsDiscount": ("stripe.params._quote_modify_params", False),
- "QuoteModifyParamsInvoiceSettings": (
- "stripe.params._quote_modify_params",
+ "QuoteUpdateParamsSubscriptionDataBillOnAcceptance": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteModifyParamsInvoiceSettingsIssuer": (
- "stripe.params._quote_modify_params",
+ "QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillFrom": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteModifyParamsLineItem": ("stripe.params._quote_modify_params", False),
- "QuoteModifyParamsLineItemDiscount": (
- "stripe.params._quote_modify_params",
+ "QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteModifyParamsLineItemPriceData": (
- "stripe.params._quote_modify_params",
+ "QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntil": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteModifyParamsLineItemPriceDataRecurring": (
- "stripe.params._quote_modify_params",
+ "QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilDuration": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteModifyParamsSubscriptionData": (
- "stripe.params._quote_modify_params",
+ "QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt": (
+ "stripe.params._quote_update_params",
False,
),
- "QuoteModifyParamsTransferData": (
- "stripe.params._quote_modify_params",
+ "QuoteUpdateParamsSubscriptionDataOverride": (
+ "stripe.params._quote_update_params",
False,
),
- "QuotePdfParams": ("stripe.params._quote_pdf_params", False),
- "QuoteRetrieveParams": ("stripe.params._quote_retrieve_params", False),
- "QuoteUpdateParams": ("stripe.params._quote_update_params", False),
- "QuoteUpdateParamsAutomaticTax": (
+ "QuoteUpdateParamsSubscriptionDataOverrideAppliesTo": (
"stripe.params._quote_update_params",
False,
),
- "QuoteUpdateParamsAutomaticTaxLiability": (
+ "QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptance": (
"stripe.params._quote_update_params",
False,
),
- "QuoteUpdateParamsDiscount": ("stripe.params._quote_update_params", False),
- "QuoteUpdateParamsInvoiceSettings": (
+ "QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom": (
"stripe.params._quote_update_params",
False,
),
- "QuoteUpdateParamsInvoiceSettingsIssuer": (
+ "QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt": (
"stripe.params._quote_update_params",
False,
),
- "QuoteUpdateParamsLineItem": ("stripe.params._quote_update_params", False),
- "QuoteUpdateParamsLineItemDiscount": (
+ "QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil": (
"stripe.params._quote_update_params",
False,
),
- "QuoteUpdateParamsLineItemPriceData": (
+ "QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration": (
"stripe.params._quote_update_params",
False,
),
- "QuoteUpdateParamsLineItemPriceDataRecurring": (
+ "QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt": (
"stripe.params._quote_update_params",
False,
),
- "QuoteUpdateParamsSubscriptionData": (
+ "QuoteUpdateParamsSubscriptionDataPrebilling": (
"stripe.params._quote_update_params",
False,
),
@@ -12782,10 +20136,18 @@
"stripe.params._setup_intent_confirm_params",
False,
),
+ "SetupIntentConfirmParamsPaymentMethodDataGopay": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
"SetupIntentConfirmParamsPaymentMethodDataGrabpay": (
"stripe.params._setup_intent_confirm_params",
False,
),
+ "SetupIntentConfirmParamsPaymentMethodDataIdBankTransfer": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
"SetupIntentConfirmParamsPaymentMethodDataIdeal": (
"stripe.params._setup_intent_confirm_params",
False,
@@ -12862,6 +20224,10 @@
"stripe.params._setup_intent_confirm_params",
False,
),
+ "SetupIntentConfirmParamsPaymentMethodDataPaypay": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
"SetupIntentConfirmParamsPaymentMethodDataPayto": (
"stripe.params._setup_intent_confirm_params",
False,
@@ -12874,10 +20240,22 @@
"stripe.params._setup_intent_confirm_params",
False,
),
+ "SetupIntentConfirmParamsPaymentMethodDataQris": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
"SetupIntentConfirmParamsPaymentMethodDataRadarOptions": (
"stripe.params._setup_intent_confirm_params",
False,
),
+ "SetupIntentConfirmParamsPaymentMethodDataRechnung": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
+ "SetupIntentConfirmParamsPaymentMethodDataRechnungDob": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
"SetupIntentConfirmParamsPaymentMethodDataRevolutPay": (
"stripe.params._setup_intent_confirm_params",
False,
@@ -12894,10 +20272,18 @@
"stripe.params._setup_intent_confirm_params",
False,
),
+ "SetupIntentConfirmParamsPaymentMethodDataShopeepay": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
"SetupIntentConfirmParamsPaymentMethodDataSofort": (
"stripe.params._setup_intent_confirm_params",
False,
),
+ "SetupIntentConfirmParamsPaymentMethodDataStripeBalance": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
"SetupIntentConfirmParamsPaymentMethodDataSwish": (
"stripe.params._setup_intent_confirm_params",
False,
@@ -12998,6 +20384,14 @@
"stripe.params._setup_intent_confirm_params",
False,
),
+ "SetupIntentConfirmParamsPaymentMethodOptionsPix": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
+ "SetupIntentConfirmParamsPaymentMethodOptionsPixMandateOptions": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
"SetupIntentConfirmParamsPaymentMethodOptionsSepaDebit": (
"stripe.params._setup_intent_confirm_params",
False,
@@ -13018,6 +20412,10 @@
"stripe.params._setup_intent_confirm_params",
False,
),
+ "SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry": (
+ "stripe.params._setup_intent_confirm_params",
+ False,
+ ),
"SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions": (
"stripe.params._setup_intent_confirm_params",
False,
@@ -13134,10 +20532,18 @@
"stripe.params._setup_intent_create_params",
False,
),
+ "SetupIntentCreateParamsPaymentMethodDataGopay": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
"SetupIntentCreateParamsPaymentMethodDataGrabpay": (
"stripe.params._setup_intent_create_params",
False,
),
+ "SetupIntentCreateParamsPaymentMethodDataIdBankTransfer": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
"SetupIntentCreateParamsPaymentMethodDataIdeal": (
"stripe.params._setup_intent_create_params",
False,
@@ -13214,6 +20620,10 @@
"stripe.params._setup_intent_create_params",
False,
),
+ "SetupIntentCreateParamsPaymentMethodDataPaypay": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
"SetupIntentCreateParamsPaymentMethodDataPayto": (
"stripe.params._setup_intent_create_params",
False,
@@ -13226,10 +20636,22 @@
"stripe.params._setup_intent_create_params",
False,
),
+ "SetupIntentCreateParamsPaymentMethodDataQris": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
"SetupIntentCreateParamsPaymentMethodDataRadarOptions": (
"stripe.params._setup_intent_create_params",
False,
),
+ "SetupIntentCreateParamsPaymentMethodDataRechnung": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
+ "SetupIntentCreateParamsPaymentMethodDataRechnungDob": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
"SetupIntentCreateParamsPaymentMethodDataRevolutPay": (
"stripe.params._setup_intent_create_params",
False,
@@ -13246,10 +20668,18 @@
"stripe.params._setup_intent_create_params",
False,
),
+ "SetupIntentCreateParamsPaymentMethodDataShopeepay": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
"SetupIntentCreateParamsPaymentMethodDataSofort": (
"stripe.params._setup_intent_create_params",
False,
),
+ "SetupIntentCreateParamsPaymentMethodDataStripeBalance": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
"SetupIntentCreateParamsPaymentMethodDataSwish": (
"stripe.params._setup_intent_create_params",
False,
@@ -13350,6 +20780,14 @@
"stripe.params._setup_intent_create_params",
False,
),
+ "SetupIntentCreateParamsPaymentMethodOptionsPix": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
+ "SetupIntentCreateParamsPaymentMethodOptionsPixMandateOptions": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
"SetupIntentCreateParamsPaymentMethodOptionsSepaDebit": (
"stripe.params._setup_intent_create_params",
False,
@@ -13370,6 +20808,10 @@
"stripe.params._setup_intent_create_params",
False,
),
+ "SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry": (
+ "stripe.params._setup_intent_create_params",
+ False,
+ ),
"SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions": (
"stripe.params._setup_intent_create_params",
False,
@@ -13478,10 +20920,18 @@
"stripe.params._setup_intent_modify_params",
False,
),
+ "SetupIntentModifyParamsPaymentMethodDataGopay": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
"SetupIntentModifyParamsPaymentMethodDataGrabpay": (
"stripe.params._setup_intent_modify_params",
False,
),
+ "SetupIntentModifyParamsPaymentMethodDataIdBankTransfer": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
"SetupIntentModifyParamsPaymentMethodDataIdeal": (
"stripe.params._setup_intent_modify_params",
False,
@@ -13558,6 +21008,10 @@
"stripe.params._setup_intent_modify_params",
False,
),
+ "SetupIntentModifyParamsPaymentMethodDataPaypay": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
"SetupIntentModifyParamsPaymentMethodDataPayto": (
"stripe.params._setup_intent_modify_params",
False,
@@ -13570,10 +21024,22 @@
"stripe.params._setup_intent_modify_params",
False,
),
+ "SetupIntentModifyParamsPaymentMethodDataQris": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
"SetupIntentModifyParamsPaymentMethodDataRadarOptions": (
"stripe.params._setup_intent_modify_params",
False,
),
+ "SetupIntentModifyParamsPaymentMethodDataRechnung": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
+ "SetupIntentModifyParamsPaymentMethodDataRechnungDob": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
"SetupIntentModifyParamsPaymentMethodDataRevolutPay": (
"stripe.params._setup_intent_modify_params",
False,
@@ -13590,10 +21056,18 @@
"stripe.params._setup_intent_modify_params",
False,
),
+ "SetupIntentModifyParamsPaymentMethodDataShopeepay": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
"SetupIntentModifyParamsPaymentMethodDataSofort": (
"stripe.params._setup_intent_modify_params",
False,
),
+ "SetupIntentModifyParamsPaymentMethodDataStripeBalance": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
"SetupIntentModifyParamsPaymentMethodDataSwish": (
"stripe.params._setup_intent_modify_params",
False,
@@ -13694,6 +21168,14 @@
"stripe.params._setup_intent_modify_params",
False,
),
+ "SetupIntentModifyParamsPaymentMethodOptionsPix": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
+ "SetupIntentModifyParamsPaymentMethodOptionsPixMandateOptions": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
"SetupIntentModifyParamsPaymentMethodOptionsSepaDebit": (
"stripe.params._setup_intent_modify_params",
False,
@@ -13714,6 +21196,10 @@
"stripe.params._setup_intent_modify_params",
False,
),
+ "SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry": (
+ "stripe.params._setup_intent_modify_params",
+ False,
+ ),
"SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions": (
"stripe.params._setup_intent_modify_params",
False,
@@ -13814,10 +21300,18 @@
"stripe.params._setup_intent_update_params",
False,
),
+ "SetupIntentUpdateParamsPaymentMethodDataGopay": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
"SetupIntentUpdateParamsPaymentMethodDataGrabpay": (
"stripe.params._setup_intent_update_params",
False,
),
+ "SetupIntentUpdateParamsPaymentMethodDataIdBankTransfer": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
"SetupIntentUpdateParamsPaymentMethodDataIdeal": (
"stripe.params._setup_intent_update_params",
False,
@@ -13894,6 +21388,10 @@
"stripe.params._setup_intent_update_params",
False,
),
+ "SetupIntentUpdateParamsPaymentMethodDataPaypay": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
"SetupIntentUpdateParamsPaymentMethodDataPayto": (
"stripe.params._setup_intent_update_params",
False,
@@ -13906,10 +21404,22 @@
"stripe.params._setup_intent_update_params",
False,
),
+ "SetupIntentUpdateParamsPaymentMethodDataQris": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
"SetupIntentUpdateParamsPaymentMethodDataRadarOptions": (
"stripe.params._setup_intent_update_params",
False,
),
+ "SetupIntentUpdateParamsPaymentMethodDataRechnung": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
+ "SetupIntentUpdateParamsPaymentMethodDataRechnungDob": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
"SetupIntentUpdateParamsPaymentMethodDataRevolutPay": (
"stripe.params._setup_intent_update_params",
False,
@@ -13926,10 +21436,18 @@
"stripe.params._setup_intent_update_params",
False,
),
+ "SetupIntentUpdateParamsPaymentMethodDataShopeepay": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
"SetupIntentUpdateParamsPaymentMethodDataSofort": (
"stripe.params._setup_intent_update_params",
False,
),
+ "SetupIntentUpdateParamsPaymentMethodDataStripeBalance": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
"SetupIntentUpdateParamsPaymentMethodDataSwish": (
"stripe.params._setup_intent_update_params",
False,
@@ -14030,6 +21548,14 @@
"stripe.params._setup_intent_update_params",
False,
),
+ "SetupIntentUpdateParamsPaymentMethodOptionsPix": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
+ "SetupIntentUpdateParamsPaymentMethodOptionsPixMandateOptions": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
"SetupIntentUpdateParamsPaymentMethodOptionsSepaDebit": (
"stripe.params._setup_intent_update_params",
False,
@@ -14050,6 +21576,10 @@
"stripe.params._setup_intent_update_params",
False,
),
+ "SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry": (
+ "stripe.params._setup_intent_update_params",
+ False,
+ ),
"SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions": (
"stripe.params._setup_intent_update_params",
False,
@@ -14255,6 +21785,10 @@
False,
),
"SourceVerifyParams": ("stripe.params._source_verify_params", False),
+ "SubscriptionAttachCadenceParams": (
+ "stripe.params._subscription_attach_cadence_params",
+ False,
+ ),
"SubscriptionCancelParams": (
"stripe.params._subscription_cancel_params",
False,
@@ -14275,6 +21809,14 @@
"stripe.params._subscription_create_params",
False,
),
+ "SubscriptionCreateParamsAddInvoiceItemDiscountDiscountEnd": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
+ "SubscriptionCreateParamsAddInvoiceItemDiscountDiscountEndDuration": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
"SubscriptionCreateParamsAddInvoiceItemPeriod": (
"stripe.params._subscription_create_params",
False,
@@ -14311,6 +21853,22 @@
"stripe.params._subscription_create_params",
False,
),
+ "SubscriptionCreateParamsBillingSchedule": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
+ "SubscriptionCreateParamsBillingScheduleAppliesTo": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
+ "SubscriptionCreateParamsBillingScheduleBillUntil": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
+ "SubscriptionCreateParamsBillingScheduleBillUntilDuration": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
"SubscriptionCreateParamsBillingThresholds": (
"stripe.params._subscription_create_params",
False,
@@ -14319,6 +21877,14 @@
"stripe.params._subscription_create_params",
False,
),
+ "SubscriptionCreateParamsDiscountDiscountEnd": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
+ "SubscriptionCreateParamsDiscountDiscountEndDuration": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
"SubscriptionCreateParamsInvoiceSettings": (
"stripe.params._subscription_create_params",
False,
@@ -14339,6 +21905,14 @@
"stripe.params._subscription_create_params",
False,
),
+ "SubscriptionCreateParamsItemDiscountDiscountEnd": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
+ "SubscriptionCreateParamsItemDiscountDiscountEndDuration": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
"SubscriptionCreateParamsItemPriceData": (
"stripe.params._subscription_create_params",
False,
@@ -14347,6 +21921,10 @@
"stripe.params._subscription_create_params",
False,
),
+ "SubscriptionCreateParamsItemTrial": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
"SubscriptionCreateParamsPaymentSettings": (
"stripe.params._subscription_create_params",
False,
@@ -14387,6 +21965,10 @@
"stripe.params._subscription_create_params",
False,
),
+ "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
"SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsKonbini": (
"stripe.params._subscription_create_params",
False,
@@ -14399,10 +21981,26 @@
"stripe.params._subscription_create_params",
False,
),
+ "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPix": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
+ "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
"SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit": (
"stripe.params._subscription_create_params",
False,
),
+ "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUpi": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
+ "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
"SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount": (
"stripe.params._subscription_create_params",
False,
@@ -14419,6 +22017,10 @@
"stripe.params._subscription_create_params",
False,
),
+ "SubscriptionCreateParamsPrebilling": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
"SubscriptionCreateParamsTransferData": (
"stripe.params._subscription_create_params",
False,
@@ -14447,6 +22049,14 @@
"stripe.params._subscription_item_create_params",
False,
),
+ "SubscriptionItemCreateParamsDiscountDiscountEnd": (
+ "stripe.params._subscription_item_create_params",
+ False,
+ ),
+ "SubscriptionItemCreateParamsDiscountDiscountEndDuration": (
+ "stripe.params._subscription_item_create_params",
+ False,
+ ),
"SubscriptionItemCreateParamsPriceData": (
"stripe.params._subscription_item_create_params",
False,
@@ -14455,6 +22065,10 @@
"stripe.params._subscription_item_create_params",
False,
),
+ "SubscriptionItemCreateParamsTrial": (
+ "stripe.params._subscription_item_create_params",
+ False,
+ ),
"SubscriptionItemDeleteParams": (
"stripe.params._subscription_item_delete_params",
False,
@@ -14475,6 +22089,14 @@
"stripe.params._subscription_item_modify_params",
False,
),
+ "SubscriptionItemModifyParamsDiscountDiscountEnd": (
+ "stripe.params._subscription_item_modify_params",
+ False,
+ ),
+ "SubscriptionItemModifyParamsDiscountDiscountEndDuration": (
+ "stripe.params._subscription_item_modify_params",
+ False,
+ ),
"SubscriptionItemModifyParamsPriceData": (
"stripe.params._subscription_item_modify_params",
False,
@@ -14499,6 +22121,14 @@
"stripe.params._subscription_item_update_params",
False,
),
+ "SubscriptionItemUpdateParamsDiscountDiscountEnd": (
+ "stripe.params._subscription_item_update_params",
+ False,
+ ),
+ "SubscriptionItemUpdateParamsDiscountDiscountEndDuration": (
+ "stripe.params._subscription_item_update_params",
+ False,
+ ),
"SubscriptionItemUpdateParamsPriceData": (
"stripe.params._subscription_item_update_params",
False,
@@ -14551,6 +22181,14 @@
"stripe.params._subscription_modify_params",
False,
),
+ "SubscriptionModifyParamsAddInvoiceItemDiscountDiscountEnd": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
+ "SubscriptionModifyParamsAddInvoiceItemDiscountDiscountEndDuration": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
"SubscriptionModifyParamsAddInvoiceItemPeriod": (
"stripe.params._subscription_modify_params",
False,
@@ -14559,19 +22197,35 @@
"stripe.params._subscription_modify_params",
False,
),
- "SubscriptionModifyParamsAddInvoiceItemPeriodStart": (
+ "SubscriptionModifyParamsAddInvoiceItemPeriodStart": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
+ "SubscriptionModifyParamsAddInvoiceItemPriceData": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
+ "SubscriptionModifyParamsAutomaticTax": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
+ "SubscriptionModifyParamsAutomaticTaxLiability": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
+ "SubscriptionModifyParamsBillingSchedule": (
"stripe.params._subscription_modify_params",
False,
),
- "SubscriptionModifyParamsAddInvoiceItemPriceData": (
+ "SubscriptionModifyParamsBillingScheduleAppliesTo": (
"stripe.params._subscription_modify_params",
False,
),
- "SubscriptionModifyParamsAutomaticTax": (
+ "SubscriptionModifyParamsBillingScheduleBillUntil": (
"stripe.params._subscription_modify_params",
False,
),
- "SubscriptionModifyParamsAutomaticTaxLiability": (
+ "SubscriptionModifyParamsBillingScheduleBillUntilDuration": (
"stripe.params._subscription_modify_params",
False,
),
@@ -14587,6 +22241,14 @@
"stripe.params._subscription_modify_params",
False,
),
+ "SubscriptionModifyParamsDiscountDiscountEnd": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
+ "SubscriptionModifyParamsDiscountDiscountEndDuration": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
"SubscriptionModifyParamsInvoiceSettings": (
"stripe.params._subscription_modify_params",
False,
@@ -14607,6 +22269,14 @@
"stripe.params._subscription_modify_params",
False,
),
+ "SubscriptionModifyParamsItemDiscountDiscountEnd": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
+ "SubscriptionModifyParamsItemDiscountDiscountEndDuration": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
"SubscriptionModifyParamsItemPriceData": (
"stripe.params._subscription_modify_params",
False,
@@ -14659,6 +22329,10 @@
"stripe.params._subscription_modify_params",
False,
),
+ "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
"SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsKonbini": (
"stripe.params._subscription_modify_params",
False,
@@ -14671,10 +22345,26 @@
"stripe.params._subscription_modify_params",
False,
),
+ "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPix": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
+ "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
"SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit": (
"stripe.params._subscription_modify_params",
False,
),
+ "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUpi": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
+ "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
"SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount": (
"stripe.params._subscription_modify_params",
False,
@@ -14691,6 +22381,10 @@
"stripe.params._subscription_modify_params",
False,
),
+ "SubscriptionModifyParamsPrebilling": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
"SubscriptionModifyParamsTransferData": (
"stripe.params._subscription_modify_params",
False,
@@ -14711,6 +22405,154 @@
"stripe.params._subscription_retrieve_params",
False,
),
+ "SubscriptionScheduleAmendParams": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendment": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentAmendmentEnd": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentAmendmentEndDiscountEnd": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentAmendmentEndDuration": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentAmendmentStart": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentAmendmentStartAmendmentEnd": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentAmendmentStartDiscountEnd": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentDiscountAction": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentDiscountActionAdd": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentDiscountActionAddDiscountEnd": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentDiscountActionRemove": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentDiscountActionSet": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentItemAction": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentItemActionAdd": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscount": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscountDiscountEnd": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscountDiscountEndDuration": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentItemActionAddTrial": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentItemActionRemove": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentItemActionSet": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscount": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscountDiscountEnd": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscountDiscountEndDuration": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentItemActionSetTrial": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentMetadataAction": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentSetPauseCollection": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentSetPauseCollectionSet": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentTrialSettings": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsAmendmentTrialSettingsEndBehavior": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsPrebilling": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsPrebillingBillFrom": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsPrebillingBillFromAmendmentStart": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsPrebillingBillUntil": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsPrebillingBillUntilAmendmentEnd": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsPrebillingBillUntilDuration": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
+ "SubscriptionScheduleAmendParamsScheduleSettings": (
+ "stripe.params._subscription_schedule_amend_params",
+ False,
+ ),
"SubscriptionScheduleCancelParams": (
"stripe.params._subscription_schedule_cancel_params",
False,
@@ -14767,6 +22609,14 @@
"stripe.params._subscription_schedule_create_params",
False,
),
+ "SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscountDiscountEnd": (
+ "stripe.params._subscription_schedule_create_params",
+ False,
+ ),
+ "SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscountDiscountEndDuration": (
+ "stripe.params._subscription_schedule_create_params",
+ False,
+ ),
"SubscriptionScheduleCreateParamsPhaseAddInvoiceItemPeriod": (
"stripe.params._subscription_schedule_create_params",
False,
@@ -14799,6 +22649,14 @@
"stripe.params._subscription_schedule_create_params",
False,
),
+ "SubscriptionScheduleCreateParamsPhaseDiscountDiscountEnd": (
+ "stripe.params._subscription_schedule_create_params",
+ False,
+ ),
+ "SubscriptionScheduleCreateParamsPhaseDiscountDiscountEndDuration": (
+ "stripe.params._subscription_schedule_create_params",
+ False,
+ ),
"SubscriptionScheduleCreateParamsPhaseDuration": (
"stripe.params._subscription_schedule_create_params",
False,
@@ -14823,6 +22681,14 @@
"stripe.params._subscription_schedule_create_params",
False,
),
+ "SubscriptionScheduleCreateParamsPhaseItemDiscountDiscountEnd": (
+ "stripe.params._subscription_schedule_create_params",
+ False,
+ ),
+ "SubscriptionScheduleCreateParamsPhaseItemDiscountDiscountEndDuration": (
+ "stripe.params._subscription_schedule_create_params",
+ False,
+ ),
"SubscriptionScheduleCreateParamsPhaseItemPriceData": (
"stripe.params._subscription_schedule_create_params",
False,
@@ -14831,10 +22697,30 @@
"stripe.params._subscription_schedule_create_params",
False,
),
+ "SubscriptionScheduleCreateParamsPhaseItemTrial": (
+ "stripe.params._subscription_schedule_create_params",
+ False,
+ ),
+ "SubscriptionScheduleCreateParamsPhasePauseCollection": (
+ "stripe.params._subscription_schedule_create_params",
+ False,
+ ),
"SubscriptionScheduleCreateParamsPhaseTransferData": (
"stripe.params._subscription_schedule_create_params",
False,
),
+ "SubscriptionScheduleCreateParamsPhaseTrialSettings": (
+ "stripe.params._subscription_schedule_create_params",
+ False,
+ ),
+ "SubscriptionScheduleCreateParamsPhaseTrialSettingsEndBehavior": (
+ "stripe.params._subscription_schedule_create_params",
+ False,
+ ),
+ "SubscriptionScheduleCreateParamsPrebilling": (
+ "stripe.params._subscription_schedule_create_params",
+ False,
+ ),
"SubscriptionScheduleListParams": (
"stripe.params._subscription_schedule_list_params",
False,
@@ -14899,6 +22785,14 @@
"stripe.params._subscription_schedule_modify_params",
False,
),
+ "SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscountDiscountEnd": (
+ "stripe.params._subscription_schedule_modify_params",
+ False,
+ ),
+ "SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscountDiscountEndDuration": (
+ "stripe.params._subscription_schedule_modify_params",
+ False,
+ ),
"SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriod": (
"stripe.params._subscription_schedule_modify_params",
False,
@@ -14931,6 +22825,14 @@
"stripe.params._subscription_schedule_modify_params",
False,
),
+ "SubscriptionScheduleModifyParamsPhaseDiscountDiscountEnd": (
+ "stripe.params._subscription_schedule_modify_params",
+ False,
+ ),
+ "SubscriptionScheduleModifyParamsPhaseDiscountDiscountEndDuration": (
+ "stripe.params._subscription_schedule_modify_params",
+ False,
+ ),
"SubscriptionScheduleModifyParamsPhaseDuration": (
"stripe.params._subscription_schedule_modify_params",
False,
@@ -14955,6 +22857,14 @@
"stripe.params._subscription_schedule_modify_params",
False,
),
+ "SubscriptionScheduleModifyParamsPhaseItemDiscountDiscountEnd": (
+ "stripe.params._subscription_schedule_modify_params",
+ False,
+ ),
+ "SubscriptionScheduleModifyParamsPhaseItemDiscountDiscountEndDuration": (
+ "stripe.params._subscription_schedule_modify_params",
+ False,
+ ),
"SubscriptionScheduleModifyParamsPhaseItemPriceData": (
"stripe.params._subscription_schedule_modify_params",
False,
@@ -14963,10 +22873,30 @@
"stripe.params._subscription_schedule_modify_params",
False,
),
+ "SubscriptionScheduleModifyParamsPhaseItemTrial": (
+ "stripe.params._subscription_schedule_modify_params",
+ False,
+ ),
+ "SubscriptionScheduleModifyParamsPhasePauseCollection": (
+ "stripe.params._subscription_schedule_modify_params",
+ False,
+ ),
"SubscriptionScheduleModifyParamsPhaseTransferData": (
"stripe.params._subscription_schedule_modify_params",
False,
),
+ "SubscriptionScheduleModifyParamsPhaseTrialSettings": (
+ "stripe.params._subscription_schedule_modify_params",
+ False,
+ ),
+ "SubscriptionScheduleModifyParamsPhaseTrialSettingsEndBehavior": (
+ "stripe.params._subscription_schedule_modify_params",
+ False,
+ ),
+ "SubscriptionScheduleModifyParamsPrebilling": (
+ "stripe.params._subscription_schedule_modify_params",
+ False,
+ ),
"SubscriptionScheduleReleaseParams": (
"stripe.params._subscription_schedule_release_params",
False,
@@ -15019,6 +22949,14 @@
"stripe.params._subscription_schedule_update_params",
False,
),
+ "SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscountDiscountEnd": (
+ "stripe.params._subscription_schedule_update_params",
+ False,
+ ),
+ "SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscountDiscountEndDuration": (
+ "stripe.params._subscription_schedule_update_params",
+ False,
+ ),
"SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriod": (
"stripe.params._subscription_schedule_update_params",
False,
@@ -15051,6 +22989,14 @@
"stripe.params._subscription_schedule_update_params",
False,
),
+ "SubscriptionScheduleUpdateParamsPhaseDiscountDiscountEnd": (
+ "stripe.params._subscription_schedule_update_params",
+ False,
+ ),
+ "SubscriptionScheduleUpdateParamsPhaseDiscountDiscountEndDuration": (
+ "stripe.params._subscription_schedule_update_params",
+ False,
+ ),
"SubscriptionScheduleUpdateParamsPhaseDuration": (
"stripe.params._subscription_schedule_update_params",
False,
@@ -15075,6 +23021,14 @@
"stripe.params._subscription_schedule_update_params",
False,
),
+ "SubscriptionScheduleUpdateParamsPhaseItemDiscountDiscountEnd": (
+ "stripe.params._subscription_schedule_update_params",
+ False,
+ ),
+ "SubscriptionScheduleUpdateParamsPhaseItemDiscountDiscountEndDuration": (
+ "stripe.params._subscription_schedule_update_params",
+ False,
+ ),
"SubscriptionScheduleUpdateParamsPhaseItemPriceData": (
"stripe.params._subscription_schedule_update_params",
False,
@@ -15083,10 +23037,30 @@
"stripe.params._subscription_schedule_update_params",
False,
),
+ "SubscriptionScheduleUpdateParamsPhaseItemTrial": (
+ "stripe.params._subscription_schedule_update_params",
+ False,
+ ),
+ "SubscriptionScheduleUpdateParamsPhasePauseCollection": (
+ "stripe.params._subscription_schedule_update_params",
+ False,
+ ),
"SubscriptionScheduleUpdateParamsPhaseTransferData": (
"stripe.params._subscription_schedule_update_params",
False,
),
+ "SubscriptionScheduleUpdateParamsPhaseTrialSettings": (
+ "stripe.params._subscription_schedule_update_params",
+ False,
+ ),
+ "SubscriptionScheduleUpdateParamsPhaseTrialSettingsEndBehavior": (
+ "stripe.params._subscription_schedule_update_params",
+ False,
+ ),
+ "SubscriptionScheduleUpdateParamsPrebilling": (
+ "stripe.params._subscription_schedule_update_params",
+ False,
+ ),
"SubscriptionSearchParams": (
"stripe.params._subscription_search_params",
False,
@@ -15103,6 +23077,14 @@
"stripe.params._subscription_update_params",
False,
),
+ "SubscriptionUpdateParamsAddInvoiceItemDiscountDiscountEnd": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
+ "SubscriptionUpdateParamsAddInvoiceItemDiscountDiscountEndDuration": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
"SubscriptionUpdateParamsAddInvoiceItemPeriod": (
"stripe.params._subscription_update_params",
False,
@@ -15127,6 +23109,22 @@
"stripe.params._subscription_update_params",
False,
),
+ "SubscriptionUpdateParamsBillingSchedule": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
+ "SubscriptionUpdateParamsBillingScheduleAppliesTo": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
+ "SubscriptionUpdateParamsBillingScheduleBillUntil": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
+ "SubscriptionUpdateParamsBillingScheduleBillUntilDuration": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
"SubscriptionUpdateParamsBillingThresholds": (
"stripe.params._subscription_update_params",
False,
@@ -15139,6 +23137,14 @@
"stripe.params._subscription_update_params",
False,
),
+ "SubscriptionUpdateParamsDiscountDiscountEnd": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
+ "SubscriptionUpdateParamsDiscountDiscountEndDuration": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
"SubscriptionUpdateParamsInvoiceSettings": (
"stripe.params._subscription_update_params",
False,
@@ -15159,6 +23165,14 @@
"stripe.params._subscription_update_params",
False,
),
+ "SubscriptionUpdateParamsItemDiscountDiscountEnd": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
+ "SubscriptionUpdateParamsItemDiscountDiscountEndDuration": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
"SubscriptionUpdateParamsItemPriceData": (
"stripe.params._subscription_update_params",
False,
@@ -15211,6 +23225,10 @@
"stripe.params._subscription_update_params",
False,
),
+ "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
"SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini": (
"stripe.params._subscription_update_params",
False,
@@ -15223,10 +23241,26 @@
"stripe.params._subscription_update_params",
False,
),
+ "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPix": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
+ "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
"SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit": (
"stripe.params._subscription_update_params",
False,
),
+ "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUpi": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
+ "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
"SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount": (
"stripe.params._subscription_update_params",
False,
@@ -15243,6 +23277,10 @@
"stripe.params._subscription_update_params",
False,
),
+ "SubscriptionUpdateParamsPrebilling": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
"SubscriptionUpdateParamsTransferData": (
"stripe.params._subscription_update_params",
False,
diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py
index b9925f7ee..85eddfb74 100644
--- a/stripe/params/_account_create_params.py
+++ b/stripe/params/_account_create_params.py
@@ -79,6 +79,10 @@ class AccountCreateParams(RequestOptions):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
+ risk_controls: NotRequired["AccountCreateParamsRiskControls"]
+ """
+ A hash to configure risk controls on the account. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
+ """
settings: NotRequired["AccountCreateParamsSettings"]
"""
Options for customizing how the account functions within Stripe.
@@ -136,6 +140,10 @@ class AccountCreateParamsBusinessProfile(TypedDict):
"""
Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
"""
+ specified_commercial_transactions_act_url: NotRequired["Literal['']|str"]
+ """
+ A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Used by the Checkout product and for Japanese payment methods.
+ """
support_address: NotRequired[
"AccountCreateParamsBusinessProfileSupportAddress"
]
@@ -248,6 +256,12 @@ class AccountCreateParamsCapabilities(TypedDict):
"""
The au_becs_debit_payments capability.
"""
+ automatic_indirect_tax: NotRequired[
+ "AccountCreateParamsCapabilitiesAutomaticIndirectTax"
+ ]
+ """
+ The automatic_indirect_tax capability.
+ """
bacs_debit_payments: NotRequired[
"AccountCreateParamsCapabilitiesBacsDebitPayments"
]
@@ -328,12 +342,28 @@ class AccountCreateParamsCapabilities(TypedDict):
"""
The giropay_payments capability.
"""
+ gopay_payments: NotRequired["AccountCreateParamsCapabilitiesGopayPayments"]
+ """
+ The gopay_payments capability.
+ """
grabpay_payments: NotRequired[
"AccountCreateParamsCapabilitiesGrabpayPayments"
]
"""
The grabpay_payments capability.
"""
+ id_bank_transfer_payments: NotRequired[
+ "AccountCreateParamsCapabilitiesIdBankTransferPayments"
+ ]
+ """
+ The id_bank_transfer_payments capability.
+ """
+ id_bank_transfer_payments_bca: NotRequired[
+ "AccountCreateParamsCapabilitiesIdBankTransferPaymentsBca"
+ ]
+ """
+ The id_bank_transfer_payments_bca capability.
+ """
ideal_payments: NotRequired["AccountCreateParamsCapabilitiesIdealPayments"]
"""
The ideal_payments capability.
@@ -448,6 +478,18 @@ class AccountCreateParamsCapabilities(TypedDict):
"""
The paynow_payments capability.
"""
+ paypal_payments: NotRequired[
+ "AccountCreateParamsCapabilitiesPaypalPayments"
+ ]
+ """
+ The paypal_payments capability.
+ """
+ paypay_payments: NotRequired[
+ "AccountCreateParamsCapabilitiesPaypayPayments"
+ ]
+ """
+ The paypay_payments capability.
+ """
payto_payments: NotRequired["AccountCreateParamsCapabilitiesPaytoPayments"]
"""
The payto_payments capability.
@@ -462,6 +504,16 @@ class AccountCreateParamsCapabilities(TypedDict):
"""
The promptpay_payments capability.
"""
+ qris_payments: NotRequired["AccountCreateParamsCapabilitiesQrisPayments"]
+ """
+ The qris_payments capability.
+ """
+ rechnung_payments: NotRequired[
+ "AccountCreateParamsCapabilitiesRechnungPayments"
+ ]
+ """
+ The rechnung_payments capability.
+ """
revolut_pay_payments: NotRequired[
"AccountCreateParamsCapabilitiesRevolutPayPayments"
]
@@ -492,12 +544,24 @@ class AccountCreateParamsCapabilities(TypedDict):
"""
The sepa_debit_payments capability.
"""
+ shopeepay_payments: NotRequired[
+ "AccountCreateParamsCapabilitiesShopeepayPayments"
+ ]
+ """
+ The shopeepay_payments capability.
+ """
sofort_payments: NotRequired[
"AccountCreateParamsCapabilitiesSofortPayments"
]
"""
The sofort_payments capability.
"""
+ stripe_balance_payments: NotRequired[
+ "AccountCreateParamsCapabilitiesStripeBalancePayments"
+ ]
+ """
+ The stripe_balance_payments capability.
+ """
swish_payments: NotRequired["AccountCreateParamsCapabilitiesSwishPayments"]
"""
The swish_payments capability.
@@ -522,6 +586,24 @@ class AccountCreateParamsCapabilities(TypedDict):
"""
The treasury capability.
"""
+ treasury_evolve: NotRequired[
+ "AccountCreateParamsCapabilitiesTreasuryEvolve"
+ ]
+ """
+ The treasury_evolve capability.
+ """
+ treasury_fifth_third: NotRequired[
+ "AccountCreateParamsCapabilitiesTreasuryFifthThird"
+ ]
+ """
+ The treasury_fifth_third capability.
+ """
+ treasury_goldman_sachs: NotRequired[
+ "AccountCreateParamsCapabilitiesTreasuryGoldmanSachs"
+ ]
+ """
+ The treasury_goldman_sachs capability.
+ """
twint_payments: NotRequired["AccountCreateParamsCapabilitiesTwintPayments"]
"""
The twint_payments capability.
@@ -586,6 +668,13 @@ class AccountCreateParamsCapabilitiesAuBecsDebitPayments(TypedDict):
"""
+class AccountCreateParamsCapabilitiesAutomaticIndirectTax(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountCreateParamsCapabilitiesBacsDebitPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -691,6 +780,13 @@ class AccountCreateParamsCapabilitiesGiropayPayments(TypedDict):
"""
+class AccountCreateParamsCapabilitiesGopayPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountCreateParamsCapabilitiesGrabpayPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -698,6 +794,20 @@ class AccountCreateParamsCapabilitiesGrabpayPayments(TypedDict):
"""
+class AccountCreateParamsCapabilitiesIdBankTransferPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
+class AccountCreateParamsCapabilitiesIdBankTransferPaymentsBca(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountCreateParamsCapabilitiesIdealPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -845,6 +955,20 @@ class AccountCreateParamsCapabilitiesPaynowPayments(TypedDict):
"""
+class AccountCreateParamsCapabilitiesPaypalPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
+class AccountCreateParamsCapabilitiesPaypayPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountCreateParamsCapabilitiesPaytoPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -866,6 +990,20 @@ class AccountCreateParamsCapabilitiesPromptpayPayments(TypedDict):
"""
+class AccountCreateParamsCapabilitiesQrisPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
+class AccountCreateParamsCapabilitiesRechnungPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountCreateParamsCapabilitiesRevolutPayPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -901,6 +1039,13 @@ class AccountCreateParamsCapabilitiesSepaDebitPayments(TypedDict):
"""
+class AccountCreateParamsCapabilitiesShopeepayPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountCreateParamsCapabilitiesSofortPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -908,6 +1053,13 @@ class AccountCreateParamsCapabilitiesSofortPayments(TypedDict):
"""
+class AccountCreateParamsCapabilitiesStripeBalancePayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountCreateParamsCapabilitiesSwishPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -943,6 +1095,27 @@ class AccountCreateParamsCapabilitiesTreasury(TypedDict):
"""
+class AccountCreateParamsCapabilitiesTreasuryEvolve(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
+class AccountCreateParamsCapabilitiesTreasuryFifthThird(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
+class AccountCreateParamsCapabilitiesTreasuryGoldmanSachs(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountCreateParamsCapabilitiesTwintPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -1246,6 +1419,14 @@ class AccountCreateParamsCompanyVerificationDocument(TypedDict):
class AccountCreateParamsController(TypedDict):
+ application: NotRequired["AccountCreateParamsControllerApplication"]
+ """
+ A hash of configuration describing the Connect application that controls the account.
+ """
+ dashboard: NotRequired["AccountCreateParamsControllerDashboard"]
+ """
+ Properties of the account's dashboard.
+ """
fees: NotRequired["AccountCreateParamsControllerFees"]
"""
A hash of configuration for who pays Stripe fees for product usage on this account.
@@ -1266,6 +1447,28 @@ class AccountCreateParamsController(TypedDict):
"""
+class AccountCreateParamsControllerApplication(TypedDict):
+ loss_liable: bool
+ """
+ Whether the controller is liable for losses on this account. For details, see [Understanding Connect Account Balances](https://docs.stripe.com/connect/account-balances).
+ """
+ onboarding_owner: NotRequired[bool]
+ """
+ Whether the controller owns onboarding for this account.
+ """
+ pricing_controls: NotRequired[bool]
+ """
+ Whether the controller has pricing controls for this account.
+ """
+
+
+class AccountCreateParamsControllerDashboard(TypedDict):
+ type: NotRequired[Literal["express", "full", "none"]]
+ """
+ Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no Stripe-hosted dashboard (`none`). Defaults to `full`.
+ """
+
+
class AccountCreateParamsControllerFees(TypedDict):
payer: NotRequired[Literal["account", "application"]]
"""
@@ -1781,6 +1984,33 @@ class AccountCreateParamsIndividualVerificationDocument(TypedDict):
"""
+class AccountCreateParamsRiskControls(TypedDict):
+ charges: NotRequired["AccountCreateParamsRiskControlsCharges"]
+ """
+ Represents the risk control status of charges. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
+ """
+ payouts: NotRequired["AccountCreateParamsRiskControlsPayouts"]
+ """
+ Represents the risk control status of payouts. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
+ """
+
+
+class AccountCreateParamsRiskControlsCharges(TypedDict):
+ pause_requested: NotRequired[bool]
+ """
+ To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
+ There can be a delay before the risk control is paused or unpaused.
+ """
+
+
+class AccountCreateParamsRiskControlsPayouts(TypedDict):
+ pause_requested: NotRequired[bool]
+ """
+ To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
+ There can be a delay before the risk control is paused or unpaused.
+ """
+
+
class AccountCreateParamsSettings(TypedDict):
bacs_debit_payments: NotRequired[
"AccountCreateParamsSettingsBacsDebitPayments"
@@ -1788,10 +2018,20 @@ class AccountCreateParamsSettings(TypedDict):
"""
Settings specific to Bacs Direct Debit.
"""
+ bank_bca_onboarding: NotRequired[
+ "AccountCreateParamsSettingsBankBcaOnboarding"
+ ]
+ """
+ Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
+ """
branding: NotRequired["AccountCreateParamsSettingsBranding"]
"""
Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
"""
+ capital: NotRequired["AccountCreateParamsSettingsCapital"]
+ """
+ Settings specific to the account's use of the Capital product.
+ """
card_issuing: NotRequired["AccountCreateParamsSettingsCardIssuing"]
"""
Settings specific to the account's use of the Card Issuing product.
@@ -1812,6 +2052,14 @@ class AccountCreateParamsSettings(TypedDict):
"""
Settings specific to the account's payouts.
"""
+ paypay_payments: NotRequired["AccountCreateParamsSettingsPaypayPayments"]
+ """
+ Settings specific to the PayPay payments method.
+ """
+ tax_forms: NotRequired["AccountCreateParamsSettingsTaxForms"]
+ """
+ Settings specific to the account's tax forms.
+ """
treasury: NotRequired["AccountCreateParamsSettingsTreasury"]
"""
Settings specific to the account's Treasury FinancialAccounts.
@@ -1825,6 +2073,17 @@ class AccountCreateParamsSettingsBacsDebitPayments(TypedDict):
"""
+class AccountCreateParamsSettingsBankBcaOnboarding(TypedDict):
+ account_holder_name: NotRequired[str]
+ """
+ Bank BCA business account holder name
+ """
+ business_account_number: NotRequired[str]
+ """
+ Bank BCA business account number
+ """
+
+
class AccountCreateParamsSettingsBranding(TypedDict):
icon: NotRequired[str]
"""
@@ -1844,6 +2103,17 @@ class AccountCreateParamsSettingsBranding(TypedDict):
"""
+class AccountCreateParamsSettingsCapital(TypedDict):
+ payout_destination: NotRequired[Dict[str, str]]
+ """
+ Per-currency mapping of user-selected destination accounts used to pay out loans.
+ """
+ payout_destination_selector: NotRequired[Dict[str, List[str]]]
+ """
+ Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
+ """
+
+
class AccountCreateParamsSettingsCardIssuing(TypedDict):
tos_acceptance: NotRequired[
"AccountCreateParamsSettingsCardIssuingTosAcceptance"
@@ -1976,6 +2246,20 @@ class AccountCreateParamsSettingsPayoutsSchedule(TypedDict):
"""
+class AccountCreateParamsSettingsPaypayPayments(TypedDict):
+ goods_type: NotRequired[Literal["digital_content", "other"]]
+ """
+ Whether your business sells digital content or not.
+ """
+
+
+class AccountCreateParamsSettingsTaxForms(TypedDict):
+ consented_to_paperless_delivery: NotRequired[bool]
+ """
+ Whether the account opted out of receiving their tax forms by postal delivery.
+ """
+
+
class AccountCreateParamsSettingsTreasury(TypedDict):
tos_acceptance: NotRequired[
"AccountCreateParamsSettingsTreasuryTosAcceptance"
diff --git a/stripe/params/_account_link_create_params.py b/stripe/params/_account_link_create_params.py
index aa7168afd..175faa7ca 100644
--- a/stripe/params/_account_link_create_params.py
+++ b/stripe/params/_account_link_create_params.py
@@ -30,7 +30,12 @@ class AccountLinkCreateParams(RequestOptions):
"""
The URL that the user will be redirected to upon leaving or completing the linked flow.
"""
- type: Literal["account_onboarding", "account_update"]
+ type: Literal[
+ "account_onboarding",
+ "account_update",
+ "capital_financing_offer",
+ "capital_financing_reporting",
+ ]
"""
The type of account link the user is requesting.
diff --git a/stripe/params/_account_notice_list_params.py b/stripe/params/_account_notice_list_params.py
new file mode 100644
index 000000000..ec4569b92
--- /dev/null
+++ b/stripe/params/_account_notice_list_params.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class AccountNoticeListParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ sent: NotRequired[bool]
+ """
+ Set to false to only return unsent AccountNotices.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_account_notice_modify_params.py b/stripe/params/_account_notice_modify_params.py
new file mode 100644
index 000000000..3f2f29849
--- /dev/null
+++ b/stripe/params/_account_notice_modify_params.py
@@ -0,0 +1,39 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import Dict, List
+from typing_extensions import NotRequired, TypedDict
+
+
+class AccountNoticeModifyParams(RequestOptions):
+ email: "AccountNoticeModifyParamsEmail"
+ """
+ Information about the email you sent.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ sent_at: int
+ """
+ Date when you sent the notice.
+ """
+
+
+class AccountNoticeModifyParamsEmail(TypedDict):
+ plain_text: str
+ """
+ Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
+ """
+ recipient: str
+ """
+ Email address of the recipient.
+ """
+ subject: str
+ """
+ Subject of the email.
+ """
diff --git a/stripe/params/_account_notice_retrieve_params.py b/stripe/params/_account_notice_retrieve_params.py
new file mode 100644
index 000000000..9de77f7e4
--- /dev/null
+++ b/stripe/params/_account_notice_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class AccountNoticeRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/_account_notice_update_params.py b/stripe/params/_account_notice_update_params.py
new file mode 100644
index 000000000..f4e359772
--- /dev/null
+++ b/stripe/params/_account_notice_update_params.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict, List
+from typing_extensions import NotRequired, TypedDict
+
+
+class AccountNoticeUpdateParams(TypedDict):
+ email: "AccountNoticeUpdateParamsEmail"
+ """
+ Information about the email you sent.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ sent_at: int
+ """
+ Date when you sent the notice.
+ """
+
+
+class AccountNoticeUpdateParamsEmail(TypedDict):
+ plain_text: str
+ """
+ Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
+ """
+ recipient: str
+ """
+ Email address of the recipient.
+ """
+ subject: str
+ """
+ Subject of the email.
+ """
diff --git a/stripe/params/_account_session_create_params.py b/stripe/params/_account_session_create_params.py
index 41812dfe2..6d2ceb05d 100644
--- a/stripe/params/_account_session_create_params.py
+++ b/stripe/params/_account_session_create_params.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
-from typing_extensions import NotRequired, TypedDict
+from typing_extensions import Literal, NotRequired, TypedDict
class AccountSessionCreateParams(RequestOptions):
@@ -33,10 +33,44 @@ class AccountSessionCreateParamsComponents(TypedDict):
"""
Configuration for the [account onboarding](https://docs.stripe.com/connect/supported-embedded-components/account-onboarding/) embedded component.
"""
+ app_install: NotRequired["AccountSessionCreateParamsComponentsAppInstall"]
+ """
+ Configuration for the [app install](https://docs.stripe.com/connect/supported-embedded-components/app-install/) embedded component.
+ """
+ app_viewport: NotRequired[
+ "AccountSessionCreateParamsComponentsAppViewport"
+ ]
+ """
+ Configuration for the [app viewport](https://docs.stripe.com/connect/supported-embedded-components/app-viewport/) embedded component.
+ """
balances: NotRequired["AccountSessionCreateParamsComponentsBalances"]
"""
Configuration for the [balances](https://docs.stripe.com/connect/supported-embedded-components/balances/) embedded component.
"""
+ capital_financing: NotRequired[
+ "AccountSessionCreateParamsComponentsCapitalFinancing"
+ ]
+ """
+ Configuration for the [Capital financing](https://docs.stripe.com/connect/supported-embedded-components/capital-financing/) embedded component.
+ """
+ capital_financing_application: NotRequired[
+ "AccountSessionCreateParamsComponentsCapitalFinancingApplication"
+ ]
+ """
+ Configuration for the [Capital financing application](https://docs.stripe.com/connect/supported-embedded-components/capital-financing-application/) embedded component.
+ """
+ capital_financing_promotion: NotRequired[
+ "AccountSessionCreateParamsComponentsCapitalFinancingPromotion"
+ ]
+ """
+ Configuration for the [Capital financing promotion](https://docs.stripe.com/connect/supported-embedded-components/capital-financing-promotion/) embedded component.
+ """
+ capital_overview: NotRequired[
+ "AccountSessionCreateParamsComponentsCapitalOverview"
+ ]
+ """
+ Configuration for the [Capital overview](https://docs.stripe.com/connect/supported-embedded-components/capital-overview/) embedded component.
+ """
disputes_list: NotRequired[
"AccountSessionCreateParamsComponentsDisputesList"
]
@@ -47,6 +81,12 @@ class AccountSessionCreateParamsComponents(TypedDict):
"""
Configuration for the [documents](https://docs.stripe.com/connect/supported-embedded-components/documents/) embedded component.
"""
+ export_tax_transactions: NotRequired[
+ "AccountSessionCreateParamsComponentsExportTaxTransactions"
+ ]
+ """
+ Configuration for the [export tax transactions](https://docs.stripe.com/connect/supported-embedded-components/export-tax-transactions/) embedded component.
+ """
financial_account: NotRequired[
"AccountSessionCreateParamsComponentsFinancialAccount"
]
@@ -95,6 +135,12 @@ class AccountSessionCreateParamsComponents(TypedDict):
"""
Configuration for the [payment disputes](https://docs.stripe.com/connect/supported-embedded-components/payment-disputes/) embedded component.
"""
+ payment_method_settings: NotRequired[
+ "AccountSessionCreateParamsComponentsPaymentMethodSettings"
+ ]
+ """
+ Configuration for the [payment method settings](https://docs.stripe.com/connect/supported-embedded-components/payment-method-settings/) embedded component.
+ """
payments: NotRequired["AccountSessionCreateParamsComponentsPayments"]
"""
Configuration for the [payments](https://docs.stripe.com/connect/supported-embedded-components/payments/) embedded component.
@@ -115,6 +161,22 @@ class AccountSessionCreateParamsComponents(TypedDict):
"""
Configuration for the [payouts list](https://docs.stripe.com/connect/supported-embedded-components/payouts-list/) embedded component.
"""
+ product_tax_code_selector: NotRequired[
+ "AccountSessionCreateParamsComponentsProductTaxCodeSelector"
+ ]
+ """
+ Configuration for the [product tax code selector](https://docs.stripe.com/connect/supported-embedded-components/product-tax-code-selector/) embedded component.
+ """
+ recipients: NotRequired["AccountSessionCreateParamsComponentsRecipients"]
+ """
+ Configuration for the [recipients](https://docs.stripe.com/connect/supported-embedded-components/recipients/) embedded component.
+ """
+ reporting_chart: NotRequired[
+ "AccountSessionCreateParamsComponentsReportingChart"
+ ]
+ """
+ Configuration for the [reporting chart](https://docs.stripe.com/connect/supported-embedded-components/reporting-chart/) embedded component.
+ """
tax_registrations: NotRequired[
"AccountSessionCreateParamsComponentsTaxRegistrations"
]
@@ -127,6 +189,12 @@ class AccountSessionCreateParamsComponents(TypedDict):
"""
Configuration for the [tax settings](https://docs.stripe.com/connect/supported-embedded-components/tax-settings/) embedded component.
"""
+ tax_threshold_monitoring: NotRequired[
+ "AccountSessionCreateParamsComponentsTaxThresholdMonitoring"
+ ]
+ """
+ Configuration for the [tax threshold monitoring](https://docs.stripe.com/connect/supported-embedded-components/tax-threshold-monitoring/) embedded component.
+ """
class AccountSessionCreateParamsComponentsAccountManagement(TypedDict):
@@ -177,6 +245,46 @@ class AccountSessionCreateParamsComponentsAccountOnboardingFeatures(TypedDict):
"""
+class AccountSessionCreateParamsComponentsAppInstall(TypedDict):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsAppInstallFeatures"
+ ]
+ """
+ The list of features enabled in the embedded component.
+ """
+
+
+class AccountSessionCreateParamsComponentsAppInstallFeatures(TypedDict):
+ allowed_apps: NotRequired["Literal['']|List[str]"]
+ """
+ The list of apps allowed to be enabled in the embedded component.
+ """
+
+
+class AccountSessionCreateParamsComponentsAppViewport(TypedDict):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsAppViewportFeatures"
+ ]
+ """
+ The list of features enabled in the embedded component.
+ """
+
+
+class AccountSessionCreateParamsComponentsAppViewportFeatures(TypedDict):
+ allowed_apps: NotRequired["Literal['']|List[str]"]
+ """
+ The list of apps allowed to be enabled in the embedded component.
+ """
+
+
class AccountSessionCreateParamsComponentsBalances(TypedDict):
enabled: bool
"""
@@ -213,6 +321,80 @@ class AccountSessionCreateParamsComponentsBalancesFeatures(TypedDict):
"""
+class AccountSessionCreateParamsComponentsCapitalFinancing(TypedDict):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsCapitalFinancingFeatures"
+ ]
+ """
+ An empty list, because this embedded component has no features.
+ """
+
+
+class AccountSessionCreateParamsComponentsCapitalFinancingFeatures(TypedDict):
+ pass
+
+
+class AccountSessionCreateParamsComponentsCapitalFinancingApplication(
+ TypedDict,
+):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsCapitalFinancingApplicationFeatures"
+ ]
+ """
+ An empty list, because this embedded component has no features.
+ """
+
+
+class AccountSessionCreateParamsComponentsCapitalFinancingApplicationFeatures(
+ TypedDict,
+):
+ pass
+
+
+class AccountSessionCreateParamsComponentsCapitalFinancingPromotion(TypedDict):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsCapitalFinancingPromotionFeatures"
+ ]
+ """
+ An empty list, because this embedded component has no features.
+ """
+
+
+class AccountSessionCreateParamsComponentsCapitalFinancingPromotionFeatures(
+ TypedDict,
+):
+ pass
+
+
+class AccountSessionCreateParamsComponentsCapitalOverview(TypedDict):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsCapitalOverviewFeatures"
+ ]
+ """
+ An empty list, because this embedded component has no features.
+ """
+
+
+class AccountSessionCreateParamsComponentsCapitalOverviewFeatures(TypedDict):
+ pass
+
+
class AccountSessionCreateParamsComponentsDisputesList(TypedDict):
enabled: bool
"""
@@ -262,6 +444,25 @@ class AccountSessionCreateParamsComponentsDocumentsFeatures(TypedDict):
pass
+class AccountSessionCreateParamsComponentsExportTaxTransactions(TypedDict):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsExportTaxTransactionsFeatures"
+ ]
+ """
+ An empty list, because this embedded component has no features.
+ """
+
+
+class AccountSessionCreateParamsComponentsExportTaxTransactionsFeatures(
+ TypedDict,
+):
+ pass
+
+
class AccountSessionCreateParamsComponentsFinancialAccount(TypedDict):
enabled: bool
"""
@@ -502,6 +703,25 @@ class AccountSessionCreateParamsComponentsPaymentDisputesFeatures(TypedDict):
"""
+class AccountSessionCreateParamsComponentsPaymentMethodSettings(TypedDict):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsPaymentMethodSettingsFeatures"
+ ]
+ """
+ An empty list, because this embedded component has no features.
+ """
+
+
+class AccountSessionCreateParamsComponentsPaymentMethodSettingsFeatures(
+ TypedDict,
+):
+ pass
+
+
class AccountSessionCreateParamsComponentsPayments(TypedDict):
enabled: bool
"""
@@ -604,6 +824,59 @@ class AccountSessionCreateParamsComponentsPayoutsListFeatures(TypedDict):
pass
+class AccountSessionCreateParamsComponentsProductTaxCodeSelector(TypedDict):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsProductTaxCodeSelectorFeatures"
+ ]
+ """
+ An empty list, because this embedded component has no features.
+ """
+
+
+class AccountSessionCreateParamsComponentsProductTaxCodeSelectorFeatures(
+ TypedDict,
+):
+ pass
+
+
+class AccountSessionCreateParamsComponentsRecipients(TypedDict):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsRecipientsFeatures"
+ ]
+
+
+class AccountSessionCreateParamsComponentsRecipientsFeatures(TypedDict):
+ send_money: NotRequired[bool]
+ """
+ Whether to allow sending money.
+ """
+
+
+class AccountSessionCreateParamsComponentsReportingChart(TypedDict):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsReportingChartFeatures"
+ ]
+ """
+ An empty list, because this embedded component has no features.
+ """
+
+
+class AccountSessionCreateParamsComponentsReportingChartFeatures(TypedDict):
+ pass
+
+
class AccountSessionCreateParamsComponentsTaxRegistrations(TypedDict):
enabled: bool
"""
@@ -636,3 +909,22 @@ class AccountSessionCreateParamsComponentsTaxSettings(TypedDict):
class AccountSessionCreateParamsComponentsTaxSettingsFeatures(TypedDict):
pass
+
+
+class AccountSessionCreateParamsComponentsTaxThresholdMonitoring(TypedDict):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsTaxThresholdMonitoringFeatures"
+ ]
+ """
+ An empty list, because this embedded component has no features.
+ """
+
+
+class AccountSessionCreateParamsComponentsTaxThresholdMonitoringFeatures(
+ TypedDict,
+):
+ pass
diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py
index bb8c8ea81..ba4a5ff48 100644
--- a/stripe/params/_account_update_params.py
+++ b/stripe/params/_account_update_params.py
@@ -70,6 +70,10 @@ class AccountUpdateParams(TypedDict):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
+ risk_controls: NotRequired["AccountUpdateParamsRiskControls"]
+ """
+ A hash to configure risk controls on the account. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
+ """
settings: NotRequired["AccountUpdateParamsSettings"]
"""
Options for customizing how the account functions within Stripe.
@@ -123,6 +127,10 @@ class AccountUpdateParamsBusinessProfile(TypedDict):
"""
Internal-only description of the product sold by, or service provided by, the business. Used by Stripe for risk and underwriting purposes.
"""
+ specified_commercial_transactions_act_url: NotRequired["Literal['']|str"]
+ """
+ A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan.
+ """
support_address: NotRequired[
"AccountUpdateParamsBusinessProfileSupportAddress"
]
@@ -235,6 +243,12 @@ class AccountUpdateParamsCapabilities(TypedDict):
"""
The au_becs_debit_payments capability.
"""
+ automatic_indirect_tax: NotRequired[
+ "AccountUpdateParamsCapabilitiesAutomaticIndirectTax"
+ ]
+ """
+ The automatic_indirect_tax capability.
+ """
bacs_debit_payments: NotRequired[
"AccountUpdateParamsCapabilitiesBacsDebitPayments"
]
@@ -315,12 +329,28 @@ class AccountUpdateParamsCapabilities(TypedDict):
"""
The giropay_payments capability.
"""
+ gopay_payments: NotRequired["AccountUpdateParamsCapabilitiesGopayPayments"]
+ """
+ The gopay_payments capability.
+ """
grabpay_payments: NotRequired[
"AccountUpdateParamsCapabilitiesGrabpayPayments"
]
"""
The grabpay_payments capability.
"""
+ id_bank_transfer_payments: NotRequired[
+ "AccountUpdateParamsCapabilitiesIdBankTransferPayments"
+ ]
+ """
+ The id_bank_transfer_payments capability.
+ """
+ id_bank_transfer_payments_bca: NotRequired[
+ "AccountUpdateParamsCapabilitiesIdBankTransferPaymentsBca"
+ ]
+ """
+ The id_bank_transfer_payments_bca capability.
+ """
ideal_payments: NotRequired["AccountUpdateParamsCapabilitiesIdealPayments"]
"""
The ideal_payments capability.
@@ -435,6 +465,18 @@ class AccountUpdateParamsCapabilities(TypedDict):
"""
The paynow_payments capability.
"""
+ paypal_payments: NotRequired[
+ "AccountUpdateParamsCapabilitiesPaypalPayments"
+ ]
+ """
+ The paypal_payments capability.
+ """
+ paypay_payments: NotRequired[
+ "AccountUpdateParamsCapabilitiesPaypayPayments"
+ ]
+ """
+ The paypay_payments capability.
+ """
payto_payments: NotRequired["AccountUpdateParamsCapabilitiesPaytoPayments"]
"""
The payto_payments capability.
@@ -449,6 +491,16 @@ class AccountUpdateParamsCapabilities(TypedDict):
"""
The promptpay_payments capability.
"""
+ qris_payments: NotRequired["AccountUpdateParamsCapabilitiesQrisPayments"]
+ """
+ The qris_payments capability.
+ """
+ rechnung_payments: NotRequired[
+ "AccountUpdateParamsCapabilitiesRechnungPayments"
+ ]
+ """
+ The rechnung_payments capability.
+ """
revolut_pay_payments: NotRequired[
"AccountUpdateParamsCapabilitiesRevolutPayPayments"
]
@@ -479,12 +531,24 @@ class AccountUpdateParamsCapabilities(TypedDict):
"""
The sepa_debit_payments capability.
"""
+ shopeepay_payments: NotRequired[
+ "AccountUpdateParamsCapabilitiesShopeepayPayments"
+ ]
+ """
+ The shopeepay_payments capability.
+ """
sofort_payments: NotRequired[
"AccountUpdateParamsCapabilitiesSofortPayments"
]
"""
The sofort_payments capability.
"""
+ stripe_balance_payments: NotRequired[
+ "AccountUpdateParamsCapabilitiesStripeBalancePayments"
+ ]
+ """
+ The stripe_balance_payments capability.
+ """
swish_payments: NotRequired["AccountUpdateParamsCapabilitiesSwishPayments"]
"""
The swish_payments capability.
@@ -509,6 +573,24 @@ class AccountUpdateParamsCapabilities(TypedDict):
"""
The treasury capability.
"""
+ treasury_evolve: NotRequired[
+ "AccountUpdateParamsCapabilitiesTreasuryEvolve"
+ ]
+ """
+ The treasury_evolve capability.
+ """
+ treasury_fifth_third: NotRequired[
+ "AccountUpdateParamsCapabilitiesTreasuryFifthThird"
+ ]
+ """
+ The treasury_fifth_third capability.
+ """
+ treasury_goldman_sachs: NotRequired[
+ "AccountUpdateParamsCapabilitiesTreasuryGoldmanSachs"
+ ]
+ """
+ The treasury_goldman_sachs capability.
+ """
twint_payments: NotRequired["AccountUpdateParamsCapabilitiesTwintPayments"]
"""
The twint_payments capability.
@@ -573,6 +655,13 @@ class AccountUpdateParamsCapabilitiesAuBecsDebitPayments(TypedDict):
"""
+class AccountUpdateParamsCapabilitiesAutomaticIndirectTax(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountUpdateParamsCapabilitiesBacsDebitPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -678,6 +767,13 @@ class AccountUpdateParamsCapabilitiesGiropayPayments(TypedDict):
"""
+class AccountUpdateParamsCapabilitiesGopayPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountUpdateParamsCapabilitiesGrabpayPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -685,6 +781,20 @@ class AccountUpdateParamsCapabilitiesGrabpayPayments(TypedDict):
"""
+class AccountUpdateParamsCapabilitiesIdBankTransferPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
+class AccountUpdateParamsCapabilitiesIdBankTransferPaymentsBca(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountUpdateParamsCapabilitiesIdealPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -832,6 +942,20 @@ class AccountUpdateParamsCapabilitiesPaynowPayments(TypedDict):
"""
+class AccountUpdateParamsCapabilitiesPaypalPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
+class AccountUpdateParamsCapabilitiesPaypayPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountUpdateParamsCapabilitiesPaytoPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -853,6 +977,20 @@ class AccountUpdateParamsCapabilitiesPromptpayPayments(TypedDict):
"""
+class AccountUpdateParamsCapabilitiesQrisPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
+class AccountUpdateParamsCapabilitiesRechnungPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountUpdateParamsCapabilitiesRevolutPayPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -888,6 +1026,13 @@ class AccountUpdateParamsCapabilitiesSepaDebitPayments(TypedDict):
"""
+class AccountUpdateParamsCapabilitiesShopeepayPayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountUpdateParamsCapabilitiesSofortPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -895,6 +1040,13 @@ class AccountUpdateParamsCapabilitiesSofortPayments(TypedDict):
"""
+class AccountUpdateParamsCapabilitiesStripeBalancePayments(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountUpdateParamsCapabilitiesSwishPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -930,6 +1082,27 @@ class AccountUpdateParamsCapabilitiesTreasury(TypedDict):
"""
+class AccountUpdateParamsCapabilitiesTreasuryEvolve(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
+class AccountUpdateParamsCapabilitiesTreasuryFifthThird(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
+class AccountUpdateParamsCapabilitiesTreasuryGoldmanSachs(TypedDict):
+ requested: NotRequired[bool]
+ """
+ Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
+ """
+
+
class AccountUpdateParamsCapabilitiesTwintPayments(TypedDict):
requested: NotRequired[bool]
"""
@@ -1723,6 +1896,33 @@ class AccountUpdateParamsIndividualVerificationDocument(TypedDict):
"""
+class AccountUpdateParamsRiskControls(TypedDict):
+ charges: NotRequired["AccountUpdateParamsRiskControlsCharges"]
+ """
+ Represents the risk control status of charges. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
+ """
+ payouts: NotRequired["AccountUpdateParamsRiskControlsPayouts"]
+ """
+ Represents the risk control status of payouts. Please see [this page for more details](https://docs.stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
+ """
+
+
+class AccountUpdateParamsRiskControlsCharges(TypedDict):
+ pause_requested: NotRequired[bool]
+ """
+ To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
+ There can be a delay before the risk control is paused or unpaused.
+ """
+
+
+class AccountUpdateParamsRiskControlsPayouts(TypedDict):
+ pause_requested: NotRequired[bool]
+ """
+ To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
+ There can be a delay before the risk control is paused or unpaused.
+ """
+
+
class AccountUpdateParamsSettings(TypedDict):
bacs_debit_payments: NotRequired[
"AccountUpdateParamsSettingsBacsDebitPayments"
@@ -1730,10 +1930,20 @@ class AccountUpdateParamsSettings(TypedDict):
"""
Settings specific to Bacs Direct Debit payments.
"""
+ bank_bca_onboarding: NotRequired[
+ "AccountUpdateParamsSettingsBankBcaOnboarding"
+ ]
+ """
+ Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
+ """
branding: NotRequired["AccountUpdateParamsSettingsBranding"]
"""
Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
"""
+ capital: NotRequired["AccountUpdateParamsSettingsCapital"]
+ """
+ Settings specific to the account's use of the Capital product.
+ """
card_issuing: NotRequired["AccountUpdateParamsSettingsCardIssuing"]
"""
Settings specific to the account's use of the Card Issuing product.
@@ -1754,6 +1964,14 @@ class AccountUpdateParamsSettings(TypedDict):
"""
Settings specific to the account's payouts.
"""
+ paypay_payments: NotRequired["AccountUpdateParamsSettingsPaypayPayments"]
+ """
+ Settings specific to the PayPay payments method.
+ """
+ tax_forms: NotRequired["AccountUpdateParamsSettingsTaxForms"]
+ """
+ Settings specific to the account's tax forms.
+ """
treasury: NotRequired["AccountUpdateParamsSettingsTreasury"]
"""
Settings specific to the account's Treasury FinancialAccounts.
@@ -1767,6 +1985,17 @@ class AccountUpdateParamsSettingsBacsDebitPayments(TypedDict):
"""
+class AccountUpdateParamsSettingsBankBcaOnboarding(TypedDict):
+ account_holder_name: NotRequired[str]
+ """
+ Bank BCA business account holder name
+ """
+ business_account_number: NotRequired[str]
+ """
+ Bank BCA business account number
+ """
+
+
class AccountUpdateParamsSettingsBranding(TypedDict):
icon: NotRequired[str]
"""
@@ -1786,6 +2015,17 @@ class AccountUpdateParamsSettingsBranding(TypedDict):
"""
+class AccountUpdateParamsSettingsCapital(TypedDict):
+ payout_destination: NotRequired[Dict[str, str]]
+ """
+ Per-currency mapping of user-selected destination accounts used to pay out loans.
+ """
+ payout_destination_selector: NotRequired[Dict[str, List[str]]]
+ """
+ Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
+ """
+
+
class AccountUpdateParamsSettingsCardIssuing(TypedDict):
tos_acceptance: NotRequired[
"AccountUpdateParamsSettingsCardIssuingTosAcceptance"
@@ -1922,6 +2162,20 @@ class AccountUpdateParamsSettingsPayoutsSchedule(TypedDict):
"""
+class AccountUpdateParamsSettingsPaypayPayments(TypedDict):
+ goods_type: NotRequired[Literal["digital_content", "other"]]
+ """
+ Whether your business sells digital content or not.
+ """
+
+
+class AccountUpdateParamsSettingsTaxForms(TypedDict):
+ consented_to_paperless_delivery: NotRequired[bool]
+ """
+ Whether the account opted out of receiving their tax forms by postal delivery.
+ """
+
+
class AccountUpdateParamsSettingsTreasury(TypedDict):
tos_acceptance: NotRequired[
"AccountUpdateParamsSettingsTreasuryTosAcceptance"
diff --git a/stripe/params/_charge_capture_params.py b/stripe/params/_charge_capture_params.py
index 340c3e3db..b3eb9f6fb 100644
--- a/stripe/params/_charge_capture_params.py
+++ b/stripe/params/_charge_capture_params.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
-from typing_extensions import NotRequired, TypedDict
+from typing_extensions import Literal, NotRequired, TypedDict
class ChargeCaptureParams(RequestOptions):
@@ -22,6 +22,10 @@ class ChargeCaptureParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
+ payment_details: NotRequired["ChargeCaptureParamsPaymentDetails"]
+ """
+ Provides industry-specific information about the charge.
+ """
receipt_email: NotRequired[str]
"""
The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode.
@@ -46,6 +50,1730 @@ class ChargeCaptureParams(RequestOptions):
"""
+class ChargeCaptureParamsPaymentDetails(TypedDict):
+ car_rental: NotRequired["ChargeCaptureParamsPaymentDetailsCarRental"]
+ """
+ Car rental details for this PaymentIntent.
+ """
+ car_rental_data: NotRequired[
+ "Literal['']|List[ChargeCaptureParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
+ customer_reference: NotRequired["Literal['']|str"]
+ """
+ A unique value to identify the customer. This field is available only for card payments.
+
+ This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
+ """
+ event_details: NotRequired["ChargeCaptureParamsPaymentDetailsEventDetails"]
+ """
+ Event details for this PaymentIntent
+ """
+ flight: NotRequired["ChargeCaptureParamsPaymentDetailsFlight"]
+ """
+ Flight reservation details for this PaymentIntent
+ """
+ flight_data: NotRequired[
+ "Literal['']|List[ChargeCaptureParamsPaymentDetailsFlightDatum]"
+ ]
+ """
+ Flight data for this PaymentIntent.
+ """
+ lodging: NotRequired["ChargeCaptureParamsPaymentDetailsLodging"]
+ """
+ Lodging reservation details for this PaymentIntent
+ """
+ lodging_data: NotRequired[
+ "Literal['']|List[ChargeCaptureParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
+ order_reference: NotRequired["Literal['']|str"]
+ """
+ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
+
+ Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
+
+ For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
+ """
+ subscription: NotRequired["ChargeCaptureParamsPaymentDetailsSubscription"]
+ """
+ Subscription details for this PaymentIntent
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRental(TypedDict):
+ affiliate: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsCarRentalAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ booking_number: str
+ """
+ The booking number associated with the car rental.
+ """
+ car_class_code: NotRequired[str]
+ """
+ Class code of the car.
+ """
+ car_make: NotRequired[str]
+ """
+ Make of the car.
+ """
+ car_model: NotRequired[str]
+ """
+ Model of the car.
+ """
+ company: NotRequired[str]
+ """
+ The name of the rental car company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the car rental company.
+ """
+ days_rented: int
+ """
+ Number of days the car is being rented.
+ """
+ delivery: NotRequired["ChargeCaptureParamsPaymentDetailsCarRentalDelivery"]
+ """
+ Delivery details for this purchase.
+ """
+ distance: NotRequired["ChargeCaptureParamsPaymentDetailsCarRentalDistance"]
+ """
+ The details of the distance traveled during the rental period.
+ """
+ drivers: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsCarRentalDriver"]
+ ]
+ """
+ The details of the passengers in the travel reservation
+ """
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "late_return",
+ "one_way_service",
+ "parking_violation",
+ ]
+ ]
+ ]
+ """
+ List of additional charges being billed.
+ """
+ no_show: NotRequired[bool]
+ """
+ Indicates if the customer did not keep nor cancel their booking.
+ """
+ pickup_address: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsCarRentalPickupAddress"
+ ]
+ """
+ Car pick-up address.
+ """
+ pickup_at: int
+ """
+ Car pick-up time. Measured in seconds since the Unix epoch.
+ """
+ pickup_location_name: NotRequired[str]
+ """
+ Name of the pickup location.
+ """
+ rate_amount: NotRequired[int]
+ """
+ Rental rate.
+ """
+ rate_interval: NotRequired[Literal["day", "month", "week"]]
+ """
+ The frequency at which the rate amount is applied. One of `day`, `week` or `month`
+ """
+ renter_name: NotRequired[str]
+ """
+ The name of the person or entity renting the car.
+ """
+ return_address: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsCarRentalReturnAddress"
+ ]
+ """
+ Car return address.
+ """
+ return_at: int
+ """
+ Car return time. Measured in seconds since the Unix epoch.
+ """
+ return_location_name: NotRequired[str]
+ """
+ Name of the return location.
+ """
+ tax_exempt: NotRequired[bool]
+ """
+ Indicates whether the goods or services are tax-exempt or tax is not collected.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ The vehicle identification number.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsCarRentalDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDeliveryRecipient(TypedDict):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDistance(TypedDict):
+ amount: NotRequired[int]
+ """
+ Distance traveled.
+ """
+ unit: NotRequired[Literal["kilometers", "miles"]]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDriver(TypedDict):
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Full name of the person or entity on the car reservation.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalPickupAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalReturnAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumAffiliate"
+ ]
+ """
+ Affiliate (such as travel agency) details for the rental.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumDistance"
+ ]
+ """
+ Distance details for the rental.
+ """
+ drivers: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsCarRentalDatumDriver"]
+ ]
+ """
+ List of drivers for the rental.
+ """
+ drop_off: "ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOff"
+ """
+ Drop-off location details.
+ """
+ insurances: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsCarRentalDatumInsurance"]
+ ]
+ """
+ Insurance details for the rental.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Indicates if the customer was a no-show.
+ """
+ pickup: "ChargeCaptureParamsPaymentDetailsCarRentalDatumPickup"
+ """
+ Pickup location details.
+ """
+ renter_name: NotRequired[str]
+ """
+ Name of the person renting the vehicle.
+ """
+ total: "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotal"
+ """
+ Total cost breakdown for the rental.
+ """
+ vehicle: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumVehicle"
+ ]
+ """
+ Vehicle details for the rental.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumDistance(TypedDict):
+ amount: int
+ """
+ Distance traveled.
+ """
+ unit: Literal["kilometers", "miles"]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
+ ]
+ """
+ Driver's date of birth.
+ """
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
+ """
+ Day of birth (1-31).
+ """
+ month: int
+ """
+ Month of birth (1-12).
+ """
+ year: int
+ """
+ Year of birth (must be greater than 1900).
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: "ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress(TypedDict):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumInsurance(TypedDict):
+ amount: int
+ """
+ Amount of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: "ChargeCaptureParamsPaymentDetailsCarRentalDatumPickupAddress"
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumPickupAddress(TypedDict):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
+ """
+ Total amount in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge"]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ Literal["days", "kilometers", "miles", "months", "weeks"]
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired["ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTax"]
+ """
+ Tax breakdown for the rental.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts(TypedDict):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax"]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax(TypedDict):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
+ Literal[
+ "cargo_van",
+ "compact",
+ "economy",
+ "exotic",
+ "exotic_suv",
+ "fifteen_passenger_van",
+ "four_wheel_drive",
+ "full_size",
+ "intermediate",
+ "large_suv",
+ "large_truck",
+ "luxury",
+ "medium_suv",
+ "midsize",
+ "mini",
+ "minivan",
+ "miscellaneous",
+ "moped",
+ "moving_van",
+ "premium",
+ "regular",
+ "small_medium_truck",
+ "small_suv",
+ "special",
+ "standard",
+ "stretch",
+ "subcompact",
+ "taxi",
+ "twelve_foot_truck",
+ "twelve_passenger_van",
+ "twenty_foot_truck",
+ "twenty_four_foot_truck",
+ "twenty_six_foot_truck",
+ "unique",
+ ]
+ ]
+ """
+ Type of the rental vehicle.
+ """
+ vehicle_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsEventDetails(TypedDict):
+ access_controlled_venue: NotRequired[bool]
+ """
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
+ address: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsEventDetailsAddress"
+ ]
+ """
+ The event location's address.
+ """
+ affiliate: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsEventDetailsAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ company: NotRequired[str]
+ """
+ The name of the company
+ """
+ delivery: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsEventDetailsDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Event end time. Measured in seconds since the Unix epoch.
+ """
+ genre: NotRequired[str]
+ """
+ Type of the event entertainment (concert, sports event etc)
+ """
+ name: str
+ """
+ The name of the event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Event start time. Measured in seconds since the Unix epoch.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsEventDetailsAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsEventDetailsAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsEventDetailsDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient(
+ TypedDict
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlight(TypedDict):
+ affiliate: NotRequired["ChargeCaptureParamsPaymentDetailsFlightAffiliate"]
+ """
+ Affiliate details for this purchase.
+ """
+ agency_number: NotRequired[str]
+ """
+ The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
+ """
+ delivery: NotRequired["ChargeCaptureParamsPaymentDetailsFlightDelivery"]
+ """
+ Delivery details for this purchase.
+ """
+ passenger_name: NotRequired[str]
+ """
+ The name of the person or entity on the reservation.
+ """
+ passengers: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsFlightPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation.
+ """
+ segments: List["ChargeCaptureParamsPaymentDetailsFlightSegment"]
+ """
+ The individual flight segments associated with the trip.
+ """
+ ticket_number: NotRequired[str]
+ """
+ The ticket number associated with the travel reservation.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsFlightDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDeliveryRecipient(TypedDict):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the flight reservation.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightSegment(TypedDict):
+ amount: NotRequired[int]
+ """
+ The flight segment amount.
+ """
+ arrival_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the arrival airport.
+ """
+ arrives_at: NotRequired[int]
+ """
+ The arrival time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
+ """
+ departs_at: int
+ """
+ The departure time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ departure_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the departure airport.
+ """
+ flight_number: NotRequired[str]
+ """
+ The flight number associated with the segment
+ """
+ service_class: NotRequired[
+ Literal["business", "economy", "first", "premium_economy"]
+ ]
+ """
+ The fare class for the segment.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDatum(TypedDict):
+ affiliate: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsFlightDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Reservation reference.
+ """
+ computerized_reservation_system: NotRequired[str]
+ """
+ Computerized reservation system used to make the reservation and purchase the ticket.
+ """
+ endorsements_and_restrictions: NotRequired[str]
+ """
+ Ticket restrictions.
+ """
+ insurances: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsFlightDatumInsurance"]
+ ]
+ """
+ List of insurances.
+ """
+ passengers: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsFlightDatumPassenger"]
+ ]
+ """
+ List of passengers.
+ """
+ segments: List["ChargeCaptureParamsPaymentDetailsFlightDatumSegment"]
+ """
+ List of flight segments.
+ """
+ ticket_electronically_issued_indicator: NotRequired[bool]
+ """
+ Electronic ticket indicator.
+ """
+ total: "ChargeCaptureParamsPaymentDetailsFlightDatumTotal"
+ """
+ Total cost breakdown.
+ """
+ transaction_type: NotRequired[
+ Literal[
+ "exchange_ticket", "miscellaneous", "refund", "ticket_purchase"
+ ]
+ ]
+ """
+ Type of flight transaction.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+ travel_authorization_code: NotRequired[str]
+ """
+ Code provided by the company to a travel agent authorizing ticket issuance.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDatumInsurance(TypedDict):
+ amount: int
+ """
+ Insurance cost.
+ """
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Insurance company name.
+ """
+ insurance_type: Literal[
+ "baggage", "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDatumPassenger(TypedDict):
+ name: str
+ """
+ Passenger's full name.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDatumSegment(TypedDict):
+ amount: NotRequired[int]
+ """
+ Segment fare amount.
+ """
+ arrival: "ChargeCaptureParamsPaymentDetailsFlightDatumSegmentArrival"
+ """
+ Arrival details.
+ """
+ carrier_code: str
+ """
+ Airline carrier code.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Carrier name.
+ """
+ currency: NotRequired[str]
+ """
+ Segment currency.
+ """
+ departure: "ChargeCaptureParamsPaymentDetailsFlightDatumSegmentDeparture"
+ """
+ Departure details.
+ """
+ exchange_ticket_number: NotRequired[str]
+ """
+ Exchange ticket number.
+ """
+ fare_basis_code: NotRequired[str]
+ """
+ Fare basis code.
+ """
+ fees: NotRequired[int]
+ """
+ Additional fees.
+ """
+ flight_number: NotRequired[str]
+ """
+ Flight number.
+ """
+ is_stop_over_indicator: NotRequired[bool]
+ """
+ Stopover indicator.
+ """
+ refundable: NotRequired[bool]
+ """
+ Refundable ticket indicator.
+ """
+ service_class: Literal[
+ "business", "economy", "first_class", "premium_economy"
+ ]
+ """
+ Class of service.
+ """
+ tax_amount: NotRequired[int]
+ """
+ Tax amount for segment.
+ """
+ ticket_number: NotRequired[str]
+ """
+ Ticket number.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDatumSegmentArrival(TypedDict):
+ airport: str
+ """
+ Arrival airport IATA code.
+ """
+ arrives_at: NotRequired[int]
+ """
+ Arrival date/time.
+ """
+ city: NotRequired[str]
+ """
+ Arrival city.
+ """
+ country: NotRequired[str]
+ """
+ Arrival country.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDatumSegmentDeparture(TypedDict):
+ airport: str
+ """
+ Departure airport IATA code.
+ """
+ city: NotRequired[str]
+ """
+ Departure city.
+ """
+ country: NotRequired[str]
+ """
+ Departure country.
+ """
+ departs_at: int
+ """
+ Departure date/time.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDatumTotal(TypedDict):
+ amount: int
+ """
+ Total flight amount.
+ """
+ credit_reason: NotRequired[
+ Literal[
+ "other",
+ "partial_ticket_refund",
+ "passenger_transport_ancillary_cancellation",
+ "ticket_and_ancillary_cancellation",
+ "ticket_cancellation",
+ ]
+ ]
+ """
+ Reason for credit.
+ """
+ currency: NotRequired[str]
+ """
+ Total currency.
+ """
+ discounts: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsFlightDatumTotalDiscounts"
+ ]
+ """
+ Discount details.
+ """
+ extra_charges: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge"]
+ ]
+ """
+ Additional charges.
+ """
+ tax: NotRequired["ChargeCaptureParamsPaymentDetailsFlightDatumTotalTax"]
+ """
+ Tax breakdown.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDatumTotalDiscounts(TypedDict):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount of additional charges.
+ """
+ type: NotRequired[
+ Literal["additional_fees", "ancillary_service_charges", "exchange_fee"]
+ ]
+ """
+ Type of additional charges.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDatumTotalTax(TypedDict):
+ taxes: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsFlightDatumTotalTaxTax"]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsFlightDatumTotalTaxTax(TypedDict):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodging(TypedDict):
+ address: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingAddress"]
+ """
+ The lodging location's address.
+ """
+ adults: NotRequired[int]
+ """
+ The number of adults on the booking
+ """
+ affiliate: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingAffiliate"]
+ """
+ Affiliate details for this purchase.
+ """
+ booking_number: NotRequired[str]
+ """
+ The booking number associated with the lodging reservation.
+ """
+ category: NotRequired[Literal["hotel", "vacation_rental"]]
+ """
+ The lodging category
+ """
+ checkin_at: int
+ """
+ Lodging check-in time. Measured in seconds since the Unix epoch.
+ """
+ checkout_at: int
+ """
+ Lodging check-out time. Measured in seconds since the Unix epoch.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the lodging company.
+ """
+ daily_room_rate_amount: NotRequired[int]
+ """
+ The daily lodging room rate.
+ """
+ delivery: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingDelivery"]
+ """
+ Delivery details for this purchase.
+ """
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "gift_shop",
+ "laundry",
+ "mini_bar",
+ "other",
+ "restaurant",
+ "telephone",
+ ]
+ ]
+ ]
+ """
+ List of additional charges being billed.
+ """
+ fire_safety_act_compliance: NotRequired[bool]
+ """
+ Indicates whether the lodging location is compliant with the Fire Safety Act.
+ """
+ name: NotRequired[str]
+ """
+ The name of the lodging location.
+ """
+ no_show: NotRequired[bool]
+ """
+ Indicates if the customer did not keep their booking while failing to cancel the reservation.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ The number of rooms on the booking
+ """
+ passengers: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsLodgingPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation
+ """
+ property_phone_number: NotRequired[str]
+ """
+ The phone number of the lodging location.
+ """
+ room_class: NotRequired[str]
+ """
+ The room class for this purchase.
+ """
+ room_nights: NotRequired[int]
+ """
+ The number of room nights
+ """
+ total_room_tax_amount: NotRequired[int]
+ """
+ The total tax amount associating with the room reservation.
+ """
+ total_tax_amount: NotRequired[int]
+ """
+ The total tax amount
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsLodgingDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDeliveryRecipient(TypedDict):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the lodging reservation.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingDatumHost"]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "ChargeCaptureParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDatumAccommodation(TypedDict):
+ accommodation_type: NotRequired[
+ Literal[
+ "apartment",
+ "cabana",
+ "house",
+ "penthouse",
+ "room",
+ "standard",
+ "suite",
+ "villa",
+ ]
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ Literal["hostel", "hotel", "owner", "rental_agency"]
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDatumHostAddress(TypedDict):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge"]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired["ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTax"]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts(TypedDict):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ Literal[
+ "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant"
+ ]
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List["ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax"]
+ ]
+ """
+ Tax details.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax(TypedDict):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsSubscription(TypedDict):
+ affiliate: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsSubscriptionAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ auto_renewal: NotRequired[bool]
+ """
+ Info whether the subscription will be auto renewed upon expiry.
+ """
+ billing_interval: NotRequired[
+ "ChargeCaptureParamsPaymentDetailsSubscriptionBillingInterval"
+ ]
+ """
+ Subscription billing details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Subscription end time. Measured in seconds since the Unix epoch.
+ """
+ name: str
+ """
+ Name of the product on subscription. e.g. Apple Music Subscription
+ """
+ starts_at: NotRequired[int]
+ """
+ Subscription start time. Measured in seconds since the Unix epoch.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsSubscriptionAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeCaptureParamsPaymentDetailsSubscriptionBillingInterval(TypedDict):
+ count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+
+
class ChargeCaptureParamsTransferData(TypedDict):
amount: NotRequired[int]
"""
diff --git a/stripe/params/_charge_modify_params.py b/stripe/params/_charge_modify_params.py
index b2cc347c2..9ce3701f6 100644
--- a/stripe/params/_charge_modify_params.py
+++ b/stripe/params/_charge_modify_params.py
@@ -26,6 +26,10 @@ class ChargeModifyParams(RequestOptions):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
+ payment_details: NotRequired["ChargeModifyParamsPaymentDetails"]
+ """
+ Provides industry-specific information about the charge.
+ """
receipt_email: NotRequired[str]
"""
This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.
@@ -47,6 +51,1726 @@ class ChargeModifyParamsFraudDetails(TypedDict):
"""
+class ChargeModifyParamsPaymentDetails(TypedDict):
+ car_rental: NotRequired["ChargeModifyParamsPaymentDetailsCarRental"]
+ """
+ Car rental details for this PaymentIntent.
+ """
+ car_rental_data: NotRequired[
+ "Literal['']|List[ChargeModifyParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
+ customer_reference: NotRequired["Literal['']|str"]
+ """
+ A unique value to identify the customer. This field is available only for card payments.
+
+ This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
+ """
+ event_details: NotRequired["ChargeModifyParamsPaymentDetailsEventDetails"]
+ """
+ Event details for this PaymentIntent
+ """
+ flight: NotRequired["ChargeModifyParamsPaymentDetailsFlight"]
+ """
+ Flight reservation details for this PaymentIntent
+ """
+ flight_data: NotRequired[
+ "Literal['']|List[ChargeModifyParamsPaymentDetailsFlightDatum]"
+ ]
+ """
+ Flight data for this PaymentIntent.
+ """
+ lodging: NotRequired["ChargeModifyParamsPaymentDetailsLodging"]
+ """
+ Lodging reservation details for this PaymentIntent
+ """
+ lodging_data: NotRequired[
+ "Literal['']|List[ChargeModifyParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
+ order_reference: NotRequired["Literal['']|str"]
+ """
+ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
+
+ Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
+
+ For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
+ """
+ subscription: NotRequired["ChargeModifyParamsPaymentDetailsSubscription"]
+ """
+ Subscription details for this PaymentIntent
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRental(TypedDict):
+ affiliate: NotRequired[
+ "ChargeModifyParamsPaymentDetailsCarRentalAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ booking_number: str
+ """
+ The booking number associated with the car rental.
+ """
+ car_class_code: NotRequired[str]
+ """
+ Class code of the car.
+ """
+ car_make: NotRequired[str]
+ """
+ Make of the car.
+ """
+ car_model: NotRequired[str]
+ """
+ Model of the car.
+ """
+ company: NotRequired[str]
+ """
+ The name of the rental car company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the car rental company.
+ """
+ days_rented: int
+ """
+ Number of days the car is being rented.
+ """
+ delivery: NotRequired["ChargeModifyParamsPaymentDetailsCarRentalDelivery"]
+ """
+ Delivery details for this purchase.
+ """
+ distance: NotRequired["ChargeModifyParamsPaymentDetailsCarRentalDistance"]
+ """
+ The details of the distance traveled during the rental period.
+ """
+ drivers: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsCarRentalDriver"]
+ ]
+ """
+ The details of the passengers in the travel reservation
+ """
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "late_return",
+ "one_way_service",
+ "parking_violation",
+ ]
+ ]
+ ]
+ """
+ List of additional charges being billed.
+ """
+ no_show: NotRequired[bool]
+ """
+ Indicates if the customer did not keep nor cancel their booking.
+ """
+ pickup_address: NotRequired[
+ "ChargeModifyParamsPaymentDetailsCarRentalPickupAddress"
+ ]
+ """
+ Car pick-up address.
+ """
+ pickup_at: int
+ """
+ Car pick-up time. Measured in seconds since the Unix epoch.
+ """
+ pickup_location_name: NotRequired[str]
+ """
+ Name of the pickup location.
+ """
+ rate_amount: NotRequired[int]
+ """
+ Rental rate.
+ """
+ rate_interval: NotRequired[Literal["day", "month", "week"]]
+ """
+ The frequency at which the rate amount is applied. One of `day`, `week` or `month`
+ """
+ renter_name: NotRequired[str]
+ """
+ The name of the person or entity renting the car.
+ """
+ return_address: NotRequired[
+ "ChargeModifyParamsPaymentDetailsCarRentalReturnAddress"
+ ]
+ """
+ Car return address.
+ """
+ return_at: int
+ """
+ Car return time. Measured in seconds since the Unix epoch.
+ """
+ return_location_name: NotRequired[str]
+ """
+ Name of the return location.
+ """
+ tax_exempt: NotRequired[bool]
+ """
+ Indicates whether the goods or services are tax-exempt or tax is not collected.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ The vehicle identification number.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "ChargeModifyParamsPaymentDetailsCarRentalDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDeliveryRecipient(TypedDict):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDistance(TypedDict):
+ amount: NotRequired[int]
+ """
+ Distance traveled.
+ """
+ unit: NotRequired[Literal["kilometers", "miles"]]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDriver(TypedDict):
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Full name of the person or entity on the car reservation.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalPickupAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalReturnAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumAffiliate"
+ ]
+ """
+ Affiliate (such as travel agency) details for the rental.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumDistance"
+ ]
+ """
+ Distance details for the rental.
+ """
+ drivers: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsCarRentalDatumDriver"]
+ ]
+ """
+ List of drivers for the rental.
+ """
+ drop_off: "ChargeModifyParamsPaymentDetailsCarRentalDatumDropOff"
+ """
+ Drop-off location details.
+ """
+ insurances: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsCarRentalDatumInsurance"]
+ ]
+ """
+ Insurance details for the rental.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Indicates if the customer was a no-show.
+ """
+ pickup: "ChargeModifyParamsPaymentDetailsCarRentalDatumPickup"
+ """
+ Pickup location details.
+ """
+ renter_name: NotRequired[str]
+ """
+ Name of the person renting the vehicle.
+ """
+ total: "ChargeModifyParamsPaymentDetailsCarRentalDatumTotal"
+ """
+ Total cost breakdown for the rental.
+ """
+ vehicle: NotRequired[
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumVehicle"
+ ]
+ """
+ Vehicle details for the rental.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumDistance(TypedDict):
+ amount: int
+ """
+ Distance traveled.
+ """
+ unit: Literal["kilometers", "miles"]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
+ ]
+ """
+ Driver's date of birth.
+ """
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
+ """
+ Day of birth (1-31).
+ """
+ month: int
+ """
+ Month of birth (1-12).
+ """
+ year: int
+ """
+ Year of birth (must be greater than 1900).
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: "ChargeModifyParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumDropOffAddress(TypedDict):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumInsurance(TypedDict):
+ amount: int
+ """
+ Amount of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: "ChargeModifyParamsPaymentDetailsCarRentalDatumPickupAddress"
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumPickupAddress(TypedDict):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
+ """
+ Total amount in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "ChargeModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge"]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ Literal["days", "kilometers", "miles", "months", "weeks"]
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired["ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTax"]
+ """
+ Tax breakdown for the rental.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts(TypedDict):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax"]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax(TypedDict):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
+ Literal[
+ "cargo_van",
+ "compact",
+ "economy",
+ "exotic",
+ "exotic_suv",
+ "fifteen_passenger_van",
+ "four_wheel_drive",
+ "full_size",
+ "intermediate",
+ "large_suv",
+ "large_truck",
+ "luxury",
+ "medium_suv",
+ "midsize",
+ "mini",
+ "minivan",
+ "miscellaneous",
+ "moped",
+ "moving_van",
+ "premium",
+ "regular",
+ "small_medium_truck",
+ "small_suv",
+ "special",
+ "standard",
+ "stretch",
+ "subcompact",
+ "taxi",
+ "twelve_foot_truck",
+ "twelve_passenger_van",
+ "twenty_foot_truck",
+ "twenty_four_foot_truck",
+ "twenty_six_foot_truck",
+ "unique",
+ ]
+ ]
+ """
+ Type of the rental vehicle.
+ """
+ vehicle_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
+ """
+
+
+class ChargeModifyParamsPaymentDetailsEventDetails(TypedDict):
+ access_controlled_venue: NotRequired[bool]
+ """
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
+ address: NotRequired["ChargeModifyParamsPaymentDetailsEventDetailsAddress"]
+ """
+ The event location's address.
+ """
+ affiliate: NotRequired[
+ "ChargeModifyParamsPaymentDetailsEventDetailsAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ company: NotRequired[str]
+ """
+ The name of the company
+ """
+ delivery: NotRequired[
+ "ChargeModifyParamsPaymentDetailsEventDetailsDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Event end time. Measured in seconds since the Unix epoch.
+ """
+ genre: NotRequired[str]
+ """
+ Type of the event entertainment (concert, sports event etc)
+ """
+ name: str
+ """
+ The name of the event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Event start time. Measured in seconds since the Unix epoch.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsEventDetailsAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeModifyParamsPaymentDetailsEventDetailsAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsEventDetailsDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "ChargeModifyParamsPaymentDetailsEventDetailsDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsEventDetailsDeliveryRecipient(TypedDict):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlight(TypedDict):
+ affiliate: NotRequired["ChargeModifyParamsPaymentDetailsFlightAffiliate"]
+ """
+ Affiliate details for this purchase.
+ """
+ agency_number: NotRequired[str]
+ """
+ The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
+ """
+ delivery: NotRequired["ChargeModifyParamsPaymentDetailsFlightDelivery"]
+ """
+ Delivery details for this purchase.
+ """
+ passenger_name: NotRequired[str]
+ """
+ The name of the person or entity on the reservation.
+ """
+ passengers: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsFlightPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation.
+ """
+ segments: List["ChargeModifyParamsPaymentDetailsFlightSegment"]
+ """
+ The individual flight segments associated with the trip.
+ """
+ ticket_number: NotRequired[str]
+ """
+ The ticket number associated with the travel reservation.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "ChargeModifyParamsPaymentDetailsFlightDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDeliveryRecipient(TypedDict):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the flight reservation.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightSegment(TypedDict):
+ amount: NotRequired[int]
+ """
+ The flight segment amount.
+ """
+ arrival_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the arrival airport.
+ """
+ arrives_at: NotRequired[int]
+ """
+ The arrival time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
+ """
+ departs_at: int
+ """
+ The departure time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ departure_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the departure airport.
+ """
+ flight_number: NotRequired[str]
+ """
+ The flight number associated with the segment
+ """
+ service_class: NotRequired[
+ Literal["business", "economy", "first", "premium_economy"]
+ ]
+ """
+ The fare class for the segment.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDatum(TypedDict):
+ affiliate: NotRequired[
+ "ChargeModifyParamsPaymentDetailsFlightDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Reservation reference.
+ """
+ computerized_reservation_system: NotRequired[str]
+ """
+ Computerized reservation system used to make the reservation and purchase the ticket.
+ """
+ endorsements_and_restrictions: NotRequired[str]
+ """
+ Ticket restrictions.
+ """
+ insurances: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsFlightDatumInsurance"]
+ ]
+ """
+ List of insurances.
+ """
+ passengers: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsFlightDatumPassenger"]
+ ]
+ """
+ List of passengers.
+ """
+ segments: List["ChargeModifyParamsPaymentDetailsFlightDatumSegment"]
+ """
+ List of flight segments.
+ """
+ ticket_electronically_issued_indicator: NotRequired[bool]
+ """
+ Electronic ticket indicator.
+ """
+ total: "ChargeModifyParamsPaymentDetailsFlightDatumTotal"
+ """
+ Total cost breakdown.
+ """
+ transaction_type: NotRequired[
+ Literal[
+ "exchange_ticket", "miscellaneous", "refund", "ticket_purchase"
+ ]
+ ]
+ """
+ Type of flight transaction.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+ travel_authorization_code: NotRequired[str]
+ """
+ Code provided by the company to a travel agent authorizing ticket issuance.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDatumInsurance(TypedDict):
+ amount: int
+ """
+ Insurance cost.
+ """
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Insurance company name.
+ """
+ insurance_type: Literal[
+ "baggage", "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDatumPassenger(TypedDict):
+ name: str
+ """
+ Passenger's full name.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDatumSegment(TypedDict):
+ amount: NotRequired[int]
+ """
+ Segment fare amount.
+ """
+ arrival: "ChargeModifyParamsPaymentDetailsFlightDatumSegmentArrival"
+ """
+ Arrival details.
+ """
+ carrier_code: str
+ """
+ Airline carrier code.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Carrier name.
+ """
+ currency: NotRequired[str]
+ """
+ Segment currency.
+ """
+ departure: "ChargeModifyParamsPaymentDetailsFlightDatumSegmentDeparture"
+ """
+ Departure details.
+ """
+ exchange_ticket_number: NotRequired[str]
+ """
+ Exchange ticket number.
+ """
+ fare_basis_code: NotRequired[str]
+ """
+ Fare basis code.
+ """
+ fees: NotRequired[int]
+ """
+ Additional fees.
+ """
+ flight_number: NotRequired[str]
+ """
+ Flight number.
+ """
+ is_stop_over_indicator: NotRequired[bool]
+ """
+ Stopover indicator.
+ """
+ refundable: NotRequired[bool]
+ """
+ Refundable ticket indicator.
+ """
+ service_class: Literal[
+ "business", "economy", "first_class", "premium_economy"
+ ]
+ """
+ Class of service.
+ """
+ tax_amount: NotRequired[int]
+ """
+ Tax amount for segment.
+ """
+ ticket_number: NotRequired[str]
+ """
+ Ticket number.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDatumSegmentArrival(TypedDict):
+ airport: str
+ """
+ Arrival airport IATA code.
+ """
+ arrives_at: NotRequired[int]
+ """
+ Arrival date/time.
+ """
+ city: NotRequired[str]
+ """
+ Arrival city.
+ """
+ country: NotRequired[str]
+ """
+ Arrival country.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDatumSegmentDeparture(TypedDict):
+ airport: str
+ """
+ Departure airport IATA code.
+ """
+ city: NotRequired[str]
+ """
+ Departure city.
+ """
+ country: NotRequired[str]
+ """
+ Departure country.
+ """
+ departs_at: int
+ """
+ Departure date/time.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDatumTotal(TypedDict):
+ amount: int
+ """
+ Total flight amount.
+ """
+ credit_reason: NotRequired[
+ Literal[
+ "other",
+ "partial_ticket_refund",
+ "passenger_transport_ancillary_cancellation",
+ "ticket_and_ancillary_cancellation",
+ "ticket_cancellation",
+ ]
+ ]
+ """
+ Reason for credit.
+ """
+ currency: NotRequired[str]
+ """
+ Total currency.
+ """
+ discounts: NotRequired[
+ "ChargeModifyParamsPaymentDetailsFlightDatumTotalDiscounts"
+ ]
+ """
+ Discount details.
+ """
+ extra_charges: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsFlightDatumTotalExtraCharge"]
+ ]
+ """
+ Additional charges.
+ """
+ tax: NotRequired["ChargeModifyParamsPaymentDetailsFlightDatumTotalTax"]
+ """
+ Tax breakdown.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDatumTotalDiscounts(TypedDict):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDatumTotalExtraCharge(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount of additional charges.
+ """
+ type: NotRequired[
+ Literal["additional_fees", "ancillary_service_charges", "exchange_fee"]
+ ]
+ """
+ Type of additional charges.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDatumTotalTax(TypedDict):
+ taxes: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsFlightDatumTotalTaxTax"]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsFlightDatumTotalTaxTax(TypedDict):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodging(TypedDict):
+ address: NotRequired["ChargeModifyParamsPaymentDetailsLodgingAddress"]
+ """
+ The lodging location's address.
+ """
+ adults: NotRequired[int]
+ """
+ The number of adults on the booking
+ """
+ affiliate: NotRequired["ChargeModifyParamsPaymentDetailsLodgingAffiliate"]
+ """
+ Affiliate details for this purchase.
+ """
+ booking_number: NotRequired[str]
+ """
+ The booking number associated with the lodging reservation.
+ """
+ category: NotRequired[Literal["hotel", "vacation_rental"]]
+ """
+ The lodging category
+ """
+ checkin_at: int
+ """
+ Lodging check-in time. Measured in seconds since the Unix epoch.
+ """
+ checkout_at: int
+ """
+ Lodging check-out time. Measured in seconds since the Unix epoch.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the lodging company.
+ """
+ daily_room_rate_amount: NotRequired[int]
+ """
+ The daily lodging room rate.
+ """
+ delivery: NotRequired["ChargeModifyParamsPaymentDetailsLodgingDelivery"]
+ """
+ Delivery details for this purchase.
+ """
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "gift_shop",
+ "laundry",
+ "mini_bar",
+ "other",
+ "restaurant",
+ "telephone",
+ ]
+ ]
+ ]
+ """
+ List of additional charges being billed.
+ """
+ fire_safety_act_compliance: NotRequired[bool]
+ """
+ Indicates whether the lodging location is compliant with the Fire Safety Act.
+ """
+ name: NotRequired[str]
+ """
+ The name of the lodging location.
+ """
+ no_show: NotRequired[bool]
+ """
+ Indicates if the customer did not keep their booking while failing to cancel the reservation.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ The number of rooms on the booking
+ """
+ passengers: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsLodgingPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation
+ """
+ property_phone_number: NotRequired[str]
+ """
+ The phone number of the lodging location.
+ """
+ room_class: NotRequired[str]
+ """
+ The room class for this purchase.
+ """
+ room_nights: NotRequired[int]
+ """
+ The number of room nights
+ """
+ total_room_tax_amount: NotRequired[int]
+ """
+ The total tax amount associating with the room reservation.
+ """
+ total_tax_amount: NotRequired[int]
+ """
+ The total tax amount
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "ChargeModifyParamsPaymentDetailsLodgingDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDeliveryRecipient(TypedDict):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the lodging reservation.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "ChargeModifyParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "ChargeModifyParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired["ChargeModifyParamsPaymentDetailsLodgingDatumHost"]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "ChargeModifyParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDatumAccommodation(TypedDict):
+ accommodation_type: NotRequired[
+ Literal[
+ "apartment",
+ "cabana",
+ "house",
+ "penthouse",
+ "room",
+ "standard",
+ "suite",
+ "villa",
+ ]
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "ChargeModifyParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ Literal["hostel", "hotel", "owner", "rental_agency"]
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDatumHostAddress(TypedDict):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "ChargeModifyParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge"]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired["ChargeModifyParamsPaymentDetailsLodgingDatumTotalTax"]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDatumTotalDiscounts(TypedDict):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ Literal[
+ "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant"
+ ]
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List["ChargeModifyParamsPaymentDetailsLodgingDatumTotalTaxTax"]
+ ]
+ """
+ Tax details.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsLodgingDatumTotalTaxTax(TypedDict):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsSubscription(TypedDict):
+ affiliate: NotRequired[
+ "ChargeModifyParamsPaymentDetailsSubscriptionAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ auto_renewal: NotRequired[bool]
+ """
+ Info whether the subscription will be auto renewed upon expiry.
+ """
+ billing_interval: NotRequired[
+ "ChargeModifyParamsPaymentDetailsSubscriptionBillingInterval"
+ ]
+ """
+ Subscription billing details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Subscription end time. Measured in seconds since the Unix epoch.
+ """
+ name: str
+ """
+ Name of the product on subscription. e.g. Apple Music Subscription
+ """
+ starts_at: NotRequired[int]
+ """
+ Subscription start time. Measured in seconds since the Unix epoch.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsSubscriptionAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeModifyParamsPaymentDetailsSubscriptionBillingInterval(TypedDict):
+ count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+
+
class ChargeModifyParamsShipping(TypedDict):
address: "ChargeModifyParamsShippingAddress"
"""
diff --git a/stripe/params/_charge_update_params.py b/stripe/params/_charge_update_params.py
index 0f0ae7b0b..a1bd52671 100644
--- a/stripe/params/_charge_update_params.py
+++ b/stripe/params/_charge_update_params.py
@@ -25,6 +25,10 @@ class ChargeUpdateParams(TypedDict):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
+ payment_details: NotRequired["ChargeUpdateParamsPaymentDetails"]
+ """
+ Provides industry-specific information about the charge.
+ """
receipt_email: NotRequired[str]
"""
This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.
@@ -46,6 +50,1726 @@ class ChargeUpdateParamsFraudDetails(TypedDict):
"""
+class ChargeUpdateParamsPaymentDetails(TypedDict):
+ car_rental: NotRequired["ChargeUpdateParamsPaymentDetailsCarRental"]
+ """
+ Car rental details for this PaymentIntent.
+ """
+ car_rental_data: NotRequired[
+ "Literal['']|List[ChargeUpdateParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
+ customer_reference: NotRequired["Literal['']|str"]
+ """
+ A unique value to identify the customer. This field is available only for card payments.
+
+ This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
+ """
+ event_details: NotRequired["ChargeUpdateParamsPaymentDetailsEventDetails"]
+ """
+ Event details for this PaymentIntent
+ """
+ flight: NotRequired["ChargeUpdateParamsPaymentDetailsFlight"]
+ """
+ Flight reservation details for this PaymentIntent
+ """
+ flight_data: NotRequired[
+ "Literal['']|List[ChargeUpdateParamsPaymentDetailsFlightDatum]"
+ ]
+ """
+ Flight data for this PaymentIntent.
+ """
+ lodging: NotRequired["ChargeUpdateParamsPaymentDetailsLodging"]
+ """
+ Lodging reservation details for this PaymentIntent
+ """
+ lodging_data: NotRequired[
+ "Literal['']|List[ChargeUpdateParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
+ order_reference: NotRequired["Literal['']|str"]
+ """
+ A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
+
+ Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
+
+ For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
+ """
+ subscription: NotRequired["ChargeUpdateParamsPaymentDetailsSubscription"]
+ """
+ Subscription details for this PaymentIntent
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRental(TypedDict):
+ affiliate: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsCarRentalAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ booking_number: str
+ """
+ The booking number associated with the car rental.
+ """
+ car_class_code: NotRequired[str]
+ """
+ Class code of the car.
+ """
+ car_make: NotRequired[str]
+ """
+ Make of the car.
+ """
+ car_model: NotRequired[str]
+ """
+ Model of the car.
+ """
+ company: NotRequired[str]
+ """
+ The name of the rental car company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the car rental company.
+ """
+ days_rented: int
+ """
+ Number of days the car is being rented.
+ """
+ delivery: NotRequired["ChargeUpdateParamsPaymentDetailsCarRentalDelivery"]
+ """
+ Delivery details for this purchase.
+ """
+ distance: NotRequired["ChargeUpdateParamsPaymentDetailsCarRentalDistance"]
+ """
+ The details of the distance traveled during the rental period.
+ """
+ drivers: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsCarRentalDriver"]
+ ]
+ """
+ The details of the passengers in the travel reservation
+ """
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "late_return",
+ "one_way_service",
+ "parking_violation",
+ ]
+ ]
+ ]
+ """
+ List of additional charges being billed.
+ """
+ no_show: NotRequired[bool]
+ """
+ Indicates if the customer did not keep nor cancel their booking.
+ """
+ pickup_address: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsCarRentalPickupAddress"
+ ]
+ """
+ Car pick-up address.
+ """
+ pickup_at: int
+ """
+ Car pick-up time. Measured in seconds since the Unix epoch.
+ """
+ pickup_location_name: NotRequired[str]
+ """
+ Name of the pickup location.
+ """
+ rate_amount: NotRequired[int]
+ """
+ Rental rate.
+ """
+ rate_interval: NotRequired[Literal["day", "month", "week"]]
+ """
+ The frequency at which the rate amount is applied. One of `day`, `week` or `month`
+ """
+ renter_name: NotRequired[str]
+ """
+ The name of the person or entity renting the car.
+ """
+ return_address: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsCarRentalReturnAddress"
+ ]
+ """
+ Car return address.
+ """
+ return_at: int
+ """
+ Car return time. Measured in seconds since the Unix epoch.
+ """
+ return_location_name: NotRequired[str]
+ """
+ Name of the return location.
+ """
+ tax_exempt: NotRequired[bool]
+ """
+ Indicates whether the goods or services are tax-exempt or tax is not collected.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ The vehicle identification number.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsCarRentalDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDeliveryRecipient(TypedDict):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDistance(TypedDict):
+ amount: NotRequired[int]
+ """
+ Distance traveled.
+ """
+ unit: NotRequired[Literal["kilometers", "miles"]]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDriver(TypedDict):
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Full name of the person or entity on the car reservation.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalPickupAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalReturnAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumAffiliate"
+ ]
+ """
+ Affiliate (such as travel agency) details for the rental.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumDistance"
+ ]
+ """
+ Distance details for the rental.
+ """
+ drivers: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsCarRentalDatumDriver"]
+ ]
+ """
+ List of drivers for the rental.
+ """
+ drop_off: "ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOff"
+ """
+ Drop-off location details.
+ """
+ insurances: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsCarRentalDatumInsurance"]
+ ]
+ """
+ Insurance details for the rental.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Indicates if the customer was a no-show.
+ """
+ pickup: "ChargeUpdateParamsPaymentDetailsCarRentalDatumPickup"
+ """
+ Pickup location details.
+ """
+ renter_name: NotRequired[str]
+ """
+ Name of the person renting the vehicle.
+ """
+ total: "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotal"
+ """
+ Total cost breakdown for the rental.
+ """
+ vehicle: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumVehicle"
+ ]
+ """
+ Vehicle details for the rental.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumDistance(TypedDict):
+ amount: int
+ """
+ Distance traveled.
+ """
+ unit: Literal["kilometers", "miles"]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
+ ]
+ """
+ Driver's date of birth.
+ """
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
+ """
+ Day of birth (1-31).
+ """
+ month: int
+ """
+ Month of birth (1-12).
+ """
+ year: int
+ """
+ Year of birth (must be greater than 1900).
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: "ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress(TypedDict):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumInsurance(TypedDict):
+ amount: int
+ """
+ Amount of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: "ChargeUpdateParamsPaymentDetailsCarRentalDatumPickupAddress"
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumPickupAddress(TypedDict):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
+ """
+ Total amount in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge"]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ Literal["days", "kilometers", "miles", "months", "weeks"]
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired["ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTax"]
+ """
+ Tax breakdown for the rental.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts(TypedDict):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax"]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax(TypedDict):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
+ Literal[
+ "cargo_van",
+ "compact",
+ "economy",
+ "exotic",
+ "exotic_suv",
+ "fifteen_passenger_van",
+ "four_wheel_drive",
+ "full_size",
+ "intermediate",
+ "large_suv",
+ "large_truck",
+ "luxury",
+ "medium_suv",
+ "midsize",
+ "mini",
+ "minivan",
+ "miscellaneous",
+ "moped",
+ "moving_van",
+ "premium",
+ "regular",
+ "small_medium_truck",
+ "small_suv",
+ "special",
+ "standard",
+ "stretch",
+ "subcompact",
+ "taxi",
+ "twelve_foot_truck",
+ "twelve_passenger_van",
+ "twenty_foot_truck",
+ "twenty_four_foot_truck",
+ "twenty_six_foot_truck",
+ "unique",
+ ]
+ ]
+ """
+ Type of the rental vehicle.
+ """
+ vehicle_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsEventDetails(TypedDict):
+ access_controlled_venue: NotRequired[bool]
+ """
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
+ address: NotRequired["ChargeUpdateParamsPaymentDetailsEventDetailsAddress"]
+ """
+ The event location's address.
+ """
+ affiliate: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsEventDetailsAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ company: NotRequired[str]
+ """
+ The name of the company
+ """
+ delivery: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsEventDetailsDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Event end time. Measured in seconds since the Unix epoch.
+ """
+ genre: NotRequired[str]
+ """
+ Type of the event entertainment (concert, sports event etc)
+ """
+ name: str
+ """
+ The name of the event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Event start time. Measured in seconds since the Unix epoch.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsEventDetailsAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsEventDetailsAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsEventDetailsDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient(TypedDict):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlight(TypedDict):
+ affiliate: NotRequired["ChargeUpdateParamsPaymentDetailsFlightAffiliate"]
+ """
+ Affiliate details for this purchase.
+ """
+ agency_number: NotRequired[str]
+ """
+ The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
+ """
+ delivery: NotRequired["ChargeUpdateParamsPaymentDetailsFlightDelivery"]
+ """
+ Delivery details for this purchase.
+ """
+ passenger_name: NotRequired[str]
+ """
+ The name of the person or entity on the reservation.
+ """
+ passengers: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsFlightPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation.
+ """
+ segments: List["ChargeUpdateParamsPaymentDetailsFlightSegment"]
+ """
+ The individual flight segments associated with the trip.
+ """
+ ticket_number: NotRequired[str]
+ """
+ The ticket number associated with the travel reservation.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsFlightDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDeliveryRecipient(TypedDict):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the flight reservation.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightSegment(TypedDict):
+ amount: NotRequired[int]
+ """
+ The flight segment amount.
+ """
+ arrival_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the arrival airport.
+ """
+ arrives_at: NotRequired[int]
+ """
+ The arrival time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
+ """
+ departs_at: int
+ """
+ The departure time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ departure_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the departure airport.
+ """
+ flight_number: NotRequired[str]
+ """
+ The flight number associated with the segment
+ """
+ service_class: NotRequired[
+ Literal["business", "economy", "first", "premium_economy"]
+ ]
+ """
+ The fare class for the segment.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDatum(TypedDict):
+ affiliate: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsFlightDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Reservation reference.
+ """
+ computerized_reservation_system: NotRequired[str]
+ """
+ Computerized reservation system used to make the reservation and purchase the ticket.
+ """
+ endorsements_and_restrictions: NotRequired[str]
+ """
+ Ticket restrictions.
+ """
+ insurances: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsFlightDatumInsurance"]
+ ]
+ """
+ List of insurances.
+ """
+ passengers: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsFlightDatumPassenger"]
+ ]
+ """
+ List of passengers.
+ """
+ segments: List["ChargeUpdateParamsPaymentDetailsFlightDatumSegment"]
+ """
+ List of flight segments.
+ """
+ ticket_electronically_issued_indicator: NotRequired[bool]
+ """
+ Electronic ticket indicator.
+ """
+ total: "ChargeUpdateParamsPaymentDetailsFlightDatumTotal"
+ """
+ Total cost breakdown.
+ """
+ transaction_type: NotRequired[
+ Literal[
+ "exchange_ticket", "miscellaneous", "refund", "ticket_purchase"
+ ]
+ ]
+ """
+ Type of flight transaction.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+ travel_authorization_code: NotRequired[str]
+ """
+ Code provided by the company to a travel agent authorizing ticket issuance.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDatumInsurance(TypedDict):
+ amount: int
+ """
+ Insurance cost.
+ """
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Insurance company name.
+ """
+ insurance_type: Literal[
+ "baggage", "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDatumPassenger(TypedDict):
+ name: str
+ """
+ Passenger's full name.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDatumSegment(TypedDict):
+ amount: NotRequired[int]
+ """
+ Segment fare amount.
+ """
+ arrival: "ChargeUpdateParamsPaymentDetailsFlightDatumSegmentArrival"
+ """
+ Arrival details.
+ """
+ carrier_code: str
+ """
+ Airline carrier code.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Carrier name.
+ """
+ currency: NotRequired[str]
+ """
+ Segment currency.
+ """
+ departure: "ChargeUpdateParamsPaymentDetailsFlightDatumSegmentDeparture"
+ """
+ Departure details.
+ """
+ exchange_ticket_number: NotRequired[str]
+ """
+ Exchange ticket number.
+ """
+ fare_basis_code: NotRequired[str]
+ """
+ Fare basis code.
+ """
+ fees: NotRequired[int]
+ """
+ Additional fees.
+ """
+ flight_number: NotRequired[str]
+ """
+ Flight number.
+ """
+ is_stop_over_indicator: NotRequired[bool]
+ """
+ Stopover indicator.
+ """
+ refundable: NotRequired[bool]
+ """
+ Refundable ticket indicator.
+ """
+ service_class: Literal[
+ "business", "economy", "first_class", "premium_economy"
+ ]
+ """
+ Class of service.
+ """
+ tax_amount: NotRequired[int]
+ """
+ Tax amount for segment.
+ """
+ ticket_number: NotRequired[str]
+ """
+ Ticket number.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDatumSegmentArrival(TypedDict):
+ airport: str
+ """
+ Arrival airport IATA code.
+ """
+ arrives_at: NotRequired[int]
+ """
+ Arrival date/time.
+ """
+ city: NotRequired[str]
+ """
+ Arrival city.
+ """
+ country: NotRequired[str]
+ """
+ Arrival country.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDatumSegmentDeparture(TypedDict):
+ airport: str
+ """
+ Departure airport IATA code.
+ """
+ city: NotRequired[str]
+ """
+ Departure city.
+ """
+ country: NotRequired[str]
+ """
+ Departure country.
+ """
+ departs_at: int
+ """
+ Departure date/time.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDatumTotal(TypedDict):
+ amount: int
+ """
+ Total flight amount.
+ """
+ credit_reason: NotRequired[
+ Literal[
+ "other",
+ "partial_ticket_refund",
+ "passenger_transport_ancillary_cancellation",
+ "ticket_and_ancillary_cancellation",
+ "ticket_cancellation",
+ ]
+ ]
+ """
+ Reason for credit.
+ """
+ currency: NotRequired[str]
+ """
+ Total currency.
+ """
+ discounts: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsFlightDatumTotalDiscounts"
+ ]
+ """
+ Discount details.
+ """
+ extra_charges: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge"]
+ ]
+ """
+ Additional charges.
+ """
+ tax: NotRequired["ChargeUpdateParamsPaymentDetailsFlightDatumTotalTax"]
+ """
+ Tax breakdown.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDatumTotalDiscounts(TypedDict):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount of additional charges.
+ """
+ type: NotRequired[
+ Literal["additional_fees", "ancillary_service_charges", "exchange_fee"]
+ ]
+ """
+ Type of additional charges.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDatumTotalTax(TypedDict):
+ taxes: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsFlightDatumTotalTaxTax"]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsFlightDatumTotalTaxTax(TypedDict):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodging(TypedDict):
+ address: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingAddress"]
+ """
+ The lodging location's address.
+ """
+ adults: NotRequired[int]
+ """
+ The number of adults on the booking
+ """
+ affiliate: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingAffiliate"]
+ """
+ Affiliate details for this purchase.
+ """
+ booking_number: NotRequired[str]
+ """
+ The booking number associated with the lodging reservation.
+ """
+ category: NotRequired[Literal["hotel", "vacation_rental"]]
+ """
+ The lodging category
+ """
+ checkin_at: int
+ """
+ Lodging check-in time. Measured in seconds since the Unix epoch.
+ """
+ checkout_at: int
+ """
+ Lodging check-out time. Measured in seconds since the Unix epoch.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the lodging company.
+ """
+ daily_room_rate_amount: NotRequired[int]
+ """
+ The daily lodging room rate.
+ """
+ delivery: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingDelivery"]
+ """
+ Delivery details for this purchase.
+ """
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "gift_shop",
+ "laundry",
+ "mini_bar",
+ "other",
+ "restaurant",
+ "telephone",
+ ]
+ ]
+ ]
+ """
+ List of additional charges being billed.
+ """
+ fire_safety_act_compliance: NotRequired[bool]
+ """
+ Indicates whether the lodging location is compliant with the Fire Safety Act.
+ """
+ name: NotRequired[str]
+ """
+ The name of the lodging location.
+ """
+ no_show: NotRequired[bool]
+ """
+ Indicates if the customer did not keep their booking while failing to cancel the reservation.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ The number of rooms on the booking
+ """
+ passengers: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsLodgingPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation
+ """
+ property_phone_number: NotRequired[str]
+ """
+ The phone number of the lodging location.
+ """
+ room_class: NotRequired[str]
+ """
+ The room class for this purchase.
+ """
+ room_nights: NotRequired[int]
+ """
+ The number of room nights
+ """
+ total_room_tax_amount: NotRequired[int]
+ """
+ The total tax amount associating with the room reservation.
+ """
+ total_tax_amount: NotRequired[int]
+ """
+ The total tax amount
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsLodgingDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDeliveryRecipient(TypedDict):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the lodging reservation.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingDatumHost"]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "ChargeUpdateParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDatumAccommodation(TypedDict):
+ accommodation_type: NotRequired[
+ Literal[
+ "apartment",
+ "cabana",
+ "house",
+ "penthouse",
+ "room",
+ "standard",
+ "suite",
+ "villa",
+ ]
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ Literal["hostel", "hotel", "owner", "rental_agency"]
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDatumHostAddress(TypedDict):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge"]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired["ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTax"]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts(TypedDict):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ Literal[
+ "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant"
+ ]
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List["ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax"]
+ ]
+ """
+ Tax details.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax(TypedDict):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsSubscription(TypedDict):
+ affiliate: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsSubscriptionAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ auto_renewal: NotRequired[bool]
+ """
+ Info whether the subscription will be auto renewed upon expiry.
+ """
+ billing_interval: NotRequired[
+ "ChargeUpdateParamsPaymentDetailsSubscriptionBillingInterval"
+ ]
+ """
+ Subscription billing details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Subscription end time. Measured in seconds since the Unix epoch.
+ """
+ name: str
+ """
+ Name of the product on subscription. e.g. Apple Music Subscription
+ """
+ starts_at: NotRequired[int]
+ """
+ Subscription start time. Measured in seconds since the Unix epoch.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsSubscriptionAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class ChargeUpdateParamsPaymentDetailsSubscriptionBillingInterval(TypedDict):
+ count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+
+
class ChargeUpdateParamsShipping(TypedDict):
address: "ChargeUpdateParamsShippingAddress"
"""
diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py
index e4893de52..ef4157cae 100644
--- a/stripe/params/_confirmation_token_create_params.py
+++ b/stripe/params/_confirmation_token_create_params.py
@@ -143,12 +143,22 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
"""
+ gopay: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataGopay"]
+ """
+ If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
+ """
grabpay: NotRequired[
"ConfirmationTokenCreateParamsPaymentMethodDataGrabpay"
]
"""
If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
"""
+ id_bank_transfer: NotRequired[
+ "ConfirmationTokenCreateParamsPaymentMethodDataIdBankTransfer"
+ ]
+ """
+ If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
+ """
ideal: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataIdeal"]
"""
If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
@@ -243,6 +253,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
"""
+ paypay: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPaypay"]
+ """
+ If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
+ """
payto: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPayto"]
"""
If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
@@ -257,12 +271,22 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
"""
+ qris: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataQris"]
+ """
+ If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
+ """
radar_options: NotRequired[
"ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions"
]
"""
Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
"""
+ rechnung: NotRequired[
+ "ConfirmationTokenCreateParamsPaymentMethodDataRechnung"
+ ]
+ """
+ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
+ """
revolut_pay: NotRequired[
"ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay"
]
@@ -287,10 +311,22 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
+ shopeepay: NotRequired[
+ "ConfirmationTokenCreateParamsPaymentMethodDataShopeepay"
+ ]
+ """
+ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
+ """
sofort: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSofort"]
"""
If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
"""
+ stripe_balance: NotRequired[
+ "ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance"
+ ]
+ """
+ This hash contains details about the Stripe balance payment method.
+ """
swish: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSwish"]
"""
If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -318,7 +354,9 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -336,14 +374,19 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
@@ -591,10 +634,21 @@ class ConfirmationTokenCreateParamsPaymentMethodDataGiropay(TypedDict):
pass
+class ConfirmationTokenCreateParamsPaymentMethodDataGopay(TypedDict):
+ pass
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataGrabpay(TypedDict):
pass
+class ConfirmationTokenCreateParamsPaymentMethodDataIdBankTransfer(TypedDict):
+ bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ """
+ Bank where the account is held.
+ """
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
Literal[
@@ -765,6 +819,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataPaypal(TypedDict):
pass
+class ConfirmationTokenCreateParamsPaymentMethodDataPaypay(TypedDict):
+ pass
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataPayto(TypedDict):
account_number: NotRequired[str]
"""
@@ -788,6 +846,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataPromptpay(TypedDict):
pass
+class ConfirmationTokenCreateParamsPaymentMethodDataQris(TypedDict):
+ pass
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions(TypedDict):
session: NotRequired[str]
"""
@@ -795,6 +857,28 @@ class ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions(TypedDict):
"""
+class ConfirmationTokenCreateParamsPaymentMethodDataRechnung(TypedDict):
+ dob: "ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob"
+ """
+ Customer's date of birth
+ """
+
+
+class ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay(TypedDict):
pass
@@ -814,6 +898,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit(TypedDict):
"""
+class ConfirmationTokenCreateParamsPaymentMethodDataShopeepay(TypedDict):
+ pass
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataSofort(TypedDict):
country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
"""
@@ -821,6 +909,17 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSofort(TypedDict):
"""
+class ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataSwish(TypedDict):
pass
diff --git a/stripe/params/_coupon_create_params.py b/stripe/params/_coupon_create_params.py
index fc8a2483c..f148a46a1 100644
--- a/stripe/params/_coupon_create_params.py
+++ b/stripe/params/_coupon_create_params.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
-from typing import Dict, List
+from typing import Any, Dict, List
from typing_extensions import Literal, NotRequired, TypedDict
@@ -60,6 +60,10 @@ class CouponCreateParams(RequestOptions):
"""
Unix timestamp specifying the last time at which the coupon can be redeemed. After the redeem_by date, the coupon can no longer be applied to new customers.
"""
+ script: NotRequired["CouponCreateParamsScript"]
+ """
+ Configuration of the [script](https://docs.stripe.com/billing/subscriptions/script-coupons) used to calculate the discount.
+ """
class CouponCreateParamsAppliesTo(TypedDict):
@@ -74,3 +78,14 @@ class CouponCreateParamsCurrencyOptions(TypedDict):
"""
A positive integer representing the amount to subtract from an invoice total.
"""
+
+
+class CouponCreateParamsScript(TypedDict):
+ configuration: Dict[str, "Any"]
+ """
+ The configuration values of the script. The keys and values are specific to the script implementation.
+ """
+ id: str
+ """
+ The script implementation ID for this coupon.
+ """
diff --git a/stripe/params/_customer_list_payment_methods_params.py b/stripe/params/_customer_list_payment_methods_params.py
index 8803d7ea7..1dfaf8df4 100644
--- a/stripe/params/_customer_list_payment_methods_params.py
+++ b/stripe/params/_customer_list_payment_methods_params.py
@@ -48,7 +48,9 @@ class CustomerListPaymentMethodsParams(RequestOptions):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -66,14 +68,19 @@ class CustomerListPaymentMethodsParams(RequestOptions):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
diff --git a/stripe/params/_customer_payment_method_list_params.py b/stripe/params/_customer_payment_method_list_params.py
index 026497553..3a93cee13 100644
--- a/stripe/params/_customer_payment_method_list_params.py
+++ b/stripe/params/_customer_payment_method_list_params.py
@@ -47,7 +47,9 @@ class CustomerPaymentMethodListParams(TypedDict):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -65,14 +67,19 @@ class CustomerPaymentMethodListParams(TypedDict):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
diff --git a/stripe/params/_customer_session_create_params.py b/stripe/params/_customer_session_create_params.py
index 5a6d98fc0..d2009922d 100644
--- a/stripe/params/_customer_session_create_params.py
+++ b/stripe/params/_customer_session_create_params.py
@@ -53,6 +53,12 @@ class CustomerSessionCreateParamsComponents(TypedDict):
"""
Configuration for the pricing table.
"""
+ tax_id_element: NotRequired[
+ "CustomerSessionCreateParamsComponentsTaxIdElement"
+ ]
+ """
+ Configuration for the Tax ID Element.
+ """
class CustomerSessionCreateParamsComponentsBuyButton(TypedDict):
@@ -199,3 +205,31 @@ class CustomerSessionCreateParamsComponentsPricingTable(TypedDict):
"""
Whether the pricing table is enabled.
"""
+
+
+class CustomerSessionCreateParamsComponentsTaxIdElement(TypedDict):
+ enabled: bool
+ """
+ Whether the Tax ID Element is enabled.
+ """
+ features: NotRequired[
+ "CustomerSessionCreateParamsComponentsTaxIdElementFeatures"
+ ]
+ """
+ This hash defines whether the Tax ID Element supports certain features.
+ """
+
+
+class CustomerSessionCreateParamsComponentsTaxIdElementFeatures(TypedDict):
+ tax_id_redisplay: NotRequired[Literal["disabled", "enabled"]]
+ """
+ Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
+
+ When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
+ """
+ tax_id_save: NotRequired[Literal["disabled", "enabled"]]
+ """
+ Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
+
+ When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
+ """
diff --git a/stripe/params/_dispute_modify_params.py b/stripe/params/_dispute_modify_params.py
index 0059c31de..e3bf42051 100644
--- a/stripe/params/_dispute_modify_params.py
+++ b/stripe/params/_dispute_modify_params.py
@@ -14,6 +14,17 @@ class DisputeModifyParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
+ intended_submission_method: NotRequired[
+ Literal[
+ "manual",
+ "prefer_manual",
+ "prefer_smart_disputes",
+ "smart_disputes",
+ ]
+ ]
+ """
+ Intended submission method for the dispute.
+ """
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
diff --git a/stripe/params/_dispute_update_params.py b/stripe/params/_dispute_update_params.py
index 7259c217d..2472bb737 100644
--- a/stripe/params/_dispute_update_params.py
+++ b/stripe/params/_dispute_update_params.py
@@ -13,6 +13,17 @@ class DisputeUpdateParams(TypedDict):
"""
Specifies which fields in the response should be expanded.
"""
+ intended_submission_method: NotRequired[
+ Literal[
+ "manual",
+ "prefer_manual",
+ "prefer_smart_disputes",
+ "smart_disputes",
+ ]
+ ]
+ """
+ Intended submission method for the dispute.
+ """
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
diff --git a/stripe/params/_external_account_create_params.py b/stripe/params/_external_account_create_params.py
new file mode 100644
index 000000000..86f9cbb83
--- /dev/null
+++ b/stripe/params/_external_account_create_params.py
@@ -0,0 +1,82 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict, List, Union
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class ExternalAccountCreateParams(TypedDict):
+ default_for_currency: NotRequired[bool]
+ """
+ When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ external_account: Union[
+ str,
+ "ExternalAccountCreateParamsCard",
+ "ExternalAccountCreateParamsBankAccount",
+ "ExternalAccountCreateParamsCardToken",
+ ]
+ """
+ Either a token, like the ones returned by [Stripe.js](https://docs.stripe.com/js), or a dictionary containing a user's external account details (with the options shown below).
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+
+
+class ExternalAccountCreateParamsCard(TypedDict):
+ object: Literal["card"]
+ address_city: NotRequired[str]
+ address_country: NotRequired[str]
+ address_line1: NotRequired[str]
+ address_line2: NotRequired[str]
+ address_state: NotRequired[str]
+ address_zip: NotRequired[str]
+ currency: NotRequired[str]
+ cvc: NotRequired[str]
+ exp_month: int
+ exp_year: int
+ name: NotRequired[str]
+ number: str
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+
+
+class ExternalAccountCreateParamsBankAccount(TypedDict):
+ object: Literal["bank_account"]
+ account_holder_name: NotRequired[str]
+ """
+ The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
+ """
+ account_holder_type: NotRequired[Literal["company", "individual"]]
+ """
+ The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
+ """
+ account_number: str
+ """
+ The account number for the bank account, in string form. Must be a checking account.
+ """
+ country: str
+ """
+ The country in which the bank account is located.
+ """
+ currency: NotRequired[str]
+ """
+ The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
+ """
+ routing_number: NotRequired[str]
+ """
+ The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
+ """
+
+
+class ExternalAccountCreateParamsCardToken(TypedDict):
+ object: Literal["card"]
+ currency: NotRequired[str]
+ token: str
diff --git a/stripe/params/_external_account_delete_params.py b/stripe/params/_external_account_delete_params.py
new file mode 100644
index 000000000..17ed14653
--- /dev/null
+++ b/stripe/params/_external_account_delete_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class ExternalAccountDeleteParams(TypedDict):
+ pass
diff --git a/stripe/params/_external_account_list_params.py b/stripe/params/_external_account_list_params.py
new file mode 100644
index 000000000..150de5801
--- /dev/null
+++ b/stripe/params/_external_account_list_params.py
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class ExternalAccountListParams(TypedDict):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ object: NotRequired[Literal["bank_account", "card"]]
+ """
+ Filter external accounts according to a particular object type.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_external_account_retrieve_params.py b/stripe/params/_external_account_retrieve_params.py
new file mode 100644
index 000000000..93bc3e9b9
--- /dev/null
+++ b/stripe/params/_external_account_retrieve_params.py
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class ExternalAccountRetrieveParams(TypedDict):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/_external_account_update_params.py b/stripe/params/_external_account_update_params.py
new file mode 100644
index 000000000..9579098f5
--- /dev/null
+++ b/stripe/params/_external_account_update_params.py
@@ -0,0 +1,91 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class ExternalAccountUpdateParams(TypedDict):
+ account_holder_name: NotRequired[str]
+ """
+ The name of the person or business that owns the bank account.
+ """
+ account_holder_type: NotRequired[
+ "Literal['']|Literal['company', 'individual']"
+ ]
+ """
+ The type of entity that holds the account. This can be either `individual` or `company`.
+ """
+ account_type: NotRequired[Literal["checking", "futsu", "savings", "toza"]]
+ """
+ The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
+ """
+ address_city: NotRequired[str]
+ """
+ City/District/Suburb/Town/Village.
+ """
+ address_country: NotRequired[str]
+ """
+ Billing address country, if provided when creating card.
+ """
+ address_line1: NotRequired[str]
+ """
+ Address line 1 (Street address/PO Box/Company name).
+ """
+ address_line2: NotRequired[str]
+ """
+ Address line 2 (Apartment/Suite/Unit/Building).
+ """
+ address_state: NotRequired[str]
+ """
+ State/County/Province/Region.
+ """
+ address_zip: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ default_for_currency: NotRequired[bool]
+ """
+ When set to true, this becomes the default external account for its currency.
+ """
+ documents: NotRequired["ExternalAccountUpdateParamsDocuments"]
+ """
+ Documents that may be submitted to satisfy various informational requests.
+ """
+ exp_month: NotRequired[str]
+ """
+ Two digit number representing the card's expiration month.
+ """
+ exp_year: NotRequired[str]
+ """
+ Four digit number representing the card's expiration year.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ name: NotRequired[str]
+ """
+ Cardholder name.
+ """
+
+
+class ExternalAccountUpdateParamsDocuments(TypedDict):
+ bank_account_ownership_verification: NotRequired[
+ "ExternalAccountUpdateParamsDocumentsBankAccountOwnershipVerification"
+ ]
+ """
+ One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a check.
+ """
+
+
+class ExternalAccountUpdateParamsDocumentsBankAccountOwnershipVerification(
+ TypedDict,
+):
+ files: NotRequired[List[str]]
+ """
+ One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
+ """
diff --git a/stripe/params/_fx_quote_create_params.py b/stripe/params/_fx_quote_create_params.py
new file mode 100644
index 000000000..c47eb4308
--- /dev/null
+++ b/stripe/params/_fx_quote_create_params.py
@@ -0,0 +1,69 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class FxQuoteCreateParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ from_currencies: List[str]
+ """
+ A list of three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be [supported currencies](https://stripe.com/docs/currencies).
+ """
+ lock_duration: Literal["day", "five_minutes", "hour", "none"]
+ """
+ The duration that you wish the quote to be locked for. The quote will be usable for the duration specified. The default is `none`. The maximum is 1 day.
+ """
+ to_currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ usage: NotRequired["FxQuoteCreateParamsUsage"]
+ """
+ The usage specific information for the quote.
+ """
+
+
+class FxQuoteCreateParamsUsage(TypedDict):
+ payment: NotRequired["FxQuoteCreateParamsUsagePayment"]
+ """
+ The payment transaction details that are intended for the FX Quote.
+ """
+ transfer: NotRequired["FxQuoteCreateParamsUsageTransfer"]
+ """
+ The transfer transaction details that are intended for the FX Quote.
+ """
+ type: Literal["payment", "transfer"]
+ """
+ Which transaction the FX Quote will be used for
+
+ Can be “payment” | “transfer”
+ """
+
+
+class FxQuoteCreateParamsUsagePayment(TypedDict):
+ destination: NotRequired[str]
+ """
+ The Stripe account ID that the funds will be transferred to.
+
+ This field should match the account ID that would be used in the PaymentIntent's transfer_data[destination] field.
+ """
+ on_behalf_of: NotRequired[str]
+ """
+ The Stripe account ID that these funds are intended for.
+
+ This field should match the account ID that would be used in the PaymentIntent's on_behalf_of field.
+ """
+
+
+class FxQuoteCreateParamsUsageTransfer(TypedDict):
+ destination: str
+ """
+ The Stripe account ID that the funds will be transferred to.
+
+ This field should match the account ID that would be used in the Transfer's destination field.
+ """
diff --git a/stripe/params/_fx_quote_list_params.py b/stripe/params/_fx_quote_list_params.py
new file mode 100644
index 000000000..cb19c0fc5
--- /dev/null
+++ b/stripe/params/_fx_quote_list_params.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FxQuoteListParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_fx_quote_retrieve_params.py b/stripe/params/_fx_quote_retrieve_params.py
new file mode 100644
index 000000000..f2efcc646
--- /dev/null
+++ b/stripe/params/_fx_quote_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FxQuoteRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/_invoice_add_lines_params.py b/stripe/params/_invoice_add_lines_params.py
index 8f0b41d7b..0eada73fd 100644
--- a/stripe/params/_invoice_add_lines_params.py
+++ b/stripe/params/_invoice_add_lines_params.py
@@ -43,6 +43,10 @@ class InvoiceAddLinesParamsLine(TypedDict):
"""
ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
"""
+ margins: NotRequired["Literal['']|List[str]"]
+ """
+ The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
+ """
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -84,12 +88,44 @@ class InvoiceAddLinesParamsLineDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["InvoiceAddLinesParamsLineDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceAddLinesParamsLineDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "InvoiceAddLinesParamsLineDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceAddLinesParamsLineDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceAddLinesParamsLinePeriod(TypedDict):
end: int
"""
diff --git a/stripe/params/_invoice_attach_payment_params.py b/stripe/params/_invoice_attach_payment_params.py
index 36d9b48ce..939c7ba9f 100644
--- a/stripe/params/_invoice_attach_payment_params.py
+++ b/stripe/params/_invoice_attach_payment_params.py
@@ -1,11 +1,15 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
-from typing import List
-from typing_extensions import NotRequired
+from typing import Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
class InvoiceAttachPaymentParams(RequestOptions):
+ amount_requested: NotRequired[int]
+ """
+ The portion of the `amount` on the PaymentIntent or out of band payment to apply to this invoice. It defaults to the entire amount.
+ """
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
@@ -18,3 +22,36 @@ class InvoiceAttachPaymentParams(RequestOptions):
"""
The ID of the PaymentRecord to attach to the invoice.
"""
+ payment_record_data: NotRequired[
+ "InvoiceAttachPaymentParamsPaymentRecordData"
+ ]
+ """
+ The PaymentRecord data for attaching an out of band payment to the invoice.
+ """
+
+
+class InvoiceAttachPaymentParamsPaymentRecordData(TypedDict):
+ amount: int
+ """
+ The amount that was paid out of band.
+ """
+ currency: str
+ """
+ The currency that was paid out of band.
+ """
+ metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ money_movement_type: str
+ """
+ The type of money movement for this out of band payment record.
+ """
+ paid_at: NotRequired[int]
+ """
+ The timestamp when this out of band payment was paid.
+ """
+ payment_reference: NotRequired[str]
+ """
+ The reference for this out of band payment record.
+ """
diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py
index cf6829eb9..738a3da8c 100644
--- a/stripe/params/_invoice_create_params.py
+++ b/stripe/params/_invoice_create_params.py
@@ -10,6 +10,10 @@ class InvoiceCreateParams(RequestOptions):
"""
The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
"""
+ amounts_due: NotRequired["Literal['']|List[InvoiceCreateParamsAmountsDue]"]
+ """
+ List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
+ """
application_fee_amount: NotRequired[int]
"""
A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
@@ -54,6 +58,10 @@ class InvoiceCreateParams(RequestOptions):
"""
The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`.
"""
+ default_margins: NotRequired[List[str]]
+ """
+ The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
+ """
default_payment_method: NotRequired[str]
"""
ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
@@ -144,6 +152,25 @@ class InvoiceCreateParams(RequestOptions):
"""
+class InvoiceCreateParamsAmountsDue(TypedDict):
+ amount: int
+ """
+ The amount in cents (or local equivalent).
+ """
+ days_until_due: NotRequired[int]
+ """
+ Number of days from when invoice is finalized until the payment is due.
+ """
+ description: str
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users.
+ """
+ due_date: NotRequired[int]
+ """
+ Date on which a payment plan's payment is due.
+ """
+
+
class InvoiceCreateParamsAutomaticTax(TypedDict):
enabled: bool
"""
@@ -186,12 +213,42 @@ class InvoiceCreateParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["InvoiceCreateParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceCreateParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired["InvoiceCreateParamsDiscountDiscountEndDuration"]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceCreateParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceCreateParamsFromInvoice(TypedDict):
action: Literal["revision"]
"""
@@ -226,7 +283,7 @@ class InvoiceCreateParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to the invoice's PaymentIntent.
"""
payment_method_types: NotRequired[
- "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]"
+ "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
@@ -258,6 +315,12 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
"""
+ id_bank_transfer: NotRequired[
+ "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer"
+ ]
+ """
+ If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
+ """
konbini: NotRequired[
"Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsKonbini"
]
@@ -270,12 +333,24 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice's PaymentIntent.
"""
+ pix: NotRequired[
+ "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPix"
+ ]
+ """
+ If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice's PaymentIntent.
+ """
sepa_debit: NotRequired[
"Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit"
]
"""
If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice's PaymentIntent.
"""
+ upi: NotRequired[
+ "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUpi"
+ ]
+ """
+ If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
+ """
us_bank_account: NotRequired[
"Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount"
]
@@ -409,6 +484,12 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankT
"""
+class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer(
+ TypedDict,
+):
+ pass
+
+
class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsKonbini(TypedDict):
pass
@@ -449,12 +530,49 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions(
"""
+class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPix(TypedDict):
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+
+
class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit(
TypedDict,
):
pass
+class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUpi(TypedDict):
+ mandate_options: NotRequired[
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+
+
class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount(
TypedDict,
):
@@ -490,7 +608,11 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -504,6 +626,10 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
class InvoiceCreateParamsRendering(TypedDict):
diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py
index 66980f77c..f520f9f9d 100644
--- a/stripe/params/_invoice_create_preview_params.py
+++ b/stripe/params/_invoice_create_preview_params.py
@@ -10,6 +10,10 @@ class InvoiceCreatePreviewParams(RequestOptions):
"""
Settings for automatic tax lookup for this invoice preview.
"""
+ billing_cadence: NotRequired[str]
+ """
+ The identifier of the billing cadence for which you'd like to retrieve the upcoming invoice. Cannot be provided when `subscription`, `schedule`, `subscription_details` or `schedule_details` are provided.
+ """
currency: NotRequired[str]
"""
The currency to preview this invoice in. Defaults to that of `customer` if not specified.
@@ -330,12 +334,44 @@ class InvoiceCreatePreviewParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["InvoiceCreatePreviewParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceCreatePreviewParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "InvoiceCreatePreviewParamsDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceCreatePreviewParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceCreatePreviewParamsInvoiceItem(TypedDict):
amount: NotRequired[int]
"""
@@ -414,12 +450,48 @@ class InvoiceCreatePreviewParamsInvoiceItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "InvoiceCreatePreviewParamsInvoiceItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceCreatePreviewParamsInvoiceItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "InvoiceCreatePreviewParamsInvoiceItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceCreatePreviewParamsInvoiceItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceCreatePreviewParamsInvoiceItemPeriod(TypedDict):
end: int
"""
@@ -457,34 +529,624 @@ class InvoiceCreatePreviewParamsInvoiceItemPriceData(TypedDict):
class InvoiceCreatePreviewParamsIssuer(TypedDict):
account: NotRequired[str]
"""
- The connected account being referenced when `type` is `account`.
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced in the request.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetails(TypedDict):
+ amendments: NotRequired[
+ List["InvoiceCreatePreviewParamsScheduleDetailsAmendment"]
+ ]
+ """
+ Changes to apply to the phases of the subscription schedule, in the order provided.
+ """
+ billing_behavior: NotRequired[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
+ billing_mode: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsBillingMode"
+ ]
+ """
+ Controls how prorations and invoices for subscriptions are calculated and orchestrated.
+ """
+ end_behavior: NotRequired[Literal["cancel", "release"]]
+ """
+ Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
+ """
+ phases: NotRequired[List["InvoiceCreatePreviewParamsScheduleDetailsPhase"]]
+ """
+ List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
+ """
+ prebilling: NotRequired[
+ "Literal['']|List[InvoiceCreatePreviewParamsScheduleDetailsPrebilling]"
+ ]
+ """
+ Provide any time periods to bill in advance.
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendment(TypedDict):
+ amendment_end: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEnd"
+ ]
+ """
+ Details to identify the end of the time range modified by the proposed change. If not supplied, the amendment is considered a point-in-time operation that only affects the exact timestamp at `amendment_start`, and a restricted set of attributes is supported on the amendment.
+ """
+ amendment_start: (
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStart"
+ )
+ """
+ Details to identify the earliest timestamp where the proposed change should take effect.
+ """
+ billing_cycle_anchor: NotRequired[Literal["amendment_start", "automatic"]]
+ """
+ For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
+ """
+ discount_actions: NotRequired[
+ List[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountAction"
+ ]
+ ]
+ """
+ Changes to the coupons being redeemed or discounts being applied during the amendment time span.
+ """
+ item_actions: NotRequired[
+ List["InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemAction"]
+ ]
+ """
+ Changes to the subscription items during the amendment time span.
+ """
+ metadata_actions: NotRequired[
+ List[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentMetadataAction"
+ ]
+ ]
+ """
+ Instructions for how to modify phase metadata
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Changes to how Stripe handles prorations during the amendment time span. Affects if and how prorations are created when a future phase starts. In cases where the amendment changes the currently active phase, it is used to determine whether or how to prorate now, at the time of the request. Also supported as a point-in-time operation when `amendment_end` is `null`.
+ """
+ set_pause_collection: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentSetPauseCollection"
+ ]
+ """
+ Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
+ """
+ set_schedule_end: NotRequired[Literal["amendment_end", "amendment_start"]]
+ """
+ Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
+ """
+ trial_settings: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentTrialSettings"
+ ]
+ """
+ Settings related to subscription trials.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEnd(
+ TypedDict
+):
+ discount_end: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEndDiscountEnd"
+ ]
+ """
+ Use the `end` time of a given discount.
+ """
+ duration: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEndDuration"
+ ]
+ """
+ Time span for the amendment starting from the `amendment_start`.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
+ """
+ type: Literal[
+ "discount_end",
+ "duration",
+ "schedule_end",
+ "timestamp",
+ "trial_end",
+ "trial_start",
+ "upcoming_invoice",
+ ]
+ """
+ Select one of three ways to pass the `amendment_end`.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEndDiscountEnd(
+ TypedDict,
+):
+ discount: str
+ """
+ The ID of a specific discount.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStart(
+ TypedDict,
+):
+ amendment_end: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartAmendmentEnd"
+ ]
+ """
+ Details of another amendment in the same array, immediately after which this amendment should begin.
+ """
+ discount_end: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartDiscountEnd"
+ ]
+ """
+ Use the `end` time of a given discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the amendment to start.
+ """
+ type: Literal[
+ "amendment_end",
+ "discount_end",
+ "now",
+ "schedule_end",
+ "timestamp",
+ "trial_end",
+ "trial_start",
+ "upcoming_invoice",
+ ]
+ """
+ Select one of three ways to pass the `amendment_start`.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartAmendmentEnd(
+ TypedDict,
+):
+ index: int
+ """
+ The position of the previous amendment in the `amendments` array after which this amendment should begin. Indexes start from 0 and must be less than the index of the current amendment in the array.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentAmendmentStartDiscountEnd(
+ TypedDict,
+):
+ discount: str
+ """
+ The ID of a specific discount.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountAction(
+ TypedDict,
+):
+ add: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAdd"
+ ]
+ """
+ Details of the discount to add.
+ """
+ remove: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionRemove"
+ ]
+ """
+ Details of the discount to remove.
+ """
+ set: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionSet"
+ ]
+ """
+ Details of the discount to replace the existing discounts with.
+ """
+ type: Literal["add", "remove", "set"]
+ """
+ Determines the type of discount action.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAdd(
+ TypedDict,
+):
+ coupon: NotRequired[str]
+ """
+ The coupon code to redeem.
+ """
+ discount: NotRequired[str]
+ """
+ An ID of an existing discount for a coupon that was already redeemed.
+ """
+ discount_end: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAddDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ index: NotRequired[int]
+ """
+ The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
+ """
+ promotion_code: NotRequired[str]
+ """
+ The promotion code to redeem.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionAddDiscountEnd(
+ TypedDict,
+):
+ type: Literal["amendment_end"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionRemove(
+ TypedDict,
+):
+ coupon: NotRequired[str]
+ """
+ The coupon code to remove from the `discounts` array.
+ """
+ discount: NotRequired[str]
+ """
+ The ID of a discount to remove from the `discounts` array.
+ """
+ promotion_code: NotRequired[str]
+ """
+ The ID of a promotion code to remove from the `discounts` array.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentDiscountActionSet(
+ TypedDict,
+):
+ coupon: NotRequired[str]
+ """
+ The coupon code to replace the `discounts` array with.
+ """
+ discount: NotRequired[str]
+ """
+ An ID of an existing discount to replace the `discounts` array with.
+ """
+ promotion_code: NotRequired[str]
+ """
+ An ID of an existing promotion code to replace the `discounts` array with.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemAction(TypedDict):
+ add: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAdd"
+ ]
+ """
+ Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item.
+ """
+ remove: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionRemove"
+ ]
+ """
+ Details of the subscription item to remove.
+ """
+ set: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSet"
+ ]
+ """
+ Details of the subscription item to replace the existing items with. If an item with the `set[price]` already exists, the `items` array is not cleared. Instead, all of the other `set` properties that are passed in this request will replace the existing values for the configuration item.
+ """
+ type: Literal["add", "remove", "set"]
+ """
+ Determines the type of item action.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAdd(
+ TypedDict,
+):
+ discounts: NotRequired[
+ List[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscount"
+ ]
+ ]
+ """
+ The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ price: str
+ """
+ The ID of the price object.
+ """
+ quantity: NotRequired[int]
+ """
+ Quantity for this item.
+ """
+ tax_rates: NotRequired[List[str]]
+ """
+ The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
+ """
+ trial: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddTrial"
+ ]
+ """
+ Options that configure the trial on the subscription item.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscount(
+ TypedDict,
+):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEnd(
+ TypedDict,
+):
+ duration: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionAddTrial(
+ TypedDict,
+):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionRemove(
+ TypedDict,
+):
+ price: str
+ """
+ ID of a price to remove.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSet(
+ TypedDict,
+):
+ discounts: NotRequired[
+ List[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscount"
+ ]
+ ]
+ """
+ If an item with the `price` already exists, passing this will override the `discounts` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `discounts`.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
+ """
+ price: str
+ """
+ The ID of the price object.
+ """
+ quantity: NotRequired[int]
+ """
+ If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
+ """
+ tax_rates: NotRequired[List[str]]
+ """
+ If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
+ """
+ trial: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetTrial"
+ ]
+ """
+ If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscount(
+ TypedDict,
+):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEnd(
+ TypedDict,
+):
+ duration: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentItemActionSetTrial(
+ TypedDict,
+):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentMetadataAction(
+ TypedDict,
+):
+ add: NotRequired[Dict[str, str]]
+ """
+ Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
+ """
+ remove: NotRequired[List[str]]
+ """
+ Keys to remove from schedule phase metadata.
"""
- type: Literal["account", "self"]
+ set: NotRequired["Literal['']|Dict[str, str]"]
"""
- Type of the account referenced in the request.
+ Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
+ """
+ type: Literal["add", "remove", "set"]
+ """
+ Select one of three ways to update phase-level `metadata` on subscription schedules.
"""
-class InvoiceCreatePreviewParamsScheduleDetails(TypedDict):
- billing_mode: NotRequired[
- "InvoiceCreatePreviewParamsScheduleDetailsBillingMode"
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentSetPauseCollection(
+ TypedDict,
+):
+ set: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentSetPauseCollectionSet"
]
"""
- Controls how prorations and invoices for subscriptions are calculated and orchestrated.
+ Details of the pause_collection behavior to apply to the amendment.
"""
- end_behavior: NotRequired[Literal["cancel", "release"]]
+ type: Literal["remove", "set"]
"""
- Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
+ Determines the type of the pause_collection amendment.
"""
- phases: NotRequired[List["InvoiceCreatePreviewParamsScheduleDetailsPhase"]]
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentSetPauseCollectionSet(
+ TypedDict,
+):
+ behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
"""
- List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
"""
- proration_behavior: NotRequired[
- Literal["always_invoice", "create_prorations", "none"]
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentTrialSettings(
+ TypedDict,
+):
+ end_behavior: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsAmendmentTrialSettingsEndBehavior"
]
"""
- In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
+ Defines how the subscription should behave when a trial ends.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsAmendmentTrialSettingsEndBehavior(
+ TypedDict,
+):
+ prorate_up_front: NotRequired[Literal["defer", "include"]]
+ """
+ Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
"""
@@ -591,6 +1253,12 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhase(TypedDict):
"""
The account on behalf of which to charge, for each of the associated subscription's invoices.
"""
+ pause_collection: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPhasePauseCollection"
+ ]
+ """
+ If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
+ """
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
]
@@ -611,10 +1279,20 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhase(TypedDict):
"""
If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
"""
+ trial_continuation: NotRequired[Literal["continue", "none"]]
+ """
+ Specify trial behavior when crossing phase boundaries
+ """
trial_end: NotRequired["int|Literal['now']"]
"""
Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
"""
+ trial_settings: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseTrialSettings"
+ ]
+ """
+ Settings related to subscription trials.
+ """
class InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem(TypedDict):
@@ -667,12 +1345,50 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscount(
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEnd(
+ TypedDict,
+):
+ duration: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPeriod(
TypedDict,
):
@@ -787,12 +1503,50 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscountDiscountEnd(
+ TypedDict,
+):
+ duration: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceCreatePreviewParamsScheduleDetailsPhaseDuration(TypedDict):
interval: Literal["day", "month", "week", "year"]
"""
@@ -873,6 +1627,12 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseItem(TypedDict):
"""
A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
"""
+ trial: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemTrial"
+ ]
+ """
+ Options that configure the trial on the subscription item.
+ """
class InvoiceCreatePreviewParamsScheduleDetailsPhaseItemBillingThresholds(
@@ -893,12 +1653,50 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscountDiscountEnd(
+ TypedDict,
+):
+ duration: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsPhaseItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceData(TypedDict):
currency: str
"""
@@ -941,6 +1739,24 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring(
"""
+class InvoiceCreatePreviewParamsScheduleDetailsPhaseItemTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsPhasePauseCollection(TypedDict):
+ behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+
+
class InvoiceCreatePreviewParamsScheduleDetailsPhaseTransferData(TypedDict):
amount_percent: NotRequired[float]
"""
@@ -952,6 +1768,82 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseTransferData(TypedDict):
"""
+class InvoiceCreatePreviewParamsScheduleDetailsPhaseTrialSettings(TypedDict):
+ end_behavior: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPhaseTrialSettingsEndBehavior"
+ ]
+ """
+ Defines how the subscription should behave when a trial ends.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsPhaseTrialSettingsEndBehavior(
+ TypedDict,
+):
+ prorate_up_front: NotRequired[Literal["defer", "include"]]
+ """
+ Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsPrebilling(TypedDict):
+ bill_until: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntil"
+ ]
+ """
+ The end of the prebilled time period.
+ """
+ iterations: NotRequired[int]
+ """
+ This is used to determine the number of billing cycles to prebill.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntil(TypedDict):
+ amendment_end: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntilAmendmentEnd"
+ ]
+ """
+ End the prebilled period when a specified amendment ends.
+ """
+ duration: NotRequired[
+ "InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntilDuration"
+ ]
+ """
+ Time span for prebilling, starting from `bill_from`.
+ """
+ timestamp: NotRequired[int]
+ """
+ End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
+ """
+ type: Literal["amendment_end", "duration", "schedule_end", "timestamp"]
+ """
+ Select one of several ways to pass the `bill_until` value.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntilAmendmentEnd(
+ TypedDict,
+):
+ index: int
+ """
+ The position of the amendment in the `amendments` array at which prebilling should end. Indexes start from 0 and must be less than the total number of supplied amendments.
+ """
+
+
+class InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntilDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceCreatePreviewParamsSubscriptionDetails(TypedDict):
billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|int"]
"""
@@ -963,6 +1855,12 @@ class InvoiceCreatePreviewParamsSubscriptionDetails(TypedDict):
"""
Controls how prorations and invoices for subscriptions are calculated and orchestrated.
"""
+ billing_schedules: NotRequired[
+ "Literal['']|List[InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule]"
+ ]
+ """
+ Sets the billing schedules for the subscription.
+ """
cancel_at: NotRequired[
"Literal['']|int|Literal['max_period_end', 'min_period_end']"
]
@@ -987,6 +1885,12 @@ class InvoiceCreatePreviewParamsSubscriptionDetails(TypedDict):
"""
A list of up to 20 subscription items, each with an attached price.
"""
+ prebilling: NotRequired[
+ "InvoiceCreatePreviewParamsSubscriptionDetailsPrebilling"
+ ]
+ """
+ The pre-billing to apply to the subscription as a preview.
+ """
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
]
@@ -1033,6 +1937,72 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible(
"""
+class InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule(TypedDict):
+ applies_to: NotRequired[
+ List[
+ "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo"
+ ]
+ ]
+ """
+ Configure billing schedule differently for individual subscription items.
+ """
+ bill_until: NotRequired[
+ "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil"
+ ]
+ """
+ The end date for the billing schedule.
+ """
+ key: NotRequired[str]
+ """
+ Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
+ """
+
+
+class InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleAppliesTo(
+ TypedDict,
+):
+ price: NotRequired[str]
+ """
+ The ID of the price object.
+ """
+ type: Literal["price"]
+ """
+ Controls which subscription items the billing schedule applies to.
+ """
+
+
+class InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil(
+ TypedDict,
+):
+ duration: NotRequired[
+ "InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration"
+ ]
+ """
+ Specifies the billing period.
+ """
+ timestamp: NotRequired[int]
+ """
+ The end date of the billing schedule.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
+ """
+
+
+class InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies billing duration. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: NotRequired[int]
+ """
+ The multiplier applied to the interval.
+ """
+
+
class InvoiceCreatePreviewParamsSubscriptionDetailsItem(TypedDict):
billing_thresholds: NotRequired[
"Literal['']|InvoiceCreatePreviewParamsSubscriptionDetailsItemBillingThresholds"
@@ -1104,12 +2074,50 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscountDiscountEnd(
+ TypedDict,
+):
+ duration: NotRequired[
+ "InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceCreatePreviewParamsSubscriptionDetailsItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceData(TypedDict):
currency: str
"""
@@ -1150,3 +2158,10 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring(
"""
The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
"""
+
+
+class InvoiceCreatePreviewParamsSubscriptionDetailsPrebilling(TypedDict):
+ iterations: int
+ """
+ This is used to determine the number of billing cycles to prebill.
+ """
diff --git a/stripe/params/_invoice_item_create_params.py b/stripe/params/_invoice_item_create_params.py
index aa6098154..8973bd53a 100644
--- a/stripe/params/_invoice_item_create_params.py
+++ b/stripe/params/_invoice_item_create_params.py
@@ -42,6 +42,10 @@ class InvoiceItemCreateParams(RequestOptions):
"""
The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.
"""
+ margins: NotRequired[List[str]]
+ """
+ The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
+ """
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -93,12 +97,42 @@ class InvoiceItemCreateParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["InvoiceItemCreateParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceItemCreateParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired["InvoiceItemCreateParamsDiscountDiscountEndDuration"]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceItemCreateParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceItemCreateParamsPeriod(TypedDict):
end: int
"""
diff --git a/stripe/params/_invoice_item_modify_params.py b/stripe/params/_invoice_item_modify_params.py
index e0e187bdd..6a6623db4 100644
--- a/stripe/params/_invoice_item_modify_params.py
+++ b/stripe/params/_invoice_item_modify_params.py
@@ -26,6 +26,10 @@ class InvoiceItemModifyParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
+ margins: NotRequired["Literal['']|List[str]"]
+ """
+ The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
+ """
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -73,12 +77,42 @@ class InvoiceItemModifyParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["InvoiceItemModifyParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceItemModifyParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired["InvoiceItemModifyParamsDiscountDiscountEndDuration"]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceItemModifyParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceItemModifyParamsPeriod(TypedDict):
end: int
"""
diff --git a/stripe/params/_invoice_item_update_params.py b/stripe/params/_invoice_item_update_params.py
index 0546c29fb..f10d2bef8 100644
--- a/stripe/params/_invoice_item_update_params.py
+++ b/stripe/params/_invoice_item_update_params.py
@@ -25,6 +25,10 @@ class InvoiceItemUpdateParams(TypedDict):
"""
Specifies which fields in the response should be expanded.
"""
+ margins: NotRequired["Literal['']|List[str]"]
+ """
+ The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
+ """
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -72,12 +76,42 @@ class InvoiceItemUpdateParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["InvoiceItemUpdateParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceItemUpdateParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired["InvoiceItemUpdateParamsDiscountDiscountEndDuration"]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceItemUpdateParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceItemUpdateParamsPeriod(TypedDict):
end: int
"""
diff --git a/stripe/params/_invoice_line_item_update_params.py b/stripe/params/_invoice_line_item_update_params.py
index 51047aefe..31fc52d74 100644
--- a/stripe/params/_invoice_line_item_update_params.py
+++ b/stripe/params/_invoice_line_item_update_params.py
@@ -27,6 +27,10 @@ class InvoiceLineItemUpdateParams(TypedDict):
"""
Specifies which fields in the response should be expanded.
"""
+ margins: NotRequired["Literal['']|List[str]"]
+ """
+ The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
+ """
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
@@ -68,12 +72,44 @@ class InvoiceLineItemUpdateParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["InvoiceLineItemUpdateParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceLineItemUpdateParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "InvoiceLineItemUpdateParamsDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceLineItemUpdateParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceLineItemUpdateParamsPeriod(TypedDict):
end: int
"""
diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py
index cf77a12ad..f4cfc7275 100644
--- a/stripe/params/_invoice_modify_params.py
+++ b/stripe/params/_invoice_modify_params.py
@@ -10,6 +10,10 @@ class InvoiceModifyParams(RequestOptions):
"""
The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
"""
+ amounts_due: NotRequired["Literal['']|List[InvoiceModifyParamsAmountsDue]"]
+ """
+ List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
+ """
application_fee_amount: NotRequired[int]
"""
A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
@@ -42,6 +46,10 @@ class InvoiceModifyParams(RequestOptions):
"""
The number of days from which the invoice is created until it is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
"""
+ default_margins: NotRequired["Literal['']|List[str]"]
+ """
+ The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
+ """
default_payment_method: NotRequired[str]
"""
ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
@@ -122,6 +130,25 @@ class InvoiceModifyParams(RequestOptions):
"""
+class InvoiceModifyParamsAmountsDue(TypedDict):
+ amount: int
+ """
+ The amount in cents (or local equivalent).
+ """
+ days_until_due: NotRequired[int]
+ """
+ Number of days from when invoice is finalized until the payment is due.
+ """
+ description: str
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users.
+ """
+ due_date: NotRequired[int]
+ """
+ Date on which a payment plan's payment is due.
+ """
+
+
class InvoiceModifyParamsAutomaticTax(TypedDict):
enabled: bool
"""
@@ -164,12 +191,42 @@ class InvoiceModifyParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["InvoiceModifyParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceModifyParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired["InvoiceModifyParamsDiscountDiscountEndDuration"]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceModifyParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceModifyParamsIssuer(TypedDict):
account: NotRequired[str]
"""
@@ -193,7 +250,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to the invoice's PaymentIntent.
"""
payment_method_types: NotRequired[
- "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]"
+ "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
@@ -225,6 +282,12 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
"""
+ id_bank_transfer: NotRequired[
+ "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer"
+ ]
+ """
+ If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
+ """
konbini: NotRequired[
"Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsKonbini"
]
@@ -237,12 +300,24 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice's PaymentIntent.
"""
+ pix: NotRequired[
+ "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPix"
+ ]
+ """
+ If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice's PaymentIntent.
+ """
sepa_debit: NotRequired[
"Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit"
]
"""
If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice's PaymentIntent.
"""
+ upi: NotRequired[
+ "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUpi"
+ ]
+ """
+ If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
+ """
us_bank_account: NotRequired[
"Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount"
]
@@ -376,6 +451,12 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankT
"""
+class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer(
+ TypedDict,
+):
+ pass
+
+
class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsKonbini(TypedDict):
pass
@@ -416,12 +497,49 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions(
"""
+class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPix(TypedDict):
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+
+
class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit(
TypedDict,
):
pass
+class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUpi(TypedDict):
+ mandate_options: NotRequired[
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+
+
class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount(
TypedDict,
):
@@ -457,7 +575,11 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -471,6 +593,10 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
class InvoiceModifyParamsRendering(TypedDict):
diff --git a/stripe/params/_invoice_update_lines_params.py b/stripe/params/_invoice_update_lines_params.py
index 1067b2c71..c8ebf3e53 100644
--- a/stripe/params/_invoice_update_lines_params.py
+++ b/stripe/params/_invoice_update_lines_params.py
@@ -43,6 +43,10 @@ class InvoiceUpdateLinesParamsLine(TypedDict):
"""
ID of an existing line item on the invoice.
"""
+ margins: NotRequired["Literal['']|List[str]"]
+ """
+ The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
+ """
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
@@ -84,12 +88,46 @@ class InvoiceUpdateLinesParamsLineDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "InvoiceUpdateLinesParamsLineDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceUpdateLinesParamsLineDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "InvoiceUpdateLinesParamsLineDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceUpdateLinesParamsLineDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceUpdateLinesParamsLinePeriod(TypedDict):
end: int
"""
diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py
index 019aed872..c80d7e771 100644
--- a/stripe/params/_invoice_update_params.py
+++ b/stripe/params/_invoice_update_params.py
@@ -9,6 +9,10 @@ class InvoiceUpdateParams(TypedDict):
"""
The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
"""
+ amounts_due: NotRequired["Literal['']|List[InvoiceUpdateParamsAmountsDue]"]
+ """
+ List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
+ """
application_fee_amount: NotRequired[int]
"""
A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
@@ -41,6 +45,10 @@ class InvoiceUpdateParams(TypedDict):
"""
The number of days from which the invoice is created until it is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
"""
+ default_margins: NotRequired["Literal['']|List[str]"]
+ """
+ The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
+ """
default_payment_method: NotRequired[str]
"""
ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
@@ -121,6 +129,25 @@ class InvoiceUpdateParams(TypedDict):
"""
+class InvoiceUpdateParamsAmountsDue(TypedDict):
+ amount: int
+ """
+ The amount in cents (or local equivalent).
+ """
+ days_until_due: NotRequired[int]
+ """
+ Number of days from when invoice is finalized until the payment is due.
+ """
+ description: str
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users.
+ """
+ due_date: NotRequired[int]
+ """
+ Date on which a payment plan's payment is due.
+ """
+
+
class InvoiceUpdateParamsAutomaticTax(TypedDict):
enabled: bool
"""
@@ -163,12 +190,42 @@ class InvoiceUpdateParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["InvoiceUpdateParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class InvoiceUpdateParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired["InvoiceUpdateParamsDiscountDiscountEndDuration"]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class InvoiceUpdateParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class InvoiceUpdateParamsIssuer(TypedDict):
account: NotRequired[str]
"""
@@ -192,7 +249,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to the invoice's PaymentIntent.
"""
payment_method_types: NotRequired[
- "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]"
+ "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
@@ -224,6 +281,12 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
"""
+ id_bank_transfer: NotRequired[
+ "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer"
+ ]
+ """
+ If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
+ """
konbini: NotRequired[
"Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini"
]
@@ -236,12 +299,24 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice's PaymentIntent.
"""
+ pix: NotRequired[
+ "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPix"
+ ]
+ """
+ If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice's PaymentIntent.
+ """
sepa_debit: NotRequired[
"Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit"
]
"""
If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice's PaymentIntent.
"""
+ upi: NotRequired[
+ "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUpi"
+ ]
+ """
+ If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
+ """
us_bank_account: NotRequired[
"Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount"
]
@@ -375,6 +450,12 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankT
"""
+class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer(
+ TypedDict,
+):
+ pass
+
+
class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini(TypedDict):
pass
@@ -415,12 +496,49 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions(
"""
+class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPix(TypedDict):
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+
+
class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit(
TypedDict,
):
pass
+class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUpi(TypedDict):
+ mandate_options: NotRequired[
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+
+
class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount(
TypedDict,
):
@@ -456,7 +574,11 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -470,6 +592,10 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
class InvoiceUpdateParamsRendering(TypedDict):
diff --git a/stripe/params/_mandate_list_params.py b/stripe/params/_mandate_list_params.py
new file mode 100644
index 000000000..69bc69f1a
--- /dev/null
+++ b/stripe/params/_mandate_list_params.py
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import Literal, NotRequired
+
+
+class MandateListParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ on_behalf_of: NotRequired[str]
+ """
+ The Stripe account ID that the mandates are intended for. Learn more about the [use case for connected accounts payments](https://docs.stripe.com/payments/connected-accounts).
+ """
+ payment_method: str
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
+ status: Literal["active", "inactive", "pending"]
+ """
+ The status of the mandates to retrieve. Status indicates whether or not you can use it to initiate a payment, and can have a value of `active`, `pending`, or `inactive`.
+ """
diff --git a/stripe/params/_margin_create_params.py b/stripe/params/_margin_create_params.py
new file mode 100644
index 000000000..457d9f5ca
--- /dev/null
+++ b/stripe/params/_margin_create_params.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import Dict, List
+from typing_extensions import NotRequired
+
+
+class MarginCreateParams(RequestOptions):
+ active: NotRequired[bool]
+ """
+ Whether the margin can be applied to invoices, invoice items, or invoice line items or not. Defaults to `true`.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ name: NotRequired[str]
+ """
+ Name of the margin, which is displayed to customers, such as on invoices.
+ """
+ percent_off: float
+ """
+ Percent that will be taken off the subtotal before tax (after all other discounts and promotions) of any invoice to which the margin is applied.
+ """
diff --git a/stripe/params/_margin_list_params.py b/stripe/params/_margin_list_params.py
new file mode 100644
index 000000000..2ea8ec295
--- /dev/null
+++ b/stripe/params/_margin_list_params.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class MarginListParams(RequestOptions):
+ active: NotRequired[bool]
+ """
+ Only return margins that are active or inactive. For example, pass `true` to only list active margins.
+ """
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_margin_modify_params.py b/stripe/params/_margin_modify_params.py
new file mode 100644
index 000000000..d0bc27a56
--- /dev/null
+++ b/stripe/params/_margin_modify_params.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import Dict, List
+from typing_extensions import NotRequired
+
+
+class MarginModifyParams(RequestOptions):
+ active: NotRequired[bool]
+ """
+ Whether the margin can be applied to invoices, invoice items, or invoice line items or not.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ name: NotRequired[str]
+ """
+ Name of the margin, which is displayed to customers, such as on invoices.
+ """
diff --git a/stripe/params/_margin_retrieve_params.py b/stripe/params/_margin_retrieve_params.py
new file mode 100644
index 000000000..12ac30aac
--- /dev/null
+++ b/stripe/params/_margin_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class MarginRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/_margin_update_params.py b/stripe/params/_margin_update_params.py
new file mode 100644
index 000000000..ff9827747
--- /dev/null
+++ b/stripe/params/_margin_update_params.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict, List
+from typing_extensions import NotRequired, TypedDict
+
+
+class MarginUpdateParams(TypedDict):
+ active: NotRequired[bool]
+ """
+ Whether the margin can be applied to invoices, invoice items, or invoice line items or not.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ name: NotRequired[str]
+ """
+ Name of the margin, which is displayed to customers, such as on invoices.
+ """
diff --git a/stripe/params/_order_cancel_params.py b/stripe/params/_order_cancel_params.py
new file mode 100644
index 000000000..ba99988d5
--- /dev/null
+++ b/stripe/params/_order_cancel_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class OrderCancelParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/_order_create_params.py b/stripe/params/_order_create_params.py
new file mode 100644
index 000000000..607e35e6d
--- /dev/null
+++ b/stripe/params/_order_create_params.py
@@ -0,0 +1,2497 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class OrderCreateParams(RequestOptions):
+ automatic_tax: NotRequired["OrderCreateParamsAutomaticTax"]
+ """
+ Settings for automatic tax calculation for this order.
+ """
+ billing_details: NotRequired["Literal['']|OrderCreateParamsBillingDetails"]
+ """
+ Billing details for the customer. If a customer is provided, this will be automatically populated with values from that customer if override values are not provided.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ customer: NotRequired[str]
+ """
+ The customer associated with this order.
+ """
+ description: NotRequired[str]
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users.
+ """
+ discounts: NotRequired["Literal['']|List[OrderCreateParamsDiscount]"]
+ """
+ The coupons, promotion codes, and/or discounts to apply to the order.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ ip_address: NotRequired[str]
+ """
+ The IP address of the purchaser for this order.
+ """
+ line_items: List["OrderCreateParamsLineItem"]
+ """
+ A list of line items the customer is ordering. Each line item includes information about the product, the quantity, and the resulting cost.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ payment: NotRequired["OrderCreateParamsPayment"]
+ """
+ Payment information associated with the order, including payment settings.
+ """
+ shipping_cost: NotRequired["Literal['']|OrderCreateParamsShippingCost"]
+ """
+ Settings for the customer cost of shipping for this order.
+ """
+ shipping_details: NotRequired[
+ "Literal['']|OrderCreateParamsShippingDetails"
+ ]
+ """
+ Shipping details for the order.
+ """
+ tax_details: NotRequired["OrderCreateParamsTaxDetails"]
+ """
+ Additional tax details about the purchaser to be used for this order.
+ """
+
+
+class OrderCreateParamsAutomaticTax(TypedDict):
+ enabled: bool
+ """
+ Enable automatic tax calculation which will automatically compute tax rates on this order.
+ """
+
+
+class OrderCreateParamsBillingDetails(TypedDict):
+ address: NotRequired["OrderCreateParamsBillingDetailsAddress"]
+ """
+ The billing address provided by the customer.
+ """
+ email: NotRequired[str]
+ """
+ The billing email provided by the customer.
+ """
+ name: NotRequired[str]
+ """
+ The billing name provided by the customer.
+ """
+ phone: NotRequired[str]
+ """
+ The billing phone number provided by the customer.
+ """
+
+
+class OrderCreateParamsBillingDetailsAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
+ """
+
+
+class OrderCreateParamsDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class OrderCreateParamsLineItem(TypedDict):
+ description: NotRequired[str]
+ """
+ The description for the line item. Will default to the name of the associated product.
+ """
+ discounts: NotRequired[
+ "Literal['']|List[OrderCreateParamsLineItemDiscount]"
+ ]
+ """
+ The discounts applied to this line item.
+ """
+ price: NotRequired[str]
+ """
+ The ID of a [Price](https://docs.stripe.com/api/prices) to add to the Order.
+
+ The `price` parameter is an alternative to using the `product` parameter. If each of your products are sold at a single price, you can set `Product.default_price` and then pass the `product` parameter when creating a line item. If your products are sold at several possible prices, use the `price` parameter to explicitly specify which one to use.
+ """
+ price_data: NotRequired["OrderCreateParamsLineItemPriceData"]
+ """
+ Data used to generate a new Price object inline.
+
+ The `price_data` parameter is an alternative to using the `product` or `price` parameters. If you create a Product upfront and configure a `Product.default_price`, pass the `product` parameter when creating a line item. If you prefer not to define Products upfront, or if you charge variable prices, pass the `price_data` parameter to describe the price for this line item.
+
+ Each time you pass `price_data` we create a Price for the Product. This Price is hidden in both the Dashboard and API lists and cannot be reused.
+ """
+ product: NotRequired[str]
+ """
+ The ID of a [Product](https://docs.stripe.com/api/products) to add to the Order.
+
+ The Product must have a `default_price` specified. Otherwise, specify the price by passing the `price` or `price_data` parameter.
+ """
+ product_data: NotRequired["OrderCreateParamsLineItemProductData"]
+ """
+ Defines a [Product](https://docs.stripe.com/api/products) inline and adds it to the Order.
+
+ `product_data` is an alternative to the `product` parameter. If you created a Product upfront, use the `product` parameter to refer to the existing Product. But if you prefer not to create Products upfront, pass the `product_data` parameter to define a Product inline as part of configuring the Order.
+
+ `product_data` automatically creates a Product, just as if you had manually created the Product. If a Product with the same ID already exists, then `product_data` re-uses it to avoid duplicates.
+ """
+ quantity: NotRequired[int]
+ """
+ The quantity of the line item.
+ """
+ tax_rates: NotRequired["Literal['']|List[str]"]
+ """
+ The tax rates applied to this line item.
+ """
+
+
+class OrderCreateParamsLineItemDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+
+
+class OrderCreateParamsLineItemPriceData(TypedDict):
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ product: NotRequired[str]
+ """
+ ID of the [Product](https://docs.stripe.com/api/products) this [Price](https://docs.stripe.com/api/prices) belongs to.
+
+ Use this to implement a variable-pricing model in your integration. This is required if `product_data` is not specified.
+ """
+ tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ """
+ Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
+ """
+ unit_amount: NotRequired[int]
+ """
+ A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
+ """
+ unit_amount_decimal: NotRequired[str]
+ """
+ Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
+ """
+
+
+class OrderCreateParamsLineItemProductData(TypedDict):
+ description: NotRequired["Literal['']|str"]
+ """
+ The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
+ """
+ id: str
+ """
+ A unique identifier for this product.
+
+ `product_data` automatically creates a Product with this ID. If a Product with the same ID already exists, then `product_data` re-uses it to avoid duplicates. If any of the fields in the existing Product are different from the values in `product_data`, `product_data` updates the existing Product with the new information. So set `product_data[id]` to the same string every time you sell the same product, but don't re-use the same string for different products.
+ """
+ images: NotRequired["Literal['']|List[str]"]
+ """
+ A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
+ """
+ metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ name: str
+ """
+ The product's name, meant to be displayable to the customer.
+ """
+ package_dimensions: NotRequired[
+ "Literal['']|OrderCreateParamsLineItemProductDataPackageDimensions"
+ ]
+ """
+ The dimensions of this product for shipping purposes.
+ """
+ shippable: NotRequired[bool]
+ """
+ Whether this product is shipped (i.e., physical goods).
+ """
+ tax_code: NotRequired["Literal['']|str"]
+ """
+ A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
+ """
+ url: NotRequired["Literal['']|str"]
+ """
+ A URL of a publicly-accessible webpage for this product.
+ """
+
+
+class OrderCreateParamsLineItemProductDataPackageDimensions(TypedDict):
+ height: float
+ """
+ Height, in inches. Maximum precision is 2 decimal places.
+ """
+ length: float
+ """
+ Length, in inches. Maximum precision is 2 decimal places.
+ """
+ weight: float
+ """
+ Weight, in ounces. Maximum precision is 2 decimal places.
+ """
+ width: float
+ """
+ Width, in inches. Maximum precision is 2 decimal places.
+ """
+
+
+class OrderCreateParamsPayment(TypedDict):
+ settings: "OrderCreateParamsPaymentSettings"
+ """
+ Settings describing how the order should configure generated PaymentIntents.
+ """
+
+
+class OrderCreateParamsPaymentSettings(TypedDict):
+ application_fee_amount: NotRequired[int]
+ """
+ The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.
+ """
+ payment_method_options: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptions"
+ ]
+ """
+ PaymentMethod-specific configuration to provide to the order's PaymentIntent.
+ """
+ payment_method_types: NotRequired[
+ List[
+ Literal[
+ "acss_debit",
+ "afterpay_clearpay",
+ "alipay",
+ "au_becs_debit",
+ "bacs_debit",
+ "bancontact",
+ "card",
+ "customer_balance",
+ "eps",
+ "fpx",
+ "giropay",
+ "grabpay",
+ "ideal",
+ "klarna",
+ "link",
+ "oxxo",
+ "p24",
+ "paypal",
+ "sepa_debit",
+ "sofort",
+ "wechat_pay",
+ ]
+ ]
+ ]
+ """
+ The list of [payment method types](https://docs.stripe.com/payments/payment-methods/overview) to provide to the order's PaymentIntent. Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
+ """
+ return_url: NotRequired[str]
+ """
+ The URL to redirect the customer to after they authenticate their payment.
+ """
+ statement_descriptor: NotRequired[str]
+ """
+ For non-card charges, you can use this value as the complete description that appears on your customers' statements. Must contain at least one letter, maximum 22 characters.
+ """
+ statement_descriptor_suffix: NotRequired[str]
+ """
+ Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
+ """
+ transfer_data: NotRequired["OrderCreateParamsPaymentSettingsTransferData"]
+ """
+ Provides configuration for completing a transfer for the order after it is paid.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
+ acss_debit: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit"
+ ]
+ """
+ If paying by `acss_debit`, this sub-hash contains details about the ACSS Debit payment method options to pass to the order's PaymentIntent.
+ """
+ afterpay_clearpay: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay"
+ ]
+ """
+ If paying by `afterpay_clearpay`, this sub-hash contains details about the AfterpayClearpay payment method options to pass to the order's PaymentIntent.
+ """
+ alipay: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsAlipay"
+ ]
+ """
+ If paying by `alipay`, this sub-hash contains details about the Alipay payment method options to pass to the order's PaymentIntent.
+ """
+ bancontact: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsBancontact"
+ ]
+ """
+ If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the order's PaymentIntent.
+ """
+ card: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsCard"
+ ]
+ """
+ If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the order's PaymentIntent.
+ """
+ customer_balance: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance"
+ ]
+ """
+ If paying by `customer_balance`, this sub-hash contains details about the Customer Balance payment method options to pass to the order's PaymentIntent.
+ """
+ ideal: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsIdeal"
+ ]
+ """
+ If paying by `ideal`, this sub-hash contains details about the iDEAL payment method options to pass to the order's PaymentIntent.
+ """
+ klarna: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarna"
+ ]
+ """
+ If paying by `klarna`, this sub-hash contains details about the Klarna payment method options to pass to the order's PaymentIntent.
+ """
+ link: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsLink"
+ ]
+ """
+ If paying by `link`, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent.
+ """
+ oxxo: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsOxxo"
+ ]
+ """
+ If paying by `oxxo`, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent.
+ """
+ p24: NotRequired["OrderCreateParamsPaymentSettingsPaymentMethodOptionsP24"]
+ """
+ If paying by `p24`, this sub-hash contains details about the P24 payment method options to pass to the order's PaymentIntent.
+ """
+ paypal: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypal"
+ ]
+ """
+ If paying by `paypal`, this sub-hash contains details about the PayPal payment method options to pass to the order's PaymentIntent.
+ """
+ sepa_debit: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit"
+ ]
+ """
+ If paying by `sepa_debit`, this sub-hash contains details about the SEPA Debit payment method options to pass to the order's PaymentIntent.
+ """
+ sofort: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsSofort"
+ ]
+ """
+ If paying by `sofort`, this sub-hash contains details about the Sofort payment method options to pass to the order's PaymentIntent.
+ """
+ wechat_pay: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay"
+ ]
+ """
+ If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the order's PaymentIntent.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit(TypedDict):
+ mandate_options: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+ verification_method: NotRequired[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Bank account verification method.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions(
+ TypedDict,
+):
+ custom_mandate_url: NotRequired["Literal['']|str"]
+ """
+ A URL for custom mandate text to render during confirmation step.
+ The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
+ or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
+ """
+ interval_description: NotRequired[str]
+ """
+ Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
+ """
+ payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
+ """
+ Payment schedule for the mandate.
+ """
+ transaction_type: NotRequired[Literal["business", "personal"]]
+ """
+ Transaction type of the mandate.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay(
+ TypedDict,
+):
+ capture_method: NotRequired[
+ Literal["automatic", "automatic_async", "manual"]
+ ]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ reference: NotRequired[str]
+ """
+ An internal identifier or reference this payment corresponds to. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with the payment method.
+
+ Providing this parameter will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
+
+ When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsAlipay(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsBancontact(
+ TypedDict
+):
+ preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict):
+ capture_method: NotRequired[
+ Literal["automatic", "automatic_async", "manual"]
+ ]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+ setup_future_usage: NotRequired[
+ Literal["none", "off_session", "on_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with the payment method.
+
+ Providing this parameter will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
+
+ When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance(
+ TypedDict,
+):
+ bank_transfer: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer"
+ ]
+ """
+ Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ """
+ funding_type: NotRequired[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer(
+ TypedDict,
+):
+ eu_bank_transfer: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
+ ]
+ """
+ Configuration for the eu_bank_transfer funding type.
+ """
+ requested_address_types: NotRequired[
+ List[
+ Literal[
+ "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
+ ]
+ ]
+ ]
+ """
+ List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
+
+ Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
+ """
+ type: Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ """
+ The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+ TypedDict,
+):
+ country: str
+ """
+ The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsIdeal(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarna(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ on_demand: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand"
+ ]
+ """
+ On-demand details if setting up or charging an on-demand payment.
+ """
+ preferred_locale: NotRequired[
+ Literal[
+ "cs-CZ",
+ "da-DK",
+ "de-AT",
+ "de-CH",
+ "de-DE",
+ "el-GR",
+ "en-AT",
+ "en-AU",
+ "en-BE",
+ "en-CA",
+ "en-CH",
+ "en-CZ",
+ "en-DE",
+ "en-DK",
+ "en-ES",
+ "en-FI",
+ "en-FR",
+ "en-GB",
+ "en-GR",
+ "en-IE",
+ "en-IT",
+ "en-NL",
+ "en-NO",
+ "en-NZ",
+ "en-PL",
+ "en-PT",
+ "en-RO",
+ "en-SE",
+ "en-US",
+ "es-ES",
+ "es-US",
+ "fi-FI",
+ "fr-BE",
+ "fr-CA",
+ "fr-CH",
+ "fr-FR",
+ "it-CH",
+ "it-IT",
+ "nb-NO",
+ "nl-BE",
+ "nl-NL",
+ "pl-PL",
+ "pt-PT",
+ "ro-RO",
+ "sv-FI",
+ "sv-SE",
+ ]
+ ]
+ """
+ Preferred language of the Klarna authorization page that the customer is redirected to
+ """
+ setup_future_usage: NotRequired[
+ Literal["none", "off_session", "on_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ subscriptions: NotRequired[
+ "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription]"
+ ]
+ """
+ Subscription details if setting up or charging a subscription.
+ """
+ supplementary_purchase_data: NotRequired[
+ "Literal['']|OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData"
+ ]
+ """
+ Supplementary Purchase Data for the corresponding Klarna payment
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand(
+ TypedDict,
+):
+ average_amount: NotRequired[int]
+ """
+ Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
+ """
+ maximum_amount: NotRequired[int]
+ """
+ The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ """
+ minimum_amount: NotRequired[int]
+ """
+ The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ """
+ purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
+ """
+ Interval at which the customer is making purchases
+ """
+ purchase_interval_count: NotRequired[int]
+ """
+ The number of `purchase_interval` between charges
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Unit of time between subscription charges.
+ """
+ interval_count: NotRequired[int]
+ """
+ The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
+ """
+ name: NotRequired[str]
+ """
+ Name for subscription.
+ """
+ next_billing: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
+ ]
+ """
+ Describes the upcoming charge for this subscription.
+ """
+ reference: str
+ """
+ A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
+ TypedDict,
+):
+ amount: int
+ """
+ The amount of the next charge for the subscription.
+ """
+ date: str
+ """
+ The date of the next charge for the subscription in YYYY-MM-DD format.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData(
+ TypedDict,
+):
+ bus_reservation_details: NotRequired[
+ "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]"
+ ]
+ """
+ Supplementary bus reservation details.
+ """
+ event_reservation_details: NotRequired[
+ "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]"
+ ]
+ """
+ Supplementary event reservation details.
+ """
+ ferry_reservation_details: NotRequired[
+ "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]"
+ ]
+ """
+ Supplementary ferry reservation details.
+ """
+ insurances: NotRequired[
+ "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]"
+ ]
+ """
+ Supplementary insurance details.
+ """
+ marketplace_sellers: NotRequired[
+ "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]"
+ ]
+ """
+ Supplementary marketplace seller details.
+ """
+ round_trip_reservation_details: NotRequired[
+ "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]"
+ ]
+ """
+ Supplementary round trip reservation details.
+ """
+ train_reservation_details: NotRequired[
+ "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]"
+ ]
+ """
+ Supplementary train reservation details.
+ """
+ vouchers: NotRequired[
+ "Literal['']|List[OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]"
+ ]
+ """
+ Voucher details, such as a gift card or discount code.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail(
+ TypedDict,
+):
+ access_controlled_venue: NotRequired[bool]
+ """
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
+ address: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress"
+ ]
+ """
+ Address of the event.
+ """
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ ends_at: NotRequired[int]
+ """
+ End timestamp of the event.
+ """
+ event_company_name: NotRequired[str]
+ """
+ Company selling the ticket.
+ """
+ event_name: NotRequired[str]
+ """
+ Name of the event.
+ """
+ event_type: NotRequired[
+ Literal[
+ "concert",
+ "conference",
+ "digital_education",
+ "expo",
+ "festival",
+ "in_person_education",
+ "sport",
+ "tour",
+ ]
+ ]
+ """
+ Type of the event.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Start timestamp of the event.
+ """
+ venue_name: NotRequired[str]
+ """
+ Name of the venue where the event takes place.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller(
+ TypedDict,
+):
+ line_item_references: NotRequired[List[str]]
+ """
+ The references to line items for purchases with multiple associated sub-sellers.
+ """
+ marketplace_seller_address: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress"
+ ]
+ """
+ The address of the selling or delivering merchant.
+ """
+ marketplace_seller_name: NotRequired[str]
+ """
+ The name of the marketplace seller.
+ """
+ marketplace_seller_reference: NotRequired[str]
+ """
+ The unique identifier for the marketplace seller.
+ """
+ number_of_transactions: NotRequired[int]
+ """
+ The number of transactions the sub-seller completed in the last 12 months.
+ """
+ product_category: NotRequired[
+ Literal[
+ "accessories",
+ "appliances",
+ "apps_and_games",
+ "arts_crafts_and_sewing",
+ "automotive",
+ "baby",
+ "baby_clothing",
+ "bags_and_purses",
+ "beauty",
+ "books",
+ "cds_and_vinyl",
+ "cell_phones_and_accessories",
+ "collectibles_and_fine_arts",
+ "digital_music",
+ "electronics",
+ "grocery_and_gourmet_food",
+ "handmade",
+ "health_and_personal_care",
+ "home_and_kitchen",
+ "industrial_and_scientific",
+ "luggage_and_travel_gear",
+ "magazine_subscriptions",
+ "men_clothing",
+ "musical_instruments",
+ "office_products",
+ "patio_lawn_and_garden",
+ "pet_supplies",
+ "shoes",
+ "software",
+ "sports_and_outdoors",
+ "tools_and_home_improvement",
+ "toys_and_games",
+ "video_games",
+ "women_clothing",
+ ]
+ ]
+ """
+ The category of the product.
+ """
+ seller_last_login_at: NotRequired[int]
+ """
+ The date when the seller's account with the marketplace was last logged in.
+ """
+ seller_rating: NotRequired[
+ Literal["high", "low", "medium", "very_high", "very_low"]
+ ]
+ """
+ The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
+ """
+ seller_registered_at: NotRequired[int]
+ """
+ The date when the seller's account with the marketplace was created.
+ """
+ seller_updated_at: NotRequired[int]
+ """
+ The date when the seller's account with the marketplace was last updated.
+ """
+ shipping_references: NotRequired[List[str]]
+ """
+ The references to shipping addresses for purchases with multiple associated sub-sellers.
+ """
+ volume_of_transactions: NotRequired[int]
+ """
+ The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for this voucher.
+ """
+ ends_at: NotRequired[int]
+ """
+ The voucher validity end time.
+ """
+ starts_at: NotRequired[int]
+ """
+ The voucher validity start time.
+ """
+ voucher_company: NotRequired[str]
+ """
+ The issuer or provider of this voucher.
+ """
+ voucher_name: NotRequired[str]
+ """
+ The name or reference to identify the voucher.
+ """
+ voucher_type: NotRequired[
+ Literal[
+ "digital_product",
+ "discount",
+ "gift_card",
+ "physical_product",
+ "services",
+ ]
+ ]
+ """
+ The type of this voucher.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsLink(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ persistent_token: NotRequired[str]
+ """
+ [Deprecated] This is a legacy parameter that no longer has any function.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsOxxo(TypedDict):
+ expires_after_days: NotRequired[int]
+ """
+ The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsP24(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ tos_shown_and_accepted: NotRequired[bool]
+ """
+ Confirm that the payer has accepted the P24 terms and conditions.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypal(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+ line_items: NotRequired[
+ List[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem"
+ ]
+ ]
+ """
+ The line items purchased by the customer.
+ """
+ preferred_locale: NotRequired[
+ Literal[
+ "cs-CZ",
+ "da-DK",
+ "de-AT",
+ "de-DE",
+ "de-LU",
+ "el-GR",
+ "en-GB",
+ "en-US",
+ "es-ES",
+ "fi-FI",
+ "fr-BE",
+ "fr-FR",
+ "fr-LU",
+ "hu-HU",
+ "it-IT",
+ "nl-BE",
+ "nl-NL",
+ "pl-PL",
+ "pt-PT",
+ "sk-SK",
+ "sv-SE",
+ ]
+ ]
+ """
+ [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
+ """
+ reference: NotRequired[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
+ reference_id: NotRequired[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
+ risk_correlation_id: NotRequired[str]
+ """
+ The risk correlation ID for an on-session payment using a saved PayPal payment method.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ subsellers: NotRequired[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem(
+ TypedDict,
+):
+ category: NotRequired[
+ Literal["digital_goods", "donation", "physical_goods"]
+ ]
+ """
+ Type of the line item.
+ """
+ description: NotRequired[str]
+ """
+ Description of the line item.
+ """
+ name: str
+ """
+ Descriptive name of the line item.
+ """
+ quantity: int
+ """
+ Quantity of the line item. Must be a positive number.
+ """
+ sku: NotRequired[str]
+ """
+ Client facing stock keeping unit, article number or similar.
+ """
+ sold_by: NotRequired[str]
+ """
+ The Stripe account ID of the connected account that sells the item.
+ """
+ tax: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax"
+ ]
+ """
+ The tax information for the line item.
+ """
+ unit_amount: int
+ """
+ Price for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax(
+ TypedDict,
+):
+ amount: int
+ """
+ The tax for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+ behavior: Literal["exclusive", "inclusive"]
+ """
+ The tax behavior for the line item.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit(TypedDict):
+ mandate_options: NotRequired[
+ "OrderCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions(
+ TypedDict,
+):
+ reference_prefix: NotRequired["Literal['']|str"]
+ """
+ Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsSofort(TypedDict):
+ preferred_language: NotRequired[
+ "Literal['']|Literal['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']"
+ ]
+ """
+ Language shown to the payer on redirect.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay(TypedDict):
+ app_id: NotRequired[str]
+ """
+ The app ID registered with WeChat Pay. Only required when client is ios or android.
+ """
+ client: NotRequired[Literal["android", "ios", "web"]]
+ """
+ The client type that the end customer will pay from
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderCreateParamsPaymentSettingsTransferData(TypedDict):
+ amount: NotRequired[int]
+ """
+ The amount that will be transferred automatically when the order is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field.
+ """
+ destination: str
+ """
+ ID of the Connected account receiving the transfer.
+ """
+
+
+class OrderCreateParamsShippingCost(TypedDict):
+ shipping_rate: NotRequired[str]
+ """
+ The ID of the shipping rate to use for this order.
+ """
+ shipping_rate_data: NotRequired[
+ "OrderCreateParamsShippingCostShippingRateData"
+ ]
+ """
+ Parameters to create a new ad-hoc shipping rate for this order.
+ """
+
+
+class OrderCreateParamsShippingCostShippingRateData(TypedDict):
+ delivery_estimate: NotRequired[
+ "OrderCreateParamsShippingCostShippingRateDataDeliveryEstimate"
+ ]
+ """
+ The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
+ """
+ display_name: str
+ """
+ The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
+ """
+ fixed_amount: NotRequired[
+ "OrderCreateParamsShippingCostShippingRateDataFixedAmount"
+ ]
+ """
+ Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ """
+ Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
+ """
+ tax_code: NotRequired[str]
+ """
+ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
+ """
+ type: NotRequired[Literal["fixed_amount"]]
+ """
+ The type of calculation to use on the shipping rate.
+ """
+
+
+class OrderCreateParamsShippingCostShippingRateDataDeliveryEstimate(TypedDict):
+ maximum: NotRequired[
+ "OrderCreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum"
+ ]
+ """
+ The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
+ """
+ minimum: NotRequired[
+ "OrderCreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum"
+ ]
+ """
+ The lower bound of the estimated range. If empty, represents no lower bound.
+ """
+
+
+class OrderCreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum(
+ TypedDict,
+):
+ unit: Literal["business_day", "day", "hour", "month", "week"]
+ """
+ A unit of time.
+ """
+ value: int
+ """
+ Must be greater than 0.
+ """
+
+
+class OrderCreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum(
+ TypedDict,
+):
+ unit: Literal["business_day", "day", "hour", "month", "week"]
+ """
+ A unit of time.
+ """
+ value: int
+ """
+ Must be greater than 0.
+ """
+
+
+class OrderCreateParamsShippingCostShippingRateDataFixedAmount(TypedDict):
+ amount: int
+ """
+ A non-negative integer in cents representing how much to charge.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ currency_options: NotRequired[
+ Dict[
+ str,
+ "OrderCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions",
+ ]
+ ]
+ """
+ Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
+ """
+
+
+class OrderCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions(
+ TypedDict,
+):
+ amount: int
+ """
+ A non-negative integer in cents representing how much to charge.
+ """
+ tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ """
+ Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
+ """
+
+
+class OrderCreateParamsShippingDetails(TypedDict):
+ address: "OrderCreateParamsShippingDetailsAddress"
+ """
+ The shipping address for the order.
+ """
+ name: str
+ """
+ The name of the recipient of the order.
+ """
+ phone: NotRequired["Literal['']|str"]
+ """
+ The phone number (including extension) for the recipient of the order.
+ """
+
+
+class OrderCreateParamsShippingDetailsAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
+ """
+
+
+class OrderCreateParamsTaxDetails(TypedDict):
+ tax_exempt: NotRequired["Literal['']|Literal['exempt', 'none', 'reverse']"]
+ """
+ The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`.
+ """
+ tax_ids: NotRequired[List["OrderCreateParamsTaxDetailsTaxId"]]
+ """
+ The purchaser's tax IDs to be used for this order.
+ """
+
+
+class OrderCreateParamsTaxDetailsTaxId(TypedDict):
+ type: Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "bo_tin",
+ "br_cnpj",
+ "br_cpf",
+ "bs_tin",
+ "by_tin",
+ "ca_bn",
+ "ca_gst_hst",
+ "ca_pst_bc",
+ "ca_pst_mb",
+ "ca_pst_sk",
+ "ca_qst",
+ "cd_nif",
+ "ch_uid",
+ "ch_vat",
+ "cl_tin",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "gb_vat",
+ "ge_vat",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "ma_vat",
+ "md_vat",
+ "me_pib",
+ "mk_vat",
+ "mr_nif",
+ "mx_rfc",
+ "my_frp",
+ "my_itn",
+ "my_sst",
+ "ng_tin",
+ "no_vat",
+ "no_voec",
+ "np_pan",
+ "nz_gst",
+ "om_vat",
+ "pe_ruc",
+ "ph_tin",
+ "ro_tin",
+ "rs_pib",
+ "ru_inn",
+ "ru_kpp",
+ "sa_vat",
+ "sg_gst",
+ "sg_uen",
+ "si_tin",
+ "sn_ninea",
+ "sr_fin",
+ "sv_nit",
+ "th_vat",
+ "tj_tin",
+ "tr_tin",
+ "tw_vat",
+ "tz_vat",
+ "ua_vat",
+ "ug_tin",
+ "us_ein",
+ "uy_ruc",
+ "uz_tin",
+ "uz_vat",
+ "ve_rif",
+ "vn_tin",
+ "za_vat",
+ "zm_tin",
+ "zw_tin",
+ ]
+ """
+ Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
+ """
+ value: str
+ """
+ Value of the tax ID.
+ """
diff --git a/stripe/params/_order_line_item_list_params.py b/stripe/params/_order_line_item_list_params.py
new file mode 100644
index 000000000..cf3d38bd7
--- /dev/null
+++ b/stripe/params/_order_line_item_list_params.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class OrderLineItemListParams(TypedDict):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_order_list_line_items_params.py b/stripe/params/_order_list_line_items_params.py
new file mode 100644
index 000000000..6cda382a7
--- /dev/null
+++ b/stripe/params/_order_list_line_items_params.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class OrderListLineItemsParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_order_list_params.py b/stripe/params/_order_list_params.py
new file mode 100644
index 000000000..54f604437
--- /dev/null
+++ b/stripe/params/_order_list_params.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class OrderListParams(RequestOptions):
+ customer: NotRequired[str]
+ """
+ Only return orders for the given customer.
+ """
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_order_modify_params.py b/stripe/params/_order_modify_params.py
new file mode 100644
index 000000000..d7b3ab823
--- /dev/null
+++ b/stripe/params/_order_modify_params.py
@@ -0,0 +1,2505 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class OrderModifyParams(RequestOptions):
+ automatic_tax: NotRequired["OrderModifyParamsAutomaticTax"]
+ """
+ Settings for automatic tax calculation for this order.
+ """
+ billing_details: NotRequired["Literal['']|OrderModifyParamsBillingDetails"]
+ """
+ Billing details for the customer. If a customer is provided, this will be automatically populated with values from that customer if override values are not provided.
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ customer: NotRequired[str]
+ """
+ The customer associated with this order.
+ """
+ description: NotRequired["Literal['']|str"]
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users.
+ """
+ discounts: NotRequired["Literal['']|List[OrderModifyParamsDiscount]"]
+ """
+ The coupons, promotion codes, and/or discounts to apply to the order. Pass the empty string `""` to unset this field.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ ip_address: NotRequired[str]
+ """
+ The IP address of the purchaser for this order.
+ """
+ line_items: NotRequired[List["OrderModifyParamsLineItem"]]
+ """
+ A list of line items the customer is ordering. Each line item includes information about the product, the quantity, and the resulting cost.
+ """
+ metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ payment: NotRequired["OrderModifyParamsPayment"]
+ """
+ Payment information associated with the order, including payment settings.
+ """
+ shipping_cost: NotRequired["Literal['']|OrderModifyParamsShippingCost"]
+ """
+ Settings for the customer cost of shipping for this order.
+ """
+ shipping_details: NotRequired[
+ "Literal['']|OrderModifyParamsShippingDetails"
+ ]
+ """
+ Shipping details for the order.
+ """
+ tax_details: NotRequired["OrderModifyParamsTaxDetails"]
+ """
+ Additional tax details about the purchaser to be used for this order.
+ """
+
+
+class OrderModifyParamsAutomaticTax(TypedDict):
+ enabled: bool
+ """
+ Enable automatic tax calculation which will automatically compute tax rates on this order.
+ """
+
+
+class OrderModifyParamsBillingDetails(TypedDict):
+ address: NotRequired["OrderModifyParamsBillingDetailsAddress"]
+ """
+ The billing address provided by the customer.
+ """
+ email: NotRequired[str]
+ """
+ The billing email provided by the customer.
+ """
+ name: NotRequired[str]
+ """
+ The billing name provided by the customer.
+ """
+ phone: NotRequired[str]
+ """
+ The billing phone number provided by the customer.
+ """
+
+
+class OrderModifyParamsBillingDetailsAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
+ """
+
+
+class OrderModifyParamsDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class OrderModifyParamsLineItem(TypedDict):
+ description: NotRequired[str]
+ """
+ The description for the line item. Will default to the name of the associated product.
+ """
+ discounts: NotRequired[
+ "Literal['']|List[OrderModifyParamsLineItemDiscount]"
+ ]
+ """
+ The discounts applied to this line item.
+ """
+ id: NotRequired[str]
+ """
+ The ID of an existing line item on the order.
+ """
+ price: NotRequired[str]
+ """
+ The ID of a [Price](https://docs.stripe.com/api/prices) to add to the Order.
+
+ The `price` parameter is an alternative to using the `product` parameter. If each of your products are sold at a single price, you can set `Product.default_price` and then pass the `product` parameter when creating a line item. If your products are sold at several possible prices, use the `price` parameter to explicitly specify which one to use.
+ """
+ price_data: NotRequired["OrderModifyParamsLineItemPriceData"]
+ """
+ Data used to generate a new Price object inline.
+
+ The `price_data` parameter is an alternative to using the `product` or `price` parameters. If you create a Product upfront and configure a `Product.default_price`, pass the `product` parameter when creating a line item. If you prefer not to define Products upfront, or if you charge variable prices, pass the `price_data` parameter to describe the price for this line item.
+
+ Each time you pass `price_data` we create a Price for the Product. This Price is hidden in both the Dashboard and API lists and cannot be reused.
+ """
+ product: NotRequired[str]
+ """
+ The ID of a [Product](https://docs.stripe.com/api/products) to add to the Order.
+
+ The Product must have a `default_price` specified. Otherwise, specify the price by passing the `price` or `price_data` parameter.
+ """
+ product_data: NotRequired["OrderModifyParamsLineItemProductData"]
+ """
+ Defines a [Product](https://docs.stripe.com/api/products) inline and adds it to the Order.
+
+ `product_data` is an alternative to the `product` parameter. If you created a Product upfront, use the `product` parameter to refer to the existing Product. But if you prefer not to create Products upfront, pass the `product_data` parameter to define a Product inline as part of configuring the Order.
+
+ `product_data` automatically creates a Product, just as if you had manually created the Product. If a Product with the same ID already exists, then `product_data` re-uses it to avoid duplicates.
+ """
+ quantity: NotRequired[int]
+ """
+ The quantity of the line item.
+ """
+ tax_rates: NotRequired["Literal['']|List[str]"]
+ """
+ The tax rates applied to this line item.
+ """
+
+
+class OrderModifyParamsLineItemDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+
+
+class OrderModifyParamsLineItemPriceData(TypedDict):
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ product: NotRequired[str]
+ """
+ ID of the [Product](https://docs.stripe.com/api/products) this [Price](https://docs.stripe.com/api/prices) belongs to.
+
+ Use this to implement a variable-pricing model in your integration. This is required if `product_data` is not specified.
+ """
+ tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ """
+ Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
+ """
+ unit_amount: NotRequired[int]
+ """
+ A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
+ """
+ unit_amount_decimal: NotRequired[str]
+ """
+ Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
+ """
+
+
+class OrderModifyParamsLineItemProductData(TypedDict):
+ description: NotRequired["Literal['']|str"]
+ """
+ The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
+ """
+ id: str
+ """
+ A unique identifier for this product.
+
+ `product_data` automatically creates a Product with this ID. If a Product with the same ID already exists, then `product_data` re-uses it to avoid duplicates. If any of the fields in the existing Product are different from the values in `product_data`, `product_data` updates the existing Product with the new information. So set `product_data[id]` to the same string every time you sell the same product, but don't re-use the same string for different products.
+ """
+ images: NotRequired["Literal['']|List[str]"]
+ """
+ A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
+ """
+ metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ name: str
+ """
+ The product's name, meant to be displayable to the customer.
+ """
+ package_dimensions: NotRequired[
+ "Literal['']|OrderModifyParamsLineItemProductDataPackageDimensions"
+ ]
+ """
+ The dimensions of this product for shipping purposes.
+ """
+ shippable: NotRequired[bool]
+ """
+ Whether this product is shipped (i.e., physical goods).
+ """
+ tax_code: NotRequired["Literal['']|str"]
+ """
+ A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
+ """
+ url: NotRequired["Literal['']|str"]
+ """
+ A URL of a publicly-accessible webpage for this product.
+ """
+
+
+class OrderModifyParamsLineItemProductDataPackageDimensions(TypedDict):
+ height: float
+ """
+ Height, in inches. Maximum precision is 2 decimal places.
+ """
+ length: float
+ """
+ Length, in inches. Maximum precision is 2 decimal places.
+ """
+ weight: float
+ """
+ Weight, in ounces. Maximum precision is 2 decimal places.
+ """
+ width: float
+ """
+ Width, in inches. Maximum precision is 2 decimal places.
+ """
+
+
+class OrderModifyParamsPayment(TypedDict):
+ settings: "OrderModifyParamsPaymentSettings"
+ """
+ Settings describing how the order should configure generated PaymentIntents.
+ """
+
+
+class OrderModifyParamsPaymentSettings(TypedDict):
+ application_fee_amount: NotRequired["Literal['']|int"]
+ """
+ The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.
+ """
+ payment_method_options: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptions"
+ ]
+ """
+ PaymentMethod-specific configuration to provide to the order's PaymentIntent.
+ """
+ payment_method_types: NotRequired[
+ List[
+ Literal[
+ "acss_debit",
+ "afterpay_clearpay",
+ "alipay",
+ "au_becs_debit",
+ "bacs_debit",
+ "bancontact",
+ "card",
+ "customer_balance",
+ "eps",
+ "fpx",
+ "giropay",
+ "grabpay",
+ "ideal",
+ "klarna",
+ "link",
+ "oxxo",
+ "p24",
+ "paypal",
+ "sepa_debit",
+ "sofort",
+ "wechat_pay",
+ ]
+ ]
+ ]
+ """
+ The list of [payment method types](https://docs.stripe.com/payments/payment-methods/overview) to provide to the order's PaymentIntent. Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
+ """
+ return_url: NotRequired["Literal['']|str"]
+ """
+ The URL to redirect the customer to after they authenticate their payment.
+ """
+ statement_descriptor: NotRequired[str]
+ """
+ For non-card charges, you can use this value as the complete description that appears on your customers' statements. Must contain at least one letter, maximum 22 characters.
+ """
+ statement_descriptor_suffix: NotRequired[str]
+ """
+ Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
+ """
+ transfer_data: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsTransferData"
+ ]
+ """
+ Provides configuration for completing a transfer for the order after it is paid.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict):
+ acss_debit: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit"
+ ]
+ """
+ If paying by `acss_debit`, this sub-hash contains details about the ACSS Debit payment method options to pass to the order's PaymentIntent.
+ """
+ afterpay_clearpay: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay"
+ ]
+ """
+ If paying by `afterpay_clearpay`, this sub-hash contains details about the AfterpayClearpay payment method options to pass to the order's PaymentIntent.
+ """
+ alipay: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsAlipay"
+ ]
+ """
+ If paying by `alipay`, this sub-hash contains details about the Alipay payment method options to pass to the order's PaymentIntent.
+ """
+ bancontact: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsBancontact"
+ ]
+ """
+ If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the order's PaymentIntent.
+ """
+ card: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsCard"
+ ]
+ """
+ If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the order's PaymentIntent.
+ """
+ customer_balance: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance"
+ ]
+ """
+ If paying by `customer_balance`, this sub-hash contains details about the Customer Balance payment method options to pass to the order's PaymentIntent.
+ """
+ ideal: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsIdeal"
+ ]
+ """
+ If paying by `ideal`, this sub-hash contains details about the iDEAL payment method options to pass to the order's PaymentIntent.
+ """
+ klarna: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarna"
+ ]
+ """
+ If paying by `klarna`, this sub-hash contains details about the Klarna payment method options to pass to the order's PaymentIntent.
+ """
+ link: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsLink"
+ ]
+ """
+ If paying by `link`, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent.
+ """
+ oxxo: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsOxxo"
+ ]
+ """
+ If paying by `oxxo`, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent.
+ """
+ p24: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsP24"
+ ]
+ """
+ If paying by `p24`, this sub-hash contains details about the P24 payment method options to pass to the order's PaymentIntent.
+ """
+ paypal: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypal"
+ ]
+ """
+ If paying by `paypal`, this sub-hash contains details about the PayPal payment method options to pass to the order's PaymentIntent.
+ """
+ sepa_debit: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit"
+ ]
+ """
+ If paying by `sepa_debit`, this sub-hash contains details about the SEPA Debit payment method options to pass to the order's PaymentIntent.
+ """
+ sofort: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsSofort"
+ ]
+ """
+ If paying by `sofort`, this sub-hash contains details about the Sofort payment method options to pass to the order's PaymentIntent.
+ """
+ wechat_pay: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay"
+ ]
+ """
+ If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the order's PaymentIntent.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit(TypedDict):
+ mandate_options: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+ verification_method: NotRequired[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Bank account verification method.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions(
+ TypedDict,
+):
+ custom_mandate_url: NotRequired["Literal['']|str"]
+ """
+ A URL for custom mandate text to render during confirmation step.
+ The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
+ or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
+ """
+ interval_description: NotRequired[str]
+ """
+ Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
+ """
+ payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
+ """
+ Payment schedule for the mandate.
+ """
+ transaction_type: NotRequired[Literal["business", "personal"]]
+ """
+ Transaction type of the mandate.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay(
+ TypedDict,
+):
+ capture_method: NotRequired[
+ Literal["automatic", "automatic_async", "manual"]
+ ]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ reference: NotRequired[str]
+ """
+ An internal identifier or reference this payment corresponds to. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with the payment method.
+
+ Providing this parameter will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
+
+ When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsAlipay(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsBancontact(
+ TypedDict
+):
+ preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict):
+ capture_method: NotRequired[
+ Literal["automatic", "automatic_async", "manual"]
+ ]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+ setup_future_usage: NotRequired[
+ Literal["none", "off_session", "on_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with the payment method.
+
+ Providing this parameter will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
+
+ When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance(
+ TypedDict,
+):
+ bank_transfer: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer"
+ ]
+ """
+ Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ """
+ funding_type: NotRequired[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer(
+ TypedDict,
+):
+ eu_bank_transfer: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
+ ]
+ """
+ Configuration for the eu_bank_transfer funding type.
+ """
+ requested_address_types: NotRequired[
+ List[
+ Literal[
+ "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
+ ]
+ ]
+ ]
+ """
+ List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
+
+ Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
+ """
+ type: Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ """
+ The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+ TypedDict,
+):
+ country: str
+ """
+ The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsIdeal(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarna(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ on_demand: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand"
+ ]
+ """
+ On-demand details if setting up or charging an on-demand payment.
+ """
+ preferred_locale: NotRequired[
+ Literal[
+ "cs-CZ",
+ "da-DK",
+ "de-AT",
+ "de-CH",
+ "de-DE",
+ "el-GR",
+ "en-AT",
+ "en-AU",
+ "en-BE",
+ "en-CA",
+ "en-CH",
+ "en-CZ",
+ "en-DE",
+ "en-DK",
+ "en-ES",
+ "en-FI",
+ "en-FR",
+ "en-GB",
+ "en-GR",
+ "en-IE",
+ "en-IT",
+ "en-NL",
+ "en-NO",
+ "en-NZ",
+ "en-PL",
+ "en-PT",
+ "en-RO",
+ "en-SE",
+ "en-US",
+ "es-ES",
+ "es-US",
+ "fi-FI",
+ "fr-BE",
+ "fr-CA",
+ "fr-CH",
+ "fr-FR",
+ "it-CH",
+ "it-IT",
+ "nb-NO",
+ "nl-BE",
+ "nl-NL",
+ "pl-PL",
+ "pt-PT",
+ "ro-RO",
+ "sv-FI",
+ "sv-SE",
+ ]
+ ]
+ """
+ Preferred language of the Klarna authorization page that the customer is redirected to
+ """
+ setup_future_usage: NotRequired[
+ Literal["none", "off_session", "on_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ subscriptions: NotRequired[
+ "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription]"
+ ]
+ """
+ Subscription details if setting up or charging a subscription.
+ """
+ supplementary_purchase_data: NotRequired[
+ "Literal['']|OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData"
+ ]
+ """
+ Supplementary Purchase Data for the corresponding Klarna payment
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand(
+ TypedDict,
+):
+ average_amount: NotRequired[int]
+ """
+ Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
+ """
+ maximum_amount: NotRequired[int]
+ """
+ The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ """
+ minimum_amount: NotRequired[int]
+ """
+ The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ """
+ purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
+ """
+ Interval at which the customer is making purchases
+ """
+ purchase_interval_count: NotRequired[int]
+ """
+ The number of `purchase_interval` between charges
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Unit of time between subscription charges.
+ """
+ interval_count: NotRequired[int]
+ """
+ The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
+ """
+ name: NotRequired[str]
+ """
+ Name for subscription.
+ """
+ next_billing: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
+ ]
+ """
+ Describes the upcoming charge for this subscription.
+ """
+ reference: str
+ """
+ A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
+ TypedDict,
+):
+ amount: int
+ """
+ The amount of the next charge for the subscription.
+ """
+ date: str
+ """
+ The date of the next charge for the subscription in YYYY-MM-DD format.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData(
+ TypedDict,
+):
+ bus_reservation_details: NotRequired[
+ "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]"
+ ]
+ """
+ Supplementary bus reservation details.
+ """
+ event_reservation_details: NotRequired[
+ "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]"
+ ]
+ """
+ Supplementary event reservation details.
+ """
+ ferry_reservation_details: NotRequired[
+ "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]"
+ ]
+ """
+ Supplementary ferry reservation details.
+ """
+ insurances: NotRequired[
+ "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]"
+ ]
+ """
+ Supplementary insurance details.
+ """
+ marketplace_sellers: NotRequired[
+ "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]"
+ ]
+ """
+ Supplementary marketplace seller details.
+ """
+ round_trip_reservation_details: NotRequired[
+ "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]"
+ ]
+ """
+ Supplementary round trip reservation details.
+ """
+ train_reservation_details: NotRequired[
+ "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]"
+ ]
+ """
+ Supplementary train reservation details.
+ """
+ vouchers: NotRequired[
+ "Literal['']|List[OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]"
+ ]
+ """
+ Voucher details, such as a gift card or discount code.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail(
+ TypedDict,
+):
+ access_controlled_venue: NotRequired[bool]
+ """
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
+ address: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress"
+ ]
+ """
+ Address of the event.
+ """
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ ends_at: NotRequired[int]
+ """
+ End timestamp of the event.
+ """
+ event_company_name: NotRequired[str]
+ """
+ Company selling the ticket.
+ """
+ event_name: NotRequired[str]
+ """
+ Name of the event.
+ """
+ event_type: NotRequired[
+ Literal[
+ "concert",
+ "conference",
+ "digital_education",
+ "expo",
+ "festival",
+ "in_person_education",
+ "sport",
+ "tour",
+ ]
+ ]
+ """
+ Type of the event.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Start timestamp of the event.
+ """
+ venue_name: NotRequired[str]
+ """
+ Name of the venue where the event takes place.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller(
+ TypedDict,
+):
+ line_item_references: NotRequired[List[str]]
+ """
+ The references to line items for purchases with multiple associated sub-sellers.
+ """
+ marketplace_seller_address: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress"
+ ]
+ """
+ The address of the selling or delivering merchant.
+ """
+ marketplace_seller_name: NotRequired[str]
+ """
+ The name of the marketplace seller.
+ """
+ marketplace_seller_reference: NotRequired[str]
+ """
+ The unique identifier for the marketplace seller.
+ """
+ number_of_transactions: NotRequired[int]
+ """
+ The number of transactions the sub-seller completed in the last 12 months.
+ """
+ product_category: NotRequired[
+ Literal[
+ "accessories",
+ "appliances",
+ "apps_and_games",
+ "arts_crafts_and_sewing",
+ "automotive",
+ "baby",
+ "baby_clothing",
+ "bags_and_purses",
+ "beauty",
+ "books",
+ "cds_and_vinyl",
+ "cell_phones_and_accessories",
+ "collectibles_and_fine_arts",
+ "digital_music",
+ "electronics",
+ "grocery_and_gourmet_food",
+ "handmade",
+ "health_and_personal_care",
+ "home_and_kitchen",
+ "industrial_and_scientific",
+ "luggage_and_travel_gear",
+ "magazine_subscriptions",
+ "men_clothing",
+ "musical_instruments",
+ "office_products",
+ "patio_lawn_and_garden",
+ "pet_supplies",
+ "shoes",
+ "software",
+ "sports_and_outdoors",
+ "tools_and_home_improvement",
+ "toys_and_games",
+ "video_games",
+ "women_clothing",
+ ]
+ ]
+ """
+ The category of the product.
+ """
+ seller_last_login_at: NotRequired[int]
+ """
+ The date when the seller's account with the marketplace was last logged in.
+ """
+ seller_rating: NotRequired[
+ Literal["high", "low", "medium", "very_high", "very_low"]
+ ]
+ """
+ The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
+ """
+ seller_registered_at: NotRequired[int]
+ """
+ The date when the seller's account with the marketplace was created.
+ """
+ seller_updated_at: NotRequired[int]
+ """
+ The date when the seller's account with the marketplace was last updated.
+ """
+ shipping_references: NotRequired[List[str]]
+ """
+ The references to shipping addresses for purchases with multiple associated sub-sellers.
+ """
+ volume_of_transactions: NotRequired[int]
+ """
+ The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for this voucher.
+ """
+ ends_at: NotRequired[int]
+ """
+ The voucher validity end time.
+ """
+ starts_at: NotRequired[int]
+ """
+ The voucher validity start time.
+ """
+ voucher_company: NotRequired[str]
+ """
+ The issuer or provider of this voucher.
+ """
+ voucher_name: NotRequired[str]
+ """
+ The name or reference to identify the voucher.
+ """
+ voucher_type: NotRequired[
+ Literal[
+ "digital_product",
+ "discount",
+ "gift_card",
+ "physical_product",
+ "services",
+ ]
+ ]
+ """
+ The type of this voucher.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsLink(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ persistent_token: NotRequired[str]
+ """
+ [Deprecated] This is a legacy parameter that no longer has any function.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsOxxo(TypedDict):
+ expires_after_days: NotRequired[int]
+ """
+ The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsP24(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ tos_shown_and_accepted: NotRequired[bool]
+ """
+ Confirm that the payer has accepted the P24 terms and conditions.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypal(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+ line_items: NotRequired[
+ List[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem"
+ ]
+ ]
+ """
+ The line items purchased by the customer.
+ """
+ preferred_locale: NotRequired[
+ Literal[
+ "cs-CZ",
+ "da-DK",
+ "de-AT",
+ "de-DE",
+ "de-LU",
+ "el-GR",
+ "en-GB",
+ "en-US",
+ "es-ES",
+ "fi-FI",
+ "fr-BE",
+ "fr-FR",
+ "fr-LU",
+ "hu-HU",
+ "it-IT",
+ "nl-BE",
+ "nl-NL",
+ "pl-PL",
+ "pt-PT",
+ "sk-SK",
+ "sv-SE",
+ ]
+ ]
+ """
+ [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
+ """
+ reference: NotRequired[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
+ reference_id: NotRequired[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
+ risk_correlation_id: NotRequired[str]
+ """
+ The risk correlation ID for an on-session payment using a saved PayPal payment method.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ subsellers: NotRequired[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem(
+ TypedDict,
+):
+ category: NotRequired[
+ Literal["digital_goods", "donation", "physical_goods"]
+ ]
+ """
+ Type of the line item.
+ """
+ description: NotRequired[str]
+ """
+ Description of the line item.
+ """
+ name: str
+ """
+ Descriptive name of the line item.
+ """
+ quantity: int
+ """
+ Quantity of the line item. Must be a positive number.
+ """
+ sku: NotRequired[str]
+ """
+ Client facing stock keeping unit, article number or similar.
+ """
+ sold_by: NotRequired[str]
+ """
+ The Stripe account ID of the connected account that sells the item.
+ """
+ tax: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax"
+ ]
+ """
+ The tax information for the line item.
+ """
+ unit_amount: int
+ """
+ Price for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax(
+ TypedDict,
+):
+ amount: int
+ """
+ The tax for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+ behavior: Literal["exclusive", "inclusive"]
+ """
+ The tax behavior for the line item.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit(TypedDict):
+ mandate_options: NotRequired[
+ "OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions(
+ TypedDict,
+):
+ reference_prefix: NotRequired["Literal['']|str"]
+ """
+ Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsSofort(TypedDict):
+ preferred_language: NotRequired[
+ "Literal['']|Literal['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']"
+ ]
+ """
+ Language shown to the payer on redirect.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay(TypedDict):
+ app_id: NotRequired[str]
+ """
+ The app ID registered with WeChat Pay. Only required when client is ios or android.
+ """
+ client: NotRequired[Literal["android", "ios", "web"]]
+ """
+ The client type that the end customer will pay from
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderModifyParamsPaymentSettingsTransferData(TypedDict):
+ amount: NotRequired[int]
+ """
+ The amount that will be transferred automatically when the order is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field.
+ """
+ destination: str
+ """
+ ID of the Connected account receiving the transfer.
+ """
+
+
+class OrderModifyParamsShippingCost(TypedDict):
+ shipping_rate: NotRequired[str]
+ """
+ The ID of the shipping rate to use for this order.
+ """
+ shipping_rate_data: NotRequired[
+ "OrderModifyParamsShippingCostShippingRateData"
+ ]
+ """
+ Parameters to create a new ad-hoc shipping rate for this order.
+ """
+
+
+class OrderModifyParamsShippingCostShippingRateData(TypedDict):
+ delivery_estimate: NotRequired[
+ "OrderModifyParamsShippingCostShippingRateDataDeliveryEstimate"
+ ]
+ """
+ The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
+ """
+ display_name: str
+ """
+ The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
+ """
+ fixed_amount: NotRequired[
+ "OrderModifyParamsShippingCostShippingRateDataFixedAmount"
+ ]
+ """
+ Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ """
+ Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
+ """
+ tax_code: NotRequired[str]
+ """
+ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
+ """
+ type: NotRequired[Literal["fixed_amount"]]
+ """
+ The type of calculation to use on the shipping rate.
+ """
+
+
+class OrderModifyParamsShippingCostShippingRateDataDeliveryEstimate(TypedDict):
+ maximum: NotRequired[
+ "OrderModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximum"
+ ]
+ """
+ The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
+ """
+ minimum: NotRequired[
+ "OrderModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimum"
+ ]
+ """
+ The lower bound of the estimated range. If empty, represents no lower bound.
+ """
+
+
+class OrderModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximum(
+ TypedDict,
+):
+ unit: Literal["business_day", "day", "hour", "month", "week"]
+ """
+ A unit of time.
+ """
+ value: int
+ """
+ Must be greater than 0.
+ """
+
+
+class OrderModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimum(
+ TypedDict,
+):
+ unit: Literal["business_day", "day", "hour", "month", "week"]
+ """
+ A unit of time.
+ """
+ value: int
+ """
+ Must be greater than 0.
+ """
+
+
+class OrderModifyParamsShippingCostShippingRateDataFixedAmount(TypedDict):
+ amount: int
+ """
+ A non-negative integer in cents representing how much to charge.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ currency_options: NotRequired[
+ Dict[
+ str,
+ "OrderModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions",
+ ]
+ ]
+ """
+ Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
+ """
+
+
+class OrderModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions(
+ TypedDict,
+):
+ amount: int
+ """
+ A non-negative integer in cents representing how much to charge.
+ """
+ tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ """
+ Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
+ """
+
+
+class OrderModifyParamsShippingDetails(TypedDict):
+ address: "OrderModifyParamsShippingDetailsAddress"
+ """
+ The shipping address for the order.
+ """
+ name: str
+ """
+ The name of the recipient of the order.
+ """
+ phone: NotRequired["Literal['']|str"]
+ """
+ The phone number (including extension) for the recipient of the order.
+ """
+
+
+class OrderModifyParamsShippingDetailsAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
+ """
+
+
+class OrderModifyParamsTaxDetails(TypedDict):
+ tax_exempt: NotRequired["Literal['']|Literal['exempt', 'none', 'reverse']"]
+ """
+ The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`.
+ """
+ tax_ids: NotRequired[List["OrderModifyParamsTaxDetailsTaxId"]]
+ """
+ The purchaser's tax IDs to be used for this order.
+ """
+
+
+class OrderModifyParamsTaxDetailsTaxId(TypedDict):
+ type: Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "bo_tin",
+ "br_cnpj",
+ "br_cpf",
+ "bs_tin",
+ "by_tin",
+ "ca_bn",
+ "ca_gst_hst",
+ "ca_pst_bc",
+ "ca_pst_mb",
+ "ca_pst_sk",
+ "ca_qst",
+ "cd_nif",
+ "ch_uid",
+ "ch_vat",
+ "cl_tin",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "gb_vat",
+ "ge_vat",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "ma_vat",
+ "md_vat",
+ "me_pib",
+ "mk_vat",
+ "mr_nif",
+ "mx_rfc",
+ "my_frp",
+ "my_itn",
+ "my_sst",
+ "ng_tin",
+ "no_vat",
+ "no_voec",
+ "np_pan",
+ "nz_gst",
+ "om_vat",
+ "pe_ruc",
+ "ph_tin",
+ "ro_tin",
+ "rs_pib",
+ "ru_inn",
+ "ru_kpp",
+ "sa_vat",
+ "sg_gst",
+ "sg_uen",
+ "si_tin",
+ "sn_ninea",
+ "sr_fin",
+ "sv_nit",
+ "th_vat",
+ "tj_tin",
+ "tr_tin",
+ "tw_vat",
+ "tz_vat",
+ "ua_vat",
+ "ug_tin",
+ "us_ein",
+ "uy_ruc",
+ "uz_tin",
+ "uz_vat",
+ "ve_rif",
+ "vn_tin",
+ "za_vat",
+ "zm_tin",
+ "zw_tin",
+ ]
+ """
+ Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
+ """
+ value: str
+ """
+ Value of the tax ID.
+ """
diff --git a/stripe/params/_order_reopen_params.py b/stripe/params/_order_reopen_params.py
new file mode 100644
index 000000000..e0eeacf49
--- /dev/null
+++ b/stripe/params/_order_reopen_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class OrderReopenParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/_order_retrieve_params.py b/stripe/params/_order_retrieve_params.py
new file mode 100644
index 000000000..9364635f9
--- /dev/null
+++ b/stripe/params/_order_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class OrderRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/_order_submit_params.py b/stripe/params/_order_submit_params.py
new file mode 100644
index 000000000..7039d2885
--- /dev/null
+++ b/stripe/params/_order_submit_params.py
@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class OrderSubmitParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ expected_total: int
+ """
+ `expected_total` should always be set to the order's `amount_total` field. If they don't match, submitting the order will fail. This helps detect race conditions where something else concurrently modifies the order.
+ """
diff --git a/stripe/params/_order_update_params.py b/stripe/params/_order_update_params.py
new file mode 100644
index 000000000..d376ae0ac
--- /dev/null
+++ b/stripe/params/_order_update_params.py
@@ -0,0 +1,2504 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class OrderUpdateParams(TypedDict):
+ automatic_tax: NotRequired["OrderUpdateParamsAutomaticTax"]
+ """
+ Settings for automatic tax calculation for this order.
+ """
+ billing_details: NotRequired["Literal['']|OrderUpdateParamsBillingDetails"]
+ """
+ Billing details for the customer. If a customer is provided, this will be automatically populated with values from that customer if override values are not provided.
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ customer: NotRequired[str]
+ """
+ The customer associated with this order.
+ """
+ description: NotRequired["Literal['']|str"]
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users.
+ """
+ discounts: NotRequired["Literal['']|List[OrderUpdateParamsDiscount]"]
+ """
+ The coupons, promotion codes, and/or discounts to apply to the order. Pass the empty string `""` to unset this field.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ ip_address: NotRequired[str]
+ """
+ The IP address of the purchaser for this order.
+ """
+ line_items: NotRequired[List["OrderUpdateParamsLineItem"]]
+ """
+ A list of line items the customer is ordering. Each line item includes information about the product, the quantity, and the resulting cost.
+ """
+ metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ payment: NotRequired["OrderUpdateParamsPayment"]
+ """
+ Payment information associated with the order, including payment settings.
+ """
+ shipping_cost: NotRequired["Literal['']|OrderUpdateParamsShippingCost"]
+ """
+ Settings for the customer cost of shipping for this order.
+ """
+ shipping_details: NotRequired[
+ "Literal['']|OrderUpdateParamsShippingDetails"
+ ]
+ """
+ Shipping details for the order.
+ """
+ tax_details: NotRequired["OrderUpdateParamsTaxDetails"]
+ """
+ Additional tax details about the purchaser to be used for this order.
+ """
+
+
+class OrderUpdateParamsAutomaticTax(TypedDict):
+ enabled: bool
+ """
+ Enable automatic tax calculation which will automatically compute tax rates on this order.
+ """
+
+
+class OrderUpdateParamsBillingDetails(TypedDict):
+ address: NotRequired["OrderUpdateParamsBillingDetailsAddress"]
+ """
+ The billing address provided by the customer.
+ """
+ email: NotRequired[str]
+ """
+ The billing email provided by the customer.
+ """
+ name: NotRequired[str]
+ """
+ The billing name provided by the customer.
+ """
+ phone: NotRequired[str]
+ """
+ The billing phone number provided by the customer.
+ """
+
+
+class OrderUpdateParamsBillingDetailsAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
+ """
+
+
+class OrderUpdateParamsDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class OrderUpdateParamsLineItem(TypedDict):
+ description: NotRequired[str]
+ """
+ The description for the line item. Will default to the name of the associated product.
+ """
+ discounts: NotRequired[
+ "Literal['']|List[OrderUpdateParamsLineItemDiscount]"
+ ]
+ """
+ The discounts applied to this line item.
+ """
+ id: NotRequired[str]
+ """
+ The ID of an existing line item on the order.
+ """
+ price: NotRequired[str]
+ """
+ The ID of a [Price](https://docs.stripe.com/api/prices) to add to the Order.
+
+ The `price` parameter is an alternative to using the `product` parameter. If each of your products are sold at a single price, you can set `Product.default_price` and then pass the `product` parameter when creating a line item. If your products are sold at several possible prices, use the `price` parameter to explicitly specify which one to use.
+ """
+ price_data: NotRequired["OrderUpdateParamsLineItemPriceData"]
+ """
+ Data used to generate a new Price object inline.
+
+ The `price_data` parameter is an alternative to using the `product` or `price` parameters. If you create a Product upfront and configure a `Product.default_price`, pass the `product` parameter when creating a line item. If you prefer not to define Products upfront, or if you charge variable prices, pass the `price_data` parameter to describe the price for this line item.
+
+ Each time you pass `price_data` we create a Price for the Product. This Price is hidden in both the Dashboard and API lists and cannot be reused.
+ """
+ product: NotRequired[str]
+ """
+ The ID of a [Product](https://docs.stripe.com/api/products) to add to the Order.
+
+ The Product must have a `default_price` specified. Otherwise, specify the price by passing the `price` or `price_data` parameter.
+ """
+ product_data: NotRequired["OrderUpdateParamsLineItemProductData"]
+ """
+ Defines a [Product](https://docs.stripe.com/api/products) inline and adds it to the Order.
+
+ `product_data` is an alternative to the `product` parameter. If you created a Product upfront, use the `product` parameter to refer to the existing Product. But if you prefer not to create Products upfront, pass the `product_data` parameter to define a Product inline as part of configuring the Order.
+
+ `product_data` automatically creates a Product, just as if you had manually created the Product. If a Product with the same ID already exists, then `product_data` re-uses it to avoid duplicates.
+ """
+ quantity: NotRequired[int]
+ """
+ The quantity of the line item.
+ """
+ tax_rates: NotRequired["Literal['']|List[str]"]
+ """
+ The tax rates applied to this line item.
+ """
+
+
+class OrderUpdateParamsLineItemDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+
+
+class OrderUpdateParamsLineItemPriceData(TypedDict):
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ product: NotRequired[str]
+ """
+ ID of the [Product](https://docs.stripe.com/api/products) this [Price](https://docs.stripe.com/api/prices) belongs to.
+
+ Use this to implement a variable-pricing model in your integration. This is required if `product_data` is not specified.
+ """
+ tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ """
+ Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
+ """
+ unit_amount: NotRequired[int]
+ """
+ A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
+ """
+ unit_amount_decimal: NotRequired[str]
+ """
+ Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
+ """
+
+
+class OrderUpdateParamsLineItemProductData(TypedDict):
+ description: NotRequired["Literal['']|str"]
+ """
+ The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
+ """
+ id: str
+ """
+ A unique identifier for this product.
+
+ `product_data` automatically creates a Product with this ID. If a Product with the same ID already exists, then `product_data` re-uses it to avoid duplicates. If any of the fields in the existing Product are different from the values in `product_data`, `product_data` updates the existing Product with the new information. So set `product_data[id]` to the same string every time you sell the same product, but don't re-use the same string for different products.
+ """
+ images: NotRequired["Literal['']|List[str]"]
+ """
+ A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
+ """
+ metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ name: str
+ """
+ The product's name, meant to be displayable to the customer.
+ """
+ package_dimensions: NotRequired[
+ "Literal['']|OrderUpdateParamsLineItemProductDataPackageDimensions"
+ ]
+ """
+ The dimensions of this product for shipping purposes.
+ """
+ shippable: NotRequired[bool]
+ """
+ Whether this product is shipped (i.e., physical goods).
+ """
+ tax_code: NotRequired["Literal['']|str"]
+ """
+ A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
+ """
+ url: NotRequired["Literal['']|str"]
+ """
+ A URL of a publicly-accessible webpage for this product.
+ """
+
+
+class OrderUpdateParamsLineItemProductDataPackageDimensions(TypedDict):
+ height: float
+ """
+ Height, in inches. Maximum precision is 2 decimal places.
+ """
+ length: float
+ """
+ Length, in inches. Maximum precision is 2 decimal places.
+ """
+ weight: float
+ """
+ Weight, in ounces. Maximum precision is 2 decimal places.
+ """
+ width: float
+ """
+ Width, in inches. Maximum precision is 2 decimal places.
+ """
+
+
+class OrderUpdateParamsPayment(TypedDict):
+ settings: "OrderUpdateParamsPaymentSettings"
+ """
+ Settings describing how the order should configure generated PaymentIntents.
+ """
+
+
+class OrderUpdateParamsPaymentSettings(TypedDict):
+ application_fee_amount: NotRequired["Literal['']|int"]
+ """
+ The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.
+ """
+ payment_method_options: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptions"
+ ]
+ """
+ PaymentMethod-specific configuration to provide to the order's PaymentIntent.
+ """
+ payment_method_types: NotRequired[
+ List[
+ Literal[
+ "acss_debit",
+ "afterpay_clearpay",
+ "alipay",
+ "au_becs_debit",
+ "bacs_debit",
+ "bancontact",
+ "card",
+ "customer_balance",
+ "eps",
+ "fpx",
+ "giropay",
+ "grabpay",
+ "ideal",
+ "klarna",
+ "link",
+ "oxxo",
+ "p24",
+ "paypal",
+ "sepa_debit",
+ "sofort",
+ "wechat_pay",
+ ]
+ ]
+ ]
+ """
+ The list of [payment method types](https://docs.stripe.com/payments/payment-methods/overview) to provide to the order's PaymentIntent. Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
+ """
+ return_url: NotRequired["Literal['']|str"]
+ """
+ The URL to redirect the customer to after they authenticate their payment.
+ """
+ statement_descriptor: NotRequired[str]
+ """
+ For non-card charges, you can use this value as the complete description that appears on your customers' statements. Must contain at least one letter, maximum 22 characters.
+ """
+ statement_descriptor_suffix: NotRequired[str]
+ """
+ Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
+ """
+ transfer_data: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsTransferData"
+ ]
+ """
+ Provides configuration for completing a transfer for the order after it is paid.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
+ acss_debit: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit"
+ ]
+ """
+ If paying by `acss_debit`, this sub-hash contains details about the ACSS Debit payment method options to pass to the order's PaymentIntent.
+ """
+ afterpay_clearpay: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay"
+ ]
+ """
+ If paying by `afterpay_clearpay`, this sub-hash contains details about the AfterpayClearpay payment method options to pass to the order's PaymentIntent.
+ """
+ alipay: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAlipay"
+ ]
+ """
+ If paying by `alipay`, this sub-hash contains details about the Alipay payment method options to pass to the order's PaymentIntent.
+ """
+ bancontact: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact"
+ ]
+ """
+ If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the order's PaymentIntent.
+ """
+ card: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCard"
+ ]
+ """
+ If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the order's PaymentIntent.
+ """
+ customer_balance: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance"
+ ]
+ """
+ If paying by `customer_balance`, this sub-hash contains details about the Customer Balance payment method options to pass to the order's PaymentIntent.
+ """
+ ideal: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsIdeal"
+ ]
+ """
+ If paying by `ideal`, this sub-hash contains details about the iDEAL payment method options to pass to the order's PaymentIntent.
+ """
+ klarna: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarna"
+ ]
+ """
+ If paying by `klarna`, this sub-hash contains details about the Klarna payment method options to pass to the order's PaymentIntent.
+ """
+ link: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsLink"
+ ]
+ """
+ If paying by `link`, this sub-hash contains details about the Link payment method options to pass to the order's PaymentIntent.
+ """
+ oxxo: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsOxxo"
+ ]
+ """
+ If paying by `oxxo`, this sub-hash contains details about the OXXO payment method options to pass to the order's PaymentIntent.
+ """
+ p24: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsP24"
+ ]
+ """
+ If paying by `p24`, this sub-hash contains details about the P24 payment method options to pass to the order's PaymentIntent.
+ """
+ paypal: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypal"
+ ]
+ """
+ If paying by `paypal`, this sub-hash contains details about the PayPal payment method options to pass to the order's PaymentIntent.
+ """
+ sepa_debit: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit"
+ ]
+ """
+ If paying by `sepa_debit`, this sub-hash contains details about the SEPA Debit payment method options to pass to the order's PaymentIntent.
+ """
+ sofort: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSofort"
+ ]
+ """
+ If paying by `sofort`, this sub-hash contains details about the Sofort payment method options to pass to the order's PaymentIntent.
+ """
+ wechat_pay: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay"
+ ]
+ """
+ If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the order's PaymentIntent.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit(TypedDict):
+ mandate_options: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+ verification_method: NotRequired[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Bank account verification method.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions(
+ TypedDict,
+):
+ custom_mandate_url: NotRequired["Literal['']|str"]
+ """
+ A URL for custom mandate text to render during confirmation step.
+ The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
+ or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
+ """
+ interval_description: NotRequired[str]
+ """
+ Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
+ """
+ payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
+ """
+ Payment schedule for the mandate.
+ """
+ transaction_type: NotRequired[Literal["business", "personal"]]
+ """
+ Transaction type of the mandate.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAfterpayClearpay(
+ TypedDict,
+):
+ capture_method: NotRequired[
+ Literal["automatic", "automatic_async", "manual"]
+ ]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ reference: NotRequired[str]
+ """
+ An internal identifier or reference this payment corresponds to. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with the payment method.
+
+ Providing this parameter will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
+
+ When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsAlipay(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact(
+ TypedDict
+):
+ preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict):
+ capture_method: NotRequired[
+ Literal["automatic", "automatic_async", "manual"]
+ ]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+ setup_future_usage: NotRequired[
+ Literal["none", "off_session", "on_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with the payment method.
+
+ Providing this parameter will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the order's Customer, if present, after the order's PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://docs.stripe.com/api/payment_methods/attach) to a Customer after the transaction completes.
+
+ When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance(
+ TypedDict,
+):
+ bank_transfer: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer"
+ ]
+ """
+ Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ """
+ funding_type: NotRequired[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer(
+ TypedDict,
+):
+ eu_bank_transfer: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
+ ]
+ """
+ Configuration for the eu_bank_transfer funding type.
+ """
+ requested_address_types: NotRequired[
+ List[
+ Literal[
+ "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
+ ]
+ ]
+ ]
+ """
+ List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
+
+ Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
+ """
+ type: Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ """
+ The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+ TypedDict,
+):
+ country: str
+ """
+ The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsIdeal(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarna(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ on_demand: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand"
+ ]
+ """
+ On-demand details if setting up or charging an on-demand payment.
+ """
+ preferred_locale: NotRequired[
+ Literal[
+ "cs-CZ",
+ "da-DK",
+ "de-AT",
+ "de-CH",
+ "de-DE",
+ "el-GR",
+ "en-AT",
+ "en-AU",
+ "en-BE",
+ "en-CA",
+ "en-CH",
+ "en-CZ",
+ "en-DE",
+ "en-DK",
+ "en-ES",
+ "en-FI",
+ "en-FR",
+ "en-GB",
+ "en-GR",
+ "en-IE",
+ "en-IT",
+ "en-NL",
+ "en-NO",
+ "en-NZ",
+ "en-PL",
+ "en-PT",
+ "en-RO",
+ "en-SE",
+ "en-US",
+ "es-ES",
+ "es-US",
+ "fi-FI",
+ "fr-BE",
+ "fr-CA",
+ "fr-CH",
+ "fr-FR",
+ "it-CH",
+ "it-IT",
+ "nb-NO",
+ "nl-BE",
+ "nl-NL",
+ "pl-PL",
+ "pt-PT",
+ "ro-RO",
+ "sv-FI",
+ "sv-SE",
+ ]
+ ]
+ """
+ Preferred language of the Klarna authorization page that the customer is redirected to
+ """
+ setup_future_usage: NotRequired[
+ Literal["none", "off_session", "on_session"]
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ subscriptions: NotRequired[
+ "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription]"
+ ]
+ """
+ Subscription details if setting up or charging a subscription.
+ """
+ supplementary_purchase_data: NotRequired[
+ "Literal['']|OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData"
+ ]
+ """
+ Supplementary Purchase Data for the corresponding Klarna payment
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaOnDemand(
+ TypedDict,
+):
+ average_amount: NotRequired[int]
+ """
+ Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
+ """
+ maximum_amount: NotRequired[int]
+ """
+ The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ """
+ minimum_amount: NotRequired[int]
+ """
+ The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ """
+ purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
+ """
+ Interval at which the customer is making purchases
+ """
+ purchase_interval_count: NotRequired[int]
+ """
+ The number of `purchase_interval` between charges
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscription(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Unit of time between subscription charges.
+ """
+ interval_count: NotRequired[int]
+ """
+ The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
+ """
+ name: NotRequired[str]
+ """
+ Name for subscription.
+ """
+ next_billing: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
+ ]
+ """
+ Describes the upcoming charge for this subscription.
+ """
+ reference: str
+ """
+ A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
+ TypedDict,
+):
+ amount: int
+ """
+ The amount of the next charge for the subscription.
+ """
+ date: str
+ """
+ The date of the next charge for the subscription in YYYY-MM-DD format.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseData(
+ TypedDict,
+):
+ bus_reservation_details: NotRequired[
+ "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]"
+ ]
+ """
+ Supplementary bus reservation details.
+ """
+ event_reservation_details: NotRequired[
+ "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]"
+ ]
+ """
+ Supplementary event reservation details.
+ """
+ ferry_reservation_details: NotRequired[
+ "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]"
+ ]
+ """
+ Supplementary ferry reservation details.
+ """
+ insurances: NotRequired[
+ "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]"
+ ]
+ """
+ Supplementary insurance details.
+ """
+ marketplace_sellers: NotRequired[
+ "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]"
+ ]
+ """
+ Supplementary marketplace seller details.
+ """
+ round_trip_reservation_details: NotRequired[
+ "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]"
+ ]
+ """
+ Supplementary round trip reservation details.
+ """
+ train_reservation_details: NotRequired[
+ "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]"
+ ]
+ """
+ Supplementary train reservation details.
+ """
+ vouchers: NotRequired[
+ "Literal['']|List[OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]"
+ ]
+ """
+ Voucher details, such as a gift card or discount code.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail(
+ TypedDict,
+):
+ access_controlled_venue: NotRequired[bool]
+ """
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
+ address: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress"
+ ]
+ """
+ Address of the event.
+ """
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ ends_at: NotRequired[int]
+ """
+ End timestamp of the event.
+ """
+ event_company_name: NotRequired[str]
+ """
+ Company selling the ticket.
+ """
+ event_name: NotRequired[str]
+ """
+ Name of the event.
+ """
+ event_type: NotRequired[
+ Literal[
+ "concert",
+ "conference",
+ "digital_education",
+ "expo",
+ "festival",
+ "in_person_education",
+ "sport",
+ "tour",
+ ]
+ ]
+ """
+ Type of the event.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Start timestamp of the event.
+ """
+ venue_name: NotRequired[str]
+ """
+ Name of the venue where the event takes place.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller(
+ TypedDict,
+):
+ line_item_references: NotRequired[List[str]]
+ """
+ The references to line items for purchases with multiple associated sub-sellers.
+ """
+ marketplace_seller_address: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress"
+ ]
+ """
+ The address of the selling or delivering merchant.
+ """
+ marketplace_seller_name: NotRequired[str]
+ """
+ The name of the marketplace seller.
+ """
+ marketplace_seller_reference: NotRequired[str]
+ """
+ The unique identifier for the marketplace seller.
+ """
+ number_of_transactions: NotRequired[int]
+ """
+ The number of transactions the sub-seller completed in the last 12 months.
+ """
+ product_category: NotRequired[
+ Literal[
+ "accessories",
+ "appliances",
+ "apps_and_games",
+ "arts_crafts_and_sewing",
+ "automotive",
+ "baby",
+ "baby_clothing",
+ "bags_and_purses",
+ "beauty",
+ "books",
+ "cds_and_vinyl",
+ "cell_phones_and_accessories",
+ "collectibles_and_fine_arts",
+ "digital_music",
+ "electronics",
+ "grocery_and_gourmet_food",
+ "handmade",
+ "health_and_personal_care",
+ "home_and_kitchen",
+ "industrial_and_scientific",
+ "luggage_and_travel_gear",
+ "magazine_subscriptions",
+ "men_clothing",
+ "musical_instruments",
+ "office_products",
+ "patio_lawn_and_garden",
+ "pet_supplies",
+ "shoes",
+ "software",
+ "sports_and_outdoors",
+ "tools_and_home_improvement",
+ "toys_and_games",
+ "video_games",
+ "women_clothing",
+ ]
+ ]
+ """
+ The category of the product.
+ """
+ seller_last_login_at: NotRequired[int]
+ """
+ The date when the seller's account with the marketplace was last logged in.
+ """
+ seller_rating: NotRequired[
+ Literal["high", "low", "medium", "very_high", "very_low"]
+ ]
+ """
+ The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
+ """
+ seller_registered_at: NotRequired[int]
+ """
+ The date when the seller's account with the marketplace was created.
+ """
+ seller_updated_at: NotRequired[int]
+ """
+ The date when the seller's account with the marketplace was last updated.
+ """
+ shipping_references: NotRequired[List[str]]
+ """
+ The references to shipping addresses for purchases with multiple associated sub-sellers.
+ """
+ volume_of_transactions: NotRequired[int]
+ """
+ The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
+ """
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for this voucher.
+ """
+ ends_at: NotRequired[int]
+ """
+ The voucher validity end time.
+ """
+ starts_at: NotRequired[int]
+ """
+ The voucher validity start time.
+ """
+ voucher_company: NotRequired[str]
+ """
+ The issuer or provider of this voucher.
+ """
+ voucher_name: NotRequired[str]
+ """
+ The name or reference to identify the voucher.
+ """
+ voucher_type: NotRequired[
+ Literal[
+ "digital_product",
+ "discount",
+ "gift_card",
+ "physical_product",
+ "services",
+ ]
+ ]
+ """
+ The type of this voucher.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsLink(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ persistent_token: NotRequired[str]
+ """
+ [Deprecated] This is a legacy parameter that no longer has any function.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsOxxo(TypedDict):
+ expires_after_days: NotRequired[int]
+ """
+ The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsP24(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ tos_shown_and_accepted: NotRequired[bool]
+ """
+ Confirm that the payer has accepted the P24 terms and conditions.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypal(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds will be captured from the customer's account.
+ """
+ line_items: NotRequired[
+ List[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem"
+ ]
+ ]
+ """
+ The line items purchased by the customer.
+ """
+ preferred_locale: NotRequired[
+ Literal[
+ "cs-CZ",
+ "da-DK",
+ "de-AT",
+ "de-DE",
+ "de-LU",
+ "el-GR",
+ "en-GB",
+ "en-US",
+ "es-ES",
+ "fi-FI",
+ "fr-BE",
+ "fr-FR",
+ "fr-LU",
+ "hu-HU",
+ "it-IT",
+ "nl-BE",
+ "nl-NL",
+ "pl-PL",
+ "pt-PT",
+ "sk-SK",
+ "sv-SE",
+ ]
+ ]
+ """
+ [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
+ """
+ reference: NotRequired[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
+ reference_id: NotRequired[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
+ risk_correlation_id: NotRequired[str]
+ """
+ The risk correlation ID for an on-session payment using a saved PayPal payment method.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ subsellers: NotRequired[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItem(
+ TypedDict,
+):
+ category: NotRequired[
+ Literal["digital_goods", "donation", "physical_goods"]
+ ]
+ """
+ Type of the line item.
+ """
+ description: NotRequired[str]
+ """
+ Description of the line item.
+ """
+ name: str
+ """
+ Descriptive name of the line item.
+ """
+ quantity: int
+ """
+ Quantity of the line item. Must be a positive number.
+ """
+ sku: NotRequired[str]
+ """
+ Client facing stock keeping unit, article number or similar.
+ """
+ sold_by: NotRequired[str]
+ """
+ The Stripe account ID of the connected account that sells the item.
+ """
+ tax: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax"
+ ]
+ """
+ The tax information for the line item.
+ """
+ unit_amount: int
+ """
+ Price for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsPaypalLineItemTax(
+ TypedDict,
+):
+ amount: int
+ """
+ The tax for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+ behavior: Literal["exclusive", "inclusive"]
+ """
+ The tax behavior for the line item.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit(TypedDict):
+ mandate_options: NotRequired[
+ "OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions(
+ TypedDict,
+):
+ reference_prefix: NotRequired["Literal['']|str"]
+ """
+ Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsSofort(TypedDict):
+ preferred_language: NotRequired[
+ "Literal['']|Literal['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']"
+ ]
+ """
+ Language shown to the payer on redirect.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay(TypedDict):
+ app_id: NotRequired[str]
+ """
+ The app ID registered with WeChat Pay. Only required when client is ios or android.
+ """
+ client: NotRequired[Literal["android", "ios", "web"]]
+ """
+ The client type that the end customer will pay from
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class OrderUpdateParamsPaymentSettingsTransferData(TypedDict):
+ amount: NotRequired[int]
+ """
+ The amount that will be transferred automatically when the order is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field.
+ """
+ destination: str
+ """
+ ID of the Connected account receiving the transfer.
+ """
+
+
+class OrderUpdateParamsShippingCost(TypedDict):
+ shipping_rate: NotRequired[str]
+ """
+ The ID of the shipping rate to use for this order.
+ """
+ shipping_rate_data: NotRequired[
+ "OrderUpdateParamsShippingCostShippingRateData"
+ ]
+ """
+ Parameters to create a new ad-hoc shipping rate for this order.
+ """
+
+
+class OrderUpdateParamsShippingCostShippingRateData(TypedDict):
+ delivery_estimate: NotRequired[
+ "OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimate"
+ ]
+ """
+ The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
+ """
+ display_name: str
+ """
+ The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
+ """
+ fixed_amount: NotRequired[
+ "OrderUpdateParamsShippingCostShippingRateDataFixedAmount"
+ ]
+ """
+ Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ """
+ Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
+ """
+ tax_code: NotRequired[str]
+ """
+ A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
+ """
+ type: NotRequired[Literal["fixed_amount"]]
+ """
+ The type of calculation to use on the shipping rate.
+ """
+
+
+class OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimate(TypedDict):
+ maximum: NotRequired[
+ "OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximum"
+ ]
+ """
+ The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
+ """
+ minimum: NotRequired[
+ "OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimum"
+ ]
+ """
+ The lower bound of the estimated range. If empty, represents no lower bound.
+ """
+
+
+class OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximum(
+ TypedDict,
+):
+ unit: Literal["business_day", "day", "hour", "month", "week"]
+ """
+ A unit of time.
+ """
+ value: int
+ """
+ Must be greater than 0.
+ """
+
+
+class OrderUpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimum(
+ TypedDict,
+):
+ unit: Literal["business_day", "day", "hour", "month", "week"]
+ """
+ A unit of time.
+ """
+ value: int
+ """
+ Must be greater than 0.
+ """
+
+
+class OrderUpdateParamsShippingCostShippingRateDataFixedAmount(TypedDict):
+ amount: int
+ """
+ A non-negative integer in cents representing how much to charge.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ currency_options: NotRequired[
+ Dict[
+ str,
+ "OrderUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions",
+ ]
+ ]
+ """
+ Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
+ """
+
+
+class OrderUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions(
+ TypedDict,
+):
+ amount: int
+ """
+ A non-negative integer in cents representing how much to charge.
+ """
+ tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ """
+ Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
+ """
+
+
+class OrderUpdateParamsShippingDetails(TypedDict):
+ address: "OrderUpdateParamsShippingDetailsAddress"
+ """
+ The shipping address for the order.
+ """
+ name: str
+ """
+ The name of the recipient of the order.
+ """
+ phone: NotRequired["Literal['']|str"]
+ """
+ The phone number (including extension) for the recipient of the order.
+ """
+
+
+class OrderUpdateParamsShippingDetailsAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
+ """
+
+
+class OrderUpdateParamsTaxDetails(TypedDict):
+ tax_exempt: NotRequired["Literal['']|Literal['exempt', 'none', 'reverse']"]
+ """
+ The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`.
+ """
+ tax_ids: NotRequired[List["OrderUpdateParamsTaxDetailsTaxId"]]
+ """
+ The purchaser's tax IDs to be used for this order.
+ """
+
+
+class OrderUpdateParamsTaxDetailsTaxId(TypedDict):
+ type: Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "bo_tin",
+ "br_cnpj",
+ "br_cpf",
+ "bs_tin",
+ "by_tin",
+ "ca_bn",
+ "ca_gst_hst",
+ "ca_pst_bc",
+ "ca_pst_mb",
+ "ca_pst_sk",
+ "ca_qst",
+ "cd_nif",
+ "ch_uid",
+ "ch_vat",
+ "cl_tin",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "gb_vat",
+ "ge_vat",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "ma_vat",
+ "md_vat",
+ "me_pib",
+ "mk_vat",
+ "mr_nif",
+ "mx_rfc",
+ "my_frp",
+ "my_itn",
+ "my_sst",
+ "ng_tin",
+ "no_vat",
+ "no_voec",
+ "np_pan",
+ "nz_gst",
+ "om_vat",
+ "pe_ruc",
+ "ph_tin",
+ "ro_tin",
+ "rs_pib",
+ "ru_inn",
+ "ru_kpp",
+ "sa_vat",
+ "sg_gst",
+ "sg_uen",
+ "si_tin",
+ "sn_ninea",
+ "sr_fin",
+ "sv_nit",
+ "th_vat",
+ "tj_tin",
+ "tr_tin",
+ "tw_vat",
+ "tz_vat",
+ "ua_vat",
+ "ug_tin",
+ "us_ein",
+ "uy_ruc",
+ "uz_tin",
+ "uz_vat",
+ "ve_rif",
+ "vn_tin",
+ "za_vat",
+ "zm_tin",
+ "zw_tin",
+ ]
+ """
+ Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
+ """
+ value: str
+ """
+ Value of the tax ID.
+ """
diff --git a/stripe/params/_payment_intent_capture_params.py b/stripe/params/_payment_intent_capture_params.py
index 9876c1044..0996155e8 100644
--- a/stripe/params/_payment_intent_capture_params.py
+++ b/stripe/params/_payment_intent_capture_params.py
@@ -265,12 +265,50 @@ class PaymentIntentCaptureParamsHooksInputsTax(TypedDict):
class PaymentIntentCaptureParamsPaymentDetails(TypedDict):
+ car_rental: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRental"
+ ]
+ """
+ Car rental details for this PaymentIntent.
+ """
+ car_rental_data: NotRequired[
+ "Literal['']|List[PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
customer_reference: NotRequired["Literal['']|str"]
"""
A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
"""
+ event_details: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsEventDetails"
+ ]
+ """
+ Event details for this PaymentIntent
+ """
+ flight: NotRequired["PaymentIntentCaptureParamsPaymentDetailsFlight"]
+ """
+ Flight reservation details for this PaymentIntent
+ """
+ flight_data: NotRequired[
+ "Literal['']|List[PaymentIntentCaptureParamsPaymentDetailsFlightDatum]"
+ ]
+ """
+ Flight data for this PaymentIntent.
+ """
+ lodging: NotRequired["PaymentIntentCaptureParamsPaymentDetailsLodging"]
+ """
+ Lodging reservation details for this PaymentIntent
+ """
+ lodging_data: NotRequired[
+ "Literal['']|List[PaymentIntentCaptureParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
order_reference: NotRequired["Literal['']|str"]
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
@@ -279,6 +317,1769 @@ class PaymentIntentCaptureParamsPaymentDetails(TypedDict):
For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""
+ subscription: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsSubscription"
+ ]
+ """
+ Subscription details for this PaymentIntent
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRental(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ booking_number: str
+ """
+ The booking number associated with the car rental.
+ """
+ car_class_code: NotRequired[str]
+ """
+ Class code of the car.
+ """
+ car_make: NotRequired[str]
+ """
+ Make of the car.
+ """
+ car_model: NotRequired[str]
+ """
+ Model of the car.
+ """
+ company: NotRequired[str]
+ """
+ The name of the rental car company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the car rental company.
+ """
+ days_rented: int
+ """
+ Number of days the car is being rented.
+ """
+ delivery: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ distance: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDistance"
+ ]
+ """
+ The details of the distance traveled during the rental period.
+ """
+ drivers: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsCarRentalDriver"]
+ ]
+ """
+ The details of the passengers in the travel reservation
+ """
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "late_return",
+ "one_way_service",
+ "parking_violation",
+ ]
+ ]
+ ]
+ """
+ List of additional charges being billed.
+ """
+ no_show: NotRequired[bool]
+ """
+ Indicates if the customer did not keep nor cancel their booking.
+ """
+ pickup_address: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalPickupAddress"
+ ]
+ """
+ Car pick-up address.
+ """
+ pickup_at: int
+ """
+ Car pick-up time. Measured in seconds since the Unix epoch.
+ """
+ pickup_location_name: NotRequired[str]
+ """
+ Name of the pickup location.
+ """
+ rate_amount: NotRequired[int]
+ """
+ Rental rate.
+ """
+ rate_interval: NotRequired[Literal["day", "month", "week"]]
+ """
+ The frequency at which the rate amount is applied. One of `day`, `week` or `month`
+ """
+ renter_name: NotRequired[str]
+ """
+ The name of the person or entity renting the car.
+ """
+ return_address: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalReturnAddress"
+ ]
+ """
+ Car return address.
+ """
+ return_at: int
+ """
+ Car return time. Measured in seconds since the Unix epoch.
+ """
+ return_location_name: NotRequired[str]
+ """
+ Name of the return location.
+ """
+ tax_exempt: NotRequired[bool]
+ """
+ Indicates whether the goods or services are tax-exempt or tax is not collected.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ The vehicle identification number.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDistance(TypedDict):
+ amount: NotRequired[int]
+ """
+ Distance traveled.
+ """
+ unit: NotRequired[Literal["kilometers", "miles"]]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDriver(TypedDict):
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Full name of the person or entity on the car reservation.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalPickupAddress(
+ TypedDict
+):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalReturnAddress(
+ TypedDict
+):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate"
+ ]
+ """
+ Affiliate (such as travel agency) details for the rental.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance"
+ ]
+ """
+ Distance details for the rental.
+ """
+ drivers: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver"]
+ ]
+ """
+ List of drivers for the rental.
+ """
+ drop_off: "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff"
+ """
+ Drop-off location details.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance"]
+ ]
+ """
+ Insurance details for the rental.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Indicates if the customer was a no-show.
+ """
+ pickup: "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup"
+ """
+ Pickup location details.
+ """
+ renter_name: NotRequired[str]
+ """
+ Name of the person renting the vehicle.
+ """
+ total: "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal"
+ """
+ Total cost breakdown for the rental.
+ """
+ vehicle: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle"
+ ]
+ """
+ Vehicle details for the rental.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumAffiliate(
+ TypedDict,
+):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDistance(
+ TypedDict
+):
+ amount: int
+ """
+ Distance traveled.
+ """
+ unit: Literal["kilometers", "miles"]
+ """
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
+ ]
+ """
+ Driver's date of birth.
+ """
+ driver_identification_number: NotRequired[str]
+ """
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
+ """
+ Day of birth (1-31).
+ """
+ month: int
+ """
+ Month of birth (1-12).
+ """
+ year: int
+ """
+ Year of birth (must be greater than 1900).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: (
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumDropOffAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumInsurance(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: (
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumPickupAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
+ """
+ Total amount in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ Literal["days", "kilometers", "miles", "months", "weeks"]
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the rental.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTax(
+ TypedDict
+):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List[
+ "PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax"
+ ]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumTotalTaxTax(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
+ Literal[
+ "cargo_van",
+ "compact",
+ "economy",
+ "exotic",
+ "exotic_suv",
+ "fifteen_passenger_van",
+ "four_wheel_drive",
+ "full_size",
+ "intermediate",
+ "large_suv",
+ "large_truck",
+ "luxury",
+ "medium_suv",
+ "midsize",
+ "mini",
+ "minivan",
+ "miscellaneous",
+ "moped",
+ "moving_van",
+ "premium",
+ "regular",
+ "small_medium_truck",
+ "small_suv",
+ "special",
+ "standard",
+ "stretch",
+ "subcompact",
+ "taxi",
+ "twelve_foot_truck",
+ "twelve_passenger_van",
+ "twenty_foot_truck",
+ "twenty_four_foot_truck",
+ "twenty_six_foot_truck",
+ "unique",
+ ]
+ ]
+ """
+ Type of the rental vehicle.
+ """
+ vehicle_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsEventDetails(TypedDict):
+ access_controlled_venue: NotRequired[bool]
+ """
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
+ address: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsEventDetailsAddress"
+ ]
+ """
+ The event location's address.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsEventDetailsAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ company: NotRequired[str]
+ """
+ The name of the company
+ """
+ delivery: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsEventDetailsDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Event end time. Measured in seconds since the Unix epoch.
+ """
+ genre: NotRequired[str]
+ """
+ Type of the event entertainment (concert, sports event etc)
+ """
+ name: str
+ """
+ The name of the event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Event start time. Measured in seconds since the Unix epoch.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsEventDetailsAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsEventDetailsAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsEventDetailsDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsEventDetailsDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlight(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsFlightAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ agency_number: NotRequired[str]
+ """
+ The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
+ """
+ delivery: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ passenger_name: NotRequired[str]
+ """
+ The name of the person or entity on the reservation.
+ """
+ passengers: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsFlightPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation.
+ """
+ segments: List["PaymentIntentCaptureParamsPaymentDetailsFlightSegment"]
+ """
+ The individual flight segments associated with the trip.
+ """
+ ticket_number: NotRequired[str]
+ """
+ The ticket number associated with the travel reservation.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the flight reservation.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightSegment(TypedDict):
+ amount: NotRequired[int]
+ """
+ The flight segment amount.
+ """
+ arrival_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the arrival airport.
+ """
+ arrives_at: NotRequired[int]
+ """
+ The arrival time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
+ """
+ departs_at: int
+ """
+ The departure time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ departure_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the departure airport.
+ """
+ flight_number: NotRequired[str]
+ """
+ The flight number associated with the segment
+ """
+ service_class: NotRequired[
+ Literal["business", "economy", "first", "premium_economy"]
+ ]
+ """
+ The fare class for the segment.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Reservation reference.
+ """
+ computerized_reservation_system: NotRequired[str]
+ """
+ Computerized reservation system used to make the reservation and purchase the ticket.
+ """
+ endorsements_and_restrictions: NotRequired[str]
+ """
+ Ticket restrictions.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsFlightDatumInsurance"]
+ ]
+ """
+ List of insurances.
+ """
+ passengers: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsFlightDatumPassenger"]
+ ]
+ """
+ List of passengers.
+ """
+ segments: List[
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegment"
+ ]
+ """
+ List of flight segments.
+ """
+ ticket_electronically_issued_indicator: NotRequired[bool]
+ """
+ Electronic ticket indicator.
+ """
+ total: "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotal"
+ """
+ Total cost breakdown.
+ """
+ transaction_type: NotRequired[
+ Literal[
+ "exchange_ticket", "miscellaneous", "refund", "ticket_purchase"
+ ]
+ ]
+ """
+ Type of flight transaction.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+ travel_authorization_code: NotRequired[str]
+ """
+ Code provided by the company to a travel agent authorizing ticket issuance.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDatumInsurance(TypedDict):
+ amount: int
+ """
+ Insurance cost.
+ """
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Insurance company name.
+ """
+ insurance_type: Literal[
+ "baggage", "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDatumPassenger(TypedDict):
+ name: str
+ """
+ Passenger's full name.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegment(TypedDict):
+ amount: NotRequired[int]
+ """
+ Segment fare amount.
+ """
+ arrival: (
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentArrival"
+ )
+ """
+ Arrival details.
+ """
+ carrier_code: str
+ """
+ Airline carrier code.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Carrier name.
+ """
+ currency: NotRequired[str]
+ """
+ Segment currency.
+ """
+ departure: (
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentDeparture"
+ )
+ """
+ Departure details.
+ """
+ exchange_ticket_number: NotRequired[str]
+ """
+ Exchange ticket number.
+ """
+ fare_basis_code: NotRequired[str]
+ """
+ Fare basis code.
+ """
+ fees: NotRequired[int]
+ """
+ Additional fees.
+ """
+ flight_number: NotRequired[str]
+ """
+ Flight number.
+ """
+ is_stop_over_indicator: NotRequired[bool]
+ """
+ Stopover indicator.
+ """
+ refundable: NotRequired[bool]
+ """
+ Refundable ticket indicator.
+ """
+ service_class: Literal[
+ "business", "economy", "first_class", "premium_economy"
+ ]
+ """
+ Class of service.
+ """
+ tax_amount: NotRequired[int]
+ """
+ Tax amount for segment.
+ """
+ ticket_number: NotRequired[str]
+ """
+ Ticket number.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentArrival(
+ TypedDict,
+):
+ airport: str
+ """
+ Arrival airport IATA code.
+ """
+ arrives_at: NotRequired[int]
+ """
+ Arrival date/time.
+ """
+ city: NotRequired[str]
+ """
+ Arrival city.
+ """
+ country: NotRequired[str]
+ """
+ Arrival country.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDatumSegmentDeparture(
+ TypedDict,
+):
+ airport: str
+ """
+ Departure airport IATA code.
+ """
+ city: NotRequired[str]
+ """
+ Departure city.
+ """
+ country: NotRequired[str]
+ """
+ Departure country.
+ """
+ departs_at: int
+ """
+ Departure date/time.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotal(TypedDict):
+ amount: int
+ """
+ Total flight amount.
+ """
+ credit_reason: NotRequired[
+ Literal[
+ "other",
+ "partial_ticket_refund",
+ "passenger_transport_ancillary_cancellation",
+ "ticket_and_ancillary_cancellation",
+ "ticket_cancellation",
+ ]
+ ]
+ """
+ Reason for credit.
+ """
+ currency: NotRequired[str]
+ """
+ Total currency.
+ """
+ discounts: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalDiscounts"
+ ]
+ """
+ Discount details.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges.
+ """
+ tax: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTax"
+ ]
+ """
+ Tax breakdown.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of additional charges.
+ """
+ type: NotRequired[
+ Literal["additional_fees", "ancillary_service_charges", "exchange_fee"]
+ ]
+ """
+ Type of additional charges.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTax(TypedDict):
+ taxes: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTaxTax"]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsFlightDatumTotalTaxTax(
+ TypedDict
+):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodging(TypedDict):
+ address: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingAddress"
+ ]
+ """
+ The lodging location's address.
+ """
+ adults: NotRequired[int]
+ """
+ The number of adults on the booking
+ """
+ affiliate: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ booking_number: NotRequired[str]
+ """
+ The booking number associated with the lodging reservation.
+ """
+ category: NotRequired[Literal["hotel", "vacation_rental"]]
+ """
+ The lodging category
+ """
+ checkin_at: int
+ """
+ Lodging check-in time. Measured in seconds since the Unix epoch.
+ """
+ checkout_at: int
+ """
+ Lodging check-out time. Measured in seconds since the Unix epoch.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the lodging company.
+ """
+ daily_room_rate_amount: NotRequired[int]
+ """
+ The daily lodging room rate.
+ """
+ delivery: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "gift_shop",
+ "laundry",
+ "mini_bar",
+ "other",
+ "restaurant",
+ "telephone",
+ ]
+ ]
+ ]
+ """
+ List of additional charges being billed.
+ """
+ fire_safety_act_compliance: NotRequired[bool]
+ """
+ Indicates whether the lodging location is compliant with the Fire Safety Act.
+ """
+ name: NotRequired[str]
+ """
+ The name of the lodging location.
+ """
+ no_show: NotRequired[bool]
+ """
+ Indicates if the customer did not keep their booking while failing to cancel the reservation.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ The number of rooms on the booking
+ """
+ passengers: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsLodgingPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation
+ """
+ property_phone_number: NotRequired[str]
+ """
+ The phone number of the lodging location.
+ """
+ room_class: NotRequired[str]
+ """
+ The room class for this purchase.
+ """
+ room_nights: NotRequired[int]
+ """
+ The number of room nights
+ """
+ total_room_tax_amount: NotRequired[int]
+ """
+ The total tax amount associating with the room reservation.
+ """
+ total_tax_amount: NotRequired[int]
+ """
+ The total tax amount
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the lodging reservation.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost"
+ ]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAccommodation(
+ TypedDict,
+):
+ accommodation_type: NotRequired[
+ Literal[
+ "apartment",
+ "cabana",
+ "house",
+ "penthouse",
+ "room",
+ "standard",
+ "suite",
+ "villa",
+ ]
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ Literal["hostel", "hotel", "owner", "rental_agency"]
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumHostAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ Literal[
+ "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant"
+ ]
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List["PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax"]
+ ]
+ """
+ Tax details.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsLodgingDatumTotalTaxTax(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsSubscription(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsSubscriptionAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ auto_renewal: NotRequired[bool]
+ """
+ Info whether the subscription will be auto renewed upon expiry.
+ """
+ billing_interval: NotRequired[
+ "PaymentIntentCaptureParamsPaymentDetailsSubscriptionBillingInterval"
+ ]
+ """
+ Subscription billing details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Subscription end time. Measured in seconds since the Unix epoch.
+ """
+ name: str
+ """
+ Name of the product on subscription. e.g. Apple Music Subscription
+ """
+ starts_at: NotRequired[int]
+ """
+ Subscription start time. Measured in seconds since the Unix epoch.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsSubscriptionAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentCaptureParamsPaymentDetailsSubscriptionBillingInterval(
+ TypedDict,
+):
+ count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
class PaymentIntentCaptureParamsTransferData(TypedDict):
diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py
index fe11b6a99..b95dbd21a 100644
--- a/stripe/params/_payment_intent_confirm_params.py
+++ b/stripe/params/_payment_intent_confirm_params.py
@@ -12,6 +12,10 @@ class PaymentIntentConfirmParams(RequestOptions):
"""
Provides industry-specific information about the amount.
"""
+ application_fee_amount: NotRequired["Literal['']|int"]
+ """
+ The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
+ """
capture_method: NotRequired[
Literal["automatic", "automatic_async", "manual"]
]
@@ -29,7 +33,7 @@ class PaymentIntentConfirmParams(RequestOptions):
Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://docs.stripe.com/payments/save-card-without-authentication).
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types to exclude from use with this payment.
@@ -38,6 +42,10 @@ class PaymentIntentConfirmParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
+ fx_quote: NotRequired[str]
+ """
+ The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
+ """
hooks: NotRequired["PaymentIntentConfirmParamsHooks"]
"""
Automations to be run during the PaymentIntent lifecycle
@@ -377,12 +385,50 @@ class PaymentIntentConfirmParamsMandateDataCustomerAcceptanceOnline(TypedDict):
class PaymentIntentConfirmParamsPaymentDetails(TypedDict):
+ car_rental: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRental"
+ ]
+ """
+ Car rental details for this PaymentIntent.
+ """
+ car_rental_data: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
customer_reference: NotRequired["Literal['']|str"]
"""
A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
"""
+ event_details: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsEventDetails"
+ ]
+ """
+ Event details for this PaymentIntent
+ """
+ flight: NotRequired["PaymentIntentConfirmParamsPaymentDetailsFlight"]
+ """
+ Flight reservation details for this PaymentIntent
+ """
+ flight_data: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentDetailsFlightDatum]"
+ ]
+ """
+ Flight data for this PaymentIntent.
+ """
+ lodging: NotRequired["PaymentIntentConfirmParamsPaymentDetailsLodging"]
+ """
+ Lodging reservation details for this PaymentIntent
+ """
+ lodging_data: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
order_reference: NotRequired["Literal['']|str"]
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
@@ -391,429 +437,492 @@ class PaymentIntentConfirmParamsPaymentDetails(TypedDict):
For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""
+ subscription: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsSubscription"
+ ]
+ """
+ Subscription details for this PaymentIntent
+ """
-class PaymentIntentConfirmParamsPaymentMethodData(TypedDict):
- acss_debit: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataAcssDebit"
+class PaymentIntentConfirmParamsPaymentDetailsCarRental(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalAffiliate"
]
"""
- If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
+ Affiliate details for this purchase.
"""
- affirm: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAffirm"]
+ booking_number: str
"""
- If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
+ The booking number associated with the car rental.
"""
- afterpay_clearpay: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataAfterpayClearpay"
- ]
+ car_class_code: NotRequired[str]
"""
- If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
+ Class code of the car.
"""
- alipay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAlipay"]
+ car_make: NotRequired[str]
"""
- If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
+ Make of the car.
"""
- allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
+ car_model: NotRequired[str]
"""
- This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
+ Model of the car.
"""
- alma: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAlma"]
+ company: NotRequired[str]
"""
- If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
+ The name of the rental car company.
"""
- amazon_pay: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataAmazonPay"
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the car rental company.
+ """
+ days_rented: int
+ """
+ Number of days the car is being rented.
+ """
+ delivery: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDelivery"
]
"""
- If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
+ Delivery details for this purchase.
"""
- au_becs_debit: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit"
+ distance: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDistance"
]
"""
- If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
+ The details of the distance traveled during the rental period.
"""
- bacs_debit: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataBacsDebit"
+ drivers: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsCarRentalDriver"]
]
"""
- If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
+ The details of the passengers in the travel reservation
"""
- bancontact: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataBancontact"
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "late_return",
+ "one_way_service",
+ "parking_violation",
+ ]
+ ]
]
"""
- If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
+ List of additional charges being billed.
"""
- billie: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBillie"]
+ no_show: NotRequired[bool]
"""
- If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
+ Indicates if the customer did not keep nor cancel their booking.
"""
- billing_details: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataBillingDetails"
+ pickup_address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalPickupAddress"
]
"""
- Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
+ Car pick-up address.
"""
- blik: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBlik"]
+ pickup_at: int
"""
- If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
+ Car pick-up time. Measured in seconds since the Unix epoch.
"""
- boleto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBoleto"]
+ pickup_location_name: NotRequired[str]
"""
- If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
+ Name of the pickup location.
"""
- cashapp: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataCashapp"]
+ rate_amount: NotRequired[int]
"""
- If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
+ Rental rate.
"""
- crypto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataCrypto"]
+ rate_interval: NotRequired[Literal["day", "month", "week"]]
"""
- If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
+ The frequency at which the rate amount is applied. One of `day`, `week` or `month`
"""
- customer_balance: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance"
+ renter_name: NotRequired[str]
+ """
+ The name of the person or entity renting the car.
+ """
+ return_address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalReturnAddress"
]
"""
- If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
+ Car return address.
"""
- eps: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataEps"]
+ return_at: int
"""
- If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
+ Car return time. Measured in seconds since the Unix epoch.
"""
- fpx: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataFpx"]
+ return_location_name: NotRequired[str]
"""
- If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
+ Name of the return location.
"""
- giropay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataGiropay"]
+ tax_exempt: NotRequired[bool]
"""
- If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
+ Indicates whether the goods or services are tax-exempt or tax is not collected.
"""
- grabpay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataGrabpay"]
+ vehicle_identification_number: NotRequired[str]
"""
- If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
+ The vehicle identification number.
"""
- ideal: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataIdeal"]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalAffiliate(TypedDict):
+ name: str
"""
- If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
+ The name of the affiliate that originated the purchase.
"""
- interac_present: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataInteracPresent"
- ]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
"""
- If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
+ The delivery method for the payment
"""
- kakao_pay: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataKakaoPay"
+ recipient: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDeliveryRecipient"
]
"""
- If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
+ Details of the recipient.
"""
- klarna: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKlarna"]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
"""
- If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
+ The email of the recipient the ticket is delivered to.
"""
- konbini: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKonbini"]
+ name: NotRequired[str]
"""
- If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
+ The name of the recipient the ticket is delivered to.
"""
- kr_card: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKrCard"]
+ phone: NotRequired[str]
"""
- If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
+ The phone number of the recipient the ticket is delivered to.
"""
- link: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataLink"]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDistance(TypedDict):
+ amount: NotRequired[int]
"""
- If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
+ Distance traveled.
"""
- mb_way: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataMbWay"]
+ unit: NotRequired[Literal["kilometers", "miles"]]
"""
- If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
"""
- metadata: NotRequired[Dict[str, str]]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDriver(TypedDict):
+ driver_identification_number: NotRequired[str]
"""
- Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ Driver's identification number.
"""
- mobilepay: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataMobilepay"
- ]
+ driver_tax_number: NotRequired[str]
"""
- If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
+ Driver's tax number.
"""
- multibanco: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataMultibanco"
- ]
+ name: str
"""
- If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
+ Full name of the person or entity on the car reservation.
"""
- naver_pay: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataNaverPay"
- ]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalPickupAddress(
+ TypedDict
+):
+ city: NotRequired[str]
"""
- If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
+ City, district, suburb, town, or village.
"""
- nz_bank_account: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataNzBankAccount"
- ]
+ country: NotRequired[str]
"""
- If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- oxxo: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataOxxo"]
+ line1: NotRequired[str]
"""
- If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
+ Address line 1, such as the street, PO Box, or company name.
"""
- p24: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataP24"]
+ line2: NotRequired[str]
"""
- If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
+ Address line 2, such as the apartment, suite, unit, or building.
"""
- pay_by_bank: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataPayByBank"
- ]
+ postal_code: NotRequired[str]
"""
- If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
+ ZIP or postal code.
"""
- payco: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPayco"]
+ state: NotRequired[str]
"""
- If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""
- paynow: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPaynow"]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalReturnAddress(
+ TypedDict
+):
+ city: NotRequired[str]
"""
- If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
+ City, district, suburb, town, or village.
"""
- paypal: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPaypal"]
+ country: NotRequired[str]
"""
- If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- payto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPayto"]
+ line1: NotRequired[str]
"""
- If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
+ Address line 1, such as the street, PO Box, or company name.
"""
- pix: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPix"]
+ line2: NotRequired[str]
"""
- If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
+ Address line 2, such as the apartment, suite, unit, or building.
"""
- promptpay: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataPromptpay"
- ]
+ postal_code: NotRequired[str]
"""
- If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
+ ZIP or postal code.
"""
- radar_options: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataRadarOptions"
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate"
]
"""
- Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
+ Affiliate (such as travel agency) details for the rental.
"""
- revolut_pay: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataRevolutPay"
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance"
]
"""
- If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
+ Distance details for the rental.
"""
- samsung_pay: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataSamsungPay"
+ drivers: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver"]
]
"""
- If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
+ List of drivers for the rental.
"""
- satispay: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataSatispay"
+ drop_off: "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff"
+ """
+ Drop-off location details.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance"]
]
"""
- If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
+ Insurance details for the rental.
"""
- sepa_debit: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit"
+ no_show_indicator: NotRequired[bool]
+ """
+ Indicates if the customer was a no-show.
+ """
+ pickup: "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup"
+ """
+ Pickup location details.
+ """
+ renter_name: NotRequired[str]
+ """
+ Name of the person renting the vehicle.
+ """
+ total: "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal"
+ """
+ Total cost breakdown for the rental.
+ """
+ vehicle: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle"
]
"""
- If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
+ Vehicle details for the rental.
"""
- sofort: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSofort"]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumAffiliate(
+ TypedDict,
+):
+ code: NotRequired[str]
"""
- If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
+ Affiliate partner code.
"""
- swish: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSwish"]
+ name: NotRequired[str]
"""
- If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
+ Name of affiliate partner.
"""
- twint: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataTwint"]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDistance(
+ TypedDict
+):
+ amount: int
"""
- If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
+ Distance traveled.
"""
- type: Literal[
- "acss_debit",
- "affirm",
- "afterpay_clearpay",
- "alipay",
- "alma",
- "amazon_pay",
- "au_becs_debit",
- "bacs_debit",
- "bancontact",
- "billie",
- "blik",
- "boleto",
- "cashapp",
- "crypto",
- "customer_balance",
- "eps",
- "fpx",
- "giropay",
- "grabpay",
- "ideal",
- "kakao_pay",
- "klarna",
- "konbini",
- "kr_card",
- "link",
- "mb_way",
- "mobilepay",
- "multibanco",
- "naver_pay",
- "nz_bank_account",
- "oxxo",
- "p24",
- "pay_by_bank",
- "payco",
- "paynow",
- "paypal",
- "payto",
- "pix",
- "promptpay",
- "revolut_pay",
- "samsung_pay",
- "satispay",
- "sepa_debit",
- "sofort",
- "swish",
- "twint",
- "us_bank_account",
- "wechat_pay",
- "zip",
- ]
+ unit: Literal["kilometers", "miles"]
"""
- The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
"""
- us_bank_account: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount"
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
]
"""
- If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
+ Driver's date of birth.
"""
- wechat_pay: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodDataWechatPay"
- ]
+ driver_identification_number: NotRequired[str]
"""
- If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
+ Driver's identification number.
"""
- zip: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataZip"]
+ driver_tax_number: NotRequired[str]
"""
- If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataAcssDebit(TypedDict):
- account_number: str
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
"""
- Customer's bank account number.
+ Day of birth (1-31).
"""
- institution_number: str
+ month: int
"""
- Institution number of the customer's bank.
+ Month of birth (1-12).
"""
- transit_number: str
+ year: int
"""
- Transit number of the customer's bank.
+ Year of birth (must be greater than 1900).
"""
-class PaymentIntentConfirmParamsPaymentMethodDataAffirm(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataAfterpayClearpay(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataAlipay(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataAlma(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataAmazonPay(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit(TypedDict):
- account_number: str
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: (
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ )
"""
- The account number for the bank account.
+ Address of the rental location.
"""
- bsb_number: str
+ location_name: NotRequired[str]
"""
- Bank-State-Branch number of the bank account.
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataBacsDebit(TypedDict):
- account_number: NotRequired[str]
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumDropOffAddress(
+ TypedDict,
+):
+ city: str
"""
- Account number of the bank account that the funds will be debited from.
+ City, district, suburb, town, or village.
"""
- sort_code: NotRequired[str]
+ country: str
"""
- Sort code of the bank account. (e.g., `10-20-30`)
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""
-class PaymentIntentConfirmParamsPaymentMethodDataBancontact(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataBillie(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataBillingDetails(TypedDict):
- address: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress"
- ]
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumInsurance(
+ TypedDict,
+):
+ amount: int
"""
- Billing address.
+ Amount of the insurance coverage in cents.
"""
- email: NotRequired["Literal['']|str"]
+ currency: NotRequired[str]
"""
- Email address.
+ Currency of the insurance amount.
"""
- name: NotRequired["Literal['']|str"]
+ insurance_company_name: NotRequired[str]
"""
- Full name.
+ Name of the insurance company.
"""
- phone: NotRequired["Literal['']|str"]
+ insurance_type: Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ]
"""
- Billing phone number (including extension).
+ Type of insurance coverage.
"""
- tax_id: NotRequired[str]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: (
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress"
+ )
"""
- Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress(
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumPickupAddress(
TypedDict,
):
- city: NotRequired[str]
+ city: str
"""
City, district, suburb, town, or village.
"""
- country: NotRequired[str]
+ country: str
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- line1: NotRequired[str]
+ line1: str
"""
Address line 1, such as the street, PO Box, or company name.
"""
@@ -821,7 +930,7 @@ class PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress(
"""
Address line 2, such as the apartment, suite, unit, or building.
"""
- postal_code: NotRequired[str]
+ postal_code: str
"""
ZIP or postal code.
"""
@@ -831,1651 +940,4680 @@ class PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress(
"""
-class PaymentIntentConfirmParamsPaymentMethodDataBlik(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataBoleto(TypedDict):
- tax_id: str
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
"""
- The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
+ Total amount in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ Literal["days", "kilometers", "miles", "months", "weeks"]
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the rental.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataCashapp(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataCrypto(TypedDict):
- pass
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
+ """
-class PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance(TypedDict):
- pass
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ]
+ """
+ Type of extra charge.
+ """
-class PaymentIntentConfirmParamsPaymentMethodDataEps(TypedDict):
- bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTax(
+ TypedDict
+):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTax"
]
]
"""
- The customer's bank.
+ Array of tax details.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumTotalTaxTax(
+ TypedDict,
+):
+ amount: NotRequired[int]
"""
- Account holder type for FPX transaction
+ Tax amount.
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bsn",
- "cimb",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
- ]
+ rate: NotRequired[int]
"""
- The customer's bank.
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataGiropay(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataGrabpay(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataIdeal(TypedDict):
- bank: NotRequired[
+class PaymentIntentConfirmParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
Literal[
- "abn_amro",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
+ "cargo_van",
+ "compact",
+ "economy",
+ "exotic",
+ "exotic_suv",
+ "fifteen_passenger_van",
+ "four_wheel_drive",
+ "full_size",
+ "intermediate",
+ "large_suv",
+ "large_truck",
+ "luxury",
+ "medium_suv",
+ "midsize",
+ "mini",
+ "minivan",
+ "miscellaneous",
+ "moped",
+ "moving_van",
+ "premium",
+ "regular",
+ "small_medium_truck",
+ "small_suv",
+ "special",
+ "standard",
+ "stretch",
+ "subcompact",
+ "taxi",
+ "twelve_foot_truck",
+ "twelve_passenger_van",
+ "twenty_foot_truck",
+ "twenty_four_foot_truck",
+ "twenty_six_foot_truck",
+ "unique",
]
]
"""
- The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
+ Type of the rental vehicle.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataInteracPresent(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataKakaoPay(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataKlarna(TypedDict):
- dob: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKlarnaDob"]
+ vehicle_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
"""
- Customer's date of birth
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
"""
-class PaymentIntentConfirmParamsPaymentMethodDataKlarnaDob(TypedDict):
- day: int
+class PaymentIntentConfirmParamsPaymentDetailsEventDetails(TypedDict):
+ access_controlled_venue: NotRequired[bool]
"""
- The day of birth, between 1 and 31.
+ Indicates if the tickets are digitally checked when entering the venue.
"""
- month: int
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsEventDetailsAddress"
+ ]
"""
- The month of birth, between 1 and 12.
+ The event location's address.
"""
- year: int
+ affiliate: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsEventDetailsAffiliate"
+ ]
"""
- The four-digit year of birth.
+ Affiliate details for this purchase.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataKonbini(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataKrCard(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataLink(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataMbWay(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataMobilepay(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataMultibanco(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataNaverPay(TypedDict):
- funding: NotRequired[Literal["card", "points"]]
+ company: NotRequired[str]
"""
- Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
+ The name of the company
+ """
+ delivery: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsEventDetailsDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Event end time. Measured in seconds since the Unix epoch.
+ """
+ genre: NotRequired[str]
+ """
+ Type of the event entertainment (concert, sports event etc)
+ """
+ name: str
+ """
+ The name of the event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Event start time. Measured in seconds since the Unix epoch.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataNzBankAccount(TypedDict):
- account_holder_name: NotRequired[str]
+class PaymentIntentConfirmParamsPaymentDetailsEventDetailsAddress(TypedDict):
+ city: NotRequired[str]
"""
- The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
+ City, district, suburb, town, or village.
"""
- account_number: str
+ country: NotRequired[str]
"""
- The account number for the bank account.
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- bank_code: str
+ line1: NotRequired[str]
"""
- The numeric code for the bank account's bank.
+ Address line 1, such as the street, PO Box, or company name.
"""
- branch_code: str
+ line2: NotRequired[str]
"""
- The numeric code for the bank account's bank branch.
+ Address line 2, such as the apartment, suite, unit, or building.
"""
- reference: NotRequired[str]
- suffix: str
+ postal_code: NotRequired[str]
"""
- The suffix of the bank account number.
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""
-class PaymentIntentConfirmParamsPaymentMethodDataOxxo(TypedDict):
- pass
+class PaymentIntentConfirmParamsPaymentDetailsEventDetailsAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
-class PaymentIntentConfirmParamsPaymentMethodDataP24(TypedDict):
- bank: NotRequired[
- Literal[
- "alior_bank",
- "bank_millennium",
- "bank_nowy_bfg_sa",
- "bank_pekao_sa",
- "banki_spbdzielcze",
- "blik",
- "bnp_paribas",
- "boz",
- "citi_handlowy",
- "credit_agricole",
- "envelobank",
- "etransfer_pocztowy24",
- "getin_bank",
- "ideabank",
- "ing",
- "inteligo",
- "mbank_mtransfer",
- "nest_przelew",
- "noble_pay",
- "pbac_z_ipko",
- "plus_bank",
- "santander_przelew24",
- "tmobile_usbugi_bankowe",
- "toyota_bank",
- "velobank",
- "volkswagen_bank",
- ]
+class PaymentIntentConfirmParamsPaymentDetailsEventDetailsDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsEventDetailsDeliveryRecipient"
]
"""
- The customer's bank.
+ Details of the recipient.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataPayByBank(TypedDict):
- pass
+class PaymentIntentConfirmParamsPaymentDetailsEventDetailsDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
-class PaymentIntentConfirmParamsPaymentMethodDataPayco(TypedDict):
- pass
+class PaymentIntentConfirmParamsPaymentDetailsFlight(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ agency_number: NotRequired[str]
+ """
+ The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
+ """
+ delivery: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ passenger_name: NotRequired[str]
+ """
+ The name of the person or entity on the reservation.
+ """
+ passengers: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsFlightPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation.
+ """
+ segments: List["PaymentIntentConfirmParamsPaymentDetailsFlightSegment"]
+ """
+ The individual flight segments associated with the trip.
+ """
+ ticket_number: NotRequired[str]
+ """
+ The ticket number associated with the travel reservation.
+ """
-class PaymentIntentConfirmParamsPaymentMethodDataPaynow(TypedDict):
- pass
+class PaymentIntentConfirmParamsPaymentDetailsFlightAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
-class PaymentIntentConfirmParamsPaymentMethodDataPaypal(TypedDict):
- pass
+class PaymentIntentConfirmParamsPaymentDetailsFlightDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
-class PaymentIntentConfirmParamsPaymentMethodDataPayto(TypedDict):
- account_number: NotRequired[str]
+class PaymentIntentConfirmParamsPaymentDetailsFlightDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
"""
- The account number for the bank account.
+ The email of the recipient the ticket is delivered to.
"""
- bsb_number: NotRequired[str]
+ name: NotRequired[str]
"""
- Bank-State-Branch number of the bank account.
+ The name of the recipient the ticket is delivered to.
"""
- pay_id: NotRequired[str]
+ phone: NotRequired[str]
"""
- The PayID alias for the bank account.
+ The phone number of the recipient the ticket is delivered to.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataPix(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataPromptpay(TypedDict):
- pass
+class PaymentIntentConfirmParamsPaymentDetailsFlightPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the flight reservation.
+ """
-class PaymentIntentConfirmParamsPaymentMethodDataRadarOptions(TypedDict):
- session: NotRequired[str]
+class PaymentIntentConfirmParamsPaymentDetailsFlightSegment(TypedDict):
+ amount: NotRequired[int]
"""
- A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
+ The flight segment amount.
+ """
+ arrival_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the arrival airport.
+ """
+ arrives_at: NotRequired[int]
+ """
+ The arrival time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
+ """
+ departs_at: int
+ """
+ The departure time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ departure_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the departure airport.
+ """
+ flight_number: NotRequired[str]
+ """
+ The flight number associated with the segment
+ """
+ service_class: NotRequired[
+ Literal["business", "economy", "first", "premium_economy"]
+ ]
+ """
+ The fare class for the segment.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataRevolutPay(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataSamsungPay(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataSatispay(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict):
- iban: str
+class PaymentIntentConfirmParamsPaymentDetailsFlightDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumAffiliate"
+ ]
"""
- IBAN of the bank account.
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Reservation reference.
+ """
+ computerized_reservation_system: NotRequired[str]
+ """
+ Computerized reservation system used to make the reservation and purchase the ticket.
+ """
+ endorsements_and_restrictions: NotRequired[str]
+ """
+ Ticket restrictions.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsFlightDatumInsurance"]
+ ]
+ """
+ List of insurances.
+ """
+ passengers: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsFlightDatumPassenger"]
+ ]
+ """
+ List of passengers.
+ """
+ segments: List[
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegment"
+ ]
+ """
+ List of flight segments.
+ """
+ ticket_electronically_issued_indicator: NotRequired[bool]
+ """
+ Electronic ticket indicator.
+ """
+ total: "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotal"
+ """
+ Total cost breakdown.
+ """
+ transaction_type: NotRequired[
+ Literal[
+ "exchange_ticket", "miscellaneous", "refund", "ticket_purchase"
+ ]
+ ]
+ """
+ Type of flight transaction.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataSofort(TypedDict):
- country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
+class PaymentIntentConfirmParamsPaymentDetailsFlightDatumAffiliate(TypedDict):
+ code: NotRequired[str]
"""
- Two-letter ISO code representing the country the bank account is located in.
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+ travel_authorization_code: NotRequired[str]
+ """
+ Code provided by the company to a travel agent authorizing ticket issuance.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataSwish(TypedDict):
- pass
+class PaymentIntentConfirmParamsPaymentDetailsFlightDatumInsurance(TypedDict):
+ amount: int
+ """
+ Insurance cost.
+ """
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Insurance company name.
+ """
+ insurance_type: Literal[
+ "baggage", "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance.
+ """
-class PaymentIntentConfirmParamsPaymentMethodDataTwint(TypedDict):
- pass
+class PaymentIntentConfirmParamsPaymentDetailsFlightDatumPassenger(TypedDict):
+ name: str
+ """
+ Passenger's full name.
+ """
-class PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+class PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegment(TypedDict):
+ amount: NotRequired[int]
"""
- Account holder type: individual or company.
+ Segment fare amount.
"""
- account_number: NotRequired[str]
+ arrival: (
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentArrival"
+ )
"""
- Account number of the bank account.
+ Arrival details.
"""
- account_type: NotRequired[Literal["checking", "savings"]]
+ carrier_code: str
"""
- Account type: checkings or savings. Defaults to checking if omitted.
+ Airline carrier code.
"""
- financial_connections_account: NotRequired[str]
+ carrier_name: NotRequired[str]
"""
- The ID of a Financial Connections Account to use as a payment method.
+ Carrier name.
"""
- routing_number: NotRequired[str]
+ currency: NotRequired[str]
"""
- Routing number of the bank account.
+ Segment currency.
+ """
+ departure: (
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentDeparture"
+ )
+ """
+ Departure details.
+ """
+ exchange_ticket_number: NotRequired[str]
+ """
+ Exchange ticket number.
+ """
+ fare_basis_code: NotRequired[str]
+ """
+ Fare basis code.
+ """
+ fees: NotRequired[int]
+ """
+ Additional fees.
+ """
+ flight_number: NotRequired[str]
+ """
+ Flight number.
+ """
+ is_stop_over_indicator: NotRequired[bool]
+ """
+ Stopover indicator.
+ """
+ refundable: NotRequired[bool]
+ """
+ Refundable ticket indicator.
+ """
+ service_class: Literal[
+ "business", "economy", "first_class", "premium_economy"
+ ]
+ """
+ Class of service.
+ """
+ tax_amount: NotRequired[int]
+ """
+ Tax amount for segment.
+ """
+ ticket_number: NotRequired[str]
+ """
+ Ticket number.
"""
-class PaymentIntentConfirmParamsPaymentMethodDataWechatPay(TypedDict):
- pass
+class PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentArrival(
+ TypedDict,
+):
+ airport: str
+ """
+ Arrival airport IATA code.
+ """
+ arrives_at: NotRequired[int]
+ """
+ Arrival date/time.
+ """
+ city: NotRequired[str]
+ """
+ Arrival city.
+ """
+ country: NotRequired[str]
+ """
+ Arrival country.
+ """
-class PaymentIntentConfirmParamsPaymentMethodDataZip(TypedDict):
- pass
+class PaymentIntentConfirmParamsPaymentDetailsFlightDatumSegmentDeparture(
+ TypedDict,
+):
+ airport: str
+ """
+ Departure airport IATA code.
+ """
+ city: NotRequired[str]
+ """
+ Departure city.
+ """
+ country: NotRequired[str]
+ """
+ Departure country.
+ """
+ departs_at: int
+ """
+ Departure date/time.
+ """
-class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict):
- acss_debit: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebit"
- ]
+class PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotal(TypedDict):
+ amount: int
"""
- If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
+ Total flight amount.
"""
- affirm: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAffirm"
+ credit_reason: NotRequired[
+ Literal[
+ "other",
+ "partial_ticket_refund",
+ "passenger_transport_ancillary_cancellation",
+ "ticket_and_ancillary_cancellation",
+ "ticket_cancellation",
+ ]
]
"""
- If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
+ Reason for credit.
"""
- afterpay_clearpay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAfterpayClearpay"
- ]
+ currency: NotRequired[str]
"""
- If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
+ Total currency.
"""
- alipay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAlipay"
+ discounts: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalDiscounts"
]
"""
- If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
+ Discount details.
"""
- alma: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAlma"
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalExtraCharge"
+ ]
]
"""
- If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
+ Additional charges.
"""
- amazon_pay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAmazonPay"
+ tax: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTax"
]
"""
- If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
+ Tax breakdown.
"""
- au_becs_debit: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit"
- ]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
"""
- If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
+ Corporate client discount code.
"""
- bacs_debit: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit"
- ]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
"""
- If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
+ Amount of additional charges.
"""
- bancontact: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBancontact"
+ type: NotRequired[
+ Literal["additional_fees", "ancillary_service_charges", "exchange_fee"]
]
"""
- If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
+ Type of additional charges.
"""
- billie: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBillie"
+
+
+class PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTax(TypedDict):
+ taxes: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTaxTax"]
]
"""
- If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
+ Array of tax details.
"""
- blik: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBlik"
- ]
+
+
+class PaymentIntentConfirmParamsPaymentDetailsFlightDatumTotalTaxTax(
+ TypedDict
+):
+ amount: NotRequired[int]
"""
- If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
+ Tax amount.
"""
- boleto: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBoleto"
- ]
+ rate: NotRequired[int]
"""
- If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
+ Tax rate.
"""
- card: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCard"
- ]
+ type: NotRequired[str]
"""
- Configuration for any card payments attempted on this PaymentIntent.
+ Type of tax.
"""
- card_present: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent"
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodging(TypedDict):
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingAddress"
]
"""
- If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ The lodging location's address.
"""
- cashapp: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCashapp"
- ]
+ adults: NotRequired[int]
"""
- If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
+ The number of adults on the booking
"""
- crypto: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCrypto"
+ affiliate: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingAffiliate"
]
"""
- If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
+ Affiliate details for this purchase.
"""
- customer_balance: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalance"
- ]
+ booking_number: NotRequired[str]
"""
- If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
+ The booking number associated with the lodging reservation.
"""
- eps: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsEps"
- ]
+ category: NotRequired[Literal["hotel", "vacation_rental"]]
"""
- If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
+ The lodging category
"""
- fpx: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsFpx"
- ]
+ checkin_at: int
"""
- If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
+ Lodging check-in time. Measured in seconds since the Unix epoch.
"""
- giropay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGiropay"
+ checkout_at: int
+ """
+ Lodging check-out time. Measured in seconds since the Unix epoch.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the lodging company.
+ """
+ daily_room_rate_amount: NotRequired[int]
+ """
+ The daily lodging room rate.
+ """
+ delivery: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDelivery"
]
"""
- If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
+ Delivery details for this purchase.
"""
- grabpay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay"
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "gift_shop",
+ "laundry",
+ "mini_bar",
+ "other",
+ "restaurant",
+ "telephone",
+ ]
+ ]
]
"""
- If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
+ List of additional charges being billed.
"""
- ideal: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsIdeal"
+ fire_safety_act_compliance: NotRequired[bool]
+ """
+ Indicates whether the lodging location is compliant with the Fire Safety Act.
+ """
+ name: NotRequired[str]
+ """
+ The name of the lodging location.
+ """
+ no_show: NotRequired[bool]
+ """
+ Indicates if the customer did not keep their booking while failing to cancel the reservation.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ The number of rooms on the booking
+ """
+ passengers: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsLodgingPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation
+ """
+ property_phone_number: NotRequired[str]
+ """
+ The phone number of the lodging location.
+ """
+ room_class: NotRequired[str]
+ """
+ The room class for this purchase.
+ """
+ room_nights: NotRequired[int]
+ """
+ The number of room nights
+ """
+ total_room_tax_amount: NotRequired[int]
+ """
+ The total tax amount associating with the room reservation.
+ """
+ total_tax_amount: NotRequired[int]
+ """
+ The total tax amount
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the lodging reservation.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost"
+ ]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAccommodation(
+ TypedDict,
+):
+ accommodation_type: NotRequired[
+ Literal[
+ "apartment",
+ "cabana",
+ "house",
+ "penthouse",
+ "room",
+ "standard",
+ "suite",
+ "villa",
+ ]
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ Literal["hostel", "hotel", "owner", "rental_agency"]
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumHostAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ Literal[
+ "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant"
+ ]
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTax"]
+ ]
+ """
+ Tax details.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsLodgingDatumTotalTaxTax(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsSubscription(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ auto_renewal: NotRequired[bool]
+ """
+ Info whether the subscription will be auto renewed upon expiry.
+ """
+ billing_interval: NotRequired[
+ "PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval"
+ ]
+ """
+ Subscription billing details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Subscription end time. Measured in seconds since the Unix epoch.
+ """
+ name: str
+ """
+ Name of the product on subscription. e.g. Apple Music Subscription
+ """
+ starts_at: NotRequired[int]
+ """
+ Subscription start time. Measured in seconds since the Unix epoch.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsSubscriptionAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval(
+ TypedDict,
+):
+ count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodData(TypedDict):
+ acss_debit: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataAcssDebit"
+ ]
+ """
+ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
+ """
+ affirm: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAffirm"]
+ """
+ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
+ """
+ afterpay_clearpay: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataAfterpayClearpay"
+ ]
+ """
+ If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
+ """
+ alipay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAlipay"]
+ """
+ If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
+ """
+ allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
+ """
+ This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
+ """
+ alma: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAlma"]
+ """
+ If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
+ """
+ amazon_pay: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataAmazonPay"
+ ]
+ """
+ If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
+ """
+ au_becs_debit: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit"
+ ]
+ """
+ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
+ """
+ bacs_debit: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataBacsDebit"
+ ]
+ """
+ If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
+ """
+ bancontact: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataBancontact"
+ ]
+ """
+ If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
+ """
+ billie: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBillie"]
+ """
+ If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
+ """
+ billing_details: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataBillingDetails"
+ ]
+ """
+ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
+ """
+ blik: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBlik"]
+ """
+ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
+ """
+ boleto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataBoleto"]
+ """
+ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
+ """
+ cashapp: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataCashapp"]
+ """
+ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
+ """
+ crypto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataCrypto"]
+ """
+ If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
+ """
+ customer_balance: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance"
+ ]
+ """
+ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
+ """
+ eps: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataEps"]
+ """
+ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
+ """
+ fpx: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataFpx"]
+ """
+ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
+ """
+ giropay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataGiropay"]
+ """
+ If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
+ """
+ gopay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataGopay"]
+ """
+ If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
+ """
+ grabpay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataGrabpay"]
+ """
+ If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
+ """
+ id_bank_transfer: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataIdBankTransfer"
+ ]
+ """
+ If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
+ """
+ ideal: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataIdeal"]
+ """
+ If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
+ """
+ interac_present: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataInteracPresent"
+ ]
+ """
+ If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
+ """
+ kakao_pay: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataKakaoPay"
+ ]
+ """
+ If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
+ """
+ klarna: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKlarna"]
+ """
+ If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
+ """
+ konbini: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKonbini"]
+ """
+ If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
+ """
+ kr_card: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKrCard"]
+ """
+ If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
+ """
+ link: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataLink"]
+ """
+ If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
+ """
+ mb_way: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataMbWay"]
+ """
+ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ mobilepay: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataMobilepay"
+ ]
+ """
+ If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
+ """
+ multibanco: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataMultibanco"
+ ]
+ """
+ If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
+ """
+ naver_pay: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataNaverPay"
+ ]
+ """
+ If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
+ """
+ nz_bank_account: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataNzBankAccount"
+ ]
+ """
+ If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
+ """
+ oxxo: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataOxxo"]
+ """
+ If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
+ """
+ p24: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataP24"]
+ """
+ If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
+ """
+ pay_by_bank: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataPayByBank"
+ ]
+ """
+ If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
+ """
+ payco: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPayco"]
+ """
+ If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
+ """
+ paynow: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPaynow"]
+ """
+ If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
+ """
+ paypal: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPaypal"]
+ """
+ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
+ """
+ paypay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPaypay"]
+ """
+ If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
+ """
+ payto: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPayto"]
+ """
+ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
+ """
+ pix: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataPix"]
+ """
+ If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
+ """
+ promptpay: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataPromptpay"
+ ]
+ """
+ If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
+ """
+ qris: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataQris"]
+ """
+ If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
+ """
+ radar_options: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataRadarOptions"
+ ]
+ """
+ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
+ """
+ rechnung: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataRechnung"
+ ]
+ """
+ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
+ """
+ revolut_pay: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataRevolutPay"
+ ]
+ """
+ If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
+ """
+ samsung_pay: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataSamsungPay"
+ ]
+ """
+ If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
+ """
+ satispay: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataSatispay"
+ ]
+ """
+ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
+ """
+ sepa_debit: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataSepaDebit"
+ ]
+ """
+ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
+ """
+ shopeepay: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataShopeepay"
+ ]
+ """
+ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
+ """
+ sofort: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSofort"]
+ """
+ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
+ """
+ stripe_balance: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataStripeBalance"
+ ]
+ """
+ This hash contains details about the Stripe balance payment method.
+ """
+ swish: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSwish"]
+ """
+ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
+ """
+ twint: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataTwint"]
+ """
+ If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
+ """
+ type: Literal[
+ "acss_debit",
+ "affirm",
+ "afterpay_clearpay",
+ "alipay",
+ "alma",
+ "amazon_pay",
+ "au_becs_debit",
+ "bacs_debit",
+ "bancontact",
+ "billie",
+ "blik",
+ "boleto",
+ "cashapp",
+ "crypto",
+ "customer_balance",
+ "eps",
+ "fpx",
+ "giropay",
+ "gopay",
+ "grabpay",
+ "id_bank_transfer",
+ "ideal",
+ "kakao_pay",
+ "klarna",
+ "konbini",
+ "kr_card",
+ "link",
+ "mb_way",
+ "mobilepay",
+ "multibanco",
+ "naver_pay",
+ "nz_bank_account",
+ "oxxo",
+ "p24",
+ "pay_by_bank",
+ "payco",
+ "paynow",
+ "paypal",
+ "paypay",
+ "payto",
+ "pix",
+ "promptpay",
+ "qris",
+ "rechnung",
+ "revolut_pay",
+ "samsung_pay",
+ "satispay",
+ "sepa_debit",
+ "shopeepay",
+ "sofort",
+ "stripe_balance",
+ "swish",
+ "twint",
+ "us_bank_account",
+ "wechat_pay",
+ "zip",
+ ]
+ """
+ The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
+ """
+ us_bank_account: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount"
+ ]
+ """
+ If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
+ """
+ wechat_pay: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodDataWechatPay"
+ ]
+ """
+ If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
+ """
+ zip: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataZip"]
+ """
+ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataAcssDebit(TypedDict):
+ account_number: str
+ """
+ Customer's bank account number.
+ """
+ institution_number: str
+ """
+ Institution number of the customer's bank.
+ """
+ transit_number: str
+ """
+ Transit number of the customer's bank.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataAffirm(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataAfterpayClearpay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataAlipay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataAlma(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataAmazonPay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit(TypedDict):
+ account_number: str
+ """
+ The account number for the bank account.
+ """
+ bsb_number: str
+ """
+ Bank-State-Branch number of the bank account.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataBacsDebit(TypedDict):
+ account_number: NotRequired[str]
+ """
+ Account number of the bank account that the funds will be debited from.
+ """
+ sort_code: NotRequired[str]
+ """
+ Sort code of the bank account. (e.g., `10-20-30`)
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataBancontact(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataBillie(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataBillingDetails(TypedDict):
+ address: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress"
+ ]
+ """
+ Billing address.
+ """
+ email: NotRequired["Literal['']|str"]
+ """
+ Email address.
+ """
+ name: NotRequired["Literal['']|str"]
+ """
+ Full name.
+ """
+ phone: NotRequired["Literal['']|str"]
+ """
+ Billing phone number (including extension).
+ """
+ tax_id: NotRequired[str]
+ """
+ Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataBillingDetailsAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataBlik(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataBoleto(TypedDict):
+ tax_id: str
+ """
+ The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataCashapp(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataCrypto(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataEps(TypedDict):
+ bank: NotRequired[
+ Literal[
+ "arzte_und_apotheker_bank",
+ "austrian_anadi_bank_ag",
+ "bank_austria",
+ "bankhaus_carl_spangler",
+ "bankhaus_schelhammer_und_schattera_ag",
+ "bawag_psk_ag",
+ "bks_bank_ag",
+ "brull_kallmus_bank_ag",
+ "btv_vier_lander_bank",
+ "capital_bank_grawe_gruppe_ag",
+ "deutsche_bank_ag",
+ "dolomitenbank",
+ "easybank_ag",
+ "erste_bank_und_sparkassen",
+ "hypo_alpeadriabank_international_ag",
+ "hypo_bank_burgenland_aktiengesellschaft",
+ "hypo_noe_lb_fur_niederosterreich_u_wien",
+ "hypo_oberosterreich_salzburg_steiermark",
+ "hypo_tirol_bank_ag",
+ "hypo_vorarlberg_bank_ag",
+ "marchfelder_bank",
+ "oberbank_ag",
+ "raiffeisen_bankengruppe_osterreich",
+ "schoellerbank_ag",
+ "sparda_bank_wien",
+ "volksbank_gruppe",
+ "volkskreditbank_ag",
+ "vr_bank_braunau",
+ ]
+ ]
+ """
+ The customer's bank.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataFpx(TypedDict):
+ account_holder_type: NotRequired[Literal["company", "individual"]]
+ """
+ Account holder type for FPX transaction
+ """
+ bank: Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bsn",
+ "cimb",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ]
+ """
+ The customer's bank.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataGiropay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataGopay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataGrabpay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataIdBankTransfer(TypedDict):
+ bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ """
+ Bank where the account is held.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataIdeal(TypedDict):
+ bank: NotRequired[
+ Literal[
+ "abn_amro",
+ "asn_bank",
+ "bunq",
+ "buut",
+ "finom",
+ "handelsbanken",
+ "ing",
+ "knab",
+ "mollie",
+ "moneyou",
+ "n26",
+ "nn",
+ "rabobank",
+ "regiobank",
+ "revolut",
+ "sns_bank",
+ "triodos_bank",
+ "van_lanschot",
+ "yoursafe",
+ ]
+ ]
+ """
+ The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataInteracPresent(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataKakaoPay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataKlarna(TypedDict):
+ dob: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataKlarnaDob"]
+ """
+ Customer's date of birth
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataKlarnaDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataKonbini(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataKrCard(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataLink(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataMbWay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataMobilepay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataMultibanco(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataNaverPay(TypedDict):
+ funding: NotRequired[Literal["card", "points"]]
+ """
+ Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataNzBankAccount(TypedDict):
+ account_holder_name: NotRequired[str]
+ """
+ The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
+ """
+ account_number: str
+ """
+ The account number for the bank account.
+ """
+ bank_code: str
+ """
+ The numeric code for the bank account's bank.
+ """
+ branch_code: str
+ """
+ The numeric code for the bank account's bank branch.
+ """
+ reference: NotRequired[str]
+ suffix: str
+ """
+ The suffix of the bank account number.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataOxxo(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataP24(TypedDict):
+ bank: NotRequired[
+ Literal[
+ "alior_bank",
+ "bank_millennium",
+ "bank_nowy_bfg_sa",
+ "bank_pekao_sa",
+ "banki_spbdzielcze",
+ "blik",
+ "bnp_paribas",
+ "boz",
+ "citi_handlowy",
+ "credit_agricole",
+ "envelobank",
+ "etransfer_pocztowy24",
+ "getin_bank",
+ "ideabank",
+ "ing",
+ "inteligo",
+ "mbank_mtransfer",
+ "nest_przelew",
+ "noble_pay",
+ "pbac_z_ipko",
+ "plus_bank",
+ "santander_przelew24",
+ "tmobile_usbugi_bankowe",
+ "toyota_bank",
+ "velobank",
+ "volkswagen_bank",
+ ]
+ ]
+ """
+ The customer's bank.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataPayByBank(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataPayco(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataPaynow(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataPaypal(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataPaypay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataPayto(TypedDict):
+ account_number: NotRequired[str]
+ """
+ The account number for the bank account.
+ """
+ bsb_number: NotRequired[str]
+ """
+ Bank-State-Branch number of the bank account.
+ """
+ pay_id: NotRequired[str]
+ """
+ The PayID alias for the bank account.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataPix(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataPromptpay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataQris(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataRadarOptions(TypedDict):
+ session: NotRequired[str]
+ """
+ A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataRechnung(TypedDict):
+ dob: "PaymentIntentConfirmParamsPaymentMethodDataRechnungDob"
+ """
+ Customer's date of birth
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataRechnungDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataRevolutPay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataSamsungPay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataSatispay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict):
+ iban: str
+ """
+ IBAN of the bank account.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataShopeepay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataSofort(TypedDict):
+ country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
+ """
+ Two-letter ISO code representing the country the bank account is located in.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataStripeBalance(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataSwish(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataTwint(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataUsBankAccount(TypedDict):
+ account_holder_type: NotRequired[Literal["company", "individual"]]
+ """
+ Account holder type: individual or company.
+ """
+ account_number: NotRequired[str]
+ """
+ Account number of the bank account.
+ """
+ account_type: NotRequired[Literal["checking", "savings"]]
+ """
+ Account type: checkings or savings. Defaults to checking if omitted.
+ """
+ financial_connections_account: NotRequired[str]
+ """
+ The ID of a Financial Connections Account to use as a payment method.
+ """
+ routing_number: NotRequired[str]
+ """
+ Routing number of the bank account.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataWechatPay(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodDataZip(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict):
+ acss_debit: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebit"
+ ]
+ """
+ If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
+ """
+ affirm: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAffirm"
+ ]
+ """
+ If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
+ """
+ afterpay_clearpay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAfterpayClearpay"
+ ]
+ """
+ If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
+ """
+ alipay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAlipay"
+ ]
+ """
+ If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
+ """
+ alma: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAlma"
+ ]
+ """
+ If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
+ """
+ amazon_pay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAmazonPay"
+ ]
+ """
+ If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
+ """
+ au_becs_debit: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit"
+ ]
+ """
+ If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
+ """
+ bacs_debit: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit"
+ ]
+ """
+ If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
+ """
+ bancontact: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBancontact"
+ ]
+ """
+ If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
+ """
+ billie: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBillie"
+ ]
+ """
+ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
+ """
+ blik: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBlik"
+ ]
+ """
+ If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
+ """
+ boleto: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsBoleto"
+ ]
+ """
+ If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
+ """
+ card: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCard"
+ ]
+ """
+ Configuration for any card payments attempted on this PaymentIntent.
+ """
+ card_present: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent"
+ ]
+ """
+ If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ """
+ cashapp: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCashapp"
+ ]
+ """
+ If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
+ """
+ crypto: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCrypto"
+ ]
+ """
+ If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
+ """
+ customer_balance: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalance"
+ ]
+ """
+ If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
+ """
+ eps: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsEps"
+ ]
+ """
+ If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
+ """
+ fpx: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsFpx"
+ ]
+ """
+ If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
+ """
+ giropay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGiropay"
+ ]
+ """
+ If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
+ """
+ gopay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGopay"
+ ]
+ """
+ If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
+ """
+ grabpay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay"
+ ]
+ """
+ If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
+ """
+ id_bank_transfer: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsIdBankTransfer"
+ ]
+ """
+ If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
+ """
+ ideal: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsIdeal"
+ ]
+ """
+ If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
+ """
+ interac_present: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent"
+ ]
+ """
+ If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ """
+ kakao_pay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay"
+ ]
+ """
+ If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
+ """
+ klarna: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKlarna"
+ ]
+ """
+ If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
+ """
+ konbini: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKonbini"
+ ]
+ """
+ If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
+ """
+ kr_card: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKrCard"
+ ]
+ """
+ If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
+ """
+ link: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsLink"
+ ]
+ """
+ If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
+ """
+ mb_way: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMbWay"
+ ]
+ """
+ If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
+ """
+ mobilepay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMobilepay"
+ ]
+ """
+ If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
+ """
+ multibanco: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMultibanco"
+ ]
+ """
+ If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
+ """
+ naver_pay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsNaverPay"
+ ]
+ """
+ If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
+ """
+ nz_bank_account: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsNzBankAccount"
+ ]
+ """
+ If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
+ """
+ oxxo: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsOxxo"
+ ]
+ """
+ If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
+ """
+ p24: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsP24"
+ ]
+ """
+ If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
+ """
+ pay_by_bank: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayByBank"
+ ]
+ """
+ If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
+ """
+ payco: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayco"
+ ]
+ """
+ If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
+ """
+ paynow: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPaynow"
+ ]
+ """
+ If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
+ """
+ paypal: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPaypal"
+ ]
+ """
+ If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
+ """
+ paypay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPaypay"
+ ]
+ """
+ If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
+ """
+ payto: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayto"
+ ]
+ """
+ If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
+ """
+ pix: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPix"
+ ]
+ """
+ If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
+ """
+ promptpay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPromptpay"
+ ]
+ """
+ If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
+ """
+ qris: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsQris"
+ ]
+ """
+ If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
+ """
+ rechnung: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsRechnung"
+ ]
+ """
+ If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
+ """
+ revolut_pay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay"
+ ]
+ """
+ If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
+ """
+ samsung_pay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay"
+ ]
+ """
+ If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
+ """
+ satispay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSatispay"
+ ]
+ """
+ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
+ """
+ sepa_debit: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit"
+ ]
+ """
+ If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
+ """
+ shopeepay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay"
+ ]
+ """
+ If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
+ """
+ sofort: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSofort"
+ ]
+ """
+ If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
+ """
+ stripe_balance: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsStripeBalance"
+ ]
+ """
+ If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
+ """
+ swish: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSwish"
+ ]
+ """
+ If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
+ """
+ twint: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsTwint"
+ ]
+ """
+ If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
+ """
+ us_bank_account: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount"
+ ]
+ """
+ If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
+ """
+ wechat_pay: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsWechatPay"
+ ]
+ """
+ If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
+ """
+ zip: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsZip"
+ ]
+ """
+ If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebit(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+ verification_method: NotRequired[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Bank account verification method.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions(
+ TypedDict,
+):
+ custom_mandate_url: NotRequired["Literal['']|str"]
+ """
+ A URL for custom mandate text to render during confirmation step.
+ The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
+ or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
+ """
+ interval_description: NotRequired[str]
+ """
+ Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
+ """
+ payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
+ """
+ Payment schedule for the mandate.
+ """
+ transaction_type: NotRequired[Literal["business", "personal"]]
+ """
+ Transaction type of the mandate.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsAffirm(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ preferred_locale: NotRequired[str]
+ """
+ Preferred language of the Affirm authorization page that the customer is redirected to.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsAfterpayClearpay(
+ TypedDict
+):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ reference: NotRequired[str]
+ """
+ An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
+ This field differs from the statement descriptor and item name.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsAlipay(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsAlma(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsAmazonPay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions(
+ TypedDict,
+):
+ reference_prefix: NotRequired["Literal['']|str"]
+ """
+ Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsBancontact(TypedDict):
+ preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsBillie(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsBlik(TypedDict):
+ code: NotRequired[str]
+ """
+ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
+ """
+ setup_future_usage: NotRequired["Literal['']|Literal['none']"]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsBoleto(TypedDict):
+ expires_after_days: NotRequired[int]
+ """
+ The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCard(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ cvc_token: NotRequired[str]
+ """
+ A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
+ """
+ installments: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments"
+ ]
+ """
+ Installment configuration for payments attempted on this PaymentIntent.
+
+ For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
+ """
+ mandate_options: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate for cards issued in India.
+ """
+ moto: NotRequired[bool]
+ """
+ When specified, this parameter indicates that a transaction will be marked
+ as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
+ parameter can only be provided during confirmation.
+ """
+ network: NotRequired[
+ Literal[
+ "amex",
+ "cartes_bancaires",
+ "diners",
+ "discover",
+ "eftpos_au",
+ "girocard",
+ "interac",
+ "jcb",
+ "link",
+ "mastercard",
+ "unionpay",
+ "unknown",
+ "visa",
+ ]
+ ]
+ """
+ Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
+ """
+ request_decremental_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
+ """
+ request_extended_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
+ """
+ request_incremental_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
+ """
+ request_multicapture: NotRequired[Literal["if_available", "never"]]
+ """
+ Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
+ """
+ request_overcapture: NotRequired[Literal["if_available", "never"]]
+ """
+ Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
+ """
+ request_partial_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request partial authorization on this PaymentIntent.
+ """
+ request_three_d_secure: NotRequired[
+ Literal["any", "automatic", "challenge"]
+ ]
+ """
+ We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ """
+ require_cvc_recollection: NotRequired[bool]
+ """
+ When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ statement_descriptor_suffix_kana: NotRequired["Literal['']|str"]
+ """
+ Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
+ """
+ statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"]
+ """
+ Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
+ """
+ statement_details: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetails"
+ ]
+ """
+ Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
+ """
+ three_d_secure: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure"
+ ]
+ """
+ If 3D Secure authentication was performed with a third-party provider,
+ the authentication details to use for this payment.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments(
+ TypedDict
+):
+ enabled: NotRequired[bool]
+ """
+ Setting to true enables installments for this PaymentIntent.
+ This will cause the response to contain a list of available installment plans.
+ Setting to false will prevent any selected plan from applying to a charge.
+ """
+ plan: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallmentsPlan"
+ ]
+ """
+ The selected installment plan to use for this payment attempt.
+ This parameter can only be provided during confirmation.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallmentsPlan(
+ TypedDict,
+):
+ count: NotRequired[int]
+ """
+ For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
+ """
+ interval: NotRequired[Literal["month"]]
+ """
+ For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
+ One of `month`.
+ """
+ type: Literal["bonus", "fixed_count", "revolving"]
+ """
+ Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Literal["fixed", "maximum"]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ interval: Literal["day", "month", "sporadic", "week", "year"]
+ """
+ Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
+ """
+ interval_count: NotRequired[int]
+ """
+ The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
+ """
+ reference: str
+ """
+ Unique identifier for the mandate or subscription.
+ """
+ start_date: int
+ """
+ Start date of the mandate or subscription. Start date should not be lesser than yesterday.
+ """
+ supported_types: NotRequired[List[Literal["india"]]]
+ """
+ Specifies the type of mandates supported. Possible values are `india`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetails(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetailsAddress"
+ ]
+ """
+ Please pass in an address that is within your Stripe user account country
+ """
+ phone: NotRequired[str]
+ """
+ Phone number (e.g., a toll-free number that customers can call)
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCardStatementDetailsAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure(
+ TypedDict
+):
+ ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]]
+ """
+ The `transStatus` returned from the card Issuer's ACS in the ARes.
+ """
+ cryptogram: str
+ """
+ The cryptogram, also known as the "authentication value" (AAV, CAVV or
+ AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
+ (Most 3D Secure providers will return the base64-encoded version, which
+ is what you should specify here.)
+ """
+ electronic_commerce_indicator: NotRequired[
+ Literal["01", "02", "05", "06", "07"]
+ ]
+ """
+ The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
+ provider and indicates what degree of authentication was performed.
+ """
+ exemption_indicator: NotRequired[Literal["low_risk", "none"]]
+ """
+ The exemption requested via 3DS and accepted by the issuer at authentication time.
+ """
+ network_options: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions"
+ ]
+ """
+ Network specific 3DS fields. Network specific arguments require an
+ explicit card brand choice. The parameter `payment_method_options.card.network``
+ must be populated accordingly
+ """
+ requestor_challenge_indicator: NotRequired[str]
+ """
+ The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
+ AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
+ """
+ transaction_id: str
+ """
+ For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
+ Transaction ID (dsTransID).
+ """
+ version: Literal["1.0.2", "2.1.0", "2.2.0"]
+ """
+ The version of 3D Secure that was performed.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions(
+ TypedDict,
+):
+ cartes_bancaires: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires"
+ ]
+ """
+ Cartes Bancaires-specific 3DS fields.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires(
+ TypedDict,
+):
+ cb_avalgo: Literal["0", "1", "2", "3", "4", "A"]
+ """
+ The cryptogram calculation algorithm used by the card Issuer's ACS
+ to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
+ messageExtension: CB-AVALGO
+ """
+ cb_exemption: NotRequired[str]
+ """
+ The exemption indicator returned from Cartes Bancaires in the ARes.
+ message extension: CB-EXEMPTION; string (4 characters)
+ This is a 3 byte bitmap (low significant byte first and most significant
+ bit first) that has been Base64 encoded
+ """
+ cb_score: NotRequired[int]
+ """
+ The risk score returned from Cartes Bancaires in the ARes.
+ message extension: CB-SCORE; numeric value 0-99
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent(TypedDict):
+ capture_method: NotRequired[Literal["manual", "manual_preferred"]]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ request_extended_authorization: NotRequired[bool]
+ """
+ Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
+ """
+ request_incremental_authorization_support: NotRequired[bool]
+ """
+ Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
+ """
+ routing: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting"
+ ]
+ """
+ Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting(
+ TypedDict,
+):
+ requested_priority: NotRequired[Literal["domestic", "international"]]
+ """
+ Routing requested priority
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCashapp(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCrypto(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalance(TypedDict):
+ bank_transfer: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
+ ]
+ """
+ Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ """
+ funding_type: NotRequired[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransfer(
+ TypedDict,
+):
+ eu_bank_transfer: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
+ ]
+ """
+ Configuration for the eu_bank_transfer funding type.
+ """
+ requested_address_types: NotRequired[
+ List[
+ Literal[
+ "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
+ ]
+ ]
+ ]
+ """
+ List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
+
+ Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
+ """
+ type: Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ """
+ The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+ TypedDict,
+):
+ country: str
+ """
+ The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsEps(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsFpx(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsGiropay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsGopay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none", "off_session"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsIdBankTransfer(TypedDict):
+ expires_after: NotRequired[int]
+ """
+ The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
+ """
+ expires_at: NotRequired[int]
+ """
+ The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsIdeal(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent(TypedDict):
+ pass
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
]
"""
- If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
- interac_present: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent"
- ]
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarna(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
"""
- If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
"""
- kakao_pay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay"
+ on_demand: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand"
]
"""
- If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
+ On-demand details if setting up or charging an on-demand payment.
"""
- klarna: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKlarna"
+ preferred_locale: NotRequired[
+ Literal[
+ "cs-CZ",
+ "da-DK",
+ "de-AT",
+ "de-CH",
+ "de-DE",
+ "el-GR",
+ "en-AT",
+ "en-AU",
+ "en-BE",
+ "en-CA",
+ "en-CH",
+ "en-CZ",
+ "en-DE",
+ "en-DK",
+ "en-ES",
+ "en-FI",
+ "en-FR",
+ "en-GB",
+ "en-GR",
+ "en-IE",
+ "en-IT",
+ "en-NL",
+ "en-NO",
+ "en-NZ",
+ "en-PL",
+ "en-PT",
+ "en-RO",
+ "en-SE",
+ "en-US",
+ "es-ES",
+ "es-US",
+ "fi-FI",
+ "fr-BE",
+ "fr-CA",
+ "fr-CH",
+ "fr-FR",
+ "it-CH",
+ "it-IT",
+ "nb-NO",
+ "nl-BE",
+ "nl-NL",
+ "pl-PL",
+ "pt-PT",
+ "ro-RO",
+ "sv-FI",
+ "sv-SE",
+ ]
]
"""
- If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
+ Preferred language of the Klarna authorization page that the customer is redirected to
"""
- konbini: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKonbini"
+ setup_future_usage: NotRequired[
+ Literal["none", "off_session", "on_session"]
]
"""
- If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
- kr_card: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKrCard"
+ subscriptions: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription]"
]
"""
- If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
+ Subscription details if setting up or charging a subscription.
"""
- link: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsLink"
+ supplementary_purchase_data: NotRequired[
+ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData"
]
"""
- If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
+ Supplementary Purchase Data for the corresponding Klarna payment
"""
- mb_way: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMbWay"
- ]
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict):
+ average_amount: NotRequired[int]
"""
- If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
+ Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
"""
- mobilepay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMobilepay"
- ]
+ maximum_amount: NotRequired[int]
"""
- If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
+ The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
"""
- multibanco: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsMultibanco"
- ]
+ minimum_amount: NotRequired[int]
"""
- If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
+ The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
"""
- naver_pay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsNaverPay"
- ]
+ purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
"""
- If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
+ Interval at which the customer is making purchases
"""
- nz_bank_account: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsNzBankAccount"
- ]
+ purchase_interval_count: NotRequired[int]
"""
- If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
+ The number of `purchase_interval` between charges
"""
- oxxo: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsOxxo"
- ]
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
"""
- If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
+ Unit of time between subscription charges.
"""
- p24: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsP24"
- ]
+ interval_count: NotRequired[int]
"""
- If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
+ The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
"""
- pay_by_bank: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayByBank"
- ]
+ name: NotRequired[str]
"""
- If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
+ Name for subscription.
"""
- payco: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayco"
+ next_billing: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
]
"""
- If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
+ Describes the upcoming charge for this subscription.
"""
- paynow: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPaynow"
- ]
+ reference: str
"""
- If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
+ A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
"""
- paypal: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPaypal"
- ]
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
+ TypedDict,
+):
+ amount: int
"""
- If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
+ The amount of the next charge for the subscription.
"""
- payto: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPayto"
- ]
+ date: str
"""
- If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
+ The date of the next charge for the subscription in YYYY-MM-DD format.
"""
- pix: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPix"
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData(
+ TypedDict,
+):
+ bus_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]"
]
"""
- If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
+ Supplementary bus reservation details.
"""
- promptpay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsPromptpay"
+ event_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]"
]
"""
- If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
+ Supplementary event reservation details.
"""
- revolut_pay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay"
+ ferry_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]"
]
"""
- If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
+ Supplementary ferry reservation details.
"""
- samsung_pay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSamsungPay"
+ insurances: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]"
]
"""
- If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
+ Supplementary insurance details.
"""
- satispay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSatispay"
+ marketplace_sellers: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]"
]
"""
- If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
+ Supplementary marketplace seller details.
"""
- sepa_debit: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit"
+ round_trip_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]"
]
"""
- If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
+ Supplementary round trip reservation details.
"""
- sofort: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSofort"
+ train_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]"
]
"""
- If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
+ Supplementary train reservation details.
"""
- swish: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSwish"
+ vouchers: NotRequired[
+ "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]"
]
"""
- If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
+ Voucher details, such as a gift card or discount code.
"""
- twint: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsTwint"
- ]
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
"""
- If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
+ Name of associated or partner company for the service.
"""
- us_bank_account: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccount"
+ arrival: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival"
]
"""
- If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
+ Arrival details.
"""
- wechat_pay: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsWechatPay"
- ]
+ carrier_name: NotRequired[str]
"""
- If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
+ Name of transportation company.
"""
- zip: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsZip"
- ]
+ currency: NotRequired[str]
"""
- If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
+ Currency.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebit(TypedDict):
- mandate_options: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions"
+ departure: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture"
]
"""
- Additional fields for Mandate creation
+ Departure details.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
+ insurances: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance"
+ ]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ List of insurances for this reservation.
+ """
+ passengers: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger"
+ ]
+ ]
"""
- target_date: NotRequired[str]
+ List of passengers that this reservation applies to.
"""
- Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ price: NotRequired[int]
"""
- verification_method: NotRequired[
- Literal["automatic", "instant", "microdeposits"]
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
]
"""
- Bank account verification method.
+ Ticket class.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions(
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival(
TypedDict,
):
- custom_mandate_url: NotRequired["Literal['']|str"]
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress"
+ ]
"""
- A URL for custom mandate text to render during confirmation step.
- The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
- or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
+ Address of the arrival location.
"""
- interval_description: NotRequired[str]
+ arrival_location: NotRequired[str]
"""
- Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
+ Identifier name or reference for the arrival location.
"""
- payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- Payment schedule for the mandate.
+ The city or town.
"""
- transaction_type: NotRequired[Literal["business", "personal"]]
+ country: NotRequired[str]
"""
- Transaction type of the mandate.
+ The country in ISO 3166-1 alpha-2 format.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsAffirm(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ postal_code: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ The postal code formatted according to country.
"""
- preferred_locale: NotRequired[str]
+ region: NotRequired[str]
"""
- Preferred language of the Affirm authorization page that the customer is redirected to.
+ The state, county, province, or region formatted according to country.
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ street_address: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsAfterpayClearpay(
- TypedDict
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture(
+ TypedDict,
):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress"
+ ]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Address of the departure location.
"""
- reference: NotRequired[str]
+ departs_at: NotRequired[int]
"""
- An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
- This field differs from the statement descriptor and item name.
+ Timestamp of departure.
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ departure_location: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsAlipay(TypedDict):
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
- ]
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The city or town.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsAlma(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ country: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ The country in ISO 3166-1 alpha-2 format.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsAmazonPay(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ postal_code: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ The postal code formatted according to country.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
- ]
+ region: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ The state, county, province, or region formatted according to country.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit(TypedDict):
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ street_address: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Line 1 of the street address.
"""
- target_date: NotRequired[str]
+ street_address2: NotRequired[str]
"""
- Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ Line 2 of the street address.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict):
- mandate_options: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions"
- ]
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
"""
- Additional fields for Mandate creation
+ Insurance currency.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Type of insurance.
"""
- target_date: NotRequired[str]
+ price: NotRequired[int]
"""
- Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ Price of insurance in cents.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions(
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger(
TypedDict,
):
- reference_prefix: NotRequired["Literal['']|str"]
+ family_name: NotRequired[str]
"""
- Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsBancontact(TypedDict):
- preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail(
+ TypedDict,
+):
+ access_controlled_venue: NotRequired[bool]
"""
- Preferred language of the Bancontact authorization page that the customer is redirected to.
+ Indicates if the tickets are digitally checked when entering the venue.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress"
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Address of the event.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsBillie(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ affiliate_name: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Name of associated or partner company for the service.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsBlik(TypedDict):
- code: NotRequired[str]
+ ends_at: NotRequired[int]
"""
- The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
+ End timestamp of the event.
"""
- setup_future_usage: NotRequired["Literal['']|Literal['none']"]
+ event_company_name: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Company selling the ticket.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsBoleto(TypedDict):
- expires_after_days: NotRequired[int]
+ event_name: NotRequired[str]
"""
- The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
+ Name of the event.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
+ event_type: NotRequired[
+ Literal[
+ "concert",
+ "conference",
+ "digital_education",
+ "expo",
+ "festival",
+ "in_person_education",
+ "sport",
+ "tour",
+ ]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Type of the event.
+ """
+ insurances: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Start timestamp of the event.
+ """
+ venue_name: NotRequired[str]
+ """
+ Name of the venue where the event takes place.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsCard(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
- Controls when the funds are captured from the customer's account.
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
"""
- cvc_token: NotRequired[str]
+ Insurance currency.
"""
- A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
+ insurance_company_name: NotRequired[str]
"""
- installments: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments"
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
]
"""
- Installment configuration for payments attempted on this PaymentIntent.
-
- For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
+ Type of insurance.
"""
- mandate_options: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions"
- ]
+ price: NotRequired[int]
"""
- Configuration options for setting up an eMandate for cards issued in India.
+ Price of insurance in cents.
"""
- moto: NotRequired[bool]
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
"""
- When specified, this parameter indicates that a transaction will be marked
- as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
- parameter can only be provided during confirmation.
+ Name of associated or partner company for the service.
"""
- network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ arrival: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival"
]
"""
- Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
+ Arrival details.
"""
- request_extended_authorization: NotRequired[
- Literal["if_available", "never"]
- ]
+ carrier_name: NotRequired[str]
"""
- Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
+ Name of transportation company.
"""
- request_incremental_authorization: NotRequired[
- Literal["if_available", "never"]
- ]
+ currency: NotRequired[str]
"""
- Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
+ Currency.
"""
- request_multicapture: NotRequired[Literal["if_available", "never"]]
+ departure: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture"
+ ]
"""
- Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
+ Departure details.
"""
- request_overcapture: NotRequired[Literal["if_available", "never"]]
+ insurances: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance"
+ ]
+ ]
"""
- Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
+ List of insurances for this reservation.
"""
- request_three_d_secure: NotRequired[
- Literal["any", "automatic", "challenge"]
+ passengers: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger"
+ ]
]
"""
- We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ List of passengers that this reservation applies to.
"""
- require_cvc_recollection: NotRequired[bool]
+ price: NotRequired[int]
"""
- When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
+ Price in cents.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ Ticket class.
+ """
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- statement_descriptor_suffix_kana: NotRequired["Literal['']|str"]
+ The city or town.
"""
- Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
+ country: NotRequired[str]
"""
- statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"]
+ The country in ISO 3166-1 alpha-2 format.
"""
- Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
+ postal_code: NotRequired[str]
"""
- three_d_secure: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure"
- ]
+ The postal code formatted according to country.
"""
- If 3D Secure authentication was performed with a third-party provider,
- the authentication details to use for this payment.
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallments(
- TypedDict
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture(
+ TypedDict,
):
- enabled: NotRequired[bool]
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress"
+ ]
"""
- Setting to true enables installments for this PaymentIntent.
- This will cause the response to contain a list of available installment plans.
- Setting to false will prevent any selected plan from applying to a charge.
+ Address of the departure location.
"""
- plan: NotRequired[
- "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallmentsPlan"
- ]
+ departs_at: NotRequired[int]
"""
- The selected installment plan to use for this payment attempt.
- This parameter can only be provided during confirmation.
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsCardInstallmentsPlan(
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress(
TypedDict,
):
- count: NotRequired[int]
+ city: NotRequired[str]
"""
- For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
+ The city or town.
"""
- interval: NotRequired[Literal["month"]]
+ country: NotRequired[str]
"""
- For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
- One of `month`.
+ The country in ISO 3166-1 alpha-2 format.
"""
- type: Literal["bonus", "fixed_count", "revolving"]
+ postal_code: NotRequired[str]
"""
- Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions(
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance(
TypedDict,
):
- amount: int
+ currency: NotRequired[str]
"""
- Amount to be charged for future payments.
+ Insurance currency.
"""
- amount_type: Literal["fixed", "maximum"]
+ insurance_company_name: NotRequired[str]
"""
- One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ Name of the company providing the insurance.
"""
- description: NotRequired[str]
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- A description of the mandate or subscription that is meant to be displayed to the customer.
+ Type of insurance.
"""
- end_date: NotRequired[int]
+ price: NotRequired[int]
"""
- End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ Price of insurance in cents.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
"""
- Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
+ The family name of the person.
"""
- interval_count: NotRequired[int]
+ given_name: NotRequired[str]
"""
- The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
+ The given name of the person.
"""
- reference: str
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
"""
- Unique identifier for the mandate or subscription.
+ Insurance currency.
"""
- start_date: int
+ insurance_company_name: NotRequired[str]
"""
- Start date of the mandate or subscription. Start date should not be lesser than yesterday.
+ Name of the company providing the insurance.
"""
- supported_types: NotRequired[List[Literal["india"]]]
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- Specifies the type of mandates supported. Possible values are `india`.
+ Type of insurance
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure(
- TypedDict
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller(
+ TypedDict,
):
- ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]]
+ line_item_references: NotRequired[List[str]]
"""
- The `transStatus` returned from the card Issuer's ACS in the ARes.
+ The references to line items for purchases with multiple associated sub-sellers.
"""
- cryptogram: str
+ marketplace_seller_address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress"
+ ]
"""
- The cryptogram, also known as the "authentication value" (AAV, CAVV or
- AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
- (Most 3D Secure providers will return the base64-encoded version, which
- is what you should specify here.)
+ The address of the selling or delivering merchant.
"""
- electronic_commerce_indicator: NotRequired[
- Literal["01", "02", "05", "06", "07"]
+ marketplace_seller_name: NotRequired[str]
+ """
+ The name of the marketplace seller.
+ """
+ marketplace_seller_reference: NotRequired[str]
+ """
+ The unique identifier for the marketplace seller.
+ """
+ number_of_transactions: NotRequired[int]
+ """
+ The number of transactions the sub-seller completed in the last 12 months.
+ """
+ product_category: NotRequired[
+ Literal[
+ "accessories",
+ "appliances",
+ "apps_and_games",
+ "arts_crafts_and_sewing",
+ "automotive",
+ "baby",
+ "baby_clothing",
+ "bags_and_purses",
+ "beauty",
+ "books",
+ "cds_and_vinyl",
+ "cell_phones_and_accessories",
+ "collectibles_and_fine_arts",
+ "digital_music",
+ "electronics",
+ "grocery_and_gourmet_food",
+ "handmade",
+ "health_and_personal_care",
+ "home_and_kitchen",
+ "industrial_and_scientific",
+ "luggage_and_travel_gear",
+ "magazine_subscriptions",
+ "men_clothing",
+ "musical_instruments",
+ "office_products",
+ "patio_lawn_and_garden",
+ "pet_supplies",
+ "shoes",
+ "software",
+ "sports_and_outdoors",
+ "tools_and_home_improvement",
+ "toys_and_games",
+ "video_games",
+ "women_clothing",
+ ]
]
"""
- The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
- provider and indicates what degree of authentication was performed.
+ The category of the product.
"""
- exemption_indicator: NotRequired[Literal["low_risk", "none"]]
+ seller_last_login_at: NotRequired[int]
"""
- The exemption requested via 3DS and accepted by the issuer at authentication time.
+ The date when the seller's account with the marketplace was last logged in.
"""
- network_options: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions"
+ seller_rating: NotRequired[
+ Literal["high", "low", "medium", "very_high", "very_low"]
]
"""
- Network specific 3DS fields. Network specific arguments require an
- explicit card brand choice. The parameter `payment_method_options.card.network``
- must be populated accordingly
+ The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
"""
- requestor_challenge_indicator: NotRequired[str]
+ seller_registered_at: NotRequired[int]
"""
- The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
- AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
+ The date when the seller's account with the marketplace was created.
"""
- transaction_id: str
+ seller_updated_at: NotRequired[int]
"""
- For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
- Transaction ID (dsTransID).
+ The date when the seller's account with the marketplace was last updated.
"""
- version: Literal["1.0.2", "2.1.0", "2.2.0"]
+ shipping_references: NotRequired[List[str]]
"""
- The version of 3D Secure that was performed.
+ The references to shipping addresses for purchases with multiple associated sub-sellers.
+ """
+ volume_of_transactions: NotRequired[int]
+ """
+ The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions(
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress(
TypedDict,
):
- cartes_bancaires: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires"
- ]
+ city: NotRequired[str]
"""
- Cartes Bancaires-specific 3DS fields.
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires(
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail(
TypedDict,
):
- cb_avalgo: Literal["0", "1", "2", "3", "4", "A"]
+ affiliate_name: NotRequired[str]
"""
- The cryptogram calculation algorithm used by the card Issuer's ACS
- to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
- messageExtension: CB-AVALGO
+ Name of associated or partner company for the service.
"""
- cb_exemption: NotRequired[str]
+ arrival: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival"
+ ]
"""
- The exemption indicator returned from Cartes Bancaires in the ARes.
- message extension: CB-EXEMPTION; string (4 characters)
- This is a 3 byte bitmap (low significant byte first and most significant
- bit first) that has been Base64 encoded
+ Arrival details.
"""
- cb_score: NotRequired[int]
+ carrier_name: NotRequired[str]
"""
- The risk score returned from Cartes Bancaires in the ARes.
- message extension: CB-SCORE; numeric value 0-99
+ Name of transportation company.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent(TypedDict):
- capture_method: NotRequired[Literal["manual", "manual_preferred"]]
+ currency: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Currency.
"""
- request_extended_authorization: NotRequired[bool]
+ departure: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture"
+ ]
"""
- Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
+ Departure details.
"""
- request_incremental_authorization_support: NotRequired[bool]
+ insurances: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance"
+ ]
+ ]
"""
- Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
+ List of insurances for this reservation.
"""
- routing: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting"
+ passengers: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
]
"""
- Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
+ Ticket class.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting(
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival(
TypedDict,
):
- requested_priority: NotRequired[Literal["domestic", "international"]]
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress"
+ ]
"""
- Routing requested priority
+ Address of the arrival location.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsCashapp(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
"""
- Controls when the funds are captured from the customer's account.
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ The city or town.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ country: NotRequired[str]
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsCrypto(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ The country in ISO 3166-1 alpha-2 format.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ postal_code: NotRequired[str]
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalance(TypedDict):
- bank_transfer: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
- ]
+ The postal code formatted according to country.
"""
- Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ region: NotRequired[str]
"""
- funding_type: NotRequired[Literal["bank_transfer"]]
+ The state, county, province, or region formatted according to country.
"""
- The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ street_address: NotRequired[str]
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ Line 1 of the street address.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransfer(
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture(
TypedDict,
):
- eu_bank_transfer: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress"
]
"""
- Configuration for the eu_bank_transfer funding type.
+ Address of the departure location.
"""
- requested_address_types: NotRequired[
- List[
- Literal[
- "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
- ]
- ]
- ]
+ departs_at: NotRequired[int]
"""
- List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
-
- Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
+ Timestamp of departure.
"""
- type: Literal[
- "eu_bank_transfer",
- "gb_bank_transfer",
- "jp_bank_transfer",
- "mx_bank_transfer",
- "us_bank_transfer",
- ]
+ departure_location: NotRequired[str]
"""
- The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress(
TypedDict,
):
- country: str
+ city: NotRequired[str]
"""
- The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ The city or town.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsEps(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ country: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The country in ISO 3166-1 alpha-2 format.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsFpx(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ postal_code: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The postal code formatted according to country.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsGiropay(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ region: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The state, county, province, or region formatted according to country.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsGrabpay(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ street_address: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsIdeal(TypedDict):
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsInteracPresent(TypedDict):
- pass
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsKakaoPay(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
"""
- Controls when the funds are captured from the customer's account.
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival"
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ Arrival details.
"""
-
-
-class PaymentIntentConfirmParamsPaymentMethodOptionsKlarna(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ carrier_name: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Name of transportation company.
"""
- on_demand: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand"
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture"
]
"""
- On-demand details if setting up or charging an on-demand payment.
+ Departure details.
"""
- preferred_locale: NotRequired[
- Literal[
- "cs-CZ",
- "da-DK",
- "de-AT",
- "de-CH",
- "de-DE",
- "el-GR",
- "en-AT",
- "en-AU",
- "en-BE",
- "en-CA",
- "en-CH",
- "en-CZ",
- "en-DE",
- "en-DK",
- "en-ES",
- "en-FI",
- "en-FR",
- "en-GB",
- "en-GR",
- "en-IE",
- "en-IT",
- "en-NL",
- "en-NO",
- "en-NZ",
- "en-PL",
- "en-PT",
- "en-RO",
- "en-SE",
- "en-US",
- "es-ES",
- "es-US",
- "fi-FI",
- "fr-BE",
- "fr-CA",
- "fr-CH",
- "fr-FR",
- "it-CH",
- "it-IT",
- "nb-NO",
- "nl-BE",
- "nl-NL",
- "pl-PL",
- "pt-PT",
- "ro-RO",
- "sv-FI",
- "sv-SE",
+ insurances: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance"
]
]
"""
- Preferred language of the Klarna authorization page that the customer is redirected to
+ List of insurances for this reservation.
"""
- setup_future_usage: NotRequired[
- Literal["none", "off_session", "on_session"]
+ passengers: NotRequired[
+ List[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger"
+ ]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- subscriptions: NotRequired[
- "Literal['']|List[PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription]"
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress"
]
"""
- Subscription details if setting up or charging a subscription.
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict):
- average_amount: NotRequired[int]
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
+ The city or town.
"""
- maximum_amount: NotRequired[int]
+ country: NotRequired[str]
"""
- The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ The country in ISO 3166-1 alpha-2 format.
"""
- minimum_amount: NotRequired[int]
+ postal_code: NotRequired[str]
"""
- The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ The postal code formatted according to country.
"""
- purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
+ region: NotRequired[str]
"""
- Interval at which the customer is making purchases
+ The state, county, province, or region formatted according to country.
"""
- purchase_interval_count: NotRequired[int]
+ street_address: NotRequired[str]
"""
- The number of `purchase_interval` between charges
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscription(
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance(
TypedDict,
):
- interval: Literal["day", "month", "week", "year"]
+ currency: NotRequired[str]
"""
- Unit of time between subscription charges.
+ Insurance currency.
"""
- interval_count: NotRequired[int]
+ insurance_company_name: NotRequired[str]
"""
- The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
+ Name of the company providing the insurance.
"""
- name: NotRequired[str]
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- Name for subscription.
+ Type of insurance.
"""
- next_billing: NotRequired[
- "PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
- ]
+ price: NotRequired[int]
"""
- Describes the upcoming charge for this subscription.
+ Price of insurance in cents.
"""
- reference: str
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
"""
- A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
"""
-class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
+class PaymentIntentConfirmParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher(
TypedDict,
):
- amount: int
+ affiliate_name: NotRequired[str]
"""
- The amount of the next charge for the subscription.
+ Name of associated or partner company for this voucher.
"""
- date: str
+ ends_at: NotRequired[int]
"""
- The date of the next charge for the subscription in YYYY-MM-DD format.
+ The voucher validity end time.
+ """
+ starts_at: NotRequired[int]
+ """
+ The voucher validity start time.
+ """
+ voucher_company: NotRequired[str]
+ """
+ The issuer or provider of this voucher.
+ """
+ voucher_name: NotRequired[str]
+ """
+ The name or reference to identify the voucher.
+ """
+ voucher_type: NotRequired[
+ Literal[
+ "digital_product",
+ "discount",
+ "gift_card",
+ "physical_product",
+ "services",
+ ]
+ ]
+ """
+ The type of this voucher.
"""
@@ -2732,6 +5870,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsPaypal(TypedDict):
"""
Controls when the funds will be captured from the customer's account.
"""
+ line_items: NotRequired[
+ List["PaymentIntentConfirmParamsPaymentMethodOptionsPaypalLineItem"]
+ ]
+ """
+ The line items purchased by the customer.
+ """
preferred_locale: NotRequired[
Literal[
"cs-CZ",
@@ -2764,6 +5908,10 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsPaypal(TypedDict):
"""
A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
"""
+ reference_id: NotRequired[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
risk_correlation_id: NotRequired[str]
"""
The risk correlation ID for an on-session payment using a saved PayPal payment method.
@@ -2782,6 +5930,73 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsPaypal(TypedDict):
If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
+ subsellers: NotRequired[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsPaypalLineItem(TypedDict):
+ category: NotRequired[
+ Literal["digital_goods", "donation", "physical_goods"]
+ ]
+ """
+ Type of the line item.
+ """
+ description: NotRequired[str]
+ """
+ Description of the line item.
+ """
+ name: str
+ """
+ Descriptive name of the line item.
+ """
+ quantity: int
+ """
+ Quantity of the line item. Must be a positive number.
+ """
+ sku: NotRequired[str]
+ """
+ Client facing stock keeping unit, article number or similar.
+ """
+ sold_by: NotRequired[str]
+ """
+ The Stripe account ID of the connected account that sells the item.
+ """
+ tax: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPaypalLineItemTax"
+ ]
+ """
+ The tax information for the line item.
+ """
+ unit_amount: int
+ """
+ Price for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsPaypalLineItemTax(
+ TypedDict,
+):
+ amount: int
+ """
+ The tax for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+ behavior: Literal["exclusive", "inclusive"]
+ """
+ The tax behavior for the line item.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsPaypay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
class PaymentIntentConfirmParamsPaymentMethodOptionsPayto(TypedDict):
@@ -2853,7 +6068,13 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsPix(TypedDict):
"""
The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ mandate_options: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsPixMandateOptions"
+ ]
+ """
+ Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
+ """
+ setup_future_usage: NotRequired[Literal["none", "off_session"]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2867,6 +6088,45 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsPix(TypedDict):
"""
+class PaymentIntentConfirmParamsPaymentMethodOptionsPixMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
+ """
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ Type of amount. Defaults to `maximum`.
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
+ """
+ end_date: NotRequired[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ payment_schedule: NotRequired[
+ Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"]
+ ]
+ """
+ Schedule at which the future payments will be charged. Defaults to `weekly`.
+ """
+ reference: NotRequired[str]
+ """
+ Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
+ """
+ start_date: NotRequired[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
+ """
+
+
class PaymentIntentConfirmParamsPaymentMethodOptionsPromptpay(TypedDict):
setup_future_usage: NotRequired[Literal["none"]]
"""
@@ -2882,6 +6142,25 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsPromptpay(TypedDict):
"""
+class PaymentIntentConfirmParamsPaymentMethodOptionsQris(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsRechnung(TypedDict):
+ pass
+
+
class PaymentIntentConfirmParamsPaymentMethodOptionsRevolutPay(TypedDict):
capture_method: NotRequired["Literal['']|Literal['manual']"]
"""
@@ -2963,6 +6242,21 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions(
"""
+class PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
class PaymentIntentConfirmParamsPaymentMethodOptionsSofort(TypedDict):
preferred_language: NotRequired[
"Literal['']|Literal['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']"
@@ -2986,6 +6280,23 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSofort(TypedDict):
"""
+class PaymentIntentConfirmParamsPaymentMethodOptionsStripeBalance(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
class PaymentIntentConfirmParamsPaymentMethodOptionsSwish(TypedDict):
reference: NotRequired["Literal['']|str"]
"""
@@ -3080,6 +6391,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnec
"""
Provide filters for the linked accounts that the customer can select for the payment method.
"""
+ manual_entry: NotRequired[
+ "PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
+ ]
+ """
+ Customize manual entry behavior
+ """
permissions: NotRequired[
List[
Literal["balances", "ownership", "payment_method", "transactions"]
@@ -3089,7 +6406,11 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnec
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -3107,6 +6428,19 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnec
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
+
+
+class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
+ TypedDict,
+):
+ mode: Literal["automatic", "custom"]
+ """
+ Settings for configuring manual entry of account details.
+ """
class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions(
diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py
index 2e699632d..bd15253a6 100644
--- a/stripe/params/_payment_intent_create_params.py
+++ b/stripe/params/_payment_intent_create_params.py
@@ -94,7 +94,9 @@ class PaymentIntentCreateParams(RequestOptions):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -111,14 +113,19 @@ class PaymentIntentCreateParams(RequestOptions):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
@@ -134,6 +141,10 @@ class PaymentIntentCreateParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
+ fx_quote: NotRequired[str]
+ """
+ The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
+ """
hooks: NotRequired["PaymentIntentCreateParamsHooks"]
"""
Automations to be run during the PaymentIntent lifecycle
@@ -206,6 +217,10 @@ class PaymentIntentCreateParams(RequestOptions):
"""
The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
"""
+ secret_key_confirmation: NotRequired[Literal["optional", "required"]]
+ """
+ Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
+ """
setup_future_usage: NotRequired[Literal["off_session", "on_session"]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -513,12 +528,48 @@ class PaymentIntentCreateParamsMandateDataCustomerAcceptanceOnline(TypedDict):
class PaymentIntentCreateParamsPaymentDetails(TypedDict):
+ car_rental: NotRequired["PaymentIntentCreateParamsPaymentDetailsCarRental"]
+ """
+ Car rental details for this PaymentIntent.
+ """
+ car_rental_data: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
customer_reference: NotRequired["Literal['']|str"]
"""
A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
"""
+ event_details: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsEventDetails"
+ ]
+ """
+ Event details for this PaymentIntent
+ """
+ flight: NotRequired["PaymentIntentCreateParamsPaymentDetailsFlight"]
+ """
+ Flight reservation details for this PaymentIntent
+ """
+ flight_data: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentDetailsFlightDatum]"
+ ]
+ """
+ Flight data for this PaymentIntent.
+ """
+ lodging: NotRequired["PaymentIntentCreateParamsPaymentDetailsLodging"]
+ """
+ Lodging reservation details for this PaymentIntent
+ """
+ lodging_data: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
order_reference: NotRequired["Literal['']|str"]
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
@@ -527,418 +578,729 @@ class PaymentIntentCreateParamsPaymentDetails(TypedDict):
For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""
+ subscription: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsSubscription"
+ ]
+ """
+ Subscription details for this PaymentIntent
+ """
-class PaymentIntentCreateParamsPaymentMethodData(TypedDict):
- acss_debit: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataAcssDebit"
+class PaymentIntentCreateParamsPaymentDetailsCarRental(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalAffiliate"
]
"""
- If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
+ Affiliate details for this purchase.
"""
- affirm: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAffirm"]
+ booking_number: str
"""
- If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
+ The booking number associated with the car rental.
"""
- afterpay_clearpay: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay"
- ]
+ car_class_code: NotRequired[str]
"""
- If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
+ Class code of the car.
"""
- alipay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAlipay"]
+ car_make: NotRequired[str]
"""
- If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
+ Make of the car.
"""
- allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
+ car_model: NotRequired[str]
"""
- This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
+ Model of the car.
"""
- alma: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAlma"]
+ company: NotRequired[str]
"""
- If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
+ The name of the rental car company.
"""
- amazon_pay: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataAmazonPay"
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the car rental company.
+ """
+ days_rented: int
+ """
+ Number of days the car is being rented.
+ """
+ delivery: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDelivery"
]
"""
- If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
+ Delivery details for this purchase.
"""
- au_becs_debit: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit"
+ distance: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDistance"
]
"""
- If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
+ The details of the distance traveled during the rental period.
"""
- bacs_debit: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataBacsDebit"
+ drivers: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsCarRentalDriver"]
]
"""
- If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
+ The details of the passengers in the travel reservation
"""
- bancontact: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataBancontact"
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "late_return",
+ "one_way_service",
+ "parking_violation",
+ ]
+ ]
]
"""
- If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
+ List of additional charges being billed.
"""
- billie: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBillie"]
+ no_show: NotRequired[bool]
"""
- If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
+ Indicates if the customer did not keep nor cancel their booking.
"""
- billing_details: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataBillingDetails"
+ pickup_address: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalPickupAddress"
]
"""
- Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
+ Car pick-up address.
"""
- blik: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBlik"]
+ pickup_at: int
"""
- If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
+ Car pick-up time. Measured in seconds since the Unix epoch.
"""
- boleto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBoleto"]
+ pickup_location_name: NotRequired[str]
"""
- If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
+ Name of the pickup location.
"""
- cashapp: NotRequired["PaymentIntentCreateParamsPaymentMethodDataCashapp"]
+ rate_amount: NotRequired[int]
"""
- If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
+ Rental rate.
"""
- crypto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataCrypto"]
+ rate_interval: NotRequired[Literal["day", "month", "week"]]
"""
- If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
+ The frequency at which the rate amount is applied. One of `day`, `week` or `month`
"""
- customer_balance: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataCustomerBalance"
+ renter_name: NotRequired[str]
+ """
+ The name of the person or entity renting the car.
+ """
+ return_address: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalReturnAddress"
]
"""
- If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
+ Car return address.
"""
- eps: NotRequired["PaymentIntentCreateParamsPaymentMethodDataEps"]
+ return_at: int
"""
- If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
+ Car return time. Measured in seconds since the Unix epoch.
"""
- fpx: NotRequired["PaymentIntentCreateParamsPaymentMethodDataFpx"]
+ return_location_name: NotRequired[str]
"""
- If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
+ Name of the return location.
"""
- giropay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGiropay"]
+ tax_exempt: NotRequired[bool]
"""
- If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
+ Indicates whether the goods or services are tax-exempt or tax is not collected.
"""
- grabpay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGrabpay"]
+ vehicle_identification_number: NotRequired[str]
"""
- If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
+ The vehicle identification number.
"""
- ideal: NotRequired["PaymentIntentCreateParamsPaymentMethodDataIdeal"]
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalAffiliate(TypedDict):
+ name: str
"""
- If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
+ The name of the affiliate that originated the purchase.
"""
- interac_present: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataInteracPresent"
- ]
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
"""
- If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
+ The delivery method for the payment
"""
- kakao_pay: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataKakaoPay"
+ recipient: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDeliveryRecipient"
]
"""
- If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
+ Details of the recipient.
"""
- klarna: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKlarna"]
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
"""
- If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
+ The email of the recipient the ticket is delivered to.
"""
- konbini: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKonbini"]
+ name: NotRequired[str]
"""
- If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
+ The name of the recipient the ticket is delivered to.
"""
- kr_card: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKrCard"]
+ phone: NotRequired[str]
"""
- If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
+ The phone number of the recipient the ticket is delivered to.
"""
- link: NotRequired["PaymentIntentCreateParamsPaymentMethodDataLink"]
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDistance(TypedDict):
+ amount: NotRequired[int]
"""
- If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
+ Distance traveled.
"""
- mb_way: NotRequired["PaymentIntentCreateParamsPaymentMethodDataMbWay"]
+ unit: NotRequired[Literal["kilometers", "miles"]]
"""
- If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
"""
- metadata: NotRequired[Dict[str, str]]
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDriver(TypedDict):
+ driver_identification_number: NotRequired[str]
"""
- Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ Driver's identification number.
"""
- mobilepay: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataMobilepay"
- ]
+ driver_tax_number: NotRequired[str]
"""
- If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
+ Driver's tax number.
"""
- multibanco: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataMultibanco"
- ]
+ name: str
"""
- If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
+ Full name of the person or entity on the car reservation.
"""
- naver_pay: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataNaverPay"
- ]
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalPickupAddress(TypedDict):
+ city: NotRequired[str]
"""
- If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
+ City, district, suburb, town, or village.
"""
- nz_bank_account: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataNzBankAccount"
- ]
+ country: NotRequired[str]
"""
- If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- oxxo: NotRequired["PaymentIntentCreateParamsPaymentMethodDataOxxo"]
+ line1: NotRequired[str]
"""
- If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
+ Address line 1, such as the street, PO Box, or company name.
"""
- p24: NotRequired["PaymentIntentCreateParamsPaymentMethodDataP24"]
+ line2: NotRequired[str]
"""
- If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
+ Address line 2, such as the apartment, suite, unit, or building.
"""
- pay_by_bank: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataPayByBank"
- ]
+ postal_code: NotRequired[str]
"""
- If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
+ ZIP or postal code.
"""
- payco: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPayco"]
+ state: NotRequired[str]
"""
- If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""
- paynow: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaynow"]
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalReturnAddress(TypedDict):
+ city: NotRequired[str]
"""
- If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
+ City, district, suburb, town, or village.
"""
- paypal: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaypal"]
+ country: NotRequired[str]
"""
- If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- payto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPayto"]
+ line1: NotRequired[str]
"""
- If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
+ Address line 1, such as the street, PO Box, or company name.
"""
- pix: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPix"]
+ line2: NotRequired[str]
"""
- If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
+ Address line 2, such as the apartment, suite, unit, or building.
"""
- promptpay: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataPromptpay"
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate"
]
"""
- If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
+ Affiliate (such as travel agency) details for the rental.
"""
- radar_options: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataRadarOptions"
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance"
]
"""
- Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
+ Distance details for the rental.
"""
- revolut_pay: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataRevolutPay"
+ drivers: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver"]
]
"""
- If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
+ List of drivers for the rental.
"""
- samsung_pay: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataSamsungPay"
+ drop_off: "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff"
+ """
+ Drop-off location details.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance"]
]
"""
- If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
+ Insurance details for the rental.
"""
- satispay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSatispay"]
+ no_show_indicator: NotRequired[bool]
"""
- If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
+ Indicates if the customer was a no-show.
"""
- sepa_debit: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataSepaDebit"
+ pickup: "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup"
+ """
+ Pickup location details.
+ """
+ renter_name: NotRequired[str]
+ """
+ Name of the person renting the vehicle.
+ """
+ total: "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal"
+ """
+ Total cost breakdown for the rental.
+ """
+ vehicle: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle"
]
"""
- If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
+ Vehicle details for the rental.
"""
- sofort: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSofort"]
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumAffiliate(
+ TypedDict
+):
+ code: NotRequired[str]
"""
- If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
+ Affiliate partner code.
"""
- swish: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSwish"]
+ name: NotRequired[str]
"""
- If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
+ Name of affiliate partner.
"""
- twint: NotRequired["PaymentIntentCreateParamsPaymentMethodDataTwint"]
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDistance(TypedDict):
+ amount: int
"""
- If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
+ Distance traveled.
"""
- type: Literal[
- "acss_debit",
- "affirm",
- "afterpay_clearpay",
- "alipay",
- "alma",
- "amazon_pay",
- "au_becs_debit",
- "bacs_debit",
- "bancontact",
- "billie",
- "blik",
- "boleto",
- "cashapp",
- "crypto",
- "customer_balance",
- "eps",
- "fpx",
- "giropay",
- "grabpay",
- "ideal",
- "kakao_pay",
- "klarna",
- "konbini",
- "kr_card",
- "link",
- "mb_way",
- "mobilepay",
- "multibanco",
- "naver_pay",
- "nz_bank_account",
- "oxxo",
- "p24",
- "pay_by_bank",
- "payco",
- "paynow",
- "paypal",
- "payto",
- "pix",
- "promptpay",
- "revolut_pay",
- "samsung_pay",
- "satispay",
- "sepa_debit",
- "sofort",
- "swish",
- "twint",
- "us_bank_account",
- "wechat_pay",
- "zip",
- ]
+ unit: Literal["kilometers", "miles"]
"""
- The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
"""
- us_bank_account: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataUsBankAccount"
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
]
"""
- If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
+ Driver's date of birth.
"""
- wechat_pay: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodDataWechatPay"
- ]
+ driver_identification_number: NotRequired[str]
"""
- If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
+ Driver's identification number.
"""
- zip: NotRequired["PaymentIntentCreateParamsPaymentMethodDataZip"]
+ driver_tax_number: NotRequired[str]
"""
- If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
"""
-class PaymentIntentCreateParamsPaymentMethodDataAcssDebit(TypedDict):
- account_number: str
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
"""
- Customer's bank account number.
+ Day of birth (1-31).
"""
- institution_number: str
+ month: int
"""
- Institution number of the customer's bank.
+ Month of birth (1-12).
"""
- transit_number: str
+ year: int
"""
- Transit number of the customer's bank.
+ Year of birth (must be greater than 1900).
"""
-class PaymentIntentCreateParamsPaymentMethodDataAffirm(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: (
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumDropOffAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
-class PaymentIntentCreateParamsPaymentMethodDataAlipay(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumInsurance(
+ TypedDict
+):
+ amount: int
+ """
+ Amount of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ]
+ """
+ Type of insurance coverage.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataAlma(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: (
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataAmazonPay(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumPickupAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
-class PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit(TypedDict):
- account_number: str
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
"""
- The account number for the bank account.
+ Total amount in cents.
"""
- bsb_number: str
+ currency: NotRequired[str]
"""
- Bank-State-Branch number of the bank account.
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ Literal["days", "kilometers", "miles", "months", "weeks"]
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the rental.
"""
-class PaymentIntentCreateParamsPaymentMethodDataBacsDebit(TypedDict):
- account_number: NotRequired[str]
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
"""
- Account number of the bank account that the funds will be debited from.
+ Corporate client discount code.
"""
- sort_code: NotRequired[str]
+ coupon: NotRequired[str]
"""
- Sort code of the bank account. (e.g., `10-20-30`)
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
"""
-class PaymentIntentCreateParamsPaymentMethodDataBancontact(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ]
+ """
+ Type of extra charge.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataBillie(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTax"
+ ]
+ ]
+ """
+ Array of tax details.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataBillingDetails(TypedDict):
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumTotalTaxTax(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
+ Literal[
+ "cargo_van",
+ "compact",
+ "economy",
+ "exotic",
+ "exotic_suv",
+ "fifteen_passenger_van",
+ "four_wheel_drive",
+ "full_size",
+ "intermediate",
+ "large_suv",
+ "large_truck",
+ "luxury",
+ "medium_suv",
+ "midsize",
+ "mini",
+ "minivan",
+ "miscellaneous",
+ "moped",
+ "moving_van",
+ "premium",
+ "regular",
+ "small_medium_truck",
+ "small_suv",
+ "special",
+ "standard",
+ "stretch",
+ "subcompact",
+ "taxi",
+ "twelve_foot_truck",
+ "twelve_passenger_van",
+ "twenty_foot_truck",
+ "twenty_four_foot_truck",
+ "twenty_six_foot_truck",
+ "unique",
+ ]
+ ]
+ """
+ Type of the rental vehicle.
+ """
+ vehicle_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsEventDetails(TypedDict):
+ access_controlled_venue: NotRequired[bool]
+ """
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
address: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress"
+ "PaymentIntentCreateParamsPaymentDetailsEventDetailsAddress"
]
"""
- Billing address.
+ The event location's address.
"""
- email: NotRequired["Literal['']|str"]
+ affiliate: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsEventDetailsAffiliate"
+ ]
"""
- Email address.
+ Affiliate details for this purchase.
"""
- name: NotRequired["Literal['']|str"]
+ company: NotRequired[str]
"""
- Full name.
+ The name of the company
"""
- phone: NotRequired["Literal['']|str"]
+ delivery: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsEventDetailsDelivery"
+ ]
"""
- Billing phone number (including extension).
+ Delivery details for this purchase.
"""
- tax_id: NotRequired[str]
+ ends_at: NotRequired[int]
"""
- Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
+ Event end time. Measured in seconds since the Unix epoch.
+ """
+ genre: NotRequired[str]
+ """
+ Type of the event entertainment (concert, sports event etc)
+ """
+ name: str
+ """
+ The name of the event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Event start time. Measured in seconds since the Unix epoch.
"""
-class PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress(
- TypedDict,
-):
+class PaymentIntentCreateParamsPaymentDetailsEventDetailsAddress(TypedDict):
city: NotRequired[str]
"""
City, district, suburb, town, or village.
@@ -965,1645 +1327,4410 @@ class PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress(
"""
-class PaymentIntentCreateParamsPaymentMethodDataBlik(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataBoleto(TypedDict):
- tax_id: str
+class PaymentIntentCreateParamsPaymentDetailsEventDetailsAffiliate(TypedDict):
+ name: str
"""
- The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
+ The name of the affiliate that originated the purchase.
"""
-class PaymentIntentCreateParamsPaymentMethodDataCashapp(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataCrypto(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsEventDetailsDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsEventDetailsDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataCustomerBalance(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsEventDetailsDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataEps(TypedDict):
- bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
- ]
+class PaymentIntentCreateParamsPaymentDetailsFlight(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsFlightAffiliate"
]
"""
- The customer's bank.
+ Affiliate details for this purchase.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ agency_number: NotRequired[str]
"""
- Account holder type for FPX transaction
+ The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bsn",
- "cimb",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
+ """
+ delivery: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsFlightDelivery"
]
"""
- The customer's bank.
+ Delivery details for this purchase.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodDataGiropay(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataGrabpay(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataIdeal(TypedDict):
- bank: NotRequired[
- Literal[
- "abn_amro",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
- ]
+ passenger_name: NotRequired[str]
+ """
+ The name of the person or entity on the reservation.
+ """
+ passengers: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsFlightPassenger"]
]
"""
- The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
+ The details of the passengers in the travel reservation.
+ """
+ segments: List["PaymentIntentCreateParamsPaymentDetailsFlightSegment"]
+ """
+ The individual flight segments associated with the trip.
+ """
+ ticket_number: NotRequired[str]
+ """
+ The ticket number associated with the travel reservation.
"""
-class PaymentIntentCreateParamsPaymentMethodDataInteracPresent(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataKakaoPay(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsFlightAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataKlarna(TypedDict):
- dob: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKlarnaDob"]
+class PaymentIntentCreateParamsPaymentDetailsFlightDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
"""
- Customer's date of birth
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
"""
-class PaymentIntentCreateParamsPaymentMethodDataKlarnaDob(TypedDict):
- day: int
+class PaymentIntentCreateParamsPaymentDetailsFlightDeliveryRecipient(
+ TypedDict
+):
+ email: NotRequired[str]
"""
- The day of birth, between 1 and 31.
+ The email of the recipient the ticket is delivered to.
"""
- month: int
+ name: NotRequired[str]
"""
- The month of birth, between 1 and 12.
+ The name of the recipient the ticket is delivered to.
"""
- year: int
+ phone: NotRequired[str]
"""
- The four-digit year of birth.
+ The phone number of the recipient the ticket is delivered to.
"""
-class PaymentIntentCreateParamsPaymentMethodDataKonbini(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataKrCard(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsFlightPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the flight reservation.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataLink(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsFlightSegment(TypedDict):
+ amount: NotRequired[int]
+ """
+ The flight segment amount.
+ """
+ arrival_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the arrival airport.
+ """
+ arrives_at: NotRequired[int]
+ """
+ The arrival time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
+ """
+ departs_at: int
+ """
+ The departure time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ departure_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the departure airport.
+ """
+ flight_number: NotRequired[str]
+ """
+ The flight number associated with the segment
+ """
+ service_class: NotRequired[
+ Literal["business", "economy", "first", "premium_economy"]
+ ]
+ """
+ The fare class for the segment.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataMbWay(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsFlightDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Reservation reference.
+ """
+ computerized_reservation_system: NotRequired[str]
+ """
+ Computerized reservation system used to make the reservation and purchase the ticket.
+ """
+ endorsements_and_restrictions: NotRequired[str]
+ """
+ Ticket restrictions.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsFlightDatumInsurance"]
+ ]
+ """
+ List of insurances.
+ """
+ passengers: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsFlightDatumPassenger"]
+ ]
+ """
+ List of passengers.
+ """
+ segments: List["PaymentIntentCreateParamsPaymentDetailsFlightDatumSegment"]
+ """
+ List of flight segments.
+ """
+ ticket_electronically_issued_indicator: NotRequired[bool]
+ """
+ Electronic ticket indicator.
+ """
+ total: "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotal"
+ """
+ Total cost breakdown.
+ """
+ transaction_type: NotRequired[
+ Literal[
+ "exchange_ticket", "miscellaneous", "refund", "ticket_purchase"
+ ]
+ ]
+ """
+ Type of flight transaction.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataMobilepay(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsFlightDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+ travel_authorization_code: NotRequired[str]
+ """
+ Code provided by the company to a travel agent authorizing ticket issuance.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataMultibanco(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsFlightDatumInsurance(TypedDict):
+ amount: int
+ """
+ Insurance cost.
+ """
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Insurance company name.
+ """
+ insurance_type: Literal[
+ "baggage", "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataNaverPay(TypedDict):
- funding: NotRequired[Literal["card", "points"]]
+class PaymentIntentCreateParamsPaymentDetailsFlightDatumPassenger(TypedDict):
+ name: str
"""
- Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
+ Passenger's full name.
"""
-class PaymentIntentCreateParamsPaymentMethodDataNzBankAccount(TypedDict):
- account_holder_name: NotRequired[str]
+class PaymentIntentCreateParamsPaymentDetailsFlightDatumSegment(TypedDict):
+ amount: NotRequired[int]
"""
- The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
+ Segment fare amount.
"""
- account_number: str
+ arrival: "PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentArrival"
"""
- The account number for the bank account.
+ Arrival details.
"""
- bank_code: str
+ carrier_code: str
"""
- The numeric code for the bank account's bank.
+ Airline carrier code.
"""
- branch_code: str
+ carrier_name: NotRequired[str]
"""
- The numeric code for the bank account's bank branch.
+ Carrier name.
"""
- reference: NotRequired[str]
- suffix: str
+ currency: NotRequired[str]
"""
- The suffix of the bank account number.
+ Segment currency.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodDataOxxo(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataP24(TypedDict):
- bank: NotRequired[
- Literal[
- "alior_bank",
- "bank_millennium",
- "bank_nowy_bfg_sa",
- "bank_pekao_sa",
- "banki_spbdzielcze",
- "blik",
- "bnp_paribas",
- "boz",
- "citi_handlowy",
- "credit_agricole",
- "envelobank",
- "etransfer_pocztowy24",
- "getin_bank",
- "ideabank",
- "ing",
- "inteligo",
- "mbank_mtransfer",
- "nest_przelew",
- "noble_pay",
- "pbac_z_ipko",
- "plus_bank",
- "santander_przelew24",
- "tmobile_usbugi_bankowe",
- "toyota_bank",
- "velobank",
- "volkswagen_bank",
- ]
+ departure: (
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentDeparture"
+ )
+ """
+ Departure details.
+ """
+ exchange_ticket_number: NotRequired[str]
+ """
+ Exchange ticket number.
+ """
+ fare_basis_code: NotRequired[str]
+ """
+ Fare basis code.
+ """
+ fees: NotRequired[int]
+ """
+ Additional fees.
+ """
+ flight_number: NotRequired[str]
+ """
+ Flight number.
+ """
+ is_stop_over_indicator: NotRequired[bool]
+ """
+ Stopover indicator.
+ """
+ refundable: NotRequired[bool]
+ """
+ Refundable ticket indicator.
+ """
+ service_class: Literal[
+ "business", "economy", "first_class", "premium_economy"
]
"""
- The customer's bank.
+ Class of service.
+ """
+ tax_amount: NotRequired[int]
+ """
+ Tax amount for segment.
+ """
+ ticket_number: NotRequired[str]
+ """
+ Ticket number.
"""
-class PaymentIntentCreateParamsPaymentMethodDataPayByBank(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataPayco(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataPaynow(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataPaypal(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataPayto(TypedDict):
- account_number: NotRequired[str]
+class PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentArrival(
+ TypedDict,
+):
+ airport: str
"""
- The account number for the bank account.
+ Arrival airport IATA code.
"""
- bsb_number: NotRequired[str]
+ arrives_at: NotRequired[int]
"""
- Bank-State-Branch number of the bank account.
+ Arrival date/time.
"""
- pay_id: NotRequired[str]
+ city: NotRequired[str]
"""
- The PayID alias for the bank account.
+ Arrival city.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodDataPix(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataPromptpay(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataRadarOptions(TypedDict):
- session: NotRequired[str]
+ country: NotRequired[str]
"""
- A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
+ Arrival country.
"""
-class PaymentIntentCreateParamsPaymentMethodDataRevolutPay(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataSamsungPay(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataSatispay(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict):
- iban: str
+class PaymentIntentCreateParamsPaymentDetailsFlightDatumSegmentDeparture(
+ TypedDict,
+):
+ airport: str
"""
- IBAN of the bank account.
+ Departure airport IATA code.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodDataSofort(TypedDict):
- country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
+ city: NotRequired[str]
"""
- Two-letter ISO code representing the country the bank account is located in.
+ Departure city.
+ """
+ country: NotRequired[str]
+ """
+ Departure country.
+ """
+ departs_at: int
+ """
+ Departure date/time.
"""
-class PaymentIntentCreateParamsPaymentMethodDataSwish(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataTwint(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodDataUsBankAccount(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+class PaymentIntentCreateParamsPaymentDetailsFlightDatumTotal(TypedDict):
+ amount: int
"""
- Account holder type: individual or company.
+ Total flight amount.
"""
- account_number: NotRequired[str]
+ credit_reason: NotRequired[
+ Literal[
+ "other",
+ "partial_ticket_refund",
+ "passenger_transport_ancillary_cancellation",
+ "ticket_and_ancillary_cancellation",
+ "ticket_cancellation",
+ ]
+ ]
"""
- Account number of the bank account.
+ Reason for credit.
"""
- account_type: NotRequired[Literal["checking", "savings"]]
+ currency: NotRequired[str]
"""
- Account type: checkings or savings. Defaults to checking if omitted.
+ Total currency.
"""
- financial_connections_account: NotRequired[str]
+ discounts: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalDiscounts"
+ ]
"""
- The ID of a Financial Connections Account to use as a payment method.
+ Discount details.
"""
- routing_number: NotRequired[str]
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalExtraCharge"
+ ]
+ ]
"""
- Routing number of the bank account.
+ Additional charges.
+ """
+ tax: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTax"
+ ]
+ """
+ Tax breakdown.
"""
-class PaymentIntentCreateParamsPaymentMethodDataWechatPay(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
-class PaymentIntentCreateParamsPaymentMethodDataZip(TypedDict):
- pass
+class PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of additional charges.
+ """
+ type: NotRequired[
+ Literal["additional_fees", "ancillary_service_charges", "exchange_fee"]
+ ]
+ """
+ Type of additional charges.
+ """
-class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict):
- acss_debit: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit"
+class PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTax(TypedDict):
+ taxes: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTaxTax"]
]
"""
- If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
+ Array of tax details.
"""
- affirm: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAffirm"
- ]
+
+
+class PaymentIntentCreateParamsPaymentDetailsFlightDatumTotalTaxTax(TypedDict):
+ amount: NotRequired[int]
"""
- If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
+ Tax amount.
"""
- afterpay_clearpay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAfterpayClearpay"
- ]
+ rate: NotRequired[int]
"""
- If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
+ Tax rate.
"""
- alipay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAlipay"
- ]
+ type: NotRequired[str]
"""
- If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
+ Type of tax.
"""
- alma: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAlma"
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodging(TypedDict):
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingAddress"
]
"""
- If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
+ The lodging location's address.
"""
- amazon_pay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay"
- ]
+ adults: NotRequired[int]
"""
- If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
+ The number of adults on the booking
"""
- au_becs_debit: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit"
+ affiliate: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingAffiliate"
]
"""
- If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
+ Affiliate details for this purchase.
"""
- bacs_debit: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit"
- ]
+ booking_number: NotRequired[str]
"""
- If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
+ The booking number associated with the lodging reservation.
"""
- bancontact: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBancontact"
- ]
+ category: NotRequired[Literal["hotel", "vacation_rental"]]
"""
- If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
+ The lodging category
"""
- billie: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBillie"
- ]
+ checkin_at: int
"""
- If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
+ Lodging check-in time. Measured in seconds since the Unix epoch.
"""
- blik: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBlik"
- ]
+ checkout_at: int
"""
- If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
+ Lodging check-out time. Measured in seconds since the Unix epoch.
"""
- boleto: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBoleto"
- ]
+ customer_service_phone_number: NotRequired[str]
"""
- If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
+ The customer service phone number of the lodging company.
"""
- card: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCard"
- ]
+ daily_room_rate_amount: NotRequired[int]
"""
- Configuration for any card payments attempted on this PaymentIntent.
+ The daily lodging room rate.
"""
- card_present: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardPresent"
+ delivery: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDelivery"
]
"""
- If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ Delivery details for this purchase.
"""
- cashapp: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCashapp"
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "gift_shop",
+ "laundry",
+ "mini_bar",
+ "other",
+ "restaurant",
+ "telephone",
+ ]
+ ]
]
"""
- If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
+ List of additional charges being billed.
"""
- crypto: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCrypto"
- ]
+ fire_safety_act_compliance: NotRequired[bool]
"""
- If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
+ Indicates whether the lodging location is compliant with the Fire Safety Act.
"""
- customer_balance: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalance"
- ]
+ name: NotRequired[str]
"""
- If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
+ The name of the lodging location.
"""
- eps: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsEps"
- ]
+ no_show: NotRequired[bool]
"""
- If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
+ Indicates if the customer did not keep their booking while failing to cancel the reservation.
"""
- fpx: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsFpx"
- ]
+ number_of_rooms: NotRequired[int]
"""
- If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
+ The number of rooms on the booking
"""
- giropay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGiropay"
+ passengers: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsLodgingPassenger"]
]
"""
- If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
+ The details of the passengers in the travel reservation
"""
- grabpay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGrabpay"
- ]
+ property_phone_number: NotRequired[str]
"""
- If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
+ The phone number of the lodging location.
+ """
+ room_class: NotRequired[str]
+ """
+ The room class for this purchase.
+ """
+ room_nights: NotRequired[int]
+ """
+ The number of room nights
+ """
+ total_room_tax_amount: NotRequired[int]
+ """
+ The total tax amount associating with the room reservation.
+ """
+ total_tax_amount: NotRequired[int]
+ """
+ The total tax amount
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the lodging reservation.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost"
+ ]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumAccommodation(
+ TypedDict,
+):
+ accommodation_type: NotRequired[
+ Literal[
+ "apartment",
+ "cabana",
+ "house",
+ "penthouse",
+ "room",
+ "standard",
+ "suite",
+ "villa",
+ ]
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ Literal["hostel", "hotel", "owner", "rental_agency"]
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumHostAddress(
+ TypedDict
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ Literal[
+ "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant"
+ ]
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List["PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTax"]
+ ]
+ """
+ Tax details.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsLodgingDatumTotalTaxTax(
+ TypedDict
+):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsSubscription(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ auto_renewal: NotRequired[bool]
+ """
+ Info whether the subscription will be auto renewed upon expiry.
+ """
+ billing_interval: NotRequired[
+ "PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval"
+ ]
+ """
+ Subscription billing details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Subscription end time. Measured in seconds since the Unix epoch.
+ """
+ name: str
+ """
+ Name of the product on subscription. e.g. Apple Music Subscription
+ """
+ starts_at: NotRequired[int]
+ """
+ Subscription start time. Measured in seconds since the Unix epoch.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsSubscriptionAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval(
+ TypedDict,
+):
+ count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodData(TypedDict):
+ acss_debit: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataAcssDebit"
+ ]
+ """
+ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
+ """
+ affirm: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAffirm"]
+ """
+ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
+ """
+ afterpay_clearpay: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay"
+ ]
+ """
+ If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
+ """
+ alipay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAlipay"]
+ """
+ If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
+ """
+ allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
+ """
+ This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
+ """
+ alma: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAlma"]
+ """
+ If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
+ """
+ amazon_pay: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataAmazonPay"
+ ]
+ """
+ If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
+ """
+ au_becs_debit: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit"
+ ]
+ """
+ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
+ """
+ bacs_debit: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataBacsDebit"
+ ]
+ """
+ If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
+ """
+ bancontact: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataBancontact"
+ ]
+ """
+ If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
+ """
+ billie: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBillie"]
+ """
+ If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
+ """
+ billing_details: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataBillingDetails"
+ ]
+ """
+ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
+ """
+ blik: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBlik"]
+ """
+ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
+ """
+ boleto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataBoleto"]
+ """
+ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
+ """
+ cashapp: NotRequired["PaymentIntentCreateParamsPaymentMethodDataCashapp"]
+ """
+ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
+ """
+ crypto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataCrypto"]
+ """
+ If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
+ """
+ customer_balance: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataCustomerBalance"
+ ]
+ """
+ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
+ """
+ eps: NotRequired["PaymentIntentCreateParamsPaymentMethodDataEps"]
+ """
+ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
+ """
+ fpx: NotRequired["PaymentIntentCreateParamsPaymentMethodDataFpx"]
+ """
+ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
+ """
+ giropay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGiropay"]
+ """
+ If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
+ """
+ gopay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGopay"]
+ """
+ If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
+ """
+ grabpay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGrabpay"]
+ """
+ If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
+ """
+ id_bank_transfer: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataIdBankTransfer"
+ ]
+ """
+ If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
+ """
+ ideal: NotRequired["PaymentIntentCreateParamsPaymentMethodDataIdeal"]
+ """
+ If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
+ """
+ interac_present: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataInteracPresent"
+ ]
+ """
+ If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
+ """
+ kakao_pay: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataKakaoPay"
+ ]
+ """
+ If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
+ """
+ klarna: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKlarna"]
+ """
+ If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
+ """
+ konbini: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKonbini"]
+ """
+ If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
+ """
+ kr_card: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKrCard"]
+ """
+ If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
+ """
+ link: NotRequired["PaymentIntentCreateParamsPaymentMethodDataLink"]
+ """
+ If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
+ """
+ mb_way: NotRequired["PaymentIntentCreateParamsPaymentMethodDataMbWay"]
+ """
+ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ mobilepay: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataMobilepay"
+ ]
+ """
+ If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
+ """
+ multibanco: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataMultibanco"
+ ]
+ """
+ If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
+ """
+ naver_pay: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataNaverPay"
+ ]
+ """
+ If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
+ """
+ nz_bank_account: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataNzBankAccount"
+ ]
+ """
+ If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
+ """
+ oxxo: NotRequired["PaymentIntentCreateParamsPaymentMethodDataOxxo"]
+ """
+ If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
+ """
+ p24: NotRequired["PaymentIntentCreateParamsPaymentMethodDataP24"]
+ """
+ If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
+ """
+ pay_by_bank: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataPayByBank"
+ ]
+ """
+ If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
+ """
+ payco: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPayco"]
+ """
+ If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
+ """
+ paynow: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaynow"]
+ """
+ If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
+ """
+ paypal: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaypal"]
+ """
+ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
+ """
+ paypay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPaypay"]
+ """
+ If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
+ """
+ payto: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPayto"]
+ """
+ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
+ """
+ pix: NotRequired["PaymentIntentCreateParamsPaymentMethodDataPix"]
+ """
+ If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
+ """
+ promptpay: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataPromptpay"
+ ]
+ """
+ If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
+ """
+ qris: NotRequired["PaymentIntentCreateParamsPaymentMethodDataQris"]
+ """
+ If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
+ """
+ radar_options: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataRadarOptions"
+ ]
+ """
+ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
+ """
+ rechnung: NotRequired["PaymentIntentCreateParamsPaymentMethodDataRechnung"]
+ """
+ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
+ """
+ revolut_pay: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataRevolutPay"
+ ]
+ """
+ If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
+ """
+ samsung_pay: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataSamsungPay"
+ ]
+ """
+ If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
+ """
+ satispay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSatispay"]
+ """
+ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
+ """
+ sepa_debit: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataSepaDebit"
+ ]
+ """
+ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
+ """
+ shopeepay: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataShopeepay"
+ ]
+ """
+ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
+ """
+ sofort: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSofort"]
+ """
+ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
+ """
+ stripe_balance: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataStripeBalance"
+ ]
+ """
+ This hash contains details about the Stripe balance payment method.
+ """
+ swish: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSwish"]
+ """
+ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
+ """
+ twint: NotRequired["PaymentIntentCreateParamsPaymentMethodDataTwint"]
+ """
+ If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
+ """
+ type: Literal[
+ "acss_debit",
+ "affirm",
+ "afterpay_clearpay",
+ "alipay",
+ "alma",
+ "amazon_pay",
+ "au_becs_debit",
+ "bacs_debit",
+ "bancontact",
+ "billie",
+ "blik",
+ "boleto",
+ "cashapp",
+ "crypto",
+ "customer_balance",
+ "eps",
+ "fpx",
+ "giropay",
+ "gopay",
+ "grabpay",
+ "id_bank_transfer",
+ "ideal",
+ "kakao_pay",
+ "klarna",
+ "konbini",
+ "kr_card",
+ "link",
+ "mb_way",
+ "mobilepay",
+ "multibanco",
+ "naver_pay",
+ "nz_bank_account",
+ "oxxo",
+ "p24",
+ "pay_by_bank",
+ "payco",
+ "paynow",
+ "paypal",
+ "paypay",
+ "payto",
+ "pix",
+ "promptpay",
+ "qris",
+ "rechnung",
+ "revolut_pay",
+ "samsung_pay",
+ "satispay",
+ "sepa_debit",
+ "shopeepay",
+ "sofort",
+ "stripe_balance",
+ "swish",
+ "twint",
+ "us_bank_account",
+ "wechat_pay",
+ "zip",
+ ]
+ """
+ The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
+ """
+ us_bank_account: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataUsBankAccount"
+ ]
+ """
+ If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
+ """
+ wechat_pay: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodDataWechatPay"
+ ]
+ """
+ If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
+ """
+ zip: NotRequired["PaymentIntentCreateParamsPaymentMethodDataZip"]
+ """
+ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataAcssDebit(TypedDict):
+ account_number: str
+ """
+ Customer's bank account number.
+ """
+ institution_number: str
+ """
+ Institution number of the customer's bank.
+ """
+ transit_number: str
+ """
+ Transit number of the customer's bank.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataAffirm(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataAlipay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataAlma(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataAmazonPay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit(TypedDict):
+ account_number: str
+ """
+ The account number for the bank account.
+ """
+ bsb_number: str
+ """
+ Bank-State-Branch number of the bank account.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataBacsDebit(TypedDict):
+ account_number: NotRequired[str]
+ """
+ Account number of the bank account that the funds will be debited from.
+ """
+ sort_code: NotRequired[str]
+ """
+ Sort code of the bank account. (e.g., `10-20-30`)
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataBancontact(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataBillie(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataBillingDetails(TypedDict):
+ address: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress"
+ ]
+ """
+ Billing address.
+ """
+ email: NotRequired["Literal['']|str"]
+ """
+ Email address.
+ """
+ name: NotRequired["Literal['']|str"]
+ """
+ Full name.
+ """
+ phone: NotRequired["Literal['']|str"]
+ """
+ Billing phone number (including extension).
+ """
+ tax_id: NotRequired[str]
+ """
+ Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataBillingDetailsAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataBlik(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataBoleto(TypedDict):
+ tax_id: str
+ """
+ The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataCashapp(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataCrypto(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataCustomerBalance(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataEps(TypedDict):
+ bank: NotRequired[
+ Literal[
+ "arzte_und_apotheker_bank",
+ "austrian_anadi_bank_ag",
+ "bank_austria",
+ "bankhaus_carl_spangler",
+ "bankhaus_schelhammer_und_schattera_ag",
+ "bawag_psk_ag",
+ "bks_bank_ag",
+ "brull_kallmus_bank_ag",
+ "btv_vier_lander_bank",
+ "capital_bank_grawe_gruppe_ag",
+ "deutsche_bank_ag",
+ "dolomitenbank",
+ "easybank_ag",
+ "erste_bank_und_sparkassen",
+ "hypo_alpeadriabank_international_ag",
+ "hypo_bank_burgenland_aktiengesellschaft",
+ "hypo_noe_lb_fur_niederosterreich_u_wien",
+ "hypo_oberosterreich_salzburg_steiermark",
+ "hypo_tirol_bank_ag",
+ "hypo_vorarlberg_bank_ag",
+ "marchfelder_bank",
+ "oberbank_ag",
+ "raiffeisen_bankengruppe_osterreich",
+ "schoellerbank_ag",
+ "sparda_bank_wien",
+ "volksbank_gruppe",
+ "volkskreditbank_ag",
+ "vr_bank_braunau",
+ ]
+ ]
+ """
+ The customer's bank.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataFpx(TypedDict):
+ account_holder_type: NotRequired[Literal["company", "individual"]]
+ """
+ Account holder type for FPX transaction
+ """
+ bank: Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bsn",
+ "cimb",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ]
+ """
+ The customer's bank.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataGiropay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataGopay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataGrabpay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataIdBankTransfer(TypedDict):
+ bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ """
+ Bank where the account is held.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataIdeal(TypedDict):
+ bank: NotRequired[
+ Literal[
+ "abn_amro",
+ "asn_bank",
+ "bunq",
+ "buut",
+ "finom",
+ "handelsbanken",
+ "ing",
+ "knab",
+ "mollie",
+ "moneyou",
+ "n26",
+ "nn",
+ "rabobank",
+ "regiobank",
+ "revolut",
+ "sns_bank",
+ "triodos_bank",
+ "van_lanschot",
+ "yoursafe",
+ ]
+ ]
+ """
+ The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataInteracPresent(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataKakaoPay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataKlarna(TypedDict):
+ dob: NotRequired["PaymentIntentCreateParamsPaymentMethodDataKlarnaDob"]
+ """
+ Customer's date of birth
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataKlarnaDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataKonbini(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataKrCard(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataLink(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataMbWay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataMobilepay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataMultibanco(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataNaverPay(TypedDict):
+ funding: NotRequired[Literal["card", "points"]]
+ """
+ Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataNzBankAccount(TypedDict):
+ account_holder_name: NotRequired[str]
+ """
+ The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
+ """
+ account_number: str
+ """
+ The account number for the bank account.
+ """
+ bank_code: str
+ """
+ The numeric code for the bank account's bank.
+ """
+ branch_code: str
+ """
+ The numeric code for the bank account's bank branch.
+ """
+ reference: NotRequired[str]
+ suffix: str
+ """
+ The suffix of the bank account number.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataOxxo(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataP24(TypedDict):
+ bank: NotRequired[
+ Literal[
+ "alior_bank",
+ "bank_millennium",
+ "bank_nowy_bfg_sa",
+ "bank_pekao_sa",
+ "banki_spbdzielcze",
+ "blik",
+ "bnp_paribas",
+ "boz",
+ "citi_handlowy",
+ "credit_agricole",
+ "envelobank",
+ "etransfer_pocztowy24",
+ "getin_bank",
+ "ideabank",
+ "ing",
+ "inteligo",
+ "mbank_mtransfer",
+ "nest_przelew",
+ "noble_pay",
+ "pbac_z_ipko",
+ "plus_bank",
+ "santander_przelew24",
+ "tmobile_usbugi_bankowe",
+ "toyota_bank",
+ "velobank",
+ "volkswagen_bank",
+ ]
+ ]
+ """
+ The customer's bank.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataPayByBank(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataPayco(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataPaynow(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataPaypal(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataPaypay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataPayto(TypedDict):
+ account_number: NotRequired[str]
+ """
+ The account number for the bank account.
+ """
+ bsb_number: NotRequired[str]
+ """
+ Bank-State-Branch number of the bank account.
+ """
+ pay_id: NotRequired[str]
+ """
+ The PayID alias for the bank account.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataPix(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataPromptpay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataQris(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataRadarOptions(TypedDict):
+ session: NotRequired[str]
+ """
+ A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataRechnung(TypedDict):
+ dob: "PaymentIntentCreateParamsPaymentMethodDataRechnungDob"
+ """
+ Customer's date of birth
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataRechnungDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataRevolutPay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataSamsungPay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataSatispay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict):
+ iban: str
+ """
+ IBAN of the bank account.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataShopeepay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataSofort(TypedDict):
+ country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
+ """
+ Two-letter ISO code representing the country the bank account is located in.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataStripeBalance(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataSwish(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataTwint(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataUsBankAccount(TypedDict):
+ account_holder_type: NotRequired[Literal["company", "individual"]]
+ """
+ Account holder type: individual or company.
+ """
+ account_number: NotRequired[str]
+ """
+ Account number of the bank account.
+ """
+ account_type: NotRequired[Literal["checking", "savings"]]
+ """
+ Account type: checkings or savings. Defaults to checking if omitted.
+ """
+ financial_connections_account: NotRequired[str]
+ """
+ The ID of a Financial Connections Account to use as a payment method.
+ """
+ routing_number: NotRequired[str]
+ """
+ Routing number of the bank account.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodDataWechatPay(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodDataZip(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict):
+ acss_debit: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit"
+ ]
+ """
+ If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
+ """
+ affirm: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAffirm"
+ ]
+ """
+ If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
+ """
+ afterpay_clearpay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAfterpayClearpay"
+ ]
+ """
+ If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
+ """
+ alipay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAlipay"
+ ]
+ """
+ If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
+ """
+ alma: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAlma"
+ ]
+ """
+ If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
+ """
+ amazon_pay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay"
+ ]
+ """
+ If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
+ """
+ au_becs_debit: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit"
+ ]
+ """
+ If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
+ """
+ bacs_debit: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit"
+ ]
+ """
+ If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
+ """
+ bancontact: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBancontact"
+ ]
+ """
+ If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
+ """
+ billie: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBillie"
+ ]
+ """
+ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
+ """
+ blik: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBlik"
+ ]
+ """
+ If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
+ """
+ boleto: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsBoleto"
+ ]
+ """
+ If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
+ """
+ card: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCard"
+ ]
+ """
+ Configuration for any card payments attempted on this PaymentIntent.
+ """
+ card_present: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardPresent"
+ ]
+ """
+ If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ """
+ cashapp: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCashapp"
+ ]
+ """
+ If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
+ """
+ crypto: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCrypto"
+ ]
+ """
+ If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
+ """
+ customer_balance: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalance"
+ ]
+ """
+ If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
+ """
+ eps: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsEps"
+ ]
+ """
+ If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
+ """
+ fpx: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsFpx"
+ ]
+ """
+ If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
+ """
+ giropay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGiropay"
+ ]
+ """
+ If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
+ """
+ gopay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGopay"
+ ]
+ """
+ If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
+ """
+ grabpay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGrabpay"
+ ]
+ """
+ If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
+ """
+ id_bank_transfer: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsIdBankTransfer"
+ ]
+ """
+ If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
+ """
+ ideal: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsIdeal"
+ ]
+ """
+ If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
+ """
+ interac_present: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent"
+ ]
+ """
+ If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ """
+ kakao_pay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay"
+ ]
+ """
+ If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
+ """
+ klarna: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKlarna"
+ ]
+ """
+ If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
+ """
+ konbini: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKonbini"
+ ]
+ """
+ If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
+ """
+ kr_card: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKrCard"
+ ]
+ """
+ If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
+ """
+ link: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsLink"
+ ]
+ """
+ If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
+ """
+ mb_way: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMbWay"
+ ]
+ """
+ If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
+ """
+ mobilepay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMobilepay"
+ ]
+ """
+ If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
+ """
+ multibanco: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMultibanco"
+ ]
+ """
+ If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
+ """
+ naver_pay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsNaverPay"
+ ]
+ """
+ If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
+ """
+ nz_bank_account: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsNzBankAccount"
+ ]
+ """
+ If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
+ """
+ oxxo: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsOxxo"
+ ]
+ """
+ If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
+ """
+ p24: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsP24"
+ ]
+ """
+ If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
+ """
+ pay_by_bank: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayByBank"
+ ]
+ """
+ If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
+ """
+ payco: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayco"
+ ]
+ """
+ If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
+ """
+ paynow: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaynow"
+ ]
+ """
+ If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
+ """
+ paypal: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaypal"
+ ]
+ """
+ If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
+ """
+ paypay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaypay"
+ ]
+ """
+ If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
+ """
+ payto: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayto"
+ ]
+ """
+ If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
+ """
+ pix: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPix"
+ ]
+ """
+ If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
+ """
+ promptpay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPromptpay"
+ ]
+ """
+ If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
+ """
+ qris: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsQris"
+ ]
+ """
+ If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
+ """
+ rechnung: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsRechnung"
+ ]
+ """
+ If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
+ """
+ revolut_pay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay"
+ ]
+ """
+ If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
+ """
+ samsung_pay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay"
+ ]
+ """
+ If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
+ """
+ satispay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSatispay"
+ ]
+ """
+ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
+ """
+ sepa_debit: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit"
+ ]
+ """
+ If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
+ """
+ shopeepay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsShopeepay"
+ ]
+ """
+ If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
+ """
+ sofort: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSofort"
+ ]
+ """
+ If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
+ """
+ stripe_balance: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsStripeBalance"
+ ]
+ """
+ If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
+ """
+ swish: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSwish"
+ ]
+ """
+ If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
+ """
+ twint: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsTwint"
+ ]
+ """
+ If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
+ """
+ us_bank_account: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount"
+ ]
+ """
+ If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
+ """
+ wechat_pay: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsWechatPay"
+ ]
+ """
+ If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
+ """
+ zip: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsZip"
+ ]
+ """
+ If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+ verification_method: NotRequired[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Bank account verification method.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions(
+ TypedDict,
+):
+ custom_mandate_url: NotRequired["Literal['']|str"]
+ """
+ A URL for custom mandate text to render during confirmation step.
+ The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
+ or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
+ """
+ interval_description: NotRequired[str]
+ """
+ Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
+ """
+ payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
+ """
+ Payment schedule for the mandate.
+ """
+ transaction_type: NotRequired[Literal["business", "personal"]]
+ """
+ Transaction type of the mandate.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsAffirm(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ preferred_locale: NotRequired[str]
+ """
+ Preferred language of the Affirm authorization page that the customer is redirected to.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ reference: NotRequired[str]
+ """
+ An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
+ This field differs from the statement descriptor and item name.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsAlipay(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsAlma(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions(
+ TypedDict,
+):
+ reference_prefix: NotRequired["Literal['']|str"]
+ """
+ Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsBancontact(TypedDict):
+ preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsBillie(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsBlik(TypedDict):
+ code: NotRequired[str]
+ """
+ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
+ """
+ setup_future_usage: NotRequired["Literal['']|Literal['none']"]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsBoleto(TypedDict):
+ expires_after_days: NotRequired[int]
+ """
+ The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCard(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ cvc_token: NotRequired[str]
+ """
+ A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
+ """
+ installments: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments"
+ ]
+ """
+ Installment configuration for payments attempted on this PaymentIntent.
+
+ For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
+ """
+ mandate_options: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate for cards issued in India.
+ """
+ moto: NotRequired[bool]
+ """
+ When specified, this parameter indicates that a transaction will be marked
+ as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
+ parameter can only be provided during confirmation.
+ """
+ network: NotRequired[
+ Literal[
+ "amex",
+ "cartes_bancaires",
+ "diners",
+ "discover",
+ "eftpos_au",
+ "girocard",
+ "interac",
+ "jcb",
+ "link",
+ "mastercard",
+ "unionpay",
+ "unknown",
+ "visa",
+ ]
+ ]
+ """
+ Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
+ """
+ request_decremental_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
+ """
+ request_extended_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
+ """
+ request_incremental_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
+ """
+ request_multicapture: NotRequired[Literal["if_available", "never"]]
+ """
+ Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
+ """
+ request_overcapture: NotRequired[Literal["if_available", "never"]]
+ """
+ Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
+ """
+ request_partial_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request partial authorization on this PaymentIntent.
+ """
+ request_three_d_secure: NotRequired[
+ Literal["any", "automatic", "challenge"]
+ ]
+ """
+ We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ """
+ require_cvc_recollection: NotRequired[bool]
+ """
+ When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ statement_descriptor_suffix_kana: NotRequired["Literal['']|str"]
+ """
+ Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
+ """
+ statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"]
+ """
+ Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
+ """
+ statement_details: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetails"
+ ]
+ """
+ Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
+ """
+ three_d_secure: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure"
+ ]
+ """
+ If 3D Secure authentication was performed with a third-party provider,
+ the authentication details to use for this payment.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments(TypedDict):
+ enabled: NotRequired[bool]
+ """
+ Setting to true enables installments for this PaymentIntent.
+ This will cause the response to contain a list of available installment plans.
+ Setting to false will prevent any selected plan from applying to a charge.
+ """
+ plan: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardInstallmentsPlan"
+ ]
+ """
+ The selected installment plan to use for this payment attempt.
+ This parameter can only be provided during confirmation.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCardInstallmentsPlan(
+ TypedDict,
+):
+ count: NotRequired[int]
+ """
+ For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
+ """
+ interval: NotRequired[Literal["month"]]
+ """
+ For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
+ One of `month`.
+ """
+ type: Literal["bonus", "fixed_count", "revolving"]
+ """
+ Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Literal["fixed", "maximum"]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ interval: Literal["day", "month", "sporadic", "week", "year"]
+ """
+ Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
+ """
+ interval_count: NotRequired[int]
+ """
+ The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
+ """
+ reference: str
+ """
+ Unique identifier for the mandate or subscription.
+ """
+ start_date: int
+ """
+ Start date of the mandate or subscription. Start date should not be lesser than yesterday.
+ """
+ supported_types: NotRequired[List[Literal["india"]]]
+ """
+ Specifies the type of mandates supported. Possible values are `india`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetails(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetailsAddress"
+ ]
+ """
+ Please pass in an address that is within your Stripe user account country
+ """
+ phone: NotRequired[str]
+ """
+ Phone number (e.g., a toll-free number that customers can call)
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCardStatementDetailsAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict):
+ ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]]
+ """
+ The `transStatus` returned from the card Issuer's ACS in the ARes.
+ """
+ cryptogram: str
+ """
+ The cryptogram, also known as the "authentication value" (AAV, CAVV or
+ AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
+ (Most 3D Secure providers will return the base64-encoded version, which
+ is what you should specify here.)
+ """
+ electronic_commerce_indicator: NotRequired[
+ Literal["01", "02", "05", "06", "07"]
+ ]
+ """
+ The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
+ provider and indicates what degree of authentication was performed.
+ """
+ exemption_indicator: NotRequired[Literal["low_risk", "none"]]
+ """
+ The exemption requested via 3DS and accepted by the issuer at authentication time.
+ """
+ network_options: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions"
+ ]
+ """
+ Network specific 3DS fields. Network specific arguments require an
+ explicit card brand choice. The parameter `payment_method_options.card.network``
+ must be populated accordingly
+ """
+ requestor_challenge_indicator: NotRequired[str]
+ """
+ The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
+ AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
+ """
+ transaction_id: str
+ """
+ For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
+ Transaction ID (dsTransID).
+ """
+ version: Literal["1.0.2", "2.1.0", "2.2.0"]
+ """
+ The version of 3D Secure that was performed.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions(
+ TypedDict,
+):
+ cartes_bancaires: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires"
+ ]
+ """
+ Cartes Bancaires-specific 3DS fields.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires(
+ TypedDict,
+):
+ cb_avalgo: Literal["0", "1", "2", "3", "4", "A"]
+ """
+ The cryptogram calculation algorithm used by the card Issuer's ACS
+ to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
+ messageExtension: CB-AVALGO
+ """
+ cb_exemption: NotRequired[str]
+ """
+ The exemption indicator returned from Cartes Bancaires in the ARes.
+ message extension: CB-EXEMPTION; string (4 characters)
+ This is a 3 byte bitmap (low significant byte first and most significant
+ bit first) that has been Base64 encoded
+ """
+ cb_score: NotRequired[int]
+ """
+ The risk score returned from Cartes Bancaires in the ARes.
+ message extension: CB-SCORE; numeric value 0-99
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCardPresent(TypedDict):
+ capture_method: NotRequired[Literal["manual", "manual_preferred"]]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ request_extended_authorization: NotRequired[bool]
+ """
+ Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
+ """
+ request_incremental_authorization_support: NotRequired[bool]
+ """
+ Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
+ """
+ routing: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting"
+ ]
+ """
+ Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting(
+ TypedDict,
+):
+ requested_priority: NotRequired[Literal["domestic", "international"]]
+ """
+ Routing requested priority
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCashapp(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCrypto(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalance(TypedDict):
+ bank_transfer: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
+ ]
+ """
+ Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ """
+ funding_type: NotRequired[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer(
+ TypedDict,
+):
+ eu_bank_transfer: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
+ ]
+ """
+ Configuration for the eu_bank_transfer funding type.
+ """
+ requested_address_types: NotRequired[
+ List[
+ Literal[
+ "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
+ ]
+ ]
+ ]
+ """
+ List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
+
+ Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
+ """
+ type: Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ """
+ The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+ TypedDict,
+):
+ country: str
+ """
+ The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsEps(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsFpx(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsGiropay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsGopay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none", "off_session"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsGrabpay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsIdBankTransfer(TypedDict):
+ expires_after: NotRequired[int]
+ """
+ The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
+ """
+ expires_at: NotRequired[int]
+ """
+ The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsIdeal(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent(TypedDict):
+ pass
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
- ideal: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsIdeal"
- ]
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarna(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
"""
- If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
"""
- interac_present: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent"
+ on_demand: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand"
]
"""
- If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ On-demand details if setting up or charging an on-demand payment.
"""
- kakao_pay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay"
+ preferred_locale: NotRequired[
+ Literal[
+ "cs-CZ",
+ "da-DK",
+ "de-AT",
+ "de-CH",
+ "de-DE",
+ "el-GR",
+ "en-AT",
+ "en-AU",
+ "en-BE",
+ "en-CA",
+ "en-CH",
+ "en-CZ",
+ "en-DE",
+ "en-DK",
+ "en-ES",
+ "en-FI",
+ "en-FR",
+ "en-GB",
+ "en-GR",
+ "en-IE",
+ "en-IT",
+ "en-NL",
+ "en-NO",
+ "en-NZ",
+ "en-PL",
+ "en-PT",
+ "en-RO",
+ "en-SE",
+ "en-US",
+ "es-ES",
+ "es-US",
+ "fi-FI",
+ "fr-BE",
+ "fr-CA",
+ "fr-CH",
+ "fr-FR",
+ "it-CH",
+ "it-IT",
+ "nb-NO",
+ "nl-BE",
+ "nl-NL",
+ "pl-PL",
+ "pt-PT",
+ "ro-RO",
+ "sv-FI",
+ "sv-SE",
+ ]
]
"""
- If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
+ Preferred language of the Klarna authorization page that the customer is redirected to
"""
- klarna: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKlarna"
+ setup_future_usage: NotRequired[
+ Literal["none", "off_session", "on_session"]
]
"""
- If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
- konbini: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKonbini"
+ subscriptions: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription]"
]
"""
- If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
+ Subscription details if setting up or charging a subscription.
"""
- kr_card: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKrCard"
+ supplementary_purchase_data: NotRequired[
+ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData"
]
"""
- If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
+ Supplementary Purchase Data for the corresponding Klarna payment
"""
- link: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsLink"
- ]
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict):
+ average_amount: NotRequired[int]
"""
- If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
+ Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
"""
- mb_way: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMbWay"
- ]
+ maximum_amount: NotRequired[int]
"""
- If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
+ The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
"""
- mobilepay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMobilepay"
- ]
+ minimum_amount: NotRequired[int]
"""
- If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
+ The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
"""
- multibanco: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsMultibanco"
- ]
+ purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
"""
- If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
+ Interval at which the customer is making purchases
"""
- naver_pay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsNaverPay"
- ]
+ purchase_interval_count: NotRequired[int]
"""
- If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
+ The number of `purchase_interval` between charges
"""
- nz_bank_account: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsNzBankAccount"
- ]
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
"""
- If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
+ Unit of time between subscription charges.
"""
- oxxo: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsOxxo"
- ]
+ interval_count: NotRequired[int]
"""
- If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
+ The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
"""
- p24: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsP24"
- ]
+ name: NotRequired[str]
"""
- If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
+ Name for subscription.
"""
- pay_by_bank: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayByBank"
+ next_billing: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
]
"""
- If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
+ Describes the upcoming charge for this subscription.
"""
- payco: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayco"
- ]
+ reference: str
"""
- If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
+ A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
"""
- paynow: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaynow"
- ]
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
+ TypedDict,
+):
+ amount: int
"""
- If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
+ The amount of the next charge for the subscription.
"""
- paypal: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPaypal"
- ]
+ date: str
"""
- If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
+ The date of the next charge for the subscription in YYYY-MM-DD format.
"""
- payto: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPayto"
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData(
+ TypedDict,
+):
+ bus_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]"
]
"""
- If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
+ Supplementary bus reservation details.
"""
- pix: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPix"
+ event_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]"
]
"""
- If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
+ Supplementary event reservation details.
"""
- promptpay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsPromptpay"
+ ferry_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]"
]
"""
- If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
+ Supplementary ferry reservation details.
"""
- revolut_pay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay"
+ insurances: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]"
]
"""
- If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
+ Supplementary insurance details.
"""
- samsung_pay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSamsungPay"
+ marketplace_sellers: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]"
]
"""
- If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
+ Supplementary marketplace seller details.
"""
- satispay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSatispay"
+ round_trip_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]"
]
"""
- If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
+ Supplementary round trip reservation details.
"""
- sepa_debit: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit"
+ train_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]"
]
"""
- If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
+ Supplementary train reservation details.
"""
- sofort: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSofort"
+ vouchers: NotRequired[
+ "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]"
]
"""
- If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
+ Voucher details, such as a gift card or discount code.
"""
- swish: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSwish"
- ]
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
"""
- If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
+ Name of associated or partner company for the service.
"""
- twint: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsTwint"
+ arrival: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival"
]
"""
- If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
+ Arrival details.
"""
- us_bank_account: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccount"
- ]
+ carrier_name: NotRequired[str]
"""
- If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
+ Name of transportation company.
"""
- wechat_pay: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsWechatPay"
- ]
+ currency: NotRequired[str]
"""
- If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
+ Currency.
"""
- zip: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsZip"
+ departure: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture"
]
"""
- If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
+ Departure details.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsAcssDebit(TypedDict):
- mandate_options: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions"
+ insurances: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance"
+ ]
]
"""
- Additional fields for Mandate creation
- """
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ List of insurances for this reservation.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ passengers: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger"
+ ]
+ ]
"""
- target_date: NotRequired[str]
+ List of passengers that this reservation applies to.
"""
- Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ price: NotRequired[int]
"""
- verification_method: NotRequired[
- Literal["automatic", "instant", "microdeposits"]
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
]
"""
- Bank account verification method.
+ Ticket class.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions(
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival(
TypedDict,
):
- custom_mandate_url: NotRequired["Literal['']|str"]
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress"
+ ]
"""
- A URL for custom mandate text to render during confirmation step.
- The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
- or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
+ Address of the arrival location.
"""
- interval_description: NotRequired[str]
+ arrival_location: NotRequired[str]
"""
- Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
+ Identifier name or reference for the arrival location.
"""
- payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- Payment schedule for the mandate.
+ The city or town.
"""
- transaction_type: NotRequired[Literal["business", "personal"]]
+ country: NotRequired[str]
"""
- Transaction type of the mandate.
+ The country in ISO 3166-1 alpha-2 format.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsAffirm(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ postal_code: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ The postal code formatted according to country.
"""
- preferred_locale: NotRequired[str]
+ region: NotRequired[str]
"""
- Preferred language of the Affirm authorization page that the customer is redirected to.
+ The state, county, province, or region formatted according to country.
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ street_address: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Line 1 of the street address.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
- Controls when the funds are captured from the customer's account.
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress"
+ ]
"""
- reference: NotRequired[str]
+ Address of the departure location.
"""
- An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
- This field differs from the statement descriptor and item name.
+ departs_at: NotRequired[int]
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ Timestamp of departure.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ departure_location: NotRequired[str]
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsAlipay(TypedDict):
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
- ]
+ Identifier name or reference for the origin location.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsAlma(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ The city or town.
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ country: NotRequired[str]
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ The country in ISO 3166-1 alpha-2 format.
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ postal_code: NotRequired[str]
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
- ]
+ The postal code formatted according to country.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ region: NotRequired[str]
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit(TypedDict):
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ The state, county, province, or region formatted according to country.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ street_address: NotRequired[str]
"""
- target_date: NotRequired[str]
+ Line 1 of the street address.
"""
- Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit(TypedDict):
- mandate_options: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions"
- ]
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
"""
- Additional fields for Mandate creation
+ Insurance currency.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Type of insurance.
"""
- target_date: NotRequired[str]
+ price: NotRequired[int]
"""
- Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ Price of insurance in cents.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions(
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger(
TypedDict,
):
- reference_prefix: NotRequired["Literal['']|str"]
+ family_name: NotRequired[str]
"""
- Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsBancontact(TypedDict):
- preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail(
+ TypedDict,
+):
+ access_controlled_venue: NotRequired[bool]
"""
- Preferred language of the Bancontact authorization page that the customer is redirected to.
+ Indicates if the tickets are digitally checked when entering the venue.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress"
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Address of the event.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsBillie(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ affiliate_name: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Name of associated or partner company for the service.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsBlik(TypedDict):
- code: NotRequired[str]
+ ends_at: NotRequired[int]
"""
- The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
+ End timestamp of the event.
"""
- setup_future_usage: NotRequired["Literal['']|Literal['none']"]
+ event_company_name: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Company selling the ticket.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsBoleto(TypedDict):
- expires_after_days: NotRequired[int]
+ event_name: NotRequired[str]
"""
- The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
+ Name of the event.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
+ event_type: NotRequired[
+ Literal[
+ "concert",
+ "conference",
+ "digital_education",
+ "expo",
+ "festival",
+ "in_person_education",
+ "sport",
+ "tour",
+ ]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Type of the event.
+ """
+ insurances: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance"
+ ]
+ ]
+ """
+ List of insurances for this event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Start timestamp of the event.
+ """
+ venue_name: NotRequired[str]
+ """
+ Name of the venue where the event takes place.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsCard(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
- Controls when the funds are captured from the customer's account.
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
+ """
+ Insurance currency.
"""
- cvc_token: NotRequired[str]
+ insurance_company_name: NotRequired[str]
"""
- A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
+ Name of the company providing the insurance.
"""
- installments: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments"
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
]
"""
- Installment configuration for payments attempted on this PaymentIntent.
-
- For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
+ Type of insurance.
"""
- mandate_options: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions"
- ]
+ price: NotRequired[int]
"""
- Configuration options for setting up an eMandate for cards issued in India.
+ Price of insurance in cents.
"""
- moto: NotRequired[bool]
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
"""
- When specified, this parameter indicates that a transaction will be marked
- as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
- parameter can only be provided during confirmation.
+ Name of associated or partner company for the service.
"""
- network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ arrival: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival"
]
"""
- Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
+ Arrival details.
"""
- request_extended_authorization: NotRequired[
- Literal["if_available", "never"]
- ]
+ carrier_name: NotRequired[str]
"""
- Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
+ Name of transportation company.
"""
- request_incremental_authorization: NotRequired[
- Literal["if_available", "never"]
- ]
+ currency: NotRequired[str]
"""
- Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
+ Currency.
"""
- request_multicapture: NotRequired[Literal["if_available", "never"]]
+ departure: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture"
+ ]
"""
- Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
+ Departure details.
"""
- request_overcapture: NotRequired[Literal["if_available", "never"]]
+ insurances: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance"
+ ]
+ ]
"""
- Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
+ List of insurances for this reservation.
"""
- request_three_d_secure: NotRequired[
- Literal["any", "automatic", "challenge"]
+ passengers: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger"
+ ]
]
"""
- We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ List of passengers that this reservation applies to.
"""
- require_cvc_recollection: NotRequired[bool]
+ price: NotRequired[int]
"""
- When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
+ Price in cents.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ Ticket class.
+ """
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- statement_descriptor_suffix_kana: NotRequired["Literal['']|str"]
+ The city or town.
"""
- Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
+ country: NotRequired[str]
"""
- statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"]
+ The country in ISO 3166-1 alpha-2 format.
"""
- Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
+ postal_code: NotRequired[str]
"""
- three_d_secure: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure"
- ]
+ The postal code formatted according to country.
"""
- If 3D Secure authentication was performed with a third-party provider,
- the authentication details to use for this payment.
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsCardInstallments(TypedDict):
- enabled: NotRequired[bool]
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress"
+ ]
"""
- Setting to true enables installments for this PaymentIntent.
- This will cause the response to contain a list of available installment plans.
- Setting to false will prevent any selected plan from applying to a charge.
+ Address of the departure location.
"""
- plan: NotRequired[
- "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCardInstallmentsPlan"
- ]
+ departs_at: NotRequired[int]
"""
- The selected installment plan to use for this payment attempt.
- This parameter can only be provided during confirmation.
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsCardInstallmentsPlan(
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress(
TypedDict,
):
- count: NotRequired[int]
+ city: NotRequired[str]
"""
- For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
+ The city or town.
"""
- interval: NotRequired[Literal["month"]]
+ country: NotRequired[str]
"""
- For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
- One of `month`.
+ The country in ISO 3166-1 alpha-2 format.
"""
- type: Literal["bonus", "fixed_count", "revolving"]
+ postal_code: NotRequired[str]
"""
- Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions(
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance(
TypedDict,
):
- amount: int
+ currency: NotRequired[str]
"""
- Amount to be charged for future payments.
+ Insurance currency.
"""
- amount_type: Literal["fixed", "maximum"]
+ insurance_company_name: NotRequired[str]
"""
- One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ Name of the company providing the insurance.
"""
- description: NotRequired[str]
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- A description of the mandate or subscription that is meant to be displayed to the customer.
+ Type of insurance.
"""
- end_date: NotRequired[int]
+ price: NotRequired[int]
"""
- End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ Price of insurance in cents.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
"""
- Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
+ The family name of the person.
"""
- interval_count: NotRequired[int]
+ given_name: NotRequired[str]
"""
- The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
+ The given name of the person.
"""
- reference: str
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
"""
- Unique identifier for the mandate or subscription.
+ Insurance currency.
"""
- start_date: int
+ insurance_company_name: NotRequired[str]
"""
- Start date of the mandate or subscription. Start date should not be lesser than yesterday.
+ Name of the company providing the insurance.
"""
- supported_types: NotRequired[List[Literal["india"]]]
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- Specifies the type of mandates supported. Possible values are `india`.
+ Type of insurance
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict):
- ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]]
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller(
+ TypedDict,
+):
+ line_item_references: NotRequired[List[str]]
"""
- The `transStatus` returned from the card Issuer's ACS in the ARes.
+ The references to line items for purchases with multiple associated sub-sellers.
"""
- cryptogram: str
+ marketplace_seller_address: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress"
+ ]
"""
- The cryptogram, also known as the "authentication value" (AAV, CAVV or
- AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
- (Most 3D Secure providers will return the base64-encoded version, which
- is what you should specify here.)
+ The address of the selling or delivering merchant.
"""
- electronic_commerce_indicator: NotRequired[
- Literal["01", "02", "05", "06", "07"]
+ marketplace_seller_name: NotRequired[str]
+ """
+ The name of the marketplace seller.
+ """
+ marketplace_seller_reference: NotRequired[str]
+ """
+ The unique identifier for the marketplace seller.
+ """
+ number_of_transactions: NotRequired[int]
+ """
+ The number of transactions the sub-seller completed in the last 12 months.
+ """
+ product_category: NotRequired[
+ Literal[
+ "accessories",
+ "appliances",
+ "apps_and_games",
+ "arts_crafts_and_sewing",
+ "automotive",
+ "baby",
+ "baby_clothing",
+ "bags_and_purses",
+ "beauty",
+ "books",
+ "cds_and_vinyl",
+ "cell_phones_and_accessories",
+ "collectibles_and_fine_arts",
+ "digital_music",
+ "electronics",
+ "grocery_and_gourmet_food",
+ "handmade",
+ "health_and_personal_care",
+ "home_and_kitchen",
+ "industrial_and_scientific",
+ "luggage_and_travel_gear",
+ "magazine_subscriptions",
+ "men_clothing",
+ "musical_instruments",
+ "office_products",
+ "patio_lawn_and_garden",
+ "pet_supplies",
+ "shoes",
+ "software",
+ "sports_and_outdoors",
+ "tools_and_home_improvement",
+ "toys_and_games",
+ "video_games",
+ "women_clothing",
+ ]
]
"""
- The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
- provider and indicates what degree of authentication was performed.
+ The category of the product.
"""
- exemption_indicator: NotRequired[Literal["low_risk", "none"]]
+ seller_last_login_at: NotRequired[int]
"""
- The exemption requested via 3DS and accepted by the issuer at authentication time.
+ The date when the seller's account with the marketplace was last logged in.
"""
- network_options: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions"
+ seller_rating: NotRequired[
+ Literal["high", "low", "medium", "very_high", "very_low"]
]
"""
- Network specific 3DS fields. Network specific arguments require an
- explicit card brand choice. The parameter `payment_method_options.card.network``
- must be populated accordingly
+ The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
"""
- requestor_challenge_indicator: NotRequired[str]
+ seller_registered_at: NotRequired[int]
"""
- The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
- AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
+ The date when the seller's account with the marketplace was created.
"""
- transaction_id: str
+ seller_updated_at: NotRequired[int]
"""
- For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
- Transaction ID (dsTransID).
+ The date when the seller's account with the marketplace was last updated.
"""
- version: Literal["1.0.2", "2.1.0", "2.2.0"]
+ shipping_references: NotRequired[List[str]]
"""
- The version of 3D Secure that was performed.
+ The references to shipping addresses for purchases with multiple associated sub-sellers.
+ """
+ volume_of_transactions: NotRequired[int]
+ """
+ The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions(
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress(
TypedDict,
):
- cartes_bancaires: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires"
- ]
+ city: NotRequired[str]
"""
- Cartes Bancaires-specific 3DS fields.
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires(
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail(
TypedDict,
):
- cb_avalgo: Literal["0", "1", "2", "3", "4", "A"]
+ affiliate_name: NotRequired[str]
"""
- The cryptogram calculation algorithm used by the card Issuer's ACS
- to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
- messageExtension: CB-AVALGO
+ Name of associated or partner company for the service.
"""
- cb_exemption: NotRequired[str]
+ arrival: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival"
+ ]
"""
- The exemption indicator returned from Cartes Bancaires in the ARes.
- message extension: CB-EXEMPTION; string (4 characters)
- This is a 3 byte bitmap (low significant byte first and most significant
- bit first) that has been Base64 encoded
+ Arrival details.
"""
- cb_score: NotRequired[int]
+ carrier_name: NotRequired[str]
"""
- The risk score returned from Cartes Bancaires in the ARes.
- message extension: CB-SCORE; numeric value 0-99
+ Name of transportation company.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsCardPresent(TypedDict):
- capture_method: NotRequired[Literal["manual", "manual_preferred"]]
+ currency: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Currency.
"""
- request_extended_authorization: NotRequired[bool]
+ departure: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture"
+ ]
"""
- Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
+ Departure details.
"""
- request_incremental_authorization_support: NotRequired[bool]
+ insurances: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance"
+ ]
+ ]
"""
- Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
+ List of insurances for this reservation.
"""
- routing: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting"
+ passengers: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
]
"""
- Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
+ Ticket class.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting(
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival(
TypedDict,
):
- requested_priority: NotRequired[Literal["domestic", "international"]]
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress"
+ ]
"""
- Routing requested priority
+ Address of the arrival location.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsCashapp(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
"""
- Controls when the funds are captured from the customer's account.
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ The city or town.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ country: NotRequired[str]
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsCrypto(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ The country in ISO 3166-1 alpha-2 format.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ postal_code: NotRequired[str]
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalance(TypedDict):
- bank_transfer: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
- ]
+ The postal code formatted according to country.
"""
- Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ region: NotRequired[str]
"""
- funding_type: NotRequired[Literal["bank_transfer"]]
+ The state, county, province, or region formatted according to country.
"""
- The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ street_address: NotRequired[str]
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ Line 1 of the street address.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer(
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture(
TypedDict,
):
- eu_bank_transfer: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress"
]
"""
- Configuration for the eu_bank_transfer funding type.
+ Address of the departure location.
"""
- requested_address_types: NotRequired[
- List[
- Literal[
- "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
- ]
- ]
- ]
+ departs_at: NotRequired[int]
"""
- List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
-
- Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
+ Timestamp of departure.
"""
- type: Literal[
- "eu_bank_transfer",
- "gb_bank_transfer",
- "jp_bank_transfer",
- "mx_bank_transfer",
- "us_bank_transfer",
- ]
+ departure_location: NotRequired[str]
"""
- The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress(
TypedDict,
):
- country: str
+ city: NotRequired[str]
"""
- The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ The city or town.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsEps(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ country: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The country in ISO 3166-1 alpha-2 format.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsFpx(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ postal_code: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The postal code formatted according to country.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsGiropay(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ region: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The state, county, province, or region formatted according to country.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsGrabpay(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ street_address: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Line 1 of the street address.
"""
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsIdeal(TypedDict):
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
- ]
+ street_address2: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Line 2 of the street address.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsInteracPresent(TypedDict):
- pass
-
-
-class PaymentIntentCreateParamsPaymentMethodOptionsKakaoPay(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Insurance currency.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsKlarna(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
+ """
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
"""
- Controls when the funds are captured from the customer's account.
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
"""
- on_demand: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand"
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival"
]
"""
- On-demand details if setting up or charging an on-demand payment.
+ Arrival details.
"""
- preferred_locale: NotRequired[
- Literal[
- "cs-CZ",
- "da-DK",
- "de-AT",
- "de-CH",
- "de-DE",
- "el-GR",
- "en-AT",
- "en-AU",
- "en-BE",
- "en-CA",
- "en-CH",
- "en-CZ",
- "en-DE",
- "en-DK",
- "en-ES",
- "en-FI",
- "en-FR",
- "en-GB",
- "en-GR",
- "en-IE",
- "en-IT",
- "en-NL",
- "en-NO",
- "en-NZ",
- "en-PL",
- "en-PT",
- "en-RO",
- "en-SE",
- "en-US",
- "es-ES",
- "es-US",
- "fi-FI",
- "fr-BE",
- "fr-CA",
- "fr-CH",
- "fr-FR",
- "it-CH",
- "it-IT",
- "nb-NO",
- "nl-BE",
- "nl-NL",
- "pl-PL",
- "pt-PT",
- "ro-RO",
- "sv-FI",
- "sv-SE",
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture"
+ ]
+ """
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance"
]
]
"""
- Preferred language of the Klarna authorization page that the customer is redirected to
+ List of insurances for this reservation.
"""
- setup_future_usage: NotRequired[
- Literal["none", "off_session", "on_session"]
+ passengers: NotRequired[
+ List[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger"
+ ]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- subscriptions: NotRequired[
- "Literal['']|List[PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription]"
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress"
]
"""
- Subscription details if setting up or charging a subscription.
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict):
- average_amount: NotRequired[int]
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
+ The city or town.
"""
- maximum_amount: NotRequired[int]
+ country: NotRequired[str]
"""
- The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ The country in ISO 3166-1 alpha-2 format.
"""
- minimum_amount: NotRequired[int]
+ postal_code: NotRequired[str]
"""
- The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ The postal code formatted according to country.
"""
- purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
+ region: NotRequired[str]
"""
- Interval at which the customer is making purchases
+ The state, county, province, or region formatted according to country.
"""
- purchase_interval_count: NotRequired[int]
+ street_address: NotRequired[str]
"""
- The number of `purchase_interval` between charges
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscription(
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance(
TypedDict,
):
- interval: Literal["day", "month", "week", "year"]
+ currency: NotRequired[str]
"""
- Unit of time between subscription charges.
+ Insurance currency.
"""
- interval_count: NotRequired[int]
+ insurance_company_name: NotRequired[str]
"""
- The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
+ Name of the company providing the insurance.
"""
- name: NotRequired[str]
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- Name for subscription.
+ Type of insurance.
"""
- next_billing: NotRequired[
- "PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
- ]
+ price: NotRequired[int]
"""
- Describes the upcoming charge for this subscription.
+ Price of insurance in cents.
"""
- reference: str
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
"""
- A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
"""
-class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
+class PaymentIntentCreateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher(
TypedDict,
):
- amount: int
+ affiliate_name: NotRequired[str]
"""
- The amount of the next charge for the subscription.
+ Name of associated or partner company for this voucher.
"""
- date: str
+ ends_at: NotRequired[int]
"""
- The date of the next charge for the subscription in YYYY-MM-DD format.
+ The voucher validity end time.
+ """
+ starts_at: NotRequired[int]
+ """
+ The voucher validity start time.
+ """
+ voucher_company: NotRequired[str]
+ """
+ The issuer or provider of this voucher.
+ """
+ voucher_name: NotRequired[str]
+ """
+ The name or reference to identify the voucher.
+ """
+ voucher_type: NotRequired[
+ Literal[
+ "digital_product",
+ "discount",
+ "gift_card",
+ "physical_product",
+ "services",
+ ]
+ ]
+ """
+ The type of this voucher.
"""
@@ -2860,6 +5987,12 @@ class PaymentIntentCreateParamsPaymentMethodOptionsPaypal(TypedDict):
"""
Controls when the funds will be captured from the customer's account.
"""
+ line_items: NotRequired[
+ List["PaymentIntentCreateParamsPaymentMethodOptionsPaypalLineItem"]
+ ]
+ """
+ The line items purchased by the customer.
+ """
preferred_locale: NotRequired[
Literal[
"cs-CZ",
@@ -2892,6 +6025,10 @@ class PaymentIntentCreateParamsPaymentMethodOptionsPaypal(TypedDict):
"""
A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
"""
+ reference_id: NotRequired[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
risk_correlation_id: NotRequired[str]
"""
The risk correlation ID for an on-session payment using a saved PayPal payment method.
@@ -2910,6 +6047,73 @@ class PaymentIntentCreateParamsPaymentMethodOptionsPaypal(TypedDict):
If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
+ subsellers: NotRequired[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsPaypalLineItem(TypedDict):
+ category: NotRequired[
+ Literal["digital_goods", "donation", "physical_goods"]
+ ]
+ """
+ Type of the line item.
+ """
+ description: NotRequired[str]
+ """
+ Description of the line item.
+ """
+ name: str
+ """
+ Descriptive name of the line item.
+ """
+ quantity: int
+ """
+ Quantity of the line item. Must be a positive number.
+ """
+ sku: NotRequired[str]
+ """
+ Client facing stock keeping unit, article number or similar.
+ """
+ sold_by: NotRequired[str]
+ """
+ The Stripe account ID of the connected account that sells the item.
+ """
+ tax: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsPaypalLineItemTax"
+ ]
+ """
+ The tax information for the line item.
+ """
+ unit_amount: int
+ """
+ Price for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsPaypalLineItemTax(
+ TypedDict
+):
+ amount: int
+ """
+ The tax for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+ behavior: Literal["exclusive", "inclusive"]
+ """
+ The tax behavior for the line item.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsPaypay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
class PaymentIntentCreateParamsPaymentMethodOptionsPayto(TypedDict):
@@ -2981,7 +6185,13 @@ class PaymentIntentCreateParamsPaymentMethodOptionsPix(TypedDict):
"""
The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ mandate_options: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsPixMandateOptions"
+ ]
+ """
+ Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
+ """
+ setup_future_usage: NotRequired[Literal["none", "off_session"]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2995,6 +6205,45 @@ class PaymentIntentCreateParamsPaymentMethodOptionsPix(TypedDict):
"""
+class PaymentIntentCreateParamsPaymentMethodOptionsPixMandateOptions(
+ TypedDict
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
+ """
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ Type of amount. Defaults to `maximum`.
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
+ """
+ end_date: NotRequired[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ payment_schedule: NotRequired[
+ Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"]
+ ]
+ """
+ Schedule at which the future payments will be charged. Defaults to `weekly`.
+ """
+ reference: NotRequired[str]
+ """
+ Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
+ """
+ start_date: NotRequired[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
+ """
+
+
class PaymentIntentCreateParamsPaymentMethodOptionsPromptpay(TypedDict):
setup_future_usage: NotRequired[Literal["none"]]
"""
@@ -3010,6 +6259,25 @@ class PaymentIntentCreateParamsPaymentMethodOptionsPromptpay(TypedDict):
"""
+class PaymentIntentCreateParamsPaymentMethodOptionsQris(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsRechnung(TypedDict):
+ pass
+
+
class PaymentIntentCreateParamsPaymentMethodOptionsRevolutPay(TypedDict):
capture_method: NotRequired["Literal['']|Literal['manual']"]
"""
@@ -3091,6 +6359,21 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions(
"""
+class PaymentIntentCreateParamsPaymentMethodOptionsShopeepay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
class PaymentIntentCreateParamsPaymentMethodOptionsSofort(TypedDict):
preferred_language: NotRequired[
"Literal['']|Literal['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']"
@@ -3114,6 +6397,23 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSofort(TypedDict):
"""
+class PaymentIntentCreateParamsPaymentMethodOptionsStripeBalance(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
class PaymentIntentCreateParamsPaymentMethodOptionsSwish(TypedDict):
reference: NotRequired["Literal['']|str"]
"""
@@ -3208,6 +6508,12 @@ class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnect
"""
Provide filters for the linked accounts that the customer can select for the payment method.
"""
+ manual_entry: NotRequired[
+ "PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
+ ]
+ """
+ Customize manual entry behavior
+ """
permissions: NotRequired[
List[
Literal["balances", "ownership", "payment_method", "transactions"]
@@ -3217,7 +6523,11 @@ class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnect
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -3235,6 +6545,19 @@ class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnect
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
+
+
+class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
+ TypedDict,
+):
+ mode: Literal["automatic", "custom"]
+ """
+ Settings for configuring manual entry of account details.
+ """
class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions(
diff --git a/stripe/params/_payment_intent_decrement_authorization_params.py b/stripe/params/_payment_intent_decrement_authorization_params.py
new file mode 100644
index 000000000..ea2187c7e
--- /dev/null
+++ b/stripe/params/_payment_intent_decrement_authorization_params.py
@@ -0,0 +1,67 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import Dict, List, Union
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class PaymentIntentDecrementAuthorizationParams(RequestOptions):
+ amount: int
+ """
+ The updated total amount that you intend to collect from the cardholder. This amount must be smaller than the currently authorized amount and greater than the already captured amount.
+ """
+ application_fee_amount: NotRequired[int]
+ """
+ The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
+ """
+ description: NotRequired[str]
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ hooks: NotRequired["PaymentIntentDecrementAuthorizationParamsHooks"]
+ """
+ Automations to be run during the PaymentIntent lifecycle
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ transfer_data: NotRequired[
+ "PaymentIntentDecrementAuthorizationParamsTransferData"
+ ]
+ """
+ The parameters used to automatically create a transfer after the payment is captured.
+ Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
+ """
+
+
+class PaymentIntentDecrementAuthorizationParamsHooks(TypedDict):
+ inputs: NotRequired["PaymentIntentDecrementAuthorizationParamsHooksInputs"]
+ """
+ Arguments passed in automations
+ """
+
+
+class PaymentIntentDecrementAuthorizationParamsHooksInputs(TypedDict):
+ tax: NotRequired["PaymentIntentDecrementAuthorizationParamsHooksInputsTax"]
+ """
+ Tax arguments for automations
+ """
+
+
+class PaymentIntentDecrementAuthorizationParamsHooksInputsTax(TypedDict):
+ calculation: Union[Literal[""], str]
+ """
+ The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
+ """
+
+
+class PaymentIntentDecrementAuthorizationParamsTransferData(TypedDict):
+ amount: NotRequired[int]
+ """
+ The amount that will be transferred automatically when a charge succeeds.
+ """
diff --git a/stripe/params/_payment_intent_increment_authorization_params.py b/stripe/params/_payment_intent_increment_authorization_params.py
index b0b37133b..a8fbb7b9a 100644
--- a/stripe/params/_payment_intent_increment_authorization_params.py
+++ b/stripe/params/_payment_intent_increment_authorization_params.py
@@ -42,6 +42,12 @@ class PaymentIntentIncrementAuthorizationParams(RequestOptions):
"""
Provides industry-specific information about the charge.
"""
+ payment_method_options: NotRequired[
+ "PaymentIntentIncrementAuthorizationParamsPaymentMethodOptions"
+ ]
+ """
+ Payment method-specific configuration for this PaymentIntent.
+ """
statement_descriptor: NotRequired[str]
"""
Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
@@ -289,6 +295,26 @@ class PaymentIntentIncrementAuthorizationParamsPaymentDetails(TypedDict):
"""
+class PaymentIntentIncrementAuthorizationParamsPaymentMethodOptions(TypedDict):
+ card: NotRequired[
+ "PaymentIntentIncrementAuthorizationParamsPaymentMethodOptionsCard"
+ ]
+ """
+ Configuration for any card payments attempted on this PaymentIntent.
+ """
+
+
+class PaymentIntentIncrementAuthorizationParamsPaymentMethodOptionsCard(
+ TypedDict,
+):
+ request_partial_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request partial authorization on this PaymentIntent.
+ """
+
+
class PaymentIntentIncrementAuthorizationParamsTransferData(TypedDict):
amount: NotRequired[int]
"""
diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py
index 6a5dea72c..17f176288 100644
--- a/stripe/params/_payment_intent_modify_params.py
+++ b/stripe/params/_payment_intent_modify_params.py
@@ -51,7 +51,7 @@ class PaymentIntentModifyParams(RequestOptions):
An arbitrary string attached to the object. Often useful for displaying to users.
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types to exclude from use with this payment.
@@ -60,10 +60,18 @@ class PaymentIntentModifyParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
+ fx_quote: NotRequired[str]
+ """
+ The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
+ """
hooks: NotRequired["PaymentIntentModifyParamsHooks"]
"""
Automations to be run during the PaymentIntent lifecycle
"""
+ mandate_data: NotRequired["PaymentIntentModifyParamsMandateData"]
+ """
+ This hash contains details about the Mandate to create.
+ """
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -75,9 +83,6 @@ class PaymentIntentModifyParams(RequestOptions):
Provides industry-specific information about the charge.
"""
payment_method: NotRequired[str]
- """
- ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. To unset this field to null, pass in an empty string.
- """
payment_method_configuration: NotRequired[str]
"""
The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent.
@@ -349,13 +354,80 @@ class PaymentIntentModifyParamsHooksInputsTax(TypedDict):
"""
+class PaymentIntentModifyParamsMandateData(TypedDict):
+ customer_acceptance: (
+ "PaymentIntentModifyParamsMandateDataCustomerAcceptance"
+ )
+ """
+ This hash contains details about the customer acceptance of the Mandate.
+ """
+
+
+class PaymentIntentModifyParamsMandateDataCustomerAcceptance(TypedDict):
+ online: "PaymentIntentModifyParamsMandateDataCustomerAcceptanceOnline"
+ """
+ If this is a Mandate accepted online, this hash contains details about the online acceptance.
+ """
+ type: Literal["online"]
+ """
+ The type of customer acceptance information included with the Mandate.
+ """
+
+
+class PaymentIntentModifyParamsMandateDataCustomerAcceptanceOnline(TypedDict):
+ ip_address: NotRequired[str]
+ """
+ The IP address from which the Mandate was accepted by the customer.
+ """
+ user_agent: NotRequired[str]
+ """
+ The user agent of the browser from which the Mandate was accepted by the customer.
+ """
+
+
class PaymentIntentModifyParamsPaymentDetails(TypedDict):
+ car_rental: NotRequired["PaymentIntentModifyParamsPaymentDetailsCarRental"]
+ """
+ Car rental details for this PaymentIntent.
+ """
+ car_rental_data: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
customer_reference: NotRequired["Literal['']|str"]
"""
A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
"""
+ event_details: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsEventDetails"
+ ]
+ """
+ Event details for this PaymentIntent
+ """
+ flight: NotRequired["PaymentIntentModifyParamsPaymentDetailsFlight"]
+ """
+ Flight reservation details for this PaymentIntent
+ """
+ flight_data: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentDetailsFlightDatum]"
+ ]
+ """
+ Flight data for this PaymentIntent.
+ """
+ lodging: NotRequired["PaymentIntentModifyParamsPaymentDetailsLodging"]
+ """
+ Lodging reservation details for this PaymentIntent
+ """
+ lodging_data: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
order_reference: NotRequired["Literal['']|str"]
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
@@ -364,427 +436,486 @@ class PaymentIntentModifyParamsPaymentDetails(TypedDict):
For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""
+ subscription: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsSubscription"
+ ]
+ """
+ Subscription details for this PaymentIntent
+ """
-class PaymentIntentModifyParamsPaymentMethodData(TypedDict):
- acss_debit: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataAcssDebit"
+class PaymentIntentModifyParamsPaymentDetailsCarRental(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalAffiliate"
]
"""
- If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
+ Affiliate details for this purchase.
"""
- affirm: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAffirm"]
+ booking_number: str
"""
- If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
+ The booking number associated with the car rental.
"""
- afterpay_clearpay: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataAfterpayClearpay"
- ]
+ car_class_code: NotRequired[str]
"""
- If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
+ Class code of the car.
"""
- alipay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAlipay"]
+ car_make: NotRequired[str]
"""
- If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
+ Make of the car.
"""
- allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
+ car_model: NotRequired[str]
"""
- This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
+ Model of the car.
"""
- alma: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAlma"]
+ company: NotRequired[str]
"""
- If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
+ The name of the rental car company.
"""
- amazon_pay: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataAmazonPay"
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the car rental company.
+ """
+ days_rented: int
+ """
+ Number of days the car is being rented.
+ """
+ delivery: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDelivery"
]
"""
- If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
+ Delivery details for this purchase.
"""
- au_becs_debit: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit"
+ distance: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDistance"
]
"""
- If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
+ The details of the distance traveled during the rental period.
"""
- bacs_debit: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataBacsDebit"
+ drivers: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsCarRentalDriver"]
]
"""
- If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
+ The details of the passengers in the travel reservation
"""
- bancontact: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataBancontact"
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "late_return",
+ "one_way_service",
+ "parking_violation",
+ ]
+ ]
]
"""
- If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
+ List of additional charges being billed.
"""
- billie: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBillie"]
+ no_show: NotRequired[bool]
"""
- If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
+ Indicates if the customer did not keep nor cancel their booking.
"""
- billing_details: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataBillingDetails"
+ pickup_address: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalPickupAddress"
]
"""
- Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
+ Car pick-up address.
"""
- blik: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBlik"]
+ pickup_at: int
"""
- If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
+ Car pick-up time. Measured in seconds since the Unix epoch.
"""
- boleto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBoleto"]
+ pickup_location_name: NotRequired[str]
"""
- If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
+ Name of the pickup location.
"""
- cashapp: NotRequired["PaymentIntentModifyParamsPaymentMethodDataCashapp"]
+ rate_amount: NotRequired[int]
"""
- If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
+ Rental rate.
"""
- crypto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataCrypto"]
+ rate_interval: NotRequired[Literal["day", "month", "week"]]
"""
- If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
+ The frequency at which the rate amount is applied. One of `day`, `week` or `month`
"""
- customer_balance: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataCustomerBalance"
+ renter_name: NotRequired[str]
+ """
+ The name of the person or entity renting the car.
+ """
+ return_address: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalReturnAddress"
]
"""
- If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
+ Car return address.
"""
- eps: NotRequired["PaymentIntentModifyParamsPaymentMethodDataEps"]
+ return_at: int
"""
- If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
+ Car return time. Measured in seconds since the Unix epoch.
"""
- fpx: NotRequired["PaymentIntentModifyParamsPaymentMethodDataFpx"]
+ return_location_name: NotRequired[str]
"""
- If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
+ Name of the return location.
"""
- giropay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataGiropay"]
+ tax_exempt: NotRequired[bool]
"""
- If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
+ Indicates whether the goods or services are tax-exempt or tax is not collected.
"""
- grabpay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataGrabpay"]
+ vehicle_identification_number: NotRequired[str]
"""
- If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
+ The vehicle identification number.
"""
- ideal: NotRequired["PaymentIntentModifyParamsPaymentMethodDataIdeal"]
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalAffiliate(TypedDict):
+ name: str
"""
- If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
+ The name of the affiliate that originated the purchase.
"""
- interac_present: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataInteracPresent"
- ]
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
"""
- If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
+ The delivery method for the payment
"""
- kakao_pay: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataKakaoPay"
+ recipient: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDeliveryRecipient"
]
"""
- If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
+ Details of the recipient.
"""
- klarna: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKlarna"]
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
"""
- If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
+ The email of the recipient the ticket is delivered to.
"""
- konbini: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKonbini"]
+ name: NotRequired[str]
"""
- If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
+ The name of the recipient the ticket is delivered to.
"""
- kr_card: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKrCard"]
+ phone: NotRequired[str]
"""
- If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
+ The phone number of the recipient the ticket is delivered to.
"""
- link: NotRequired["PaymentIntentModifyParamsPaymentMethodDataLink"]
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDistance(TypedDict):
+ amount: NotRequired[int]
"""
- If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
+ Distance traveled.
"""
- mb_way: NotRequired["PaymentIntentModifyParamsPaymentMethodDataMbWay"]
+ unit: NotRequired[Literal["kilometers", "miles"]]
"""
- If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
"""
- metadata: NotRequired[Dict[str, str]]
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDriver(TypedDict):
+ driver_identification_number: NotRequired[str]
"""
- Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ Driver's identification number.
"""
- mobilepay: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataMobilepay"
- ]
+ driver_tax_number: NotRequired[str]
"""
- If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
+ Driver's tax number.
"""
- multibanco: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataMultibanco"
- ]
+ name: str
"""
- If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
+ Full name of the person or entity on the car reservation.
"""
- naver_pay: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataNaverPay"
- ]
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalPickupAddress(TypedDict):
+ city: NotRequired[str]
"""
- If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
+ City, district, suburb, town, or village.
"""
- nz_bank_account: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataNzBankAccount"
- ]
+ country: NotRequired[str]
"""
- If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- oxxo: NotRequired["PaymentIntentModifyParamsPaymentMethodDataOxxo"]
+ line1: NotRequired[str]
"""
- If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
+ Address line 1, such as the street, PO Box, or company name.
"""
- p24: NotRequired["PaymentIntentModifyParamsPaymentMethodDataP24"]
+ line2: NotRequired[str]
"""
- If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
+ Address line 2, such as the apartment, suite, unit, or building.
"""
- pay_by_bank: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataPayByBank"
- ]
+ postal_code: NotRequired[str]
"""
- If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
+ ZIP or postal code.
"""
- payco: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPayco"]
+ state: NotRequired[str]
"""
- If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""
- paynow: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPaynow"]
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalReturnAddress(TypedDict):
+ city: NotRequired[str]
"""
- If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
+ City, district, suburb, town, or village.
"""
- paypal: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPaypal"]
+ country: NotRequired[str]
"""
- If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- payto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPayto"]
+ line1: NotRequired[str]
"""
- If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
+ Address line 1, such as the street, PO Box, or company name.
"""
- pix: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPix"]
+ line2: NotRequired[str]
"""
- If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
+ Address line 2, such as the apartment, suite, unit, or building.
"""
- promptpay: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataPromptpay"
- ]
+ postal_code: NotRequired[str]
"""
- If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
+ ZIP or postal code.
"""
- radar_options: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataRadarOptions"
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate"
]
"""
- Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
+ Affiliate (such as travel agency) details for the rental.
"""
- revolut_pay: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataRevolutPay"
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance"
]
"""
- If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
+ Distance details for the rental.
"""
- samsung_pay: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataSamsungPay"
+ drivers: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver"]
]
"""
- If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
+ List of drivers for the rental.
"""
- satispay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSatispay"]
+ drop_off: "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff"
"""
- If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
+ Drop-off location details.
"""
- sepa_debit: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataSepaDebit"
+ insurances: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance"]
]
"""
- If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
+ Insurance details for the rental.
"""
- sofort: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSofort"]
+ no_show_indicator: NotRequired[bool]
"""
- If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
+ Indicates if the customer was a no-show.
"""
- swish: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSwish"]
+ pickup: "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup"
"""
- If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
+ Pickup location details.
"""
- twint: NotRequired["PaymentIntentModifyParamsPaymentMethodDataTwint"]
+ renter_name: NotRequired[str]
"""
- If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
+ Name of the person renting the vehicle.
"""
- type: Literal[
- "acss_debit",
- "affirm",
- "afterpay_clearpay",
- "alipay",
- "alma",
- "amazon_pay",
- "au_becs_debit",
- "bacs_debit",
- "bancontact",
- "billie",
- "blik",
- "boleto",
- "cashapp",
- "crypto",
- "customer_balance",
- "eps",
- "fpx",
- "giropay",
- "grabpay",
- "ideal",
- "kakao_pay",
- "klarna",
- "konbini",
- "kr_card",
- "link",
- "mb_way",
- "mobilepay",
- "multibanco",
- "naver_pay",
- "nz_bank_account",
- "oxxo",
- "p24",
- "pay_by_bank",
- "payco",
- "paynow",
- "paypal",
- "payto",
- "pix",
- "promptpay",
- "revolut_pay",
- "samsung_pay",
- "satispay",
- "sepa_debit",
- "sofort",
- "swish",
- "twint",
- "us_bank_account",
- "wechat_pay",
- "zip",
- ]
+ total: "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal"
"""
- The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
+ Total cost breakdown for the rental.
"""
- us_bank_account: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataUsBankAccount"
+ vehicle: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle"
]
"""
- If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
+ Vehicle details for the rental.
"""
- wechat_pay: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodDataWechatPay"
- ]
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumAffiliate(
+ TypedDict
+):
+ code: NotRequired[str]
"""
- If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
+ Affiliate partner code.
"""
- zip: NotRequired["PaymentIntentModifyParamsPaymentMethodDataZip"]
+ name: NotRequired[str]
"""
- If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
+ Name of affiliate partner.
"""
-class PaymentIntentModifyParamsPaymentMethodDataAcssDebit(TypedDict):
- account_number: str
- """
- Customer's bank account number.
- """
- institution_number: str
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDistance(TypedDict):
+ amount: int
"""
- Institution number of the customer's bank.
+ Distance traveled.
"""
- transit_number: str
+ unit: Literal["kilometers", "miles"]
"""
- Transit number of the customer's bank.
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
"""
-class PaymentIntentModifyParamsPaymentMethodDataAffirm(TypedDict):
- pass
-
-
-class PaymentIntentModifyParamsPaymentMethodDataAfterpayClearpay(TypedDict):
- pass
-
-
-class PaymentIntentModifyParamsPaymentMethodDataAlipay(TypedDict):
- pass
-
-
-class PaymentIntentModifyParamsPaymentMethodDataAlma(TypedDict):
- pass
-
-
-class PaymentIntentModifyParamsPaymentMethodDataAmazonPay(TypedDict):
- pass
-
-
-class PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit(TypedDict):
- account_number: str
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
+ ]
"""
- The account number for the bank account.
+ Driver's date of birth.
"""
- bsb_number: str
+ driver_identification_number: NotRequired[str]
"""
- Bank-State-Branch number of the bank account.
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
"""
-class PaymentIntentModifyParamsPaymentMethodDataBacsDebit(TypedDict):
- account_number: NotRequired[str]
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
"""
- Account number of the bank account that the funds will be debited from.
+ Day of birth (1-31).
"""
- sort_code: NotRequired[str]
+ month: int
"""
- Sort code of the bank account. (e.g., `10-20-30`)
+ Month of birth (1-12).
+ """
+ year: int
+ """
+ Year of birth (must be greater than 1900).
"""
-class PaymentIntentModifyParamsPaymentMethodDataBancontact(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: (
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataBillie(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumDropOffAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
-class PaymentIntentModifyParamsPaymentMethodDataBillingDetails(TypedDict):
- address: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress"
- ]
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumInsurance(
+ TypedDict
+):
+ amount: int
"""
- Billing address.
+ Amount of the insurance coverage in cents.
"""
- email: NotRequired["Literal['']|str"]
+ currency: NotRequired[str]
"""
- Email address.
+ Currency of the insurance amount.
"""
- name: NotRequired["Literal['']|str"]
+ insurance_company_name: NotRequired[str]
"""
- Full name.
+ Name of the insurance company.
"""
- phone: NotRequired["Literal['']|str"]
+ insurance_type: Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ]
"""
- Billing phone number (including extension).
+ Type of insurance coverage.
"""
- tax_id: NotRequired[str]
+
+
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: (
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress"
+ )
"""
- Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
"""
-class PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress(
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumPickupAddress(
TypedDict,
):
- city: NotRequired[str]
+ city: str
"""
City, district, suburb, town, or village.
"""
- country: NotRequired[str]
+ country: str
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- line1: NotRequired[str]
+ line1: str
"""
Address line 1, such as the street, PO Box, or company name.
"""
@@ -792,7 +923,7 @@ class PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress(
"""
Address line 2, such as the apartment, suite, unit, or building.
"""
- postal_code: NotRequired[str]
+ postal_code: str
"""
ZIP or postal code.
"""
@@ -802,231 +933,1973 @@ class PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress(
"""
-class PaymentIntentModifyParamsPaymentMethodDataBlik(TypedDict):
- pass
-
-
-class PaymentIntentModifyParamsPaymentMethodDataBoleto(TypedDict):
- tax_id: str
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
"""
- The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
+ Total amount in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ Literal["days", "kilometers", "miles", "months", "weeks"]
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the rental.
"""
-class PaymentIntentModifyParamsPaymentMethodDataCashapp(TypedDict):
- pass
-
-
-class PaymentIntentModifyParamsPaymentMethodDataCrypto(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataCustomerBalance(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ]
+ """
+ Type of extra charge.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataEps(TypedDict):
- bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax"
]
]
"""
- The customer's bank.
+ Array of tax details.
"""
-class PaymentIntentModifyParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
- """
- Account holder type for FPX transaction
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumTotalTaxTax(
+ TypedDict,
+):
+ amount: NotRequired[int]
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bsn",
- "cimb",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
- ]
+ Tax amount.
"""
- The customer's bank.
+ rate: NotRequired[int]
+ """
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
"""
-class PaymentIntentModifyParamsPaymentMethodDataGiropay(TypedDict):
- pass
-
-
-class PaymentIntentModifyParamsPaymentMethodDataGrabpay(TypedDict):
- pass
-
-
-class PaymentIntentModifyParamsPaymentMethodDataIdeal(TypedDict):
- bank: NotRequired[
+class PaymentIntentModifyParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
Literal[
- "abn_amro",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
+ "cargo_van",
+ "compact",
+ "economy",
+ "exotic",
+ "exotic_suv",
+ "fifteen_passenger_van",
+ "four_wheel_drive",
+ "full_size",
+ "intermediate",
+ "large_suv",
+ "large_truck",
+ "luxury",
+ "medium_suv",
+ "midsize",
+ "mini",
+ "minivan",
+ "miscellaneous",
+ "moped",
+ "moving_van",
+ "premium",
+ "regular",
+ "small_medium_truck",
+ "small_suv",
+ "special",
+ "standard",
+ "stretch",
+ "subcompact",
+ "taxi",
+ "twelve_foot_truck",
+ "twelve_passenger_van",
+ "twenty_foot_truck",
+ "twenty_four_foot_truck",
+ "twenty_six_foot_truck",
+ "unique",
]
]
"""
- The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
+ Type of the rental vehicle.
+ """
+ vehicle_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
"""
-class PaymentIntentModifyParamsPaymentMethodDataInteracPresent(TypedDict):
- pass
-
-
-class PaymentIntentModifyParamsPaymentMethodDataKakaoPay(TypedDict):
- pass
-
-
-class PaymentIntentModifyParamsPaymentMethodDataKlarna(TypedDict):
- dob: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKlarnaDob"]
+class PaymentIntentModifyParamsPaymentDetailsEventDetails(TypedDict):
+ access_controlled_venue: NotRequired[bool]
"""
- Customer's date of birth
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsEventDetailsAddress"
+ ]
+ """
+ The event location's address.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsEventDetailsAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ company: NotRequired[str]
+ """
+ The name of the company
+ """
+ delivery: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsEventDetailsDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Event end time. Measured in seconds since the Unix epoch.
+ """
+ genre: NotRequired[str]
+ """
+ Type of the event entertainment (concert, sports event etc)
+ """
+ name: str
+ """
+ The name of the event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Event start time. Measured in seconds since the Unix epoch.
"""
-class PaymentIntentModifyParamsPaymentMethodDataKlarnaDob(TypedDict):
- day: int
+class PaymentIntentModifyParamsPaymentDetailsEventDetailsAddress(TypedDict):
+ city: NotRequired[str]
"""
- The day of birth, between 1 and 31.
+ City, district, suburb, town, or village.
"""
- month: int
+ country: NotRequired[str]
"""
- The month of birth, between 1 and 12.
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- year: int
+ line1: NotRequired[str]
"""
- The four-digit year of birth.
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""
-class PaymentIntentModifyParamsPaymentMethodDataKonbini(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentDetailsEventDetailsAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataKrCard(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentDetailsEventDetailsDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsEventDetailsDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataLink(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentDetailsEventDetailsDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataMbWay(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentDetailsFlight(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsFlightAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ agency_number: NotRequired[str]
+ """
+ The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
+ """
+ delivery: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsFlightDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ passenger_name: NotRequired[str]
+ """
+ The name of the person or entity on the reservation.
+ """
+ passengers: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsFlightPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation.
+ """
+ segments: List["PaymentIntentModifyParamsPaymentDetailsFlightSegment"]
+ """
+ The individual flight segments associated with the trip.
+ """
+ ticket_number: NotRequired[str]
+ """
+ The ticket number associated with the travel reservation.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataMobilepay(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentDetailsFlightAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataMultibanco(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentDetailsFlightDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataNaverPay(TypedDict):
- funding: NotRequired[Literal["card", "points"]]
+class PaymentIntentModifyParamsPaymentDetailsFlightDeliveryRecipient(
+ TypedDict
+):
+ email: NotRequired[str]
"""
- Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
"""
-class PaymentIntentModifyParamsPaymentMethodDataNzBankAccount(TypedDict):
- account_holder_name: NotRequired[str]
+class PaymentIntentModifyParamsPaymentDetailsFlightPassenger(TypedDict):
+ name: str
"""
- The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
+ Full name of the person or entity on the flight reservation.
"""
- account_number: str
+
+
+class PaymentIntentModifyParamsPaymentDetailsFlightSegment(TypedDict):
+ amount: NotRequired[int]
"""
- The account number for the bank account.
+ The flight segment amount.
"""
- bank_code: str
+ arrival_airport: NotRequired[str]
"""
- The numeric code for the bank account's bank.
+ The International Air Transport Association (IATA) airport code for the arrival airport.
"""
- branch_code: str
+ arrives_at: NotRequired[int]
"""
- The numeric code for the bank account's bank branch.
+ The arrival time for the flight segment. Measured in seconds since the Unix epoch.
"""
- reference: NotRequired[str]
- suffix: str
+ carrier: NotRequired[str]
"""
- The suffix of the bank account number.
+ The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
+ """
+ departs_at: int
+ """
+ The departure time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ departure_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the departure airport.
+ """
+ flight_number: NotRequired[str]
+ """
+ The flight number associated with the segment
+ """
+ service_class: NotRequired[
+ Literal["business", "economy", "first", "premium_economy"]
+ ]
+ """
+ The fare class for the segment.
"""
-class PaymentIntentModifyParamsPaymentMethodDataOxxo(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentDetailsFlightDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Reservation reference.
+ """
+ computerized_reservation_system: NotRequired[str]
+ """
+ Computerized reservation system used to make the reservation and purchase the ticket.
+ """
+ endorsements_and_restrictions: NotRequired[str]
+ """
+ Ticket restrictions.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsFlightDatumInsurance"]
+ ]
+ """
+ List of insurances.
+ """
+ passengers: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsFlightDatumPassenger"]
+ ]
+ """
+ List of passengers.
+ """
+ segments: List["PaymentIntentModifyParamsPaymentDetailsFlightDatumSegment"]
+ """
+ List of flight segments.
+ """
+ ticket_electronically_issued_indicator: NotRequired[bool]
+ """
+ Electronic ticket indicator.
+ """
+ total: "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotal"
+ """
+ Total cost breakdown.
+ """
+ transaction_type: NotRequired[
+ Literal[
+ "exchange_ticket", "miscellaneous", "refund", "ticket_purchase"
+ ]
+ ]
+ """
+ Type of flight transaction.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataP24(TypedDict):
- bank: NotRequired[
- Literal[
- "alior_bank",
+class PaymentIntentModifyParamsPaymentDetailsFlightDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+ travel_authorization_code: NotRequired[str]
+ """
+ Code provided by the company to a travel agent authorizing ticket issuance.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsFlightDatumInsurance(TypedDict):
+ amount: int
+ """
+ Insurance cost.
+ """
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Insurance company name.
+ """
+ insurance_type: Literal[
+ "baggage", "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsFlightDatumPassenger(TypedDict):
+ name: str
+ """
+ Passenger's full name.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsFlightDatumSegment(TypedDict):
+ amount: NotRequired[int]
+ """
+ Segment fare amount.
+ """
+ arrival: "PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentArrival"
+ """
+ Arrival details.
+ """
+ carrier_code: str
+ """
+ Airline carrier code.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Carrier name.
+ """
+ currency: NotRequired[str]
+ """
+ Segment currency.
+ """
+ departure: (
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentDeparture"
+ )
+ """
+ Departure details.
+ """
+ exchange_ticket_number: NotRequired[str]
+ """
+ Exchange ticket number.
+ """
+ fare_basis_code: NotRequired[str]
+ """
+ Fare basis code.
+ """
+ fees: NotRequired[int]
+ """
+ Additional fees.
+ """
+ flight_number: NotRequired[str]
+ """
+ Flight number.
+ """
+ is_stop_over_indicator: NotRequired[bool]
+ """
+ Stopover indicator.
+ """
+ refundable: NotRequired[bool]
+ """
+ Refundable ticket indicator.
+ """
+ service_class: Literal[
+ "business", "economy", "first_class", "premium_economy"
+ ]
+ """
+ Class of service.
+ """
+ tax_amount: NotRequired[int]
+ """
+ Tax amount for segment.
+ """
+ ticket_number: NotRequired[str]
+ """
+ Ticket number.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentArrival(
+ TypedDict,
+):
+ airport: str
+ """
+ Arrival airport IATA code.
+ """
+ arrives_at: NotRequired[int]
+ """
+ Arrival date/time.
+ """
+ city: NotRequired[str]
+ """
+ Arrival city.
+ """
+ country: NotRequired[str]
+ """
+ Arrival country.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsFlightDatumSegmentDeparture(
+ TypedDict,
+):
+ airport: str
+ """
+ Departure airport IATA code.
+ """
+ city: NotRequired[str]
+ """
+ Departure city.
+ """
+ country: NotRequired[str]
+ """
+ Departure country.
+ """
+ departs_at: int
+ """
+ Departure date/time.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsFlightDatumTotal(TypedDict):
+ amount: int
+ """
+ Total flight amount.
+ """
+ credit_reason: NotRequired[
+ Literal[
+ "other",
+ "partial_ticket_refund",
+ "passenger_transport_ancillary_cancellation",
+ "ticket_and_ancillary_cancellation",
+ "ticket_cancellation",
+ ]
+ ]
+ """
+ Reason for credit.
+ """
+ currency: NotRequired[str]
+ """
+ Total currency.
+ """
+ discounts: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalDiscounts"
+ ]
+ """
+ Discount details.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges.
+ """
+ tax: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTax"
+ ]
+ """
+ Tax breakdown.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of additional charges.
+ """
+ type: NotRequired[
+ Literal["additional_fees", "ancillary_service_charges", "exchange_fee"]
+ ]
+ """
+ Type of additional charges.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTax(TypedDict):
+ taxes: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTaxTax"]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsFlightDatumTotalTaxTax(TypedDict):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodging(TypedDict):
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingAddress"
+ ]
+ """
+ The lodging location's address.
+ """
+ adults: NotRequired[int]
+ """
+ The number of adults on the booking
+ """
+ affiliate: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ booking_number: NotRequired[str]
+ """
+ The booking number associated with the lodging reservation.
+ """
+ category: NotRequired[Literal["hotel", "vacation_rental"]]
+ """
+ The lodging category
+ """
+ checkin_at: int
+ """
+ Lodging check-in time. Measured in seconds since the Unix epoch.
+ """
+ checkout_at: int
+ """
+ Lodging check-out time. Measured in seconds since the Unix epoch.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the lodging company.
+ """
+ daily_room_rate_amount: NotRequired[int]
+ """
+ The daily lodging room rate.
+ """
+ delivery: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "gift_shop",
+ "laundry",
+ "mini_bar",
+ "other",
+ "restaurant",
+ "telephone",
+ ]
+ ]
+ ]
+ """
+ List of additional charges being billed.
+ """
+ fire_safety_act_compliance: NotRequired[bool]
+ """
+ Indicates whether the lodging location is compliant with the Fire Safety Act.
+ """
+ name: NotRequired[str]
+ """
+ The name of the lodging location.
+ """
+ no_show: NotRequired[bool]
+ """
+ Indicates if the customer did not keep their booking while failing to cancel the reservation.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ The number of rooms on the booking
+ """
+ passengers: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsLodgingPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation
+ """
+ property_phone_number: NotRequired[str]
+ """
+ The phone number of the lodging location.
+ """
+ room_class: NotRequired[str]
+ """
+ The room class for this purchase.
+ """
+ room_nights: NotRequired[int]
+ """
+ The number of room nights
+ """
+ total_room_tax_amount: NotRequired[int]
+ """
+ The total tax amount associating with the room reservation.
+ """
+ total_tax_amount: NotRequired[int]
+ """
+ The total tax amount
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the lodging reservation.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost"
+ ]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumAccommodation(
+ TypedDict,
+):
+ accommodation_type: NotRequired[
+ Literal[
+ "apartment",
+ "cabana",
+ "house",
+ "penthouse",
+ "room",
+ "standard",
+ "suite",
+ "villa",
+ ]
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ Literal["hostel", "hotel", "owner", "rental_agency"]
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumHostAddress(
+ TypedDict
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ Literal[
+ "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant"
+ ]
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List["PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTax"]
+ ]
+ """
+ Tax details.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsLodgingDatumTotalTaxTax(
+ TypedDict
+):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsSubscription(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ auto_renewal: NotRequired[bool]
+ """
+ Info whether the subscription will be auto renewed upon expiry.
+ """
+ billing_interval: NotRequired[
+ "PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval"
+ ]
+ """
+ Subscription billing details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Subscription end time. Measured in seconds since the Unix epoch.
+ """
+ name: str
+ """
+ Name of the product on subscription. e.g. Apple Music Subscription
+ """
+ starts_at: NotRequired[int]
+ """
+ Subscription start time. Measured in seconds since the Unix epoch.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsSubscriptionAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval(
+ TypedDict,
+):
+ count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodData(TypedDict):
+ acss_debit: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataAcssDebit"
+ ]
+ """
+ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
+ """
+ affirm: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAffirm"]
+ """
+ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
+ """
+ afterpay_clearpay: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataAfterpayClearpay"
+ ]
+ """
+ If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
+ """
+ alipay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAlipay"]
+ """
+ If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
+ """
+ allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
+ """
+ This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
+ """
+ alma: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAlma"]
+ """
+ If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
+ """
+ amazon_pay: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataAmazonPay"
+ ]
+ """
+ If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
+ """
+ au_becs_debit: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit"
+ ]
+ """
+ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
+ """
+ bacs_debit: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataBacsDebit"
+ ]
+ """
+ If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
+ """
+ bancontact: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataBancontact"
+ ]
+ """
+ If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
+ """
+ billie: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBillie"]
+ """
+ If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
+ """
+ billing_details: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataBillingDetails"
+ ]
+ """
+ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
+ """
+ blik: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBlik"]
+ """
+ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
+ """
+ boleto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataBoleto"]
+ """
+ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
+ """
+ cashapp: NotRequired["PaymentIntentModifyParamsPaymentMethodDataCashapp"]
+ """
+ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
+ """
+ crypto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataCrypto"]
+ """
+ If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
+ """
+ customer_balance: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataCustomerBalance"
+ ]
+ """
+ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
+ """
+ eps: NotRequired["PaymentIntentModifyParamsPaymentMethodDataEps"]
+ """
+ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
+ """
+ fpx: NotRequired["PaymentIntentModifyParamsPaymentMethodDataFpx"]
+ """
+ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
+ """
+ giropay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataGiropay"]
+ """
+ If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
+ """
+ gopay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataGopay"]
+ """
+ If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
+ """
+ grabpay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataGrabpay"]
+ """
+ If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
+ """
+ id_bank_transfer: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataIdBankTransfer"
+ ]
+ """
+ If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
+ """
+ ideal: NotRequired["PaymentIntentModifyParamsPaymentMethodDataIdeal"]
+ """
+ If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
+ """
+ interac_present: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataInteracPresent"
+ ]
+ """
+ If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
+ """
+ kakao_pay: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataKakaoPay"
+ ]
+ """
+ If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
+ """
+ klarna: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKlarna"]
+ """
+ If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
+ """
+ konbini: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKonbini"]
+ """
+ If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
+ """
+ kr_card: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKrCard"]
+ """
+ If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
+ """
+ link: NotRequired["PaymentIntentModifyParamsPaymentMethodDataLink"]
+ """
+ If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
+ """
+ mb_way: NotRequired["PaymentIntentModifyParamsPaymentMethodDataMbWay"]
+ """
+ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ mobilepay: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataMobilepay"
+ ]
+ """
+ If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
+ """
+ multibanco: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataMultibanco"
+ ]
+ """
+ If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
+ """
+ naver_pay: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataNaverPay"
+ ]
+ """
+ If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
+ """
+ nz_bank_account: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataNzBankAccount"
+ ]
+ """
+ If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
+ """
+ oxxo: NotRequired["PaymentIntentModifyParamsPaymentMethodDataOxxo"]
+ """
+ If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
+ """
+ p24: NotRequired["PaymentIntentModifyParamsPaymentMethodDataP24"]
+ """
+ If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
+ """
+ pay_by_bank: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataPayByBank"
+ ]
+ """
+ If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
+ """
+ payco: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPayco"]
+ """
+ If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
+ """
+ paynow: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPaynow"]
+ """
+ If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
+ """
+ paypal: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPaypal"]
+ """
+ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
+ """
+ paypay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPaypay"]
+ """
+ If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
+ """
+ payto: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPayto"]
+ """
+ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
+ """
+ pix: NotRequired["PaymentIntentModifyParamsPaymentMethodDataPix"]
+ """
+ If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
+ """
+ promptpay: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataPromptpay"
+ ]
+ """
+ If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
+ """
+ qris: NotRequired["PaymentIntentModifyParamsPaymentMethodDataQris"]
+ """
+ If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
+ """
+ radar_options: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataRadarOptions"
+ ]
+ """
+ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
+ """
+ rechnung: NotRequired["PaymentIntentModifyParamsPaymentMethodDataRechnung"]
+ """
+ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
+ """
+ revolut_pay: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataRevolutPay"
+ ]
+ """
+ If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
+ """
+ samsung_pay: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataSamsungPay"
+ ]
+ """
+ If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
+ """
+ satispay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSatispay"]
+ """
+ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
+ """
+ sepa_debit: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataSepaDebit"
+ ]
+ """
+ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
+ """
+ shopeepay: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataShopeepay"
+ ]
+ """
+ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
+ """
+ sofort: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSofort"]
+ """
+ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
+ """
+ stripe_balance: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataStripeBalance"
+ ]
+ """
+ This hash contains details about the Stripe balance payment method.
+ """
+ swish: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSwish"]
+ """
+ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
+ """
+ twint: NotRequired["PaymentIntentModifyParamsPaymentMethodDataTwint"]
+ """
+ If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
+ """
+ type: Literal[
+ "acss_debit",
+ "affirm",
+ "afterpay_clearpay",
+ "alipay",
+ "alma",
+ "amazon_pay",
+ "au_becs_debit",
+ "bacs_debit",
+ "bancontact",
+ "billie",
+ "blik",
+ "boleto",
+ "cashapp",
+ "crypto",
+ "customer_balance",
+ "eps",
+ "fpx",
+ "giropay",
+ "gopay",
+ "grabpay",
+ "id_bank_transfer",
+ "ideal",
+ "kakao_pay",
+ "klarna",
+ "konbini",
+ "kr_card",
+ "link",
+ "mb_way",
+ "mobilepay",
+ "multibanco",
+ "naver_pay",
+ "nz_bank_account",
+ "oxxo",
+ "p24",
+ "pay_by_bank",
+ "payco",
+ "paynow",
+ "paypal",
+ "paypay",
+ "payto",
+ "pix",
+ "promptpay",
+ "qris",
+ "rechnung",
+ "revolut_pay",
+ "samsung_pay",
+ "satispay",
+ "sepa_debit",
+ "shopeepay",
+ "sofort",
+ "stripe_balance",
+ "swish",
+ "twint",
+ "us_bank_account",
+ "wechat_pay",
+ "zip",
+ ]
+ """
+ The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
+ """
+ us_bank_account: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataUsBankAccount"
+ ]
+ """
+ If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
+ """
+ wechat_pay: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodDataWechatPay"
+ ]
+ """
+ If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
+ """
+ zip: NotRequired["PaymentIntentModifyParamsPaymentMethodDataZip"]
+ """
+ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataAcssDebit(TypedDict):
+ account_number: str
+ """
+ Customer's bank account number.
+ """
+ institution_number: str
+ """
+ Institution number of the customer's bank.
+ """
+ transit_number: str
+ """
+ Transit number of the customer's bank.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataAffirm(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataAfterpayClearpay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataAlipay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataAlma(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataAmazonPay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit(TypedDict):
+ account_number: str
+ """
+ The account number for the bank account.
+ """
+ bsb_number: str
+ """
+ Bank-State-Branch number of the bank account.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataBacsDebit(TypedDict):
+ account_number: NotRequired[str]
+ """
+ Account number of the bank account that the funds will be debited from.
+ """
+ sort_code: NotRequired[str]
+ """
+ Sort code of the bank account. (e.g., `10-20-30`)
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataBancontact(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataBillie(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataBillingDetails(TypedDict):
+ address: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress"
+ ]
+ """
+ Billing address.
+ """
+ email: NotRequired["Literal['']|str"]
+ """
+ Email address.
+ """
+ name: NotRequired["Literal['']|str"]
+ """
+ Full name.
+ """
+ phone: NotRequired["Literal['']|str"]
+ """
+ Billing phone number (including extension).
+ """
+ tax_id: NotRequired[str]
+ """
+ Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataBillingDetailsAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataBlik(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataBoleto(TypedDict):
+ tax_id: str
+ """
+ The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataCashapp(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataCrypto(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataCustomerBalance(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataEps(TypedDict):
+ bank: NotRequired[
+ Literal[
+ "arzte_und_apotheker_bank",
+ "austrian_anadi_bank_ag",
+ "bank_austria",
+ "bankhaus_carl_spangler",
+ "bankhaus_schelhammer_und_schattera_ag",
+ "bawag_psk_ag",
+ "bks_bank_ag",
+ "brull_kallmus_bank_ag",
+ "btv_vier_lander_bank",
+ "capital_bank_grawe_gruppe_ag",
+ "deutsche_bank_ag",
+ "dolomitenbank",
+ "easybank_ag",
+ "erste_bank_und_sparkassen",
+ "hypo_alpeadriabank_international_ag",
+ "hypo_bank_burgenland_aktiengesellschaft",
+ "hypo_noe_lb_fur_niederosterreich_u_wien",
+ "hypo_oberosterreich_salzburg_steiermark",
+ "hypo_tirol_bank_ag",
+ "hypo_vorarlberg_bank_ag",
+ "marchfelder_bank",
+ "oberbank_ag",
+ "raiffeisen_bankengruppe_osterreich",
+ "schoellerbank_ag",
+ "sparda_bank_wien",
+ "volksbank_gruppe",
+ "volkskreditbank_ag",
+ "vr_bank_braunau",
+ ]
+ ]
+ """
+ The customer's bank.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataFpx(TypedDict):
+ account_holder_type: NotRequired[Literal["company", "individual"]]
+ """
+ Account holder type for FPX transaction
+ """
+ bank: Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bsn",
+ "cimb",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ]
+ """
+ The customer's bank.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataGiropay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataGopay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataGrabpay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataIdBankTransfer(TypedDict):
+ bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ """
+ Bank where the account is held.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataIdeal(TypedDict):
+ bank: NotRequired[
+ Literal[
+ "abn_amro",
+ "asn_bank",
+ "bunq",
+ "buut",
+ "finom",
+ "handelsbanken",
+ "ing",
+ "knab",
+ "mollie",
+ "moneyou",
+ "n26",
+ "nn",
+ "rabobank",
+ "regiobank",
+ "revolut",
+ "sns_bank",
+ "triodos_bank",
+ "van_lanschot",
+ "yoursafe",
+ ]
+ ]
+ """
+ The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataInteracPresent(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataKakaoPay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataKlarna(TypedDict):
+ dob: NotRequired["PaymentIntentModifyParamsPaymentMethodDataKlarnaDob"]
+ """
+ Customer's date of birth
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataKlarnaDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataKonbini(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataKrCard(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataLink(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataMbWay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataMobilepay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataMultibanco(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataNaverPay(TypedDict):
+ funding: NotRequired[Literal["card", "points"]]
+ """
+ Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataNzBankAccount(TypedDict):
+ account_holder_name: NotRequired[str]
+ """
+ The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
+ """
+ account_number: str
+ """
+ The account number for the bank account.
+ """
+ bank_code: str
+ """
+ The numeric code for the bank account's bank.
+ """
+ branch_code: str
+ """
+ The numeric code for the bank account's bank branch.
+ """
+ reference: NotRequired[str]
+ suffix: str
+ """
+ The suffix of the bank account number.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataOxxo(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataP24(TypedDict):
+ bank: NotRequired[
+ Literal[
+ "alior_bank",
"bank_millennium",
"bank_nowy_bfg_sa",
"bank_pekao_sa",
@@ -1055,1392 +2928,2667 @@ class PaymentIntentModifyParamsPaymentMethodDataP24(TypedDict):
]
]
"""
- The customer's bank.
+ The customer's bank.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataPayByBank(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataPayco(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataPaynow(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataPaypal(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataPaypay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataPayto(TypedDict):
+ account_number: NotRequired[str]
+ """
+ The account number for the bank account.
+ """
+ bsb_number: NotRequired[str]
+ """
+ Bank-State-Branch number of the bank account.
+ """
+ pay_id: NotRequired[str]
+ """
+ The PayID alias for the bank account.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataPix(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataPromptpay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataQris(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataRadarOptions(TypedDict):
+ session: NotRequired[str]
+ """
+ A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataRechnung(TypedDict):
+ dob: "PaymentIntentModifyParamsPaymentMethodDataRechnungDob"
+ """
+ Customer's date of birth
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataRechnungDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataRevolutPay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataSamsungPay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataSatispay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict):
+ iban: str
+ """
+ IBAN of the bank account.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataShopeepay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataSofort(TypedDict):
+ country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
+ """
+ Two-letter ISO code representing the country the bank account is located in.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataStripeBalance(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataSwish(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataTwint(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataUsBankAccount(TypedDict):
+ account_holder_type: NotRequired[Literal["company", "individual"]]
+ """
+ Account holder type: individual or company.
+ """
+ account_number: NotRequired[str]
+ """
+ Account number of the bank account.
+ """
+ account_type: NotRequired[Literal["checking", "savings"]]
+ """
+ Account type: checkings or savings. Defaults to checking if omitted.
+ """
+ financial_connections_account: NotRequired[str]
+ """
+ The ID of a Financial Connections Account to use as a payment method.
+ """
+ routing_number: NotRequired[str]
+ """
+ Routing number of the bank account.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodDataWechatPay(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodDataZip(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict):
+ acss_debit: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAcssDebit"
+ ]
+ """
+ If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
+ """
+ affirm: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAffirm"
+ ]
+ """
+ If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
+ """
+ afterpay_clearpay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAfterpayClearpay"
+ ]
+ """
+ If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
+ """
+ alipay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAlipay"
+ ]
+ """
+ If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
+ """
+ alma: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAlma"
+ ]
+ """
+ If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
+ """
+ amazon_pay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAmazonPay"
+ ]
+ """
+ If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
+ """
+ au_becs_debit: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit"
+ ]
+ """
+ If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
+ """
+ bacs_debit: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit"
+ ]
+ """
+ If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
+ """
+ bancontact: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBancontact"
+ ]
+ """
+ If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
+ """
+ billie: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBillie"
+ ]
+ """
+ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
+ """
+ blik: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBlik"
+ ]
+ """
+ If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
+ """
+ boleto: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBoleto"
+ ]
+ """
+ If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
+ """
+ card: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCard"
+ ]
+ """
+ Configuration for any card payments attempted on this PaymentIntent.
+ """
+ card_present: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardPresent"
+ ]
+ """
+ If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ """
+ cashapp: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCashapp"
+ ]
+ """
+ If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
+ """
+ crypto: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCrypto"
+ ]
+ """
+ If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
+ """
+ customer_balance: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalance"
+ ]
+ """
+ If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
+ """
+ eps: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsEps"
+ ]
+ """
+ If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
+ """
+ fpx: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsFpx"
+ ]
+ """
+ If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
+ """
+ giropay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGiropay"
+ ]
+ """
+ If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
+ """
+ gopay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGopay"
+ ]
+ """
+ If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
+ """
+ grabpay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGrabpay"
+ ]
+ """
+ If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
+ """
+ id_bank_transfer: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsIdBankTransfer"
+ ]
+ """
+ If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
+ """
+ ideal: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsIdeal"
+ ]
+ """
+ If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
+ """
+ interac_present: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent"
+ ]
+ """
+ If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ """
+ kakao_pay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay"
+ ]
+ """
+ If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
+ """
+ klarna: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKlarna"
+ ]
+ """
+ If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
+ """
+ konbini: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKonbini"
+ ]
+ """
+ If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
+ """
+ kr_card: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKrCard"
+ ]
+ """
+ If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
+ """
+ link: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsLink"
+ ]
+ """
+ If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
+ """
+ mb_way: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMbWay"
+ ]
+ """
+ If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
+ """
+ mobilepay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMobilepay"
+ ]
+ """
+ If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
+ """
+ multibanco: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMultibanco"
+ ]
+ """
+ If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
+ """
+ naver_pay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsNaverPay"
+ ]
+ """
+ If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
+ """
+ nz_bank_account: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsNzBankAccount"
+ ]
+ """
+ If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
+ """
+ oxxo: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsOxxo"
+ ]
+ """
+ If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
+ """
+ p24: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsP24"
+ ]
+ """
+ If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
+ """
+ pay_by_bank: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayByBank"
+ ]
+ """
+ If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
+ """
+ payco: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayco"
+ ]
+ """
+ If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
+ """
+ paynow: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPaynow"
+ ]
+ """
+ If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
+ """
+ paypal: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPaypal"
+ ]
+ """
+ If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
+ """
+ paypay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPaypay"
+ ]
+ """
+ If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
+ """
+ payto: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayto"
+ ]
+ """
+ If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
+ """
+ pix: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPix"
+ ]
+ """
+ If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
+ """
+ promptpay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPromptpay"
+ ]
+ """
+ If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
+ """
+ qris: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsQris"
+ ]
+ """
+ If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
+ """
+ rechnung: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsRechnung"
+ ]
+ """
+ If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
+ """
+ revolut_pay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay"
+ ]
+ """
+ If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
+ """
+ samsung_pay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay"
+ ]
+ """
+ If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
+ """
+ satispay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSatispay"
+ ]
+ """
+ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
+ """
+ sepa_debit: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit"
+ ]
+ """
+ If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
+ """
+ shopeepay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsShopeepay"
+ ]
+ """
+ If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
+ """
+ sofort: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSofort"
+ ]
+ """
+ If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
+ """
+ stripe_balance: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsStripeBalance"
+ ]
+ """
+ If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
+ """
+ swish: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSwish"
+ ]
+ """
+ If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
+ """
+ twint: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsTwint"
+ ]
+ """
+ If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
+ """
+ us_bank_account: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount"
+ ]
+ """
+ If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
+ """
+ wechat_pay: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsWechatPay"
+ ]
+ """
+ If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
+ """
+ zip: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsZip"
+ ]
+ """
+ If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsAcssDebit(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsAcssDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+ verification_method: NotRequired[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Bank account verification method.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsAcssDebitMandateOptions(
+ TypedDict,
+):
+ custom_mandate_url: NotRequired["Literal['']|str"]
+ """
+ A URL for custom mandate text to render during confirmation step.
+ The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
+ or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
+ """
+ interval_description: NotRequired[str]
+ """
+ Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
+ """
+ payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
+ """
+ Payment schedule for the mandate.
+ """
+ transaction_type: NotRequired[Literal["business", "personal"]]
+ """
+ Transaction type of the mandate.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsAffirm(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ preferred_locale: NotRequired[str]
+ """
+ Preferred language of the Affirm authorization page that the customer is redirected to.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsAfterpayClearpay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ reference: NotRequired[str]
+ """
+ An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
+ This field differs from the statement descriptor and item name.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsAlipay(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsAlma(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsAmazonPay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions(
+ TypedDict,
+):
+ reference_prefix: NotRequired["Literal['']|str"]
+ """
+ Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsBancontact(TypedDict):
+ preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsBillie(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsBlik(TypedDict):
+ code: NotRequired[str]
+ """
+ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
+ """
+ setup_future_usage: NotRequired["Literal['']|Literal['none']"]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsBoleto(TypedDict):
+ expires_after_days: NotRequired[int]
+ """
+ The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCard(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ cvc_token: NotRequired[str]
+ """
+ A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
+ """
+ installments: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments"
+ ]
+ """
+ Installment configuration for payments attempted on this PaymentIntent.
+
+ For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
+ """
+ mandate_options: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate for cards issued in India.
+ """
+ moto: NotRequired[bool]
+ """
+ When specified, this parameter indicates that a transaction will be marked
+ as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
+ parameter can only be provided during confirmation.
+ """
+ network: NotRequired[
+ Literal[
+ "amex",
+ "cartes_bancaires",
+ "diners",
+ "discover",
+ "eftpos_au",
+ "girocard",
+ "interac",
+ "jcb",
+ "link",
+ "mastercard",
+ "unionpay",
+ "unknown",
+ "visa",
+ ]
+ ]
+ """
+ Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
+ """
+ request_decremental_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
+ """
+ request_extended_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
+ """
+ request_incremental_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
+ """
+ request_multicapture: NotRequired[Literal["if_available", "never"]]
+ """
+ Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
+ """
+ request_overcapture: NotRequired[Literal["if_available", "never"]]
+ """
+ Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
+ """
+ request_partial_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request partial authorization on this PaymentIntent.
+ """
+ request_three_d_secure: NotRequired[
+ Literal["any", "automatic", "challenge"]
+ ]
+ """
+ We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ """
+ require_cvc_recollection: NotRequired[bool]
+ """
+ When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ statement_descriptor_suffix_kana: NotRequired["Literal['']|str"]
+ """
+ Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
+ """
+ statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"]
+ """
+ Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
+ """
+ statement_details: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetails"
+ ]
+ """
+ Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
+ """
+ three_d_secure: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure"
+ ]
+ """
+ If 3D Secure authentication was performed with a third-party provider,
+ the authentication details to use for this payment.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments(TypedDict):
+ enabled: NotRequired[bool]
+ """
+ Setting to true enables installments for this PaymentIntent.
+ This will cause the response to contain a list of available installment plans.
+ Setting to false will prevent any selected plan from applying to a charge.
+ """
+ plan: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardInstallmentsPlan"
+ ]
+ """
+ The selected installment plan to use for this payment attempt.
+ This parameter can only be provided during confirmation.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCardInstallmentsPlan(
+ TypedDict,
+):
+ count: NotRequired[int]
+ """
+ For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
+ """
+ interval: NotRequired[Literal["month"]]
+ """
+ For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
+ One of `month`.
+ """
+ type: Literal["bonus", "fixed_count", "revolving"]
+ """
+ Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Literal["fixed", "maximum"]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ interval: Literal["day", "month", "sporadic", "week", "year"]
+ """
+ Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
+ """
+ interval_count: NotRequired[int]
+ """
+ The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
+ """
+ reference: str
+ """
+ Unique identifier for the mandate or subscription.
+ """
+ start_date: int
+ """
+ Start date of the mandate or subscription. Start date should not be lesser than yesterday.
+ """
+ supported_types: NotRequired[List[Literal["india"]]]
+ """
+ Specifies the type of mandates supported. Possible values are `india`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetails(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetailsAddress"
+ ]
+ """
+ Please pass in an address that is within your Stripe user account country
+ """
+ phone: NotRequired[str]
+ """
+ Phone number (e.g., a toll-free number that customers can call)
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCardStatementDetailsAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure(TypedDict):
+ ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]]
+ """
+ The `transStatus` returned from the card Issuer's ACS in the ARes.
+ """
+ cryptogram: str
+ """
+ The cryptogram, also known as the "authentication value" (AAV, CAVV or
+ AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
+ (Most 3D Secure providers will return the base64-encoded version, which
+ is what you should specify here.)
+ """
+ electronic_commerce_indicator: NotRequired[
+ Literal["01", "02", "05", "06", "07"]
+ ]
+ """
+ The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
+ provider and indicates what degree of authentication was performed.
+ """
+ exemption_indicator: NotRequired[Literal["low_risk", "none"]]
+ """
+ The exemption requested via 3DS and accepted by the issuer at authentication time.
+ """
+ network_options: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions"
+ ]
+ """
+ Network specific 3DS fields. Network specific arguments require an
+ explicit card brand choice. The parameter `payment_method_options.card.network``
+ must be populated accordingly
+ """
+ requestor_challenge_indicator: NotRequired[str]
+ """
+ The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
+ AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
+ """
+ transaction_id: str
+ """
+ For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
+ Transaction ID (dsTransID).
+ """
+ version: Literal["1.0.2", "2.1.0", "2.2.0"]
+ """
+ The version of 3D Secure that was performed.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions(
+ TypedDict,
+):
+ cartes_bancaires: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires"
+ ]
+ """
+ Cartes Bancaires-specific 3DS fields.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires(
+ TypedDict,
+):
+ cb_avalgo: Literal["0", "1", "2", "3", "4", "A"]
+ """
+ The cryptogram calculation algorithm used by the card Issuer's ACS
+ to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
+ messageExtension: CB-AVALGO
+ """
+ cb_exemption: NotRequired[str]
+ """
+ The exemption indicator returned from Cartes Bancaires in the ARes.
+ message extension: CB-EXEMPTION; string (4 characters)
+ This is a 3 byte bitmap (low significant byte first and most significant
+ bit first) that has been Base64 encoded
+ """
+ cb_score: NotRequired[int]
+ """
+ The risk score returned from Cartes Bancaires in the ARes.
+ message extension: CB-SCORE; numeric value 0-99
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCardPresent(TypedDict):
+ capture_method: NotRequired[Literal["manual", "manual_preferred"]]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ request_extended_authorization: NotRequired[bool]
+ """
+ Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
+ """
+ request_incremental_authorization_support: NotRequired[bool]
+ """
+ Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
+ """
+ routing: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting"
+ ]
+ """
+ Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting(
+ TypedDict,
+):
+ requested_priority: NotRequired[Literal["domestic", "international"]]
+ """
+ Routing requested priority
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCashapp(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCrypto(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalance(TypedDict):
+ bank_transfer: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
+ ]
+ """
+ Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ """
+ funding_type: NotRequired[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransfer(
+ TypedDict,
+):
+ eu_bank_transfer: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
+ ]
+ """
+ Configuration for the eu_bank_transfer funding type.
+ """
+ requested_address_types: NotRequired[
+ List[
+ Literal[
+ "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
+ ]
+ ]
+ ]
+ """
+ List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
+
+ Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
+ """
+ type: Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ """
+ The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
"""
-class PaymentIntentModifyParamsPaymentMethodDataPayByBank(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+ TypedDict,
+):
+ country: str
+ """
+ The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataPayco(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentMethodOptionsEps(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-class PaymentIntentModifyParamsPaymentMethodDataPaynow(TypedDict):
- pass
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-class PaymentIntentModifyParamsPaymentMethodDataPaypal(TypedDict):
- pass
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataPayto(TypedDict):
- account_number: NotRequired[str]
- """
- The account number for the bank account.
- """
- bsb_number: NotRequired[str]
- """
- Bank-State-Branch number of the bank account.
- """
- pay_id: NotRequired[str]
- """
- The PayID alias for the bank account.
+class PaymentIntentModifyParamsPaymentMethodOptionsFpx(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
"""
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-class PaymentIntentModifyParamsPaymentMethodDataPix(TypedDict):
- pass
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-class PaymentIntentModifyParamsPaymentMethodDataPromptpay(TypedDict):
- pass
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataRadarOptions(TypedDict):
- session: NotRequired[str]
- """
- A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
+class PaymentIntentModifyParamsPaymentMethodOptionsGiropay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
"""
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-class PaymentIntentModifyParamsPaymentMethodDataRevolutPay(TypedDict):
- pass
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-class PaymentIntentModifyParamsPaymentMethodDataSamsungPay(TypedDict):
- pass
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
-class PaymentIntentModifyParamsPaymentMethodDataSatispay(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentMethodOptionsGopay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none", "off_session"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-class PaymentIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict):
- iban: str
- """
- IBAN of the bank account.
- """
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-class PaymentIntentModifyParamsPaymentMethodDataSofort(TypedDict):
- country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
- """
- Two-letter ISO code representing the country the bank account is located in.
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
-class PaymentIntentModifyParamsPaymentMethodDataSwish(TypedDict):
- pass
+class PaymentIntentModifyParamsPaymentMethodOptionsGrabpay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-class PaymentIntentModifyParamsPaymentMethodDataTwint(TypedDict):
- pass
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-class PaymentIntentModifyParamsPaymentMethodDataUsBankAccount(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
- """
- Account holder type: individual or company.
- """
- account_number: NotRequired[str]
- """
- Account number of the bank account.
- """
- account_type: NotRequired[Literal["checking", "savings"]]
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
- Account type: checkings or savings. Defaults to checking if omitted.
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsIdBankTransfer(TypedDict):
+ expires_after: NotRequired[int]
"""
- financial_connections_account: NotRequired[str]
+ The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
"""
- The ID of a Financial Connections Account to use as a payment method.
+ expires_at: NotRequired[int]
"""
- routing_number: NotRequired[str]
+ The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
"""
- Routing number of the bank account.
+ setup_future_usage: NotRequired[Literal["none"]]
"""
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-class PaymentIntentModifyParamsPaymentMethodDataWechatPay(TypedDict):
- pass
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-class PaymentIntentModifyParamsPaymentMethodDataZip(TypedDict):
- pass
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
-class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict):
- acss_debit: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAcssDebit"
- ]
- """
- If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
- """
- affirm: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAffirm"
- ]
- """
- If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
- """
- afterpay_clearpay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAfterpayClearpay"
- ]
- """
- If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
- """
- alipay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAlipay"
- ]
- """
- If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
- """
- alma: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAlma"
- ]
- """
- If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
- """
- amazon_pay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAmazonPay"
- ]
- """
- If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
- """
- au_becs_debit: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit"
- ]
- """
- If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
- """
- bacs_debit: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit"
+class PaymentIntentModifyParamsPaymentMethodOptionsIdeal(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
]
"""
- If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
- bancontact: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBancontact"
- ]
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent(TypedDict):
+ pass
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
"""
- If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
"""
- billie: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBillie"
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
]
"""
- If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
- blik: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBlik"
- ]
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarna(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
"""
- If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
"""
- boleto: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsBoleto"
+ on_demand: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand"
]
"""
- If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
+ On-demand details if setting up or charging an on-demand payment.
"""
- card: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCard"
+ preferred_locale: NotRequired[
+ Literal[
+ "cs-CZ",
+ "da-DK",
+ "de-AT",
+ "de-CH",
+ "de-DE",
+ "el-GR",
+ "en-AT",
+ "en-AU",
+ "en-BE",
+ "en-CA",
+ "en-CH",
+ "en-CZ",
+ "en-DE",
+ "en-DK",
+ "en-ES",
+ "en-FI",
+ "en-FR",
+ "en-GB",
+ "en-GR",
+ "en-IE",
+ "en-IT",
+ "en-NL",
+ "en-NO",
+ "en-NZ",
+ "en-PL",
+ "en-PT",
+ "en-RO",
+ "en-SE",
+ "en-US",
+ "es-ES",
+ "es-US",
+ "fi-FI",
+ "fr-BE",
+ "fr-CA",
+ "fr-CH",
+ "fr-FR",
+ "it-CH",
+ "it-IT",
+ "nb-NO",
+ "nl-BE",
+ "nl-NL",
+ "pl-PL",
+ "pt-PT",
+ "ro-RO",
+ "sv-FI",
+ "sv-SE",
+ ]
]
"""
- Configuration for any card payments attempted on this PaymentIntent.
+ Preferred language of the Klarna authorization page that the customer is redirected to
"""
- card_present: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardPresent"
+ setup_future_usage: NotRequired[
+ Literal["none", "off_session", "on_session"]
]
"""
- If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
- cashapp: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCashapp"
+ subscriptions: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription]"
]
"""
- If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
+ Subscription details if setting up or charging a subscription.
"""
- crypto: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCrypto"
+ supplementary_purchase_data: NotRequired[
+ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData"
]
"""
- If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
+ Supplementary Purchase Data for the corresponding Klarna payment
"""
- customer_balance: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalance"
- ]
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict):
+ average_amount: NotRequired[int]
"""
- If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
+ Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
"""
- eps: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsEps"
- ]
+ maximum_amount: NotRequired[int]
"""
- If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
+ The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
"""
- fpx: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsFpx"
- ]
+ minimum_amount: NotRequired[int]
"""
- If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
+ The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
"""
- giropay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGiropay"
- ]
+ purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
"""
- If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
+ Interval at which the customer is making purchases
"""
- grabpay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGrabpay"
- ]
+ purchase_interval_count: NotRequired[int]
"""
- If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
+ The number of `purchase_interval` between charges
"""
- ideal: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsIdeal"
- ]
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
"""
- If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
+ Unit of time between subscription charges.
"""
- interac_present: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent"
- ]
+ interval_count: NotRequired[int]
"""
- If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
"""
- kakao_pay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay"
- ]
+ name: NotRequired[str]
"""
- If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
+ Name for subscription.
"""
- klarna: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKlarna"
+ next_billing: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
]
"""
- If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
+ Describes the upcoming charge for this subscription.
"""
- konbini: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKonbini"
- ]
+ reference: str
"""
- If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
+ A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
"""
- kr_card: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsKrCard"
- ]
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
+ TypedDict,
+):
+ amount: int
"""
- If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
+ The amount of the next charge for the subscription.
"""
- link: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsLink"
- ]
+ date: str
"""
- If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
+ The date of the next charge for the subscription in YYYY-MM-DD format.
"""
- mb_way: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMbWay"
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData(
+ TypedDict,
+):
+ bus_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]"
]
"""
- If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
+ Supplementary bus reservation details.
"""
- mobilepay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMobilepay"
+ event_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]"
]
"""
- If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
+ Supplementary event reservation details.
"""
- multibanco: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsMultibanco"
+ ferry_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]"
]
"""
- If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
+ Supplementary ferry reservation details.
"""
- naver_pay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsNaverPay"
+ insurances: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]"
]
"""
- If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
+ Supplementary insurance details.
"""
- nz_bank_account: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsNzBankAccount"
+ marketplace_sellers: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]"
]
"""
- If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
+ Supplementary marketplace seller details.
"""
- oxxo: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsOxxo"
+ round_trip_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]"
]
"""
- If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
+ Supplementary round trip reservation details.
"""
- p24: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsP24"
+ train_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]"
]
"""
- If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
+ Supplementary train reservation details.
"""
- pay_by_bank: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayByBank"
+ vouchers: NotRequired[
+ "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]"
]
"""
- If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
+ Voucher details, such as a gift card or discount code.
"""
- payco: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayco"
- ]
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
"""
- If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
+ Name of associated or partner company for the service.
"""
- paynow: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPaynow"
+ arrival: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival"
]
"""
- If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
+ Arrival details.
"""
- paypal: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPaypal"
- ]
+ carrier_name: NotRequired[str]
"""
- If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
+ Name of transportation company.
"""
- payto: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPayto"
- ]
+ currency: NotRequired[str]
"""
- If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
+ Currency.
"""
- pix: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPix"
+ departure: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture"
]
"""
- If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
+ Departure details.
"""
- promptpay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsPromptpay"
+ insurances: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance"
+ ]
]
"""
- If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
+ List of insurances for this reservation.
"""
- revolut_pay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay"
+ passengers: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger"
+ ]
]
"""
- If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
+ List of passengers that this reservation applies to.
"""
- samsung_pay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSamsungPay"
- ]
+ price: NotRequired[int]
"""
- If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
+ Price in cents.
"""
- satispay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSatispay"
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
]
"""
- If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
+ Ticket class.
"""
- sepa_debit: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit"
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress"
]
"""
- If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
- """
- sofort: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSofort"
- ]
+ Address of the arrival location.
"""
- If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
+ arrival_location: NotRequired[str]
"""
- swish: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSwish"
- ]
+ Identifier name or reference for the arrival location.
"""
- If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- twint: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsTwint"
- ]
+ The city or town.
"""
- If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
+ country: NotRequired[str]
"""
- us_bank_account: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccount"
- ]
+ The country in ISO 3166-1 alpha-2 format.
"""
- If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
+ postal_code: NotRequired[str]
"""
- wechat_pay: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsWechatPay"
- ]
+ The postal code formatted according to country.
"""
- If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
+ region: NotRequired[str]
"""
- zip: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsZip"
- ]
+ The state, county, province, or region formatted according to country.
"""
- If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
+ street_address: NotRequired[str]
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsAcssDebit(TypedDict):
- mandate_options: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodOptionsAcssDebitMandateOptions"
- ]
+ Line 1 of the street address.
"""
- Additional fields for Mandate creation
+ street_address2: NotRequired[str]
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ Line 2 of the street address.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress"
+ ]
"""
- target_date: NotRequired[str]
+ Address of the departure location.
"""
- Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ departs_at: NotRequired[int]
"""
- verification_method: NotRequired[
- Literal["automatic", "instant", "microdeposits"]
- ]
+ Timestamp of departure.
"""
- Bank account verification method.
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsAcssDebitMandateOptions(
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress(
TypedDict,
):
- custom_mandate_url: NotRequired["Literal['']|str"]
- """
- A URL for custom mandate text to render during confirmation step.
- The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
- or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
+ city: NotRequired[str]
"""
- interval_description: NotRequired[str]
+ The city or town.
"""
- Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
+ country: NotRequired[str]
"""
- payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
+ The country in ISO 3166-1 alpha-2 format.
"""
- Payment schedule for the mandate.
+ postal_code: NotRequired[str]
"""
- transaction_type: NotRequired[Literal["business", "personal"]]
+ The postal code formatted according to country.
"""
- Transaction type of the mandate.
+ region: NotRequired[str]
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsAffirm(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ The state, county, province, or region formatted according to country.
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ street_address: NotRequired[str]
"""
- preferred_locale: NotRequired[str]
+ Line 1 of the street address.
"""
- Preferred language of the Affirm authorization page that the customer is redirected to.
+ street_address2: NotRequired[str]
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ Line 2 of the street address.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsAfterpayClearpay(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ Insurance currency.
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ insurance_company_name: NotRequired[str]
"""
- reference: NotRequired[str]
+ Name of the company providing the insurance.
"""
- An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
- This field differs from the statement descriptor and item name.
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ Type of insurance.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ price: NotRequired[int]
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsAlipay(TypedDict):
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
- ]
+ Price of insurance in cents.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsAlma(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ The family name of the person.
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ given_name: NotRequired[str]
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsAmazonPay(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ The given name of the person.
"""
- Controls when the funds are captured from the customer's account.
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail(
+ TypedDict,
+):
+ access_controlled_venue: NotRequired[bool]
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress"
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ Address of the event.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit(TypedDict):
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ affiliate_name: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Name of associated or partner company for the service.
"""
- target_date: NotRequired[str]
+ ends_at: NotRequired[int]
"""
- Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ End timestamp of the event.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit(TypedDict):
- mandate_options: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions"
+ event_company_name: NotRequired[str]
+ """
+ Company selling the ticket.
+ """
+ event_name: NotRequired[str]
+ """
+ Name of the event.
+ """
+ event_type: NotRequired[
+ Literal[
+ "concert",
+ "conference",
+ "digital_education",
+ "expo",
+ "festival",
+ "in_person_education",
+ "sport",
+ "tour",
+ ]
]
"""
- Additional fields for Mandate creation
+ Type of the event.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
+ insurances: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance"
+ ]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ List of insurances for this event.
"""
- target_date: NotRequired[str]
+ starts_at: NotRequired[int]
"""
- Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ Start timestamp of the event.
+ """
+ venue_name: NotRequired[str]
+ """
+ Name of the venue where the event takes place.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions(
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress(
TypedDict,
):
- reference_prefix: NotRequired["Literal['']|str"]
+ city: NotRequired[str]
"""
- Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ The city or town.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsBancontact(TypedDict):
- preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+ country: NotRequired[str]
"""
- Preferred language of the Bancontact authorization page that the customer is redirected to.
+ The country in ISO 3166-1 alpha-2 format.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
- ]
+ postal_code: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The postal code formatted according to country.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsBillie(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ region: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ The state, county, province, or region formatted according to country.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsBlik(TypedDict):
- code: NotRequired[str]
+ street_address: NotRequired[str]
"""
- The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
+ Line 1 of the street address.
"""
- setup_future_usage: NotRequired["Literal['']|Literal['none']"]
+ street_address2: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Line 2 of the street address.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsBoleto(TypedDict):
- expires_after_days: NotRequired[int]
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
"""
- The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
+ Insurance currency.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Type of insurance.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsCard(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
"""
- Controls when the funds are captured from the customer's account.
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
"""
- cvc_token: NotRequired[str]
+ Currency.
"""
- A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
+ departure: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture"
+ ]
"""
- installments: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments"
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance"
+ ]
]
"""
- Installment configuration for payments attempted on this PaymentIntent.
-
- For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
+ List of insurances for this reservation.
"""
- mandate_options: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions"
+ passengers: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger"
+ ]
]
"""
- Configuration options for setting up an eMandate for cards issued in India.
+ List of passengers that this reservation applies to.
"""
- moto: NotRequired[bool]
+ price: NotRequired[int]
"""
- When specified, this parameter indicates that a transaction will be marked
- as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
- parameter can only be provided during confirmation.
+ Price in cents.
"""
- network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
]
"""
- Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
+ Ticket class.
"""
- request_extended_authorization: NotRequired[
- Literal["if_available", "never"]
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress"
]
"""
- Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
+ Address of the arrival location.
"""
- request_incremental_authorization: NotRequired[
- Literal["if_available", "never"]
- ]
+ arrival_location: NotRequired[str]
"""
- Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
+ Identifier name or reference for the arrival location.
"""
- request_multicapture: NotRequired[Literal["if_available", "never"]]
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
+ The city or town.
"""
- request_overcapture: NotRequired[Literal["if_available", "never"]]
+ country: NotRequired[str]
"""
- Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
+ The country in ISO 3166-1 alpha-2 format.
"""
- request_three_d_secure: NotRequired[
- Literal["any", "automatic", "challenge"]
- ]
+ postal_code: NotRequired[str]
"""
- We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ The postal code formatted according to country.
"""
- require_cvc_recollection: NotRequired[bool]
+ region: NotRequired[str]
"""
- When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
+ The state, county, province, or region formatted according to country.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- statement_descriptor_suffix_kana: NotRequired["Literal['']|str"]
+ The city or town.
"""
- Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
+ country: NotRequired[str]
"""
- statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"]
+ The country in ISO 3166-1 alpha-2 format.
"""
- Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
+ postal_code: NotRequired[str]
"""
- three_d_secure: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure"
- ]
+ The postal code formatted according to country.
"""
- If 3D Secure authentication was performed with a third-party provider,
- the authentication details to use for this payment.
+ region: NotRequired[str]
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsCardInstallments(TypedDict):
- enabled: NotRequired[bool]
+ The state, county, province, or region formatted according to country.
"""
- Setting to true enables installments for this PaymentIntent.
- This will cause the response to contain a list of available installment plans.
- Setting to false will prevent any selected plan from applying to a charge.
+ street_address: NotRequired[str]
"""
- plan: NotRequired[
- "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCardInstallmentsPlan"
- ]
+ Line 1 of the street address.
"""
- The selected installment plan to use for this payment attempt.
- This parameter can only be provided during confirmation.
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsCardInstallmentsPlan(
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance(
TypedDict,
):
- count: NotRequired[int]
+ currency: NotRequired[str]
"""
- For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
+ Insurance currency.
"""
- interval: NotRequired[Literal["month"]]
+ insurance_company_name: NotRequired[str]
"""
- For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
- One of `month`.
+ Name of the company providing the insurance.
"""
- type: Literal["bonus", "fixed_count", "revolving"]
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions(
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger(
TypedDict,
):
- amount: int
+ family_name: NotRequired[str]
"""
- Amount to be charged for future payments.
+ The family name of the person.
"""
- amount_type: Literal["fixed", "maximum"]
+ given_name: NotRequired[str]
"""
- One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ The given name of the person.
"""
- description: NotRequired[str]
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
"""
- A description of the mandate or subscription that is meant to be displayed to the customer.
+ Insurance currency.
"""
- end_date: NotRequired[int]
+ insurance_company_name: NotRequired[str]
"""
- End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ Name of the company providing the insurance.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
+ Type of insurance
"""
- interval_count: NotRequired[int]
+ price: NotRequired[int]
"""
- The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
+ Price of insurance in cents.
"""
- reference: str
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller(
+ TypedDict,
+):
+ line_item_references: NotRequired[List[str]]
"""
- Unique identifier for the mandate or subscription.
+ The references to line items for purchases with multiple associated sub-sellers.
"""
- start_date: int
+ marketplace_seller_address: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress"
+ ]
"""
- Start date of the mandate or subscription. Start date should not be lesser than yesterday.
+ The address of the selling or delivering merchant.
"""
- supported_types: NotRequired[List[Literal["india"]]]
+ marketplace_seller_name: NotRequired[str]
"""
- Specifies the type of mandates supported. Possible values are `india`.
+ The name of the marketplace seller.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure(TypedDict):
- ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]]
+ marketplace_seller_reference: NotRequired[str]
"""
- The `transStatus` returned from the card Issuer's ACS in the ARes.
+ The unique identifier for the marketplace seller.
"""
- cryptogram: str
+ number_of_transactions: NotRequired[int]
"""
- The cryptogram, also known as the "authentication value" (AAV, CAVV or
- AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
- (Most 3D Secure providers will return the base64-encoded version, which
- is what you should specify here.)
+ The number of transactions the sub-seller completed in the last 12 months.
"""
- electronic_commerce_indicator: NotRequired[
- Literal["01", "02", "05", "06", "07"]
+ product_category: NotRequired[
+ Literal[
+ "accessories",
+ "appliances",
+ "apps_and_games",
+ "arts_crafts_and_sewing",
+ "automotive",
+ "baby",
+ "baby_clothing",
+ "bags_and_purses",
+ "beauty",
+ "books",
+ "cds_and_vinyl",
+ "cell_phones_and_accessories",
+ "collectibles_and_fine_arts",
+ "digital_music",
+ "electronics",
+ "grocery_and_gourmet_food",
+ "handmade",
+ "health_and_personal_care",
+ "home_and_kitchen",
+ "industrial_and_scientific",
+ "luggage_and_travel_gear",
+ "magazine_subscriptions",
+ "men_clothing",
+ "musical_instruments",
+ "office_products",
+ "patio_lawn_and_garden",
+ "pet_supplies",
+ "shoes",
+ "software",
+ "sports_and_outdoors",
+ "tools_and_home_improvement",
+ "toys_and_games",
+ "video_games",
+ "women_clothing",
+ ]
]
"""
- The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
- provider and indicates what degree of authentication was performed.
+ The category of the product.
"""
- exemption_indicator: NotRequired[Literal["low_risk", "none"]]
+ seller_last_login_at: NotRequired[int]
"""
- The exemption requested via 3DS and accepted by the issuer at authentication time.
+ The date when the seller's account with the marketplace was last logged in.
"""
- network_options: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions"
+ seller_rating: NotRequired[
+ Literal["high", "low", "medium", "very_high", "very_low"]
]
"""
- Network specific 3DS fields. Network specific arguments require an
- explicit card brand choice. The parameter `payment_method_options.card.network``
- must be populated accordingly
+ The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
"""
- requestor_challenge_indicator: NotRequired[str]
+ seller_registered_at: NotRequired[int]
"""
- The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
- AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
+ The date when the seller's account with the marketplace was created.
"""
- transaction_id: str
+ seller_updated_at: NotRequired[int]
"""
- For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
- Transaction ID (dsTransID).
+ The date when the seller's account with the marketplace was last updated.
"""
- version: Literal["1.0.2", "2.1.0", "2.2.0"]
+ shipping_references: NotRequired[List[str]]
"""
- The version of 3D Secure that was performed.
+ The references to shipping addresses for purchases with multiple associated sub-sellers.
+ """
+ volume_of_transactions: NotRequired[int]
+ """
+ The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions(
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress(
TypedDict,
):
- cartes_bancaires: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires"
- ]
+ city: NotRequired[str]
"""
- Cartes Bancaires-specific 3DS fields.
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires(
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail(
TypedDict,
):
- cb_avalgo: Literal["0", "1", "2", "3", "4", "A"]
+ affiliate_name: NotRequired[str]
"""
- The cryptogram calculation algorithm used by the card Issuer's ACS
- to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
- messageExtension: CB-AVALGO
+ Name of associated or partner company for the service.
"""
- cb_exemption: NotRequired[str]
+ arrival: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival"
+ ]
"""
- The exemption indicator returned from Cartes Bancaires in the ARes.
- message extension: CB-EXEMPTION; string (4 characters)
- This is a 3 byte bitmap (low significant byte first and most significant
- bit first) that has been Base64 encoded
+ Arrival details.
"""
- cb_score: NotRequired[int]
+ carrier_name: NotRequired[str]
"""
- The risk score returned from Cartes Bancaires in the ARes.
- message extension: CB-SCORE; numeric value 0-99
+ Name of transportation company.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsCardPresent(TypedDict):
- capture_method: NotRequired[Literal["manual", "manual_preferred"]]
+ currency: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Currency.
"""
- request_extended_authorization: NotRequired[bool]
+ departure: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture"
+ ]
"""
- Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
+ Departure details.
"""
- request_incremental_authorization_support: NotRequired[bool]
+ insurances: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance"
+ ]
+ ]
"""
- Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
+ List of insurances for this reservation.
"""
- routing: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting"
+ passengers: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress"
]
"""
- Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting(
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress(
TypedDict,
):
- requested_priority: NotRequired[Literal["domestic", "international"]]
+ city: NotRequired[str]
"""
- Routing requested priority
+ The city or town.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsCashapp(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ country: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ The country in ISO 3166-1 alpha-2 format.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ postal_code: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The postal code formatted according to country.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsCrypto(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ region: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalance(TypedDict):
- bank_transfer: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress"
]
"""
- Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ Address of the departure location.
"""
- funding_type: NotRequired[Literal["bank_transfer"]]
+ departs_at: NotRequired[int]
"""
- The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ Timestamp of departure.
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ departure_location: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransfer(
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress(
TypedDict,
):
- eu_bank_transfer: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
- ]
+ city: NotRequired[str]
"""
- Configuration for the eu_bank_transfer funding type.
+ The city or town.
"""
- requested_address_types: NotRequired[
- List[
- Literal[
- "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
- ]
- ]
- ]
+ country: NotRequired[str]
"""
- List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
-
- Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
+ The country in ISO 3166-1 alpha-2 format.
"""
- type: Literal[
- "eu_bank_transfer",
- "gb_bank_transfer",
- "jp_bank_transfer",
- "mx_bank_transfer",
- "us_bank_transfer",
- ]
+ postal_code: NotRequired[str]
"""
- The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance(
TypedDict,
):
- country: str
+ currency: NotRequired[str]
"""
- The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ Insurance currency.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsEps(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ insurance_company_name: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Name of the company providing the insurance.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsFpx(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Type of insurance.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsGiropay(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ price: NotRequired[int]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Price of insurance in cents.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsGrabpay(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The family name of the person.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsIdeal(TypedDict):
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
- ]
+ given_name: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The given name of the person.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsInteracPresent(TypedDict):
- pass
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsKakaoPay(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Name of associated or partner company for the service.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
+ arrival: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival"
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ Arrival details.
"""
-
-
-class PaymentIntentModifyParamsPaymentMethodOptionsKlarna(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ carrier_name: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Name of transportation company.
"""
- on_demand: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand"
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture"
]
"""
- On-demand details if setting up or charging an on-demand payment.
+ Departure details.
"""
- preferred_locale: NotRequired[
- Literal[
- "cs-CZ",
- "da-DK",
- "de-AT",
- "de-CH",
- "de-DE",
- "el-GR",
- "en-AT",
- "en-AU",
- "en-BE",
- "en-CA",
- "en-CH",
- "en-CZ",
- "en-DE",
- "en-DK",
- "en-ES",
- "en-FI",
- "en-FR",
- "en-GB",
- "en-GR",
- "en-IE",
- "en-IT",
- "en-NL",
- "en-NO",
- "en-NZ",
- "en-PL",
- "en-PT",
- "en-RO",
- "en-SE",
- "en-US",
- "es-ES",
- "es-US",
- "fi-FI",
- "fr-BE",
- "fr-CA",
- "fr-CH",
- "fr-FR",
- "it-CH",
- "it-IT",
- "nb-NO",
- "nl-BE",
- "nl-NL",
- "pl-PL",
- "pt-PT",
- "ro-RO",
- "sv-FI",
- "sv-SE",
+ insurances: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance"
]
]
"""
- Preferred language of the Klarna authorization page that the customer is redirected to
+ List of insurances for this reservation.
"""
- setup_future_usage: NotRequired[
- Literal["none", "off_session", "on_session"]
+ passengers: NotRequired[
+ List[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger"
+ ]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- subscriptions: NotRequired[
- "Literal['']|List[PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription]"
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress"
]
"""
- Subscription details if setting up or charging a subscription.
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict):
- average_amount: NotRequired[int]
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
+ The city or town.
"""
- maximum_amount: NotRequired[int]
+ country: NotRequired[str]
"""
- The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ The country in ISO 3166-1 alpha-2 format.
"""
- minimum_amount: NotRequired[int]
+ postal_code: NotRequired[str]
"""
- The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ The postal code formatted according to country.
"""
- purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
+ region: NotRequired[str]
"""
- Interval at which the customer is making purchases
+ The state, county, province, or region formatted according to country.
"""
- purchase_interval_count: NotRequired[int]
+ street_address: NotRequired[str]
"""
- The number of `purchase_interval` between charges
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscription(
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance(
TypedDict,
):
- interval: Literal["day", "month", "week", "year"]
+ currency: NotRequired[str]
"""
- Unit of time between subscription charges.
+ Insurance currency.
"""
- interval_count: NotRequired[int]
+ insurance_company_name: NotRequired[str]
"""
- The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
+ Name of the company providing the insurance.
"""
- name: NotRequired[str]
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- Name for subscription.
+ Type of insurance.
"""
- next_billing: NotRequired[
- "PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
- ]
+ price: NotRequired[int]
"""
- Describes the upcoming charge for this subscription.
+ Price of insurance in cents.
"""
- reference: str
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
"""
- A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
"""
-class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
+class PaymentIntentModifyParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher(
TypedDict,
):
- amount: int
+ affiliate_name: NotRequired[str]
"""
- The amount of the next charge for the subscription.
+ Name of associated or partner company for this voucher.
"""
- date: str
+ ends_at: NotRequired[int]
"""
- The date of the next charge for the subscription in YYYY-MM-DD format.
+ The voucher validity end time.
+ """
+ starts_at: NotRequired[int]
+ """
+ The voucher validity start time.
+ """
+ voucher_company: NotRequired[str]
+ """
+ The issuer or provider of this voucher.
+ """
+ voucher_name: NotRequired[str]
+ """
+ The name or reference to identify the voucher.
+ """
+ voucher_type: NotRequired[
+ Literal[
+ "digital_product",
+ "discount",
+ "gift_card",
+ "physical_product",
+ "services",
+ ]
+ ]
+ """
+ The type of this voucher.
"""
@@ -2697,6 +5845,12 @@ class PaymentIntentModifyParamsPaymentMethodOptionsPaypal(TypedDict):
"""
Controls when the funds will be captured from the customer's account.
"""
+ line_items: NotRequired[
+ List["PaymentIntentModifyParamsPaymentMethodOptionsPaypalLineItem"]
+ ]
+ """
+ The line items purchased by the customer.
+ """
preferred_locale: NotRequired[
Literal[
"cs-CZ",
@@ -2729,6 +5883,10 @@ class PaymentIntentModifyParamsPaymentMethodOptionsPaypal(TypedDict):
"""
A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
"""
+ reference_id: NotRequired[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
risk_correlation_id: NotRequired[str]
"""
The risk correlation ID for an on-session payment using a saved PayPal payment method.
@@ -2747,6 +5905,73 @@ class PaymentIntentModifyParamsPaymentMethodOptionsPaypal(TypedDict):
If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
+ subsellers: NotRequired[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsPaypalLineItem(TypedDict):
+ category: NotRequired[
+ Literal["digital_goods", "donation", "physical_goods"]
+ ]
+ """
+ Type of the line item.
+ """
+ description: NotRequired[str]
+ """
+ Description of the line item.
+ """
+ name: str
+ """
+ Descriptive name of the line item.
+ """
+ quantity: int
+ """
+ Quantity of the line item. Must be a positive number.
+ """
+ sku: NotRequired[str]
+ """
+ Client facing stock keeping unit, article number or similar.
+ """
+ sold_by: NotRequired[str]
+ """
+ The Stripe account ID of the connected account that sells the item.
+ """
+ tax: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsPaypalLineItemTax"
+ ]
+ """
+ The tax information for the line item.
+ """
+ unit_amount: int
+ """
+ Price for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsPaypalLineItemTax(
+ TypedDict
+):
+ amount: int
+ """
+ The tax for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+ behavior: Literal["exclusive", "inclusive"]
+ """
+ The tax behavior for the line item.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsPaypay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
class PaymentIntentModifyParamsPaymentMethodOptionsPayto(TypedDict):
@@ -2818,7 +6043,13 @@ class PaymentIntentModifyParamsPaymentMethodOptionsPix(TypedDict):
"""
The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ mandate_options: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsPixMandateOptions"
+ ]
+ """
+ Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
+ """
+ setup_future_usage: NotRequired[Literal["none", "off_session"]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2832,6 +6063,45 @@ class PaymentIntentModifyParamsPaymentMethodOptionsPix(TypedDict):
"""
+class PaymentIntentModifyParamsPaymentMethodOptionsPixMandateOptions(
+ TypedDict
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
+ """
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ Type of amount. Defaults to `maximum`.
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
+ """
+ end_date: NotRequired[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ payment_schedule: NotRequired[
+ Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"]
+ ]
+ """
+ Schedule at which the future payments will be charged. Defaults to `weekly`.
+ """
+ reference: NotRequired[str]
+ """
+ Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
+ """
+ start_date: NotRequired[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
+ """
+
+
class PaymentIntentModifyParamsPaymentMethodOptionsPromptpay(TypedDict):
setup_future_usage: NotRequired[Literal["none"]]
"""
@@ -2847,6 +6117,25 @@ class PaymentIntentModifyParamsPaymentMethodOptionsPromptpay(TypedDict):
"""
+class PaymentIntentModifyParamsPaymentMethodOptionsQris(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsRechnung(TypedDict):
+ pass
+
+
class PaymentIntentModifyParamsPaymentMethodOptionsRevolutPay(TypedDict):
capture_method: NotRequired["Literal['']|Literal['manual']"]
"""
@@ -2928,6 +6217,21 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions(
"""
+class PaymentIntentModifyParamsPaymentMethodOptionsShopeepay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
class PaymentIntentModifyParamsPaymentMethodOptionsSofort(TypedDict):
preferred_language: NotRequired[
"Literal['']|Literal['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']"
@@ -2951,6 +6255,23 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSofort(TypedDict):
"""
+class PaymentIntentModifyParamsPaymentMethodOptionsStripeBalance(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
class PaymentIntentModifyParamsPaymentMethodOptionsSwish(TypedDict):
reference: NotRequired["Literal['']|str"]
"""
@@ -3045,6 +6366,12 @@ class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnect
"""
Provide filters for the linked accounts that the customer can select for the payment method.
"""
+ manual_entry: NotRequired[
+ "PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
+ ]
+ """
+ Customize manual entry behavior
+ """
permissions: NotRequired[
List[
Literal["balances", "ownership", "payment_method", "transactions"]
@@ -3054,7 +6381,11 @@ class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnect
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -3072,6 +6403,19 @@ class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnect
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
+
+
+class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
+ TypedDict,
+):
+ mode: Literal["automatic", "custom"]
+ """
+ Settings for configuring manual entry of account details.
+ """
class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions(
diff --git a/stripe/params/_payment_intent_trigger_action_params.py b/stripe/params/_payment_intent_trigger_action_params.py
new file mode 100644
index 000000000..0ed2bd9af
--- /dev/null
+++ b/stripe/params/_payment_intent_trigger_action_params.py
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class PaymentIntentTriggerActionParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ scan_qr_code: NotRequired["PaymentIntentTriggerActionParamsScanQrCode"]
+ """
+ True to simulate success, false to simulate failure.
+ """
+ type: Literal["expire", "fund"]
+ """
+ The type of action to be simulated.
+ """
+
+
+class PaymentIntentTriggerActionParamsScanQrCode(TypedDict):
+ result: NotRequired[Literal["failure", "success"]]
+ """
+ Whether the QR Code scan's payment should succeed or fail.
+ """
diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py
index 59a8179fd..ab45039ee 100644
--- a/stripe/params/_payment_intent_update_params.py
+++ b/stripe/params/_payment_intent_update_params.py
@@ -50,7 +50,7 @@ class PaymentIntentUpdateParams(TypedDict):
An arbitrary string attached to the object. Often useful for displaying to users.
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types to exclude from use with this payment.
@@ -59,10 +59,18 @@ class PaymentIntentUpdateParams(TypedDict):
"""
Specifies which fields in the response should be expanded.
"""
+ fx_quote: NotRequired[str]
+ """
+ The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
+ """
hooks: NotRequired["PaymentIntentUpdateParamsHooks"]
"""
Automations to be run during the PaymentIntent lifecycle
"""
+ mandate_data: NotRequired["PaymentIntentUpdateParamsMandateData"]
+ """
+ This hash contains details about the Mandate to create.
+ """
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -74,9 +82,6 @@ class PaymentIntentUpdateParams(TypedDict):
Provides industry-specific information about the charge.
"""
payment_method: NotRequired[str]
- """
- ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. To unset this field to null, pass in an empty string.
- """
payment_method_configuration: NotRequired[str]
"""
The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent.
@@ -348,13 +353,80 @@ class PaymentIntentUpdateParamsHooksInputsTax(TypedDict):
"""
+class PaymentIntentUpdateParamsMandateData(TypedDict):
+ customer_acceptance: (
+ "PaymentIntentUpdateParamsMandateDataCustomerAcceptance"
+ )
+ """
+ This hash contains details about the customer acceptance of the Mandate.
+ """
+
+
+class PaymentIntentUpdateParamsMandateDataCustomerAcceptance(TypedDict):
+ online: "PaymentIntentUpdateParamsMandateDataCustomerAcceptanceOnline"
+ """
+ If this is a Mandate accepted online, this hash contains details about the online acceptance.
+ """
+ type: Literal["online"]
+ """
+ The type of customer acceptance information included with the Mandate.
+ """
+
+
+class PaymentIntentUpdateParamsMandateDataCustomerAcceptanceOnline(TypedDict):
+ ip_address: NotRequired[str]
+ """
+ The IP address from which the Mandate was accepted by the customer.
+ """
+ user_agent: NotRequired[str]
+ """
+ The user agent of the browser from which the Mandate was accepted by the customer.
+ """
+
+
class PaymentIntentUpdateParamsPaymentDetails(TypedDict):
+ car_rental: NotRequired["PaymentIntentUpdateParamsPaymentDetailsCarRental"]
+ """
+ Car rental details for this PaymentIntent.
+ """
+ car_rental_data: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum]"
+ ]
+ """
+ Car rental data for this PaymentIntent.
+ """
customer_reference: NotRequired["Literal['']|str"]
"""
A unique value to identify the customer. This field is available only for card payments.
This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
"""
+ event_details: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsEventDetails"
+ ]
+ """
+ Event details for this PaymentIntent
+ """
+ flight: NotRequired["PaymentIntentUpdateParamsPaymentDetailsFlight"]
+ """
+ Flight reservation details for this PaymentIntent
+ """
+ flight_data: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentDetailsFlightDatum]"
+ ]
+ """
+ Flight data for this PaymentIntent.
+ """
+ lodging: NotRequired["PaymentIntentUpdateParamsPaymentDetailsLodging"]
+ """
+ Lodging reservation details for this PaymentIntent
+ """
+ lodging_data: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentDetailsLodgingDatum]"
+ ]
+ """
+ Lodging data for this PaymentIntent.
+ """
order_reference: NotRequired["Literal['']|str"]
"""
A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
@@ -363,427 +435,486 @@ class PaymentIntentUpdateParamsPaymentDetails(TypedDict):
For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
"""
+ subscription: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsSubscription"
+ ]
+ """
+ Subscription details for this PaymentIntent
+ """
-class PaymentIntentUpdateParamsPaymentMethodData(TypedDict):
- acss_debit: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataAcssDebit"
+class PaymentIntentUpdateParamsPaymentDetailsCarRental(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalAffiliate"
]
"""
- If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
+ Affiliate details for this purchase.
"""
- affirm: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAffirm"]
+ booking_number: str
"""
- If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
+ The booking number associated with the car rental.
"""
- afterpay_clearpay: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataAfterpayClearpay"
- ]
+ car_class_code: NotRequired[str]
"""
- If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
+ Class code of the car.
"""
- alipay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAlipay"]
+ car_make: NotRequired[str]
"""
- If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
+ Make of the car.
"""
- allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
+ car_model: NotRequired[str]
"""
- This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
+ Model of the car.
"""
- alma: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAlma"]
+ company: NotRequired[str]
"""
- If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
+ The name of the rental car company.
"""
- amazon_pay: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataAmazonPay"
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the car rental company.
+ """
+ days_rented: int
+ """
+ Number of days the car is being rented.
+ """
+ delivery: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDelivery"
]
"""
- If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
+ Delivery details for this purchase.
"""
- au_becs_debit: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit"
+ distance: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDistance"
]
"""
- If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
+ The details of the distance traveled during the rental period.
"""
- bacs_debit: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataBacsDebit"
+ drivers: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsCarRentalDriver"]
]
"""
- If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
+ The details of the passengers in the travel reservation
"""
- bancontact: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataBancontact"
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "extra_mileage",
+ "gas",
+ "late_return",
+ "one_way_service",
+ "parking_violation",
+ ]
+ ]
]
"""
- If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
+ List of additional charges being billed.
"""
- billie: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBillie"]
+ no_show: NotRequired[bool]
"""
- If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
+ Indicates if the customer did not keep nor cancel their booking.
"""
- billing_details: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataBillingDetails"
+ pickup_address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalPickupAddress"
]
"""
- Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
+ Car pick-up address.
"""
- blik: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBlik"]
+ pickup_at: int
"""
- If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
+ Car pick-up time. Measured in seconds since the Unix epoch.
"""
- boleto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBoleto"]
+ pickup_location_name: NotRequired[str]
"""
- If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
+ Name of the pickup location.
"""
- cashapp: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataCashapp"]
+ rate_amount: NotRequired[int]
"""
- If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
+ Rental rate.
"""
- crypto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataCrypto"]
+ rate_interval: NotRequired[Literal["day", "month", "week"]]
"""
- If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
+ The frequency at which the rate amount is applied. One of `day`, `week` or `month`
"""
- customer_balance: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance"
+ renter_name: NotRequired[str]
+ """
+ The name of the person or entity renting the car.
+ """
+ return_address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalReturnAddress"
]
"""
- If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
+ Car return address.
"""
- eps: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataEps"]
+ return_at: int
"""
- If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
+ Car return time. Measured in seconds since the Unix epoch.
"""
- fpx: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataFpx"]
+ return_location_name: NotRequired[str]
"""
- If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
+ Name of the return location.
"""
- giropay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataGiropay"]
+ tax_exempt: NotRequired[bool]
"""
- If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
+ Indicates whether the goods or services are tax-exempt or tax is not collected.
"""
- grabpay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataGrabpay"]
+ vehicle_identification_number: NotRequired[str]
"""
- If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
+ The vehicle identification number.
"""
- ideal: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataIdeal"]
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalAffiliate(TypedDict):
+ name: str
"""
- If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
+ The name of the affiliate that originated the purchase.
"""
- interac_present: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataInteracPresent"
- ]
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
"""
- If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
+ The delivery method for the payment
"""
- kakao_pay: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataKakaoPay"
+ recipient: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDeliveryRecipient"
]
"""
- If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
+ Details of the recipient.
"""
- klarna: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKlarna"]
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
"""
- If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
+ The email of the recipient the ticket is delivered to.
"""
- konbini: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKonbini"]
+ name: NotRequired[str]
"""
- If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
+ The name of the recipient the ticket is delivered to.
"""
- kr_card: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKrCard"]
+ phone: NotRequired[str]
"""
- If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
+ The phone number of the recipient the ticket is delivered to.
"""
- link: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataLink"]
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDistance(TypedDict):
+ amount: NotRequired[int]
"""
- If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
+ Distance traveled.
"""
- mb_way: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataMbWay"]
+ unit: NotRequired[Literal["kilometers", "miles"]]
"""
- If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
"""
- metadata: NotRequired[Dict[str, str]]
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDriver(TypedDict):
+ driver_identification_number: NotRequired[str]
"""
- Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ Driver's identification number.
"""
- mobilepay: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataMobilepay"
- ]
+ driver_tax_number: NotRequired[str]
"""
- If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
+ Driver's tax number.
"""
- multibanco: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataMultibanco"
- ]
+ name: str
"""
- If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
+ Full name of the person or entity on the car reservation.
"""
- naver_pay: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataNaverPay"
- ]
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalPickupAddress(TypedDict):
+ city: NotRequired[str]
"""
- If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
+ City, district, suburb, town, or village.
"""
- nz_bank_account: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataNzBankAccount"
- ]
+ country: NotRequired[str]
"""
- If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- oxxo: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataOxxo"]
+ line1: NotRequired[str]
"""
- If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
+ Address line 1, such as the street, PO Box, or company name.
"""
- p24: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataP24"]
+ line2: NotRequired[str]
"""
- If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
+ Address line 2, such as the apartment, suite, unit, or building.
"""
- pay_by_bank: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataPayByBank"
- ]
+ postal_code: NotRequired[str]
"""
- If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
+ ZIP or postal code.
"""
- payco: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPayco"]
+ state: NotRequired[str]
"""
- If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""
- paynow: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPaynow"]
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalReturnAddress(TypedDict):
+ city: NotRequired[str]
"""
- If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
+ City, district, suburb, town, or village.
"""
- paypal: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPaypal"]
+ country: NotRequired[str]
"""
- If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- payto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPayto"]
+ line1: NotRequired[str]
"""
- If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
+ Address line 1, such as the street, PO Box, or company name.
"""
- pix: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPix"]
+ line2: NotRequired[str]
"""
- If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
+ Address line 2, such as the apartment, suite, unit, or building.
"""
- promptpay: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataPromptpay"
- ]
+ postal_code: NotRequired[str]
"""
- If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
+ ZIP or postal code.
"""
- radar_options: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataRadarOptions"
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate"
]
"""
- Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
+ Affiliate (such as travel agency) details for the rental.
"""
- revolut_pay: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataRevolutPay"
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the car rental.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of the car rental company.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the car rental company.
+ """
+ days_rented: NotRequired[int]
+ """
+ Number of days the car is being rented.
+ """
+ distance: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance"
]
"""
- If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
+ Distance details for the rental.
"""
- samsung_pay: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataSamsungPay"
+ drivers: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver"]
]
"""
- If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
+ List of drivers for the rental.
"""
- satispay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSatispay"]
+ drop_off: "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff"
"""
- If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
+ Drop-off location details.
"""
- sepa_debit: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit"
+ insurances: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance"]
]
"""
- If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
+ Insurance details for the rental.
"""
- sofort: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSofort"]
+ no_show_indicator: NotRequired[bool]
"""
- If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
+ Indicates if the customer was a no-show.
"""
- swish: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSwish"]
+ pickup: "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup"
"""
- If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
+ Pickup location details.
"""
- twint: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataTwint"]
+ renter_name: NotRequired[str]
"""
- If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
+ Name of the person renting the vehicle.
"""
- type: Literal[
- "acss_debit",
- "affirm",
- "afterpay_clearpay",
- "alipay",
- "alma",
- "amazon_pay",
- "au_becs_debit",
- "bacs_debit",
- "bancontact",
- "billie",
- "blik",
- "boleto",
- "cashapp",
- "crypto",
- "customer_balance",
- "eps",
- "fpx",
- "giropay",
- "grabpay",
- "ideal",
- "kakao_pay",
- "klarna",
- "konbini",
- "kr_card",
- "link",
- "mb_way",
- "mobilepay",
- "multibanco",
- "naver_pay",
- "nz_bank_account",
- "oxxo",
- "p24",
- "pay_by_bank",
- "payco",
- "paynow",
- "paypal",
- "payto",
- "pix",
- "promptpay",
- "revolut_pay",
- "samsung_pay",
- "satispay",
- "sepa_debit",
- "sofort",
- "swish",
- "twint",
- "us_bank_account",
- "wechat_pay",
- "zip",
- ]
+ total: "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal"
"""
- The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
+ Total cost breakdown for the rental.
"""
- us_bank_account: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount"
+ vehicle: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle"
]
"""
- If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
+ Vehicle details for the rental.
"""
- wechat_pay: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodDataWechatPay"
- ]
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumAffiliate(
+ TypedDict
+):
+ code: NotRequired[str]
"""
- If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
+ Affiliate partner code.
"""
- zip: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataZip"]
+ name: NotRequired[str]
"""
- If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
+ Name of affiliate partner.
"""
-class PaymentIntentUpdateParamsPaymentMethodDataAcssDebit(TypedDict):
- account_number: str
- """
- Customer's bank account number.
- """
- institution_number: str
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDistance(TypedDict):
+ amount: int
"""
- Institution number of the customer's bank.
+ Distance traveled.
"""
- transit_number: str
+ unit: Literal["kilometers", "miles"]
"""
- Transit number of the customer's bank.
+ Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
"""
-class PaymentIntentUpdateParamsPaymentMethodDataAffirm(TypedDict):
- pass
-
-
-class PaymentIntentUpdateParamsPaymentMethodDataAfterpayClearpay(TypedDict):
- pass
-
-
-class PaymentIntentUpdateParamsPaymentMethodDataAlipay(TypedDict):
- pass
-
-
-class PaymentIntentUpdateParamsPaymentMethodDataAlma(TypedDict):
- pass
-
-
-class PaymentIntentUpdateParamsPaymentMethodDataAmazonPay(TypedDict):
- pass
-
-
-class PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit(TypedDict):
- account_number: str
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriver(TypedDict):
+ date_of_birth: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth"
+ ]
"""
- The account number for the bank account.
+ Driver's date of birth.
"""
- bsb_number: str
+ driver_identification_number: NotRequired[str]
"""
- Bank-State-Branch number of the bank account.
+ Driver's identification number.
+ """
+ driver_tax_number: NotRequired[str]
+ """
+ Driver's tax number.
+ """
+ name: str
+ """
+ Driver's full name.
"""
-class PaymentIntentUpdateParamsPaymentMethodDataBacsDebit(TypedDict):
- account_number: NotRequired[str]
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDriverDateOfBirth(
+ TypedDict,
+):
+ day: int
"""
- Account number of the bank account that the funds will be debited from.
+ Day of birth (1-31).
"""
- sort_code: NotRequired[str]
+ month: int
"""
- Sort code of the bank account. (e.g., `10-20-30`)
+ Month of birth (1-12).
+ """
+ year: int
+ """
+ Year of birth (must be greater than 1900).
"""
-class PaymentIntentUpdateParamsPaymentMethodDataBancontact(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOff(TypedDict):
+ address: (
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress"
+ )
+ """
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataBillie(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumDropOffAddress(
+ TypedDict,
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataBillingDetails(TypedDict):
- address: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress"
- ]
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumInsurance(
+ TypedDict
+):
+ amount: int
"""
- Billing address.
+ Amount of the insurance coverage in cents.
"""
- email: NotRequired["Literal['']|str"]
+ currency: NotRequired[str]
"""
- Email address.
+ Currency of the insurance amount.
"""
- name: NotRequired["Literal['']|str"]
+ insurance_company_name: NotRequired[str]
"""
- Full name.
+ Name of the insurance company.
"""
- phone: NotRequired["Literal['']|str"]
+ insurance_type: Literal[
+ "liability_supplement",
+ "loss_damage_waiver",
+ "other",
+ "partial_damage_waiver",
+ "personal_accident",
+ "personal_effects",
+ ]
"""
- Billing phone number (including extension).
+ Type of insurance coverage.
"""
- tax_id: NotRequired[str]
+
+
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickup(TypedDict):
+ address: (
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress"
+ )
"""
- Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
+ Address of the rental location.
+ """
+ location_name: NotRequired[str]
+ """
+ Location name.
+ """
+ time: int
+ """
+ Timestamp for the location.
"""
-class PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress(
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumPickupAddress(
TypedDict,
):
- city: NotRequired[str]
+ city: str
"""
City, district, suburb, town, or village.
"""
- country: NotRequired[str]
+ country: str
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- line1: NotRequired[str]
+ line1: str
"""
Address line 1, such as the street, PO Box, or company name.
"""
@@ -791,7 +922,7 @@ class PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress(
"""
Address line 2, such as the apartment, suite, unit, or building.
"""
- postal_code: NotRequired[str]
+ postal_code: str
"""
ZIP or postal code.
"""
@@ -801,231 +932,1973 @@ class PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress(
"""
-class PaymentIntentUpdateParamsPaymentMethodDataBlik(TypedDict):
- pass
-
-
-class PaymentIntentUpdateParamsPaymentMethodDataBoleto(TypedDict):
- tax_id: str
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotal(TypedDict):
+ amount: int
"""
- The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
+ Total amount in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the rental.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the rental.
+ """
+ rate_per_unit: NotRequired[int]
+ """
+ Rate per unit for the rental.
+ """
+ rate_unit: NotRequired[
+ Literal["days", "kilometers", "miles", "months", "weeks"]
+ ]
+ """
+ Unit of measurement for the rate.
+ """
+ tax: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the rental.
"""
-class PaymentIntentUpdateParamsPaymentMethodDataCashapp(TypedDict):
- pass
-
-
-class PaymentIntentUpdateParamsPaymentMethodDataCrypto(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code applied to the rental.
+ """
+ maximum_free_miles_or_kilometers: NotRequired[int]
+ """
+ Maximum number of free miles or kilometers included.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount of the extra charge in cents.
+ """
+ type: Literal[
+ "extra_mileage",
+ "gas",
+ "gps",
+ "late_charge",
+ "one_way_drop_off",
+ "other",
+ "parking",
+ "phone",
+ "regular_mileage",
+ "towing",
+ ]
+ """
+ Type of extra charge.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataEps(TypedDict):
- bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates if the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax"
]
]
"""
- The customer's bank.
+ Array of tax details.
"""
-class PaymentIntentUpdateParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
- """
- Account holder type for FPX transaction
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumTotalTaxTax(
+ TypedDict,
+):
+ amount: NotRequired[int]
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bsn",
- "cimb",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
- ]
+ Tax amount.
"""
- The customer's bank.
+ rate: NotRequired[int]
+ """
+ Tax rate applied.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
"""
-class PaymentIntentUpdateParamsPaymentMethodDataGiropay(TypedDict):
- pass
-
-
-class PaymentIntentUpdateParamsPaymentMethodDataGrabpay(TypedDict):
- pass
-
-
-class PaymentIntentUpdateParamsPaymentMethodDataIdeal(TypedDict):
- bank: NotRequired[
+class PaymentIntentUpdateParamsPaymentDetailsCarRentalDatumVehicle(TypedDict):
+ make: NotRequired[str]
+ """
+ Make of the rental vehicle.
+ """
+ model: NotRequired[str]
+ """
+ Model of the rental vehicle.
+ """
+ odometer: NotRequired[int]
+ """
+ Odometer reading at the time of rental.
+ """
+ type: NotRequired[
Literal[
- "abn_amro",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
+ "cargo_van",
+ "compact",
+ "economy",
+ "exotic",
+ "exotic_suv",
+ "fifteen_passenger_van",
+ "four_wheel_drive",
+ "full_size",
+ "intermediate",
+ "large_suv",
+ "large_truck",
+ "luxury",
+ "medium_suv",
+ "midsize",
+ "mini",
+ "minivan",
+ "miscellaneous",
+ "moped",
+ "moving_van",
+ "premium",
+ "regular",
+ "small_medium_truck",
+ "small_suv",
+ "special",
+ "standard",
+ "stretch",
+ "subcompact",
+ "taxi",
+ "twelve_foot_truck",
+ "twelve_passenger_van",
+ "twenty_foot_truck",
+ "twenty_four_foot_truck",
+ "twenty_six_foot_truck",
+ "unique",
]
]
"""
- The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
+ Type of the rental vehicle.
+ """
+ vehicle_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Class of the rental vehicle.
+ """
+ vehicle_identification_number: NotRequired[str]
+ """
+ Vehicle identification number (VIN).
"""
-class PaymentIntentUpdateParamsPaymentMethodDataInteracPresent(TypedDict):
- pass
-
-
-class PaymentIntentUpdateParamsPaymentMethodDataKakaoPay(TypedDict):
- pass
-
-
-class PaymentIntentUpdateParamsPaymentMethodDataKlarna(TypedDict):
- dob: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKlarnaDob"]
+class PaymentIntentUpdateParamsPaymentDetailsEventDetails(TypedDict):
+ access_controlled_venue: NotRequired[bool]
"""
- Customer's date of birth
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsEventDetailsAddress"
+ ]
+ """
+ The event location's address.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsEventDetailsAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ company: NotRequired[str]
+ """
+ The name of the company
+ """
+ delivery: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsEventDetailsDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Event end time. Measured in seconds since the Unix epoch.
+ """
+ genre: NotRequired[str]
+ """
+ Type of the event entertainment (concert, sports event etc)
+ """
+ name: str
+ """
+ The name of the event.
+ """
+ starts_at: NotRequired[int]
+ """
+ Event start time. Measured in seconds since the Unix epoch.
"""
-class PaymentIntentUpdateParamsPaymentMethodDataKlarnaDob(TypedDict):
- day: int
+class PaymentIntentUpdateParamsPaymentDetailsEventDetailsAddress(TypedDict):
+ city: NotRequired[str]
"""
- The day of birth, between 1 and 31.
+ City, district, suburb, town, or village.
"""
- month: int
+ country: NotRequired[str]
"""
- The month of birth, between 1 and 12.
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
- year: int
+ line1: NotRequired[str]
"""
- The four-digit year of birth.
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""
-class PaymentIntentUpdateParamsPaymentMethodDataKonbini(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentDetailsEventDetailsAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataKrCard(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentDetailsEventDetailsDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataLink(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentDetailsEventDetailsDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataMbWay(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentDetailsFlight(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ agency_number: NotRequired[str]
+ """
+ The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
+ """
+ carrier: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
+ """
+ delivery: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ passenger_name: NotRequired[str]
+ """
+ The name of the person or entity on the reservation.
+ """
+ passengers: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsFlightPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation.
+ """
+ segments: List["PaymentIntentUpdateParamsPaymentDetailsFlightSegment"]
+ """
+ The individual flight segments associated with the trip.
+ """
+ ticket_number: NotRequired[str]
+ """
+ The ticket number associated with the travel reservation.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataMobilepay(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentDetailsFlightAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataMultibanco(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentDetailsFlightDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataNaverPay(TypedDict):
- funding: NotRequired[Literal["card", "points"]]
+class PaymentIntentUpdateParamsPaymentDetailsFlightDeliveryRecipient(
+ TypedDict
+):
+ email: NotRequired[str]
"""
- Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
"""
-class PaymentIntentUpdateParamsPaymentMethodDataNzBankAccount(TypedDict):
- account_holder_name: NotRequired[str]
+class PaymentIntentUpdateParamsPaymentDetailsFlightPassenger(TypedDict):
+ name: str
"""
- The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
+ Full name of the person or entity on the flight reservation.
"""
- account_number: str
+
+
+class PaymentIntentUpdateParamsPaymentDetailsFlightSegment(TypedDict):
+ amount: NotRequired[int]
"""
- The account number for the bank account.
+ The flight segment amount.
"""
- bank_code: str
+ arrival_airport: NotRequired[str]
"""
- The numeric code for the bank account's bank.
+ The International Air Transport Association (IATA) airport code for the arrival airport.
"""
- branch_code: str
+ arrives_at: NotRequired[int]
"""
- The numeric code for the bank account's bank branch.
+ The arrival time for the flight segment. Measured in seconds since the Unix epoch.
"""
- reference: NotRequired[str]
- suffix: str
+ carrier: NotRequired[str]
"""
- The suffix of the bank account number.
+ The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
+ """
+ departs_at: int
+ """
+ The departure time for the flight segment. Measured in seconds since the Unix epoch.
+ """
+ departure_airport: NotRequired[str]
+ """
+ The International Air Transport Association (IATA) airport code for the departure airport.
+ """
+ flight_number: NotRequired[str]
+ """
+ The flight number associated with the segment
+ """
+ service_class: NotRequired[
+ Literal["business", "economy", "first", "premium_economy"]
+ ]
+ """
+ The fare class for the segment.
"""
-class PaymentIntentUpdateParamsPaymentMethodDataOxxo(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentDetailsFlightDatum(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Reservation reference.
+ """
+ computerized_reservation_system: NotRequired[str]
+ """
+ Computerized reservation system used to make the reservation and purchase the ticket.
+ """
+ endorsements_and_restrictions: NotRequired[str]
+ """
+ Ticket restrictions.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsFlightDatumInsurance"]
+ ]
+ """
+ List of insurances.
+ """
+ passengers: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsFlightDatumPassenger"]
+ ]
+ """
+ List of passengers.
+ """
+ segments: List["PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegment"]
+ """
+ List of flight segments.
+ """
+ ticket_electronically_issued_indicator: NotRequired[bool]
+ """
+ Electronic ticket indicator.
+ """
+ total: "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotal"
+ """
+ Total cost breakdown.
+ """
+ transaction_type: NotRequired[
+ Literal[
+ "exchange_ticket", "miscellaneous", "refund", "ticket_purchase"
+ ]
+ ]
+ """
+ Type of flight transaction.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataP24(TypedDict):
- bank: NotRequired[
- Literal[
- "alior_bank",
+class PaymentIntentUpdateParamsPaymentDetailsFlightDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Name of affiliate partner.
+ """
+ travel_authorization_code: NotRequired[str]
+ """
+ Code provided by the company to a travel agent authorizing ticket issuance.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsFlightDatumInsurance(TypedDict):
+ amount: int
+ """
+ Insurance cost.
+ """
+ currency: NotRequired[str]
+ """
+ Insurance currency.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Insurance company name.
+ """
+ insurance_type: Literal[
+ "baggage", "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsFlightDatumPassenger(TypedDict):
+ name: str
+ """
+ Passenger's full name.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegment(TypedDict):
+ amount: NotRequired[int]
+ """
+ Segment fare amount.
+ """
+ arrival: "PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentArrival"
+ """
+ Arrival details.
+ """
+ carrier_code: str
+ """
+ Airline carrier code.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Carrier name.
+ """
+ currency: NotRequired[str]
+ """
+ Segment currency.
+ """
+ departure: (
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentDeparture"
+ )
+ """
+ Departure details.
+ """
+ exchange_ticket_number: NotRequired[str]
+ """
+ Exchange ticket number.
+ """
+ fare_basis_code: NotRequired[str]
+ """
+ Fare basis code.
+ """
+ fees: NotRequired[int]
+ """
+ Additional fees.
+ """
+ flight_number: NotRequired[str]
+ """
+ Flight number.
+ """
+ is_stop_over_indicator: NotRequired[bool]
+ """
+ Stopover indicator.
+ """
+ refundable: NotRequired[bool]
+ """
+ Refundable ticket indicator.
+ """
+ service_class: Literal[
+ "business", "economy", "first_class", "premium_economy"
+ ]
+ """
+ Class of service.
+ """
+ tax_amount: NotRequired[int]
+ """
+ Tax amount for segment.
+ """
+ ticket_number: NotRequired[str]
+ """
+ Ticket number.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentArrival(
+ TypedDict,
+):
+ airport: str
+ """
+ Arrival airport IATA code.
+ """
+ arrives_at: NotRequired[int]
+ """
+ Arrival date/time.
+ """
+ city: NotRequired[str]
+ """
+ Arrival city.
+ """
+ country: NotRequired[str]
+ """
+ Arrival country.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsFlightDatumSegmentDeparture(
+ TypedDict,
+):
+ airport: str
+ """
+ Departure airport IATA code.
+ """
+ city: NotRequired[str]
+ """
+ Departure city.
+ """
+ country: NotRequired[str]
+ """
+ Departure country.
+ """
+ departs_at: int
+ """
+ Departure date/time.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotal(TypedDict):
+ amount: int
+ """
+ Total flight amount.
+ """
+ credit_reason: NotRequired[
+ Literal[
+ "other",
+ "partial_ticket_refund",
+ "passenger_transport_ancillary_cancellation",
+ "ticket_and_ancillary_cancellation",
+ "ticket_cancellation",
+ ]
+ ]
+ """
+ Reason for credit.
+ """
+ currency: NotRequired[str]
+ """
+ Total currency.
+ """
+ discounts: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalDiscounts"
+ ]
+ """
+ Discount details.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges.
+ """
+ tax: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTax"
+ ]
+ """
+ Tax breakdown.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of additional charges.
+ """
+ type: NotRequired[
+ Literal["additional_fees", "ancillary_service_charges", "exchange_fee"]
+ ]
+ """
+ Type of additional charges.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTax(TypedDict):
+ taxes: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTaxTax"]
+ ]
+ """
+ Array of tax details.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsFlightDatumTotalTaxTax(TypedDict):
+ amount: NotRequired[int]
+ """
+ Tax amount.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodging(TypedDict):
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingAddress"
+ ]
+ """
+ The lodging location's address.
+ """
+ adults: NotRequired[int]
+ """
+ The number of adults on the booking
+ """
+ affiliate: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ booking_number: NotRequired[str]
+ """
+ The booking number associated with the lodging reservation.
+ """
+ category: NotRequired[Literal["hotel", "vacation_rental"]]
+ """
+ The lodging category
+ """
+ checkin_at: int
+ """
+ Lodging check-in time. Measured in seconds since the Unix epoch.
+ """
+ checkout_at: int
+ """
+ Lodging check-out time. Measured in seconds since the Unix epoch.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ The customer service phone number of the lodging company.
+ """
+ daily_room_rate_amount: NotRequired[int]
+ """
+ The daily lodging room rate.
+ """
+ delivery: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDelivery"
+ ]
+ """
+ Delivery details for this purchase.
+ """
+ extra_charges: NotRequired[
+ List[
+ Literal[
+ "gift_shop",
+ "laundry",
+ "mini_bar",
+ "other",
+ "restaurant",
+ "telephone",
+ ]
+ ]
+ ]
+ """
+ List of additional charges being billed.
+ """
+ fire_safety_act_compliance: NotRequired[bool]
+ """
+ Indicates whether the lodging location is compliant with the Fire Safety Act.
+ """
+ name: NotRequired[str]
+ """
+ The name of the lodging location.
+ """
+ no_show: NotRequired[bool]
+ """
+ Indicates if the customer did not keep their booking while failing to cancel the reservation.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ The number of rooms on the booking
+ """
+ passengers: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsLodgingPassenger"]
+ ]
+ """
+ The details of the passengers in the travel reservation
+ """
+ property_phone_number: NotRequired[str]
+ """
+ The phone number of the lodging location.
+ """
+ room_class: NotRequired[str]
+ """
+ The room class for this purchase.
+ """
+ room_nights: NotRequired[int]
+ """
+ The number of room nights
+ """
+ total_room_tax_amount: NotRequired[int]
+ """
+ The total tax amount associating with the room reservation.
+ """
+ total_tax_amount: NotRequired[int]
+ """
+ The total tax amount
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingAddress(TypedDict):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDelivery(TypedDict):
+ mode: NotRequired[Literal["email", "phone", "pickup", "post"]]
+ """
+ The delivery method for the payment
+ """
+ recipient: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDeliveryRecipient"
+ ]
+ """
+ Details of the recipient.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDeliveryRecipient(
+ TypedDict,
+):
+ email: NotRequired[str]
+ """
+ The email of the recipient the ticket is delivered to.
+ """
+ name: NotRequired[str]
+ """
+ The name of the recipient the ticket is delivered to.
+ """
+ phone: NotRequired[str]
+ """
+ The phone number of the recipient the ticket is delivered to.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingPassenger(TypedDict):
+ name: str
+ """
+ Full name of the person or entity on the lodging reservation.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatum(TypedDict):
+ accommodation: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation"
+ ]
+ """
+ Accommodation details for the lodging.
+ """
+ affiliate: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate"
+ ]
+ """
+ Affiliate details if applicable.
+ """
+ booking_number: NotRequired[str]
+ """
+ Booking confirmation number for the lodging.
+ """
+ checkin_at: int
+ """
+ Check-in date.
+ """
+ checkout_at: int
+ """
+ Check-out date.
+ """
+ customer_service_phone_number: NotRequired[str]
+ """
+ Customer service phone number for the lodging company.
+ """
+ fire_safety_act_compliance_indicator: NotRequired[bool]
+ """
+ Whether the lodging is compliant with any hotel fire safety regulations.
+ """
+ guests: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest"]
+ ]
+ """
+ List of guests for the lodging.
+ """
+ host: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost"
+ ]
+ """
+ Host details for the lodging.
+ """
+ insurances: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance"]
+ ]
+ """
+ List of insurances for the lodging.
+ """
+ no_show_indicator: NotRequired[bool]
+ """
+ Whether the renter is a no-show.
+ """
+ renter_id_number: NotRequired[str]
+ """
+ Renter ID number for the lodging.
+ """
+ renter_name: NotRequired[str]
+ """
+ Renter name for the lodging.
+ """
+ total: "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal"
+ """
+ Total details for the lodging.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAccommodation(
+ TypedDict,
+):
+ accommodation_type: NotRequired[
+ Literal[
+ "apartment",
+ "cabana",
+ "house",
+ "penthouse",
+ "room",
+ "standard",
+ "suite",
+ "villa",
+ ]
+ ]
+ """
+ Type of accommodation.
+ """
+ bed_type: NotRequired[str]
+ """
+ Bed type.
+ """
+ daily_rate_amount: NotRequired[int]
+ """
+ Daily accommodation rate in cents.
+ """
+ nights: NotRequired[int]
+ """
+ Number of nights.
+ """
+ number_of_rooms: NotRequired[int]
+ """
+ Number of rooms, cabanas, apartments, and so on.
+ """
+ rate_type: NotRequired[str]
+ """
+ Rate type.
+ """
+ smoking_indicator: NotRequired[bool]
+ """
+ Whether smoking is allowed.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumAffiliate(TypedDict):
+ code: NotRequired[str]
+ """
+ Affiliate partner code.
+ """
+ name: NotRequired[str]
+ """
+ Affiliate partner name.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumGuest(TypedDict):
+ name: str
+ """
+ Guest's full name.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHost(TypedDict):
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress"
+ ]
+ """
+ Address of the host.
+ """
+ country_of_domicile: NotRequired[str]
+ """
+ Host's country of domicile.
+ """
+ host_reference: NotRequired[str]
+ """
+ Reference number for the host.
+ """
+ host_type: NotRequired[
+ Literal["hostel", "hotel", "owner", "rental_agency"]
+ ]
+ """
+ Type of host.
+ """
+ name: NotRequired[str]
+ """
+ Name of the lodging property or host.
+ """
+ number_of_reservations: NotRequired[int]
+ """
+ Total number of reservations for the host.
+ """
+ property_phone_number: NotRequired[str]
+ """
+ Property phone number.
+ """
+ registered_at: NotRequired[int]
+ """
+ Host's registration date.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumHostAddress(
+ TypedDict
+):
+ city: str
+ """
+ City, district, suburb, town, or village.
+ """
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: str
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: str
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumInsurance(TypedDict):
+ amount: int
+ """
+ Price of the insurance coverage in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the insurance amount.
+ """
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the insurance company.
+ """
+ insurance_type: Literal[
+ "bankruptcy", "cancelation", "emergency", "medical"
+ ]
+ """
+ Type of insurance coverage.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotal(TypedDict):
+ amount: int
+ """
+ Total price of the lodging reservation in cents.
+ """
+ cash_advances: NotRequired[int]
+ """
+ Cash advances in cents.
+ """
+ currency: NotRequired[str]
+ """
+ Currency of the total amount.
+ """
+ discounts: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts"
+ ]
+ """
+ Discount details for the lodging.
+ """
+ extra_charges: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge"
+ ]
+ ]
+ """
+ Additional charges for the lodging.
+ """
+ prepaid_amount: NotRequired[int]
+ """
+ Prepaid amount in cents.
+ """
+ tax: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax"
+ ]
+ """
+ Tax breakdown for the lodging reservation.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalDiscounts(
+ TypedDict,
+):
+ corporate_client_code: NotRequired[str]
+ """
+ Corporate client discount code.
+ """
+ coupon: NotRequired[str]
+ """
+ Coupon code.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalExtraCharge(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount of the extra charge in cents.
+ """
+ type: NotRequired[
+ Literal[
+ "gift_shop", "laundry", "mini_bar", "other", "phone", "restaurant"
+ ]
+ ]
+ """
+ Type of extra charge.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTax(TypedDict):
+ tax_exempt_indicator: NotRequired[bool]
+ """
+ Indicates whether the transaction is tax exempt.
+ """
+ taxes: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax"]
+ ]
+ """
+ Tax details.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsLodgingDatumTotalTaxTax(
+ TypedDict
+):
+ amount: NotRequired[int]
+ """
+ Tax amount in cents.
+ """
+ rate: NotRequired[int]
+ """
+ Tax rate.
+ """
+ type: NotRequired[str]
+ """
+ Type of tax applied.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsSubscription(TypedDict):
+ affiliate: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate"
+ ]
+ """
+ Affiliate details for this purchase.
+ """
+ auto_renewal: NotRequired[bool]
+ """
+ Info whether the subscription will be auto renewed upon expiry.
+ """
+ billing_interval: NotRequired[
+ "PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval"
+ ]
+ """
+ Subscription billing details for this purchase.
+ """
+ ends_at: NotRequired[int]
+ """
+ Subscription end time. Measured in seconds since the Unix epoch.
+ """
+ name: str
+ """
+ Name of the product on subscription. e.g. Apple Music Subscription
+ """
+ starts_at: NotRequired[int]
+ """
+ Subscription start time. Measured in seconds since the Unix epoch.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsSubscriptionAffiliate(TypedDict):
+ name: str
+ """
+ The name of the affiliate that originated the purchase.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval(
+ TypedDict,
+):
+ count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodData(TypedDict):
+ acss_debit: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataAcssDebit"
+ ]
+ """
+ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
+ """
+ affirm: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAffirm"]
+ """
+ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
+ """
+ afterpay_clearpay: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataAfterpayClearpay"
+ ]
+ """
+ If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
+ """
+ alipay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAlipay"]
+ """
+ If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
+ """
+ allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
+ """
+ This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
+ """
+ alma: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAlma"]
+ """
+ If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
+ """
+ amazon_pay: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataAmazonPay"
+ ]
+ """
+ If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
+ """
+ au_becs_debit: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit"
+ ]
+ """
+ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
+ """
+ bacs_debit: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataBacsDebit"
+ ]
+ """
+ If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
+ """
+ bancontact: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataBancontact"
+ ]
+ """
+ If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
+ """
+ billie: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBillie"]
+ """
+ If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
+ """
+ billing_details: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataBillingDetails"
+ ]
+ """
+ Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
+ """
+ blik: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBlik"]
+ """
+ If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
+ """
+ boleto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataBoleto"]
+ """
+ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
+ """
+ cashapp: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataCashapp"]
+ """
+ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
+ """
+ crypto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataCrypto"]
+ """
+ If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
+ """
+ customer_balance: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance"
+ ]
+ """
+ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
+ """
+ eps: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataEps"]
+ """
+ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
+ """
+ fpx: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataFpx"]
+ """
+ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
+ """
+ giropay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataGiropay"]
+ """
+ If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
+ """
+ gopay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataGopay"]
+ """
+ If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
+ """
+ grabpay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataGrabpay"]
+ """
+ If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
+ """
+ id_bank_transfer: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataIdBankTransfer"
+ ]
+ """
+ If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
+ """
+ ideal: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataIdeal"]
+ """
+ If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
+ """
+ interac_present: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataInteracPresent"
+ ]
+ """
+ If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
+ """
+ kakao_pay: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataKakaoPay"
+ ]
+ """
+ If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
+ """
+ klarna: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKlarna"]
+ """
+ If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
+ """
+ konbini: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKonbini"]
+ """
+ If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
+ """
+ kr_card: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKrCard"]
+ """
+ If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
+ """
+ link: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataLink"]
+ """
+ If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
+ """
+ mb_way: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataMbWay"]
+ """
+ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ mobilepay: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataMobilepay"
+ ]
+ """
+ If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
+ """
+ multibanco: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataMultibanco"
+ ]
+ """
+ If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
+ """
+ naver_pay: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataNaverPay"
+ ]
+ """
+ If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
+ """
+ nz_bank_account: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataNzBankAccount"
+ ]
+ """
+ If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
+ """
+ oxxo: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataOxxo"]
+ """
+ If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
+ """
+ p24: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataP24"]
+ """
+ If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
+ """
+ pay_by_bank: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataPayByBank"
+ ]
+ """
+ If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
+ """
+ payco: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPayco"]
+ """
+ If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
+ """
+ paynow: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPaynow"]
+ """
+ If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
+ """
+ paypal: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPaypal"]
+ """
+ If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
+ """
+ paypay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPaypay"]
+ """
+ If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
+ """
+ payto: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPayto"]
+ """
+ If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
+ """
+ pix: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataPix"]
+ """
+ If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
+ """
+ promptpay: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataPromptpay"
+ ]
+ """
+ If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
+ """
+ qris: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataQris"]
+ """
+ If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
+ """
+ radar_options: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataRadarOptions"
+ ]
+ """
+ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
+ """
+ rechnung: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataRechnung"]
+ """
+ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
+ """
+ revolut_pay: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataRevolutPay"
+ ]
+ """
+ If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
+ """
+ samsung_pay: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataSamsungPay"
+ ]
+ """
+ If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
+ """
+ satispay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSatispay"]
+ """
+ If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
+ """
+ sepa_debit: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataSepaDebit"
+ ]
+ """
+ If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
+ """
+ shopeepay: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataShopeepay"
+ ]
+ """
+ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
+ """
+ sofort: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSofort"]
+ """
+ If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
+ """
+ stripe_balance: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataStripeBalance"
+ ]
+ """
+ This hash contains details about the Stripe balance payment method.
+ """
+ swish: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSwish"]
+ """
+ If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
+ """
+ twint: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataTwint"]
+ """
+ If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
+ """
+ type: Literal[
+ "acss_debit",
+ "affirm",
+ "afterpay_clearpay",
+ "alipay",
+ "alma",
+ "amazon_pay",
+ "au_becs_debit",
+ "bacs_debit",
+ "bancontact",
+ "billie",
+ "blik",
+ "boleto",
+ "cashapp",
+ "crypto",
+ "customer_balance",
+ "eps",
+ "fpx",
+ "giropay",
+ "gopay",
+ "grabpay",
+ "id_bank_transfer",
+ "ideal",
+ "kakao_pay",
+ "klarna",
+ "konbini",
+ "kr_card",
+ "link",
+ "mb_way",
+ "mobilepay",
+ "multibanco",
+ "naver_pay",
+ "nz_bank_account",
+ "oxxo",
+ "p24",
+ "pay_by_bank",
+ "payco",
+ "paynow",
+ "paypal",
+ "paypay",
+ "payto",
+ "pix",
+ "promptpay",
+ "qris",
+ "rechnung",
+ "revolut_pay",
+ "samsung_pay",
+ "satispay",
+ "sepa_debit",
+ "shopeepay",
+ "sofort",
+ "stripe_balance",
+ "swish",
+ "twint",
+ "us_bank_account",
+ "wechat_pay",
+ "zip",
+ ]
+ """
+ The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
+ """
+ us_bank_account: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount"
+ ]
+ """
+ If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
+ """
+ wechat_pay: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodDataWechatPay"
+ ]
+ """
+ If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
+ """
+ zip: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataZip"]
+ """
+ If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataAcssDebit(TypedDict):
+ account_number: str
+ """
+ Customer's bank account number.
+ """
+ institution_number: str
+ """
+ Institution number of the customer's bank.
+ """
+ transit_number: str
+ """
+ Transit number of the customer's bank.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataAffirm(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataAfterpayClearpay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataAlipay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataAlma(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataAmazonPay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit(TypedDict):
+ account_number: str
+ """
+ The account number for the bank account.
+ """
+ bsb_number: str
+ """
+ Bank-State-Branch number of the bank account.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataBacsDebit(TypedDict):
+ account_number: NotRequired[str]
+ """
+ Account number of the bank account that the funds will be debited from.
+ """
+ sort_code: NotRequired[str]
+ """
+ Sort code of the bank account. (e.g., `10-20-30`)
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataBancontact(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataBillie(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataBillingDetails(TypedDict):
+ address: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress"
+ ]
+ """
+ Billing address.
+ """
+ email: NotRequired["Literal['']|str"]
+ """
+ Email address.
+ """
+ name: NotRequired["Literal['']|str"]
+ """
+ Full name.
+ """
+ phone: NotRequired["Literal['']|str"]
+ """
+ Billing phone number (including extension).
+ """
+ tax_id: NotRequired[str]
+ """
+ Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataBillingDetailsAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataBlik(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataBoleto(TypedDict):
+ tax_id: str
+ """
+ The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataCashapp(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataCrypto(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataEps(TypedDict):
+ bank: NotRequired[
+ Literal[
+ "arzte_und_apotheker_bank",
+ "austrian_anadi_bank_ag",
+ "bank_austria",
+ "bankhaus_carl_spangler",
+ "bankhaus_schelhammer_und_schattera_ag",
+ "bawag_psk_ag",
+ "bks_bank_ag",
+ "brull_kallmus_bank_ag",
+ "btv_vier_lander_bank",
+ "capital_bank_grawe_gruppe_ag",
+ "deutsche_bank_ag",
+ "dolomitenbank",
+ "easybank_ag",
+ "erste_bank_und_sparkassen",
+ "hypo_alpeadriabank_international_ag",
+ "hypo_bank_burgenland_aktiengesellschaft",
+ "hypo_noe_lb_fur_niederosterreich_u_wien",
+ "hypo_oberosterreich_salzburg_steiermark",
+ "hypo_tirol_bank_ag",
+ "hypo_vorarlberg_bank_ag",
+ "marchfelder_bank",
+ "oberbank_ag",
+ "raiffeisen_bankengruppe_osterreich",
+ "schoellerbank_ag",
+ "sparda_bank_wien",
+ "volksbank_gruppe",
+ "volkskreditbank_ag",
+ "vr_bank_braunau",
+ ]
+ ]
+ """
+ The customer's bank.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataFpx(TypedDict):
+ account_holder_type: NotRequired[Literal["company", "individual"]]
+ """
+ Account holder type for FPX transaction
+ """
+ bank: Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bsn",
+ "cimb",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ]
+ """
+ The customer's bank.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataGiropay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataGopay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataGrabpay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataIdBankTransfer(TypedDict):
+ bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ """
+ Bank where the account is held.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataIdeal(TypedDict):
+ bank: NotRequired[
+ Literal[
+ "abn_amro",
+ "asn_bank",
+ "bunq",
+ "buut",
+ "finom",
+ "handelsbanken",
+ "ing",
+ "knab",
+ "mollie",
+ "moneyou",
+ "n26",
+ "nn",
+ "rabobank",
+ "regiobank",
+ "revolut",
+ "sns_bank",
+ "triodos_bank",
+ "van_lanschot",
+ "yoursafe",
+ ]
+ ]
+ """
+ The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataInteracPresent(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataKakaoPay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataKlarna(TypedDict):
+ dob: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataKlarnaDob"]
+ """
+ Customer's date of birth
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataKlarnaDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataKonbini(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataKrCard(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataLink(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataMbWay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataMobilepay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataMultibanco(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataNaverPay(TypedDict):
+ funding: NotRequired[Literal["card", "points"]]
+ """
+ Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataNzBankAccount(TypedDict):
+ account_holder_name: NotRequired[str]
+ """
+ The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
+ """
+ account_number: str
+ """
+ The account number for the bank account.
+ """
+ bank_code: str
+ """
+ The numeric code for the bank account's bank.
+ """
+ branch_code: str
+ """
+ The numeric code for the bank account's bank branch.
+ """
+ reference: NotRequired[str]
+ suffix: str
+ """
+ The suffix of the bank account number.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataOxxo(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataP24(TypedDict):
+ bank: NotRequired[
+ Literal[
+ "alior_bank",
"bank_millennium",
"bank_nowy_bfg_sa",
"bank_pekao_sa",
@@ -1054,1392 +2927,2667 @@ class PaymentIntentUpdateParamsPaymentMethodDataP24(TypedDict):
]
]
"""
- The customer's bank.
+ The customer's bank.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataPayByBank(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataPayco(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataPaynow(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataPaypal(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataPaypay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataPayto(TypedDict):
+ account_number: NotRequired[str]
+ """
+ The account number for the bank account.
+ """
+ bsb_number: NotRequired[str]
+ """
+ Bank-State-Branch number of the bank account.
+ """
+ pay_id: NotRequired[str]
+ """
+ The PayID alias for the bank account.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataPix(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataPromptpay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataQris(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataRadarOptions(TypedDict):
+ session: NotRequired[str]
+ """
+ A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataRechnung(TypedDict):
+ dob: "PaymentIntentUpdateParamsPaymentMethodDataRechnungDob"
+ """
+ Customer's date of birth
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataRechnungDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataRevolutPay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataSamsungPay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataSatispay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict):
+ iban: str
+ """
+ IBAN of the bank account.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataShopeepay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataSofort(TypedDict):
+ country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
+ """
+ Two-letter ISO code representing the country the bank account is located in.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataStripeBalance(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataSwish(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataTwint(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount(TypedDict):
+ account_holder_type: NotRequired[Literal["company", "individual"]]
+ """
+ Account holder type: individual or company.
+ """
+ account_number: NotRequired[str]
+ """
+ Account number of the bank account.
+ """
+ account_type: NotRequired[Literal["checking", "savings"]]
+ """
+ Account type: checkings or savings. Defaults to checking if omitted.
+ """
+ financial_connections_account: NotRequired[str]
+ """
+ The ID of a Financial Connections Account to use as a payment method.
+ """
+ routing_number: NotRequired[str]
+ """
+ Routing number of the bank account.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataWechatPay(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodDataZip(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict):
+ acss_debit: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebit"
+ ]
+ """
+ If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
+ """
+ affirm: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAffirm"
+ ]
+ """
+ If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
+ """
+ afterpay_clearpay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAfterpayClearpay"
+ ]
+ """
+ If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
+ """
+ alipay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAlipay"
+ ]
+ """
+ If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
+ """
+ alma: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAlma"
+ ]
+ """
+ If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
+ """
+ amazon_pay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAmazonPay"
+ ]
+ """
+ If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
+ """
+ au_becs_debit: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit"
+ ]
+ """
+ If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
+ """
+ bacs_debit: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit"
+ ]
+ """
+ If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
+ """
+ bancontact: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBancontact"
+ ]
+ """
+ If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
+ """
+ billie: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBillie"
+ ]
+ """
+ If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
+ """
+ blik: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBlik"
+ ]
+ """
+ If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
+ """
+ boleto: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBoleto"
+ ]
+ """
+ If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
+ """
+ card: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCard"
+ ]
+ """
+ Configuration for any card payments attempted on this PaymentIntent.
+ """
+ card_present: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent"
+ ]
+ """
+ If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ """
+ cashapp: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCashapp"
+ ]
+ """
+ If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
+ """
+ crypto: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCrypto"
+ ]
+ """
+ If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
+ """
+ customer_balance: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalance"
+ ]
+ """
+ If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
+ """
+ eps: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsEps"
+ ]
+ """
+ If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
+ """
+ fpx: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsFpx"
+ ]
+ """
+ If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
+ """
+ giropay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGiropay"
+ ]
+ """
+ If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
+ """
+ gopay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGopay"
+ ]
+ """
+ If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
+ """
+ grabpay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay"
+ ]
+ """
+ If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
+ """
+ id_bank_transfer: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsIdBankTransfer"
+ ]
+ """
+ If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
+ """
+ ideal: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsIdeal"
+ ]
+ """
+ If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
+ """
+ interac_present: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsInteracPresent"
+ ]
+ """
+ If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ """
+ kakao_pay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKakaoPay"
+ ]
+ """
+ If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
+ """
+ klarna: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKlarna"
+ ]
+ """
+ If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
+ """
+ konbini: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKonbini"
+ ]
+ """
+ If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
+ """
+ kr_card: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKrCard"
+ ]
+ """
+ If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
+ """
+ link: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsLink"
+ ]
+ """
+ If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
+ """
+ mb_way: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMbWay"
+ ]
+ """
+ If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
+ """
+ mobilepay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMobilepay"
+ ]
+ """
+ If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
+ """
+ multibanco: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMultibanco"
+ ]
+ """
+ If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
+ """
+ naver_pay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsNaverPay"
+ ]
+ """
+ If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
+ """
+ nz_bank_account: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsNzBankAccount"
+ ]
+ """
+ If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
+ """
+ oxxo: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsOxxo"
+ ]
+ """
+ If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
+ """
+ p24: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsP24"
+ ]
+ """
+ If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
+ """
+ pay_by_bank: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayByBank"
+ ]
+ """
+ If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
+ """
+ payco: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayco"
+ ]
+ """
+ If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
+ """
+ paynow: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPaynow"
+ ]
+ """
+ If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
+ """
+ paypal: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPaypal"
+ ]
+ """
+ If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
+ """
+ paypay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPaypay"
+ ]
+ """
+ If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
+ """
+ payto: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayto"
+ ]
+ """
+ If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
+ """
+ pix: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPix"
+ ]
+ """
+ If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
+ """
+ promptpay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPromptpay"
+ ]
+ """
+ If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
+ """
+ qris: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsQris"
+ ]
+ """
+ If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
+ """
+ rechnung: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsRechnung"
+ ]
+ """
+ If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
+ """
+ revolut_pay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay"
+ ]
+ """
+ If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
+ """
+ samsung_pay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay"
+ ]
+ """
+ If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
+ """
+ satispay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSatispay"
+ ]
+ """
+ If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
+ """
+ sepa_debit: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit"
+ ]
+ """
+ If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
+ """
+ shopeepay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay"
+ ]
+ """
+ If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
+ """
+ sofort: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSofort"
+ ]
+ """
+ If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
+ """
+ stripe_balance: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsStripeBalance"
+ ]
+ """
+ If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
+ """
+ swish: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSwish"
+ ]
+ """
+ If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
+ """
+ twint: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsTwint"
+ ]
+ """
+ If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
+ """
+ us_bank_account: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount"
+ ]
+ """
+ If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
+ """
+ wechat_pay: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsWechatPay"
+ ]
+ """
+ If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
+ """
+ zip: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsZip"
+ ]
+ """
+ If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebit(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+ verification_method: NotRequired[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Bank account verification method.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions(
+ TypedDict,
+):
+ custom_mandate_url: NotRequired["Literal['']|str"]
+ """
+ A URL for custom mandate text to render during confirmation step.
+ The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
+ or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
+ """
+ interval_description: NotRequired[str]
+ """
+ Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
+ """
+ payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
+ """
+ Payment schedule for the mandate.
+ """
+ transaction_type: NotRequired[Literal["business", "personal"]]
+ """
+ Transaction type of the mandate.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsAffirm(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ preferred_locale: NotRequired[str]
+ """
+ Preferred language of the Affirm authorization page that the customer is redirected to.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ reference: NotRequired[str]
+ """
+ An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
+ This field differs from the statement descriptor and item name.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsAlipay(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsAlma(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsAmazonPay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit(TypedDict):
+ mandate_options: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ target_date: NotRequired[str]
+ """
+ Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions(
+ TypedDict,
+):
+ reference_prefix: NotRequired["Literal['']|str"]
+ """
+ Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsBancontact(TypedDict):
+ preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsBillie(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsBlik(TypedDict):
+ code: NotRequired[str]
+ """
+ The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
+ """
+ setup_future_usage: NotRequired["Literal['']|Literal['none']"]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsBoleto(TypedDict):
+ expires_after_days: NotRequired[int]
+ """
+ The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCard(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ cvc_token: NotRequired[str]
+ """
+ A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
+ """
+ installments: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments"
+ ]
+ """
+ Installment configuration for payments attempted on this PaymentIntent.
+
+ For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
+ """
+ mandate_options: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate for cards issued in India.
+ """
+ moto: NotRequired[bool]
+ """
+ When specified, this parameter indicates that a transaction will be marked
+ as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
+ parameter can only be provided during confirmation.
+ """
+ network: NotRequired[
+ Literal[
+ "amex",
+ "cartes_bancaires",
+ "diners",
+ "discover",
+ "eftpos_au",
+ "girocard",
+ "interac",
+ "jcb",
+ "link",
+ "mastercard",
+ "unionpay",
+ "unknown",
+ "visa",
+ ]
+ ]
+ """
+ Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
+ """
+ request_decremental_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
+ """
+ request_extended_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
+ """
+ request_incremental_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
+ """
+ request_multicapture: NotRequired[Literal["if_available", "never"]]
+ """
+ Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
+ """
+ request_overcapture: NotRequired[Literal["if_available", "never"]]
+ """
+ Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
+ """
+ request_partial_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request partial authorization on this PaymentIntent.
+ """
+ request_three_d_secure: NotRequired[
+ Literal["any", "automatic", "challenge"]
+ ]
+ """
+ We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ """
+ require_cvc_recollection: NotRequired[bool]
+ """
+ When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+ statement_descriptor_suffix_kana: NotRequired["Literal['']|str"]
+ """
+ Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
+ """
+ statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"]
+ """
+ Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
+ """
+ statement_details: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetails"
+ ]
+ """
+ Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
+ """
+ three_d_secure: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure"
+ ]
+ """
+ If 3D Secure authentication was performed with a third-party provider,
+ the authentication details to use for this payment.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments(TypedDict):
+ enabled: NotRequired[bool]
+ """
+ Setting to true enables installments for this PaymentIntent.
+ This will cause the response to contain a list of available installment plans.
+ Setting to false will prevent any selected plan from applying to a charge.
+ """
+ plan: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallmentsPlan"
+ ]
+ """
+ The selected installment plan to use for this payment attempt.
+ This parameter can only be provided during confirmation.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallmentsPlan(
+ TypedDict,
+):
+ count: NotRequired[int]
+ """
+ For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
+ """
+ interval: NotRequired[Literal["month"]]
+ """
+ For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
+ One of `month`.
+ """
+ type: Literal["bonus", "fixed_count", "revolving"]
+ """
+ Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions(
+ TypedDict,
+):
+ amount: int
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Literal["fixed", "maximum"]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ interval: Literal["day", "month", "sporadic", "week", "year"]
+ """
+ Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
+ """
+ interval_count: NotRequired[int]
+ """
+ The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
+ """
+ reference: str
+ """
+ Unique identifier for the mandate or subscription.
+ """
+ start_date: int
+ """
+ Start date of the mandate or subscription. Start date should not be lesser than yesterday.
+ """
+ supported_types: NotRequired[List[Literal["india"]]]
+ """
+ Specifies the type of mandates supported. Possible values are `india`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetails(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetailsAddress"
+ ]
+ """
+ Please pass in an address that is within your Stripe user account country
+ """
+ phone: NotRequired[str]
+ """
+ Phone number (e.g., a toll-free number that customers can call)
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCardStatementDetailsAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
+ """
+ City, district, suburb, town, or village.
+ """
+ country: NotRequired[str]
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ line1: NotRequired[str]
+ """
+ Address line 1, such as the street, PO Box, or company name.
+ """
+ line2: NotRequired[str]
+ """
+ Address line 2, such as the apartment, suite, unit, or building.
+ """
+ postal_code: NotRequired[str]
+ """
+ ZIP or postal code.
+ """
+ state: NotRequired[str]
+ """
+ State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict):
+ ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]]
+ """
+ The `transStatus` returned from the card Issuer's ACS in the ARes.
+ """
+ cryptogram: str
+ """
+ The cryptogram, also known as the "authentication value" (AAV, CAVV or
+ AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
+ (Most 3D Secure providers will return the base64-encoded version, which
+ is what you should specify here.)
+ """
+ electronic_commerce_indicator: NotRequired[
+ Literal["01", "02", "05", "06", "07"]
+ ]
+ """
+ The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
+ provider and indicates what degree of authentication was performed.
+ """
+ exemption_indicator: NotRequired[Literal["low_risk", "none"]]
+ """
+ The exemption requested via 3DS and accepted by the issuer at authentication time.
+ """
+ network_options: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions"
+ ]
+ """
+ Network specific 3DS fields. Network specific arguments require an
+ explicit card brand choice. The parameter `payment_method_options.card.network``
+ must be populated accordingly
+ """
+ requestor_challenge_indicator: NotRequired[str]
+ """
+ The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
+ AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
+ """
+ transaction_id: str
+ """
+ For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
+ Transaction ID (dsTransID).
+ """
+ version: Literal["1.0.2", "2.1.0", "2.2.0"]
+ """
+ The version of 3D Secure that was performed.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions(
+ TypedDict,
+):
+ cartes_bancaires: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires"
+ ]
+ """
+ Cartes Bancaires-specific 3DS fields.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires(
+ TypedDict,
+):
+ cb_avalgo: Literal["0", "1", "2", "3", "4", "A"]
+ """
+ The cryptogram calculation algorithm used by the card Issuer's ACS
+ to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
+ messageExtension: CB-AVALGO
+ """
+ cb_exemption: NotRequired[str]
+ """
+ The exemption indicator returned from Cartes Bancaires in the ARes.
+ message extension: CB-EXEMPTION; string (4 characters)
+ This is a 3 byte bitmap (low significant byte first and most significant
+ bit first) that has been Base64 encoded
+ """
+ cb_score: NotRequired[int]
+ """
+ The risk score returned from Cartes Bancaires in the ARes.
+ message extension: CB-SCORE; numeric value 0-99
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent(TypedDict):
+ capture_method: NotRequired[Literal["manual", "manual_preferred"]]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ request_extended_authorization: NotRequired[bool]
+ """
+ Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
+ """
+ request_incremental_authorization_support: NotRequired[bool]
+ """
+ Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
+ """
+ routing: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting"
+ ]
+ """
+ Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting(
+ TypedDict,
+):
+ requested_priority: NotRequired[Literal["domestic", "international"]]
+ """
+ Routing requested priority
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCashapp(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session', 'on_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCrypto(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalance(TypedDict):
+ bank_transfer: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
+ ]
+ """
+ Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ """
+ funding_type: NotRequired[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ """
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer(
+ TypedDict,
+):
+ eu_bank_transfer: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
+ ]
+ """
+ Configuration for the eu_bank_transfer funding type.
+ """
+ requested_address_types: NotRequired[
+ List[
+ Literal[
+ "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
+ ]
+ ]
+ ]
+ """
+ List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
+
+ Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
+ """
+ type: Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ """
+ The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
"""
-class PaymentIntentUpdateParamsPaymentMethodDataPayByBank(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+ TypedDict,
+):
+ country: str
+ """
+ The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataPayco(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentMethodOptionsEps(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-class PaymentIntentUpdateParamsPaymentMethodDataPaynow(TypedDict):
- pass
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-class PaymentIntentUpdateParamsPaymentMethodDataPaypal(TypedDict):
- pass
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataPayto(TypedDict):
- account_number: NotRequired[str]
- """
- The account number for the bank account.
- """
- bsb_number: NotRequired[str]
- """
- Bank-State-Branch number of the bank account.
- """
- pay_id: NotRequired[str]
- """
- The PayID alias for the bank account.
+class PaymentIntentUpdateParamsPaymentMethodOptionsFpx(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
"""
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-class PaymentIntentUpdateParamsPaymentMethodDataPix(TypedDict):
- pass
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-class PaymentIntentUpdateParamsPaymentMethodDataPromptpay(TypedDict):
- pass
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataRadarOptions(TypedDict):
- session: NotRequired[str]
- """
- A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
+class PaymentIntentUpdateParamsPaymentMethodOptionsGiropay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
"""
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-class PaymentIntentUpdateParamsPaymentMethodDataRevolutPay(TypedDict):
- pass
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-class PaymentIntentUpdateParamsPaymentMethodDataSamsungPay(TypedDict):
- pass
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
-class PaymentIntentUpdateParamsPaymentMethodDataSatispay(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentMethodOptionsGopay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none", "off_session"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-class PaymentIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict):
- iban: str
- """
- IBAN of the bank account.
- """
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-class PaymentIntentUpdateParamsPaymentMethodDataSofort(TypedDict):
- country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
- """
- Two-letter ISO code representing the country the bank account is located in.
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
-class PaymentIntentUpdateParamsPaymentMethodDataSwish(TypedDict):
- pass
+class PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-class PaymentIntentUpdateParamsPaymentMethodDataTwint(TypedDict):
- pass
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-class PaymentIntentUpdateParamsPaymentMethodDataUsBankAccount(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
- """
- Account holder type: individual or company.
- """
- account_number: NotRequired[str]
- """
- Account number of the bank account.
- """
- account_type: NotRequired[Literal["checking", "savings"]]
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
- Account type: checkings or savings. Defaults to checking if omitted.
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsIdBankTransfer(TypedDict):
+ expires_after: NotRequired[int]
"""
- financial_connections_account: NotRequired[str]
+ The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
"""
- The ID of a Financial Connections Account to use as a payment method.
+ expires_at: NotRequired[int]
"""
- routing_number: NotRequired[str]
+ The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
"""
- Routing number of the bank account.
+ setup_future_usage: NotRequired[Literal["none"]]
"""
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-class PaymentIntentUpdateParamsPaymentMethodDataWechatPay(TypedDict):
- pass
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-class PaymentIntentUpdateParamsPaymentMethodDataZip(TypedDict):
- pass
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
-class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict):
- acss_debit: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebit"
- ]
- """
- If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
- """
- affirm: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAffirm"
- ]
- """
- If this is an `affirm` PaymentMethod, this sub-hash contains details about the Affirm payment method options.
- """
- afterpay_clearpay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAfterpayClearpay"
- ]
- """
- If this is a `afterpay_clearpay` PaymentMethod, this sub-hash contains details about the Afterpay Clearpay payment method options.
- """
- alipay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAlipay"
- ]
- """
- If this is a `alipay` PaymentMethod, this sub-hash contains details about the Alipay payment method options.
- """
- alma: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAlma"
- ]
- """
- If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options.
- """
- amazon_pay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAmazonPay"
- ]
- """
- If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options.
- """
- au_becs_debit: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit"
- ]
- """
- If this is a `au_becs_debit` PaymentMethod, this sub-hash contains details about the AU BECS Direct Debit payment method options.
- """
- bacs_debit: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit"
+class PaymentIntentUpdateParamsPaymentMethodOptionsIdeal(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
]
"""
- If this is a `bacs_debit` PaymentMethod, this sub-hash contains details about the BACS Debit payment method options.
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
- bancontact: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBancontact"
- ]
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsInteracPresent(TypedDict):
+ pass
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKakaoPay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
"""
- If this is a `bancontact` PaymentMethod, this sub-hash contains details about the Bancontact payment method options.
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
"""
- billie: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBillie"
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
]
"""
- If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
"""
- blik: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBlik"
- ]
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarna(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
"""
- If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
"""
- boleto: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsBoleto"
+ on_demand: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand"
]
"""
- If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
+ On-demand details if setting up or charging an on-demand payment.
"""
- card: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCard"
+ preferred_locale: NotRequired[
+ Literal[
+ "cs-CZ",
+ "da-DK",
+ "de-AT",
+ "de-CH",
+ "de-DE",
+ "el-GR",
+ "en-AT",
+ "en-AU",
+ "en-BE",
+ "en-CA",
+ "en-CH",
+ "en-CZ",
+ "en-DE",
+ "en-DK",
+ "en-ES",
+ "en-FI",
+ "en-FR",
+ "en-GB",
+ "en-GR",
+ "en-IE",
+ "en-IT",
+ "en-NL",
+ "en-NO",
+ "en-NZ",
+ "en-PL",
+ "en-PT",
+ "en-RO",
+ "en-SE",
+ "en-US",
+ "es-ES",
+ "es-US",
+ "fi-FI",
+ "fr-BE",
+ "fr-CA",
+ "fr-CH",
+ "fr-FR",
+ "it-CH",
+ "it-IT",
+ "nb-NO",
+ "nl-BE",
+ "nl-NL",
+ "pl-PL",
+ "pt-PT",
+ "ro-RO",
+ "sv-FI",
+ "sv-SE",
+ ]
]
"""
- Configuration for any card payments attempted on this PaymentIntent.
+ Preferred language of the Klarna authorization page that the customer is redirected to
"""
- card_present: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent"
+ setup_future_usage: NotRequired[
+ Literal["none", "off_session", "on_session"]
]
"""
- If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
- cashapp: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCashapp"
+ subscriptions: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription]"
]
"""
- If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
+ Subscription details if setting up or charging a subscription.
"""
- crypto: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCrypto"
+ supplementary_purchase_data: NotRequired[
+ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData"
]
"""
- If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
+ Supplementary Purchase Data for the corresponding Klarna payment
"""
- customer_balance: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalance"
- ]
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict):
+ average_amount: NotRequired[int]
"""
- If this is a `customer balance` PaymentMethod, this sub-hash contains details about the customer balance payment method options.
+ Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
"""
- eps: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsEps"
- ]
+ maximum_amount: NotRequired[int]
"""
- If this is a `eps` PaymentMethod, this sub-hash contains details about the EPS payment method options.
+ The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
"""
- fpx: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsFpx"
- ]
+ minimum_amount: NotRequired[int]
"""
- If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
+ The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
"""
- giropay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGiropay"
- ]
+ purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
"""
- If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
+ Interval at which the customer is making purchases
"""
- grabpay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay"
- ]
+ purchase_interval_count: NotRequired[int]
"""
- If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
+ The number of `purchase_interval` between charges
"""
- ideal: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsIdeal"
- ]
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
"""
- If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
+ Unit of time between subscription charges.
"""
- interac_present: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsInteracPresent"
- ]
+ interval_count: NotRequired[int]
"""
- If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
+ The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
"""
- kakao_pay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKakaoPay"
- ]
+ name: NotRequired[str]
"""
- If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options.
+ Name for subscription.
"""
- klarna: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKlarna"
+ next_billing: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
]
"""
- If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options.
+ Describes the upcoming charge for this subscription.
"""
- konbini: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKonbini"
- ]
+ reference: str
"""
- If this is a `konbini` PaymentMethod, this sub-hash contains details about the Konbini payment method options.
+ A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
"""
- kr_card: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsKrCard"
- ]
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
+ TypedDict,
+):
+ amount: int
"""
- If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
+ The amount of the next charge for the subscription.
"""
- link: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsLink"
- ]
+ date: str
"""
- If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
+ The date of the next charge for the subscription in YYYY-MM-DD format.
"""
- mb_way: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMbWay"
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseData(
+ TypedDict,
+):
+ bus_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail]"
]
"""
- If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
+ Supplementary bus reservation details.
"""
- mobilepay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMobilepay"
+ event_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail]"
]
"""
- If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options.
+ Supplementary event reservation details.
"""
- multibanco: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsMultibanco"
+ ferry_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail]"
]
"""
- If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options.
+ Supplementary ferry reservation details.
"""
- naver_pay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsNaverPay"
+ insurances: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance]"
]
"""
- If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options.
+ Supplementary insurance details.
"""
- nz_bank_account: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsNzBankAccount"
+ marketplace_sellers: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller]"
]
"""
- If this is a `nz_bank_account` PaymentMethod, this sub-hash contains details about the NZ BECS Direct Debit payment method options.
+ Supplementary marketplace seller details.
"""
- oxxo: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsOxxo"
+ round_trip_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail]"
]
"""
- If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options.
+ Supplementary round trip reservation details.
"""
- p24: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsP24"
+ train_reservation_details: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail]"
]
"""
- If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
+ Supplementary train reservation details.
"""
- pay_by_bank: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayByBank"
+ vouchers: NotRequired[
+ "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher]"
]
"""
- If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
+ Voucher details, such as a gift card or discount code.
"""
- payco: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayco"
- ]
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
"""
- If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
+ Name of associated or partner company for the service.
"""
- paynow: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPaynow"
+ arrival: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival"
]
"""
- If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
+ Arrival details.
"""
- paypal: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPaypal"
- ]
+ carrier_name: NotRequired[str]
"""
- If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
+ Name of transportation company.
"""
- payto: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPayto"
- ]
+ currency: NotRequired[str]
"""
- If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
+ Currency.
"""
- pix: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPix"
+ departure: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture"
]
"""
- If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
+ Departure details.
"""
- promptpay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsPromptpay"
+ insurances: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance"
+ ]
]
"""
- If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
+ List of insurances for this reservation.
"""
- revolut_pay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay"
+ passengers: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger"
+ ]
]
"""
- If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
+ List of passengers that this reservation applies to.
"""
- samsung_pay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSamsungPay"
- ]
+ price: NotRequired[int]
"""
- If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
+ Price in cents.
"""
- satispay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSatispay"
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
]
"""
- If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
+ Ticket class.
"""
- sepa_debit: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit"
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress"
]
"""
- If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
- """
- sofort: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSofort"
- ]
+ Address of the arrival location.
"""
- If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
+ arrival_location: NotRequired[str]
"""
- swish: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSwish"
- ]
+ Identifier name or reference for the arrival location.
"""
- If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- twint: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsTwint"
- ]
+ The city or town.
"""
- If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
+ country: NotRequired[str]
"""
- us_bank_account: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccount"
- ]
+ The country in ISO 3166-1 alpha-2 format.
"""
- If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
+ postal_code: NotRequired[str]
"""
- wechat_pay: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsWechatPay"
- ]
+ The postal code formatted according to country.
"""
- If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
+ region: NotRequired[str]
"""
- zip: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsZip"
- ]
+ The state, county, province, or region formatted according to country.
"""
- If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
+ street_address: NotRequired[str]
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebit(TypedDict):
- mandate_options: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions"
- ]
+ Line 1 of the street address.
"""
- Additional fields for Mandate creation
+ street_address2: NotRequired[str]
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ Line 2 of the street address.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress"
+ ]
"""
- target_date: NotRequired[str]
+ Address of the departure location.
"""
- Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ departs_at: NotRequired[int]
"""
- verification_method: NotRequired[
- Literal["automatic", "instant", "microdeposits"]
- ]
+ Timestamp of departure.
"""
- Bank account verification method.
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions(
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailDepartureAddress(
TypedDict,
):
- custom_mandate_url: NotRequired["Literal['']|str"]
- """
- A URL for custom mandate text to render during confirmation step.
- The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
- or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
+ city: NotRequired[str]
"""
- interval_description: NotRequired[str]
+ The city or town.
"""
- Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
+ country: NotRequired[str]
"""
- payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
+ The country in ISO 3166-1 alpha-2 format.
"""
- Payment schedule for the mandate.
+ postal_code: NotRequired[str]
"""
- transaction_type: NotRequired[Literal["business", "personal"]]
+ The postal code formatted according to country.
"""
- Transaction type of the mandate.
+ region: NotRequired[str]
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsAffirm(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ The state, county, province, or region formatted according to country.
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ street_address: NotRequired[str]
"""
- preferred_locale: NotRequired[str]
+ Line 1 of the street address.
"""
- Preferred language of the Affirm authorization page that the customer is redirected to.
+ street_address2: NotRequired[str]
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ Line 2 of the street address.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsAfterpayClearpay(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ Insurance currency.
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ insurance_company_name: NotRequired[str]
"""
- reference: NotRequired[str]
+ Name of the company providing the insurance.
"""
- An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes.
- This field differs from the statement descriptor and item name.
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ Type of insurance.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ price: NotRequired[int]
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsAlipay(TypedDict):
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
- ]
+ Price of insurance in cents.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataBusReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsAlma(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ The family name of the person.
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ given_name: NotRequired[str]
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsAmazonPay(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ The given name of the person.
"""
- Controls when the funds are captured from the customer's account.
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetail(
+ TypedDict,
+):
+ access_controlled_venue: NotRequired[bool]
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
+ Indicates if the tickets are digitally checked when entering the venue.
+ """
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress"
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ Address of the event.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit(TypedDict):
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ affiliate_name: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Name of associated or partner company for the service.
"""
- target_date: NotRequired[str]
+ ends_at: NotRequired[int]
"""
- Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ End timestamp of the event.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit(TypedDict):
- mandate_options: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions"
+ event_company_name: NotRequired[str]
+ """
+ Company selling the ticket.
+ """
+ event_name: NotRequired[str]
+ """
+ Name of the event.
+ """
+ event_type: NotRequired[
+ Literal[
+ "concert",
+ "conference",
+ "digital_education",
+ "expo",
+ "festival",
+ "in_person_education",
+ "sport",
+ "tour",
+ ]
]
"""
- Additional fields for Mandate creation
+ Type of the event.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
+ insurances: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance"
+ ]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ List of insurances for this event.
"""
- target_date: NotRequired[str]
+ starts_at: NotRequired[int]
"""
- Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
+ Start timestamp of the event.
+ """
+ venue_name: NotRequired[str]
+ """
+ Name of the venue where the event takes place.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions(
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailAddress(
TypedDict,
):
- reference_prefix: NotRequired["Literal['']|str"]
+ city: NotRequired[str]
"""
- Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
+ The city or town.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsBancontact(TypedDict):
- preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+ country: NotRequired[str]
"""
- Preferred language of the Bancontact authorization page that the customer is redirected to.
+ The country in ISO 3166-1 alpha-2 format.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
- ]
+ postal_code: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The postal code formatted according to country.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsBillie(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ region: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ The state, county, province, or region formatted according to country.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsBlik(TypedDict):
- code: NotRequired[str]
+ street_address: NotRequired[str]
"""
- The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
+ Line 1 of the street address.
"""
- setup_future_usage: NotRequired["Literal['']|Literal['none']"]
+ street_address2: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Line 2 of the street address.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsBoleto(TypedDict):
- expires_after_days: NotRequired[int]
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataEventReservationDetailInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
"""
- The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
+ Insurance currency.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
+ insurance_company_name: NotRequired[str]
+ """
+ Name of the company providing the insurance.
+ """
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Type of insurance.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsCard(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
"""
- Controls when the funds are captured from the customer's account.
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
+ """
+ Name of associated or partner company for the service.
+ """
+ arrival: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival"
+ ]
+ """
+ Arrival details.
+ """
+ carrier_name: NotRequired[str]
+ """
+ Name of transportation company.
+ """
+ currency: NotRequired[str]
"""
- cvc_token: NotRequired[str]
+ Currency.
"""
- A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
+ departure: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture"
+ ]
"""
- installments: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments"
+ Departure details.
+ """
+ insurances: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance"
+ ]
]
"""
- Installment configuration for payments attempted on this PaymentIntent.
-
- For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
+ List of insurances for this reservation.
"""
- mandate_options: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions"
+ passengers: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger"
+ ]
]
"""
- Configuration options for setting up an eMandate for cards issued in India.
+ List of passengers that this reservation applies to.
"""
- moto: NotRequired[bool]
+ price: NotRequired[int]
"""
- When specified, this parameter indicates that a transaction will be marked
- as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
- parameter can only be provided during confirmation.
+ Price in cents.
"""
- network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
]
"""
- Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
+ Ticket class.
"""
- request_extended_authorization: NotRequired[
- Literal["if_available", "never"]
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress"
]
"""
- Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
+ Address of the arrival location.
"""
- request_incremental_authorization: NotRequired[
- Literal["if_available", "never"]
- ]
+ arrival_location: NotRequired[str]
"""
- Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
+ Identifier name or reference for the arrival location.
"""
- request_multicapture: NotRequired[Literal["if_available", "never"]]
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
+ The city or town.
"""
- request_overcapture: NotRequired[Literal["if_available", "never"]]
+ country: NotRequired[str]
"""
- Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
+ The country in ISO 3166-1 alpha-2 format.
"""
- request_three_d_secure: NotRequired[
- Literal["any", "automatic", "challenge"]
- ]
+ postal_code: NotRequired[str]
"""
- We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ The postal code formatted according to country.
"""
- require_cvc_recollection: NotRequired[bool]
+ region: NotRequired[str]
"""
- When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
+ The state, county, province, or region formatted according to country.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress"
+ ]
+ """
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
+ """
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- statement_descriptor_suffix_kana: NotRequired["Literal['']|str"]
+ The city or town.
"""
- Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
+ country: NotRequired[str]
"""
- statement_descriptor_suffix_kanji: NotRequired["Literal['']|str"]
+ The country in ISO 3166-1 alpha-2 format.
"""
- Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
+ postal_code: NotRequired[str]
"""
- three_d_secure: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure"
- ]
+ The postal code formatted according to country.
"""
- If 3D Secure authentication was performed with a third-party provider,
- the authentication details to use for this payment.
+ region: NotRequired[str]
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallments(TypedDict):
- enabled: NotRequired[bool]
+ The state, county, province, or region formatted according to country.
"""
- Setting to true enables installments for this PaymentIntent.
- This will cause the response to contain a list of available installment plans.
- Setting to false will prevent any selected plan from applying to a charge.
+ street_address: NotRequired[str]
"""
- plan: NotRequired[
- "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallmentsPlan"
- ]
+ Line 1 of the street address.
"""
- The selected installment plan to use for this payment attempt.
- This parameter can only be provided during confirmation.
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsCardInstallmentsPlan(
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailInsurance(
TypedDict,
):
- count: NotRequired[int]
+ currency: NotRequired[str]
"""
- For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
+ Insurance currency.
"""
- interval: NotRequired[Literal["month"]]
+ insurance_company_name: NotRequired[str]
"""
- For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
- One of `month`.
+ Name of the company providing the insurance.
"""
- type: Literal["bonus", "fixed_count", "revolving"]
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
+ Type of insurance.
+ """
+ price: NotRequired[int]
+ """
+ Price of insurance in cents.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions(
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataFerryReservationDetailPassenger(
TypedDict,
):
- amount: int
+ family_name: NotRequired[str]
"""
- Amount to be charged for future payments.
+ The family name of the person.
"""
- amount_type: Literal["fixed", "maximum"]
+ given_name: NotRequired[str]
"""
- One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ The given name of the person.
"""
- description: NotRequired[str]
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataInsurance(
+ TypedDict,
+):
+ currency: NotRequired[str]
"""
- A description of the mandate or subscription that is meant to be displayed to the customer.
+ Insurance currency.
"""
- end_date: NotRequired[int]
+ insurance_company_name: NotRequired[str]
"""
- End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ Name of the company providing the insurance.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+ insurance_type: NotRequired[
+ Literal["bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
+ Type of insurance
"""
- interval_count: NotRequired[int]
+ price: NotRequired[int]
"""
- The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
+ Price of insurance in cents.
"""
- reference: str
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSeller(
+ TypedDict,
+):
+ line_item_references: NotRequired[List[str]]
"""
- Unique identifier for the mandate or subscription.
+ The references to line items for purchases with multiple associated sub-sellers.
"""
- start_date: int
+ marketplace_seller_address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress"
+ ]
"""
- Start date of the mandate or subscription. Start date should not be lesser than yesterday.
+ The address of the selling or delivering merchant.
"""
- supported_types: NotRequired[List[Literal["india"]]]
+ marketplace_seller_name: NotRequired[str]
"""
- Specifies the type of mandates supported. Possible values are `india`.
+ The name of the marketplace seller.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict):
- ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]]
+ marketplace_seller_reference: NotRequired[str]
"""
- The `transStatus` returned from the card Issuer's ACS in the ARes.
+ The unique identifier for the marketplace seller.
"""
- cryptogram: str
+ number_of_transactions: NotRequired[int]
"""
- The cryptogram, also known as the "authentication value" (AAV, CAVV or
- AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
- (Most 3D Secure providers will return the base64-encoded version, which
- is what you should specify here.)
+ The number of transactions the sub-seller completed in the last 12 months.
"""
- electronic_commerce_indicator: NotRequired[
- Literal["01", "02", "05", "06", "07"]
+ product_category: NotRequired[
+ Literal[
+ "accessories",
+ "appliances",
+ "apps_and_games",
+ "arts_crafts_and_sewing",
+ "automotive",
+ "baby",
+ "baby_clothing",
+ "bags_and_purses",
+ "beauty",
+ "books",
+ "cds_and_vinyl",
+ "cell_phones_and_accessories",
+ "collectibles_and_fine_arts",
+ "digital_music",
+ "electronics",
+ "grocery_and_gourmet_food",
+ "handmade",
+ "health_and_personal_care",
+ "home_and_kitchen",
+ "industrial_and_scientific",
+ "luggage_and_travel_gear",
+ "magazine_subscriptions",
+ "men_clothing",
+ "musical_instruments",
+ "office_products",
+ "patio_lawn_and_garden",
+ "pet_supplies",
+ "shoes",
+ "software",
+ "sports_and_outdoors",
+ "tools_and_home_improvement",
+ "toys_and_games",
+ "video_games",
+ "women_clothing",
+ ]
]
"""
- The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
- provider and indicates what degree of authentication was performed.
+ The category of the product.
"""
- exemption_indicator: NotRequired[Literal["low_risk", "none"]]
+ seller_last_login_at: NotRequired[int]
"""
- The exemption requested via 3DS and accepted by the issuer at authentication time.
+ The date when the seller's account with the marketplace was last logged in.
"""
- network_options: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions"
+ seller_rating: NotRequired[
+ Literal["high", "low", "medium", "very_high", "very_low"]
]
"""
- Network specific 3DS fields. Network specific arguments require an
- explicit card brand choice. The parameter `payment_method_options.card.network``
- must be populated accordingly
+ The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
"""
- requestor_challenge_indicator: NotRequired[str]
+ seller_registered_at: NotRequired[int]
"""
- The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
- AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
+ The date when the seller's account with the marketplace was created.
"""
- transaction_id: str
+ seller_updated_at: NotRequired[int]
"""
- For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
- Transaction ID (dsTransID).
+ The date when the seller's account with the marketplace was last updated.
"""
- version: Literal["1.0.2", "2.1.0", "2.2.0"]
+ shipping_references: NotRequired[List[str]]
"""
- The version of 3D Secure that was performed.
+ The references to shipping addresses for purchases with multiple associated sub-sellers.
+ """
+ volume_of_transactions: NotRequired[int]
+ """
+ The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions(
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataMarketplaceSellerMarketplaceSellerAddress(
TypedDict,
):
- cartes_bancaires: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires"
- ]
+ city: NotRequired[str]
"""
- Cartes Bancaires-specific 3DS fields.
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires(
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetail(
TypedDict,
):
- cb_avalgo: Literal["0", "1", "2", "3", "4", "A"]
+ affiliate_name: NotRequired[str]
"""
- The cryptogram calculation algorithm used by the card Issuer's ACS
- to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
- messageExtension: CB-AVALGO
+ Name of associated or partner company for the service.
"""
- cb_exemption: NotRequired[str]
+ arrival: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival"
+ ]
"""
- The exemption indicator returned from Cartes Bancaires in the ARes.
- message extension: CB-EXEMPTION; string (4 characters)
- This is a 3 byte bitmap (low significant byte first and most significant
- bit first) that has been Base64 encoded
+ Arrival details.
"""
- cb_score: NotRequired[int]
+ carrier_name: NotRequired[str]
"""
- The risk score returned from Cartes Bancaires in the ARes.
- message extension: CB-SCORE; numeric value 0-99
+ Name of transportation company.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent(TypedDict):
- capture_method: NotRequired[Literal["manual", "manual_preferred"]]
+ currency: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Currency.
"""
- request_extended_authorization: NotRequired[bool]
+ departure: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture"
+ ]
"""
- Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
+ Departure details.
"""
- request_incremental_authorization_support: NotRequired[bool]
+ insurances: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance"
+ ]
+ ]
"""
- Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
+ List of insurances for this reservation.
"""
- routing: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting"
+ passengers: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger"
+ ]
+ ]
+ """
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress"
]
"""
- Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting(
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailArrivalAddress(
TypedDict,
):
- requested_priority: NotRequired[Literal["domestic", "international"]]
+ city: NotRequired[str]
"""
- Routing requested priority
+ The city or town.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsCashapp(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ country: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ The country in ISO 3166-1 alpha-2 format.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session', 'on_session']"
- ]
+ postal_code: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The postal code formatted according to country.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsCrypto(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ region: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalance(TypedDict):
- bank_transfer: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress"
]
"""
- Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ Address of the departure location.
"""
- funding_type: NotRequired[Literal["bank_transfer"]]
+ departs_at: NotRequired[int]
"""
- The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
+ Timestamp of departure.
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ departure_location: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer(
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailDepartureAddress(
TypedDict,
):
- eu_bank_transfer: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
- ]
+ city: NotRequired[str]
"""
- Configuration for the eu_bank_transfer funding type.
+ The city or town.
"""
- requested_address_types: NotRequired[
- List[
- Literal[
- "aba", "iban", "sepa", "sort_code", "spei", "swift", "zengin"
- ]
- ]
- ]
+ country: NotRequired[str]
"""
- List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
-
- Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
+ The country in ISO 3166-1 alpha-2 format.
"""
- type: Literal[
- "eu_bank_transfer",
- "gb_bank_transfer",
- "jp_bank_transfer",
- "mx_bank_transfer",
- "us_bank_transfer",
- ]
+ postal_code: NotRequired[str]
"""
- The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailInsurance(
TypedDict,
):
- country: str
+ currency: NotRequired[str]
"""
- The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
+ Insurance currency.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsEps(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ insurance_company_name: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Name of the company providing the insurance.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsFpx(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Type of insurance.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsGiropay(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+ price: NotRequired[int]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ Price of insurance in cents.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsGrabpay(TypedDict):
- setup_future_usage: NotRequired[Literal["none"]]
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataRoundTripReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The family name of the person.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsIdeal(TypedDict):
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
- ]
+ given_name: NotRequired[str]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
-
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ The given name of the person.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsInteracPresent(TypedDict):
- pass
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsKakaoPay(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetail(
+ TypedDict,
+):
+ affiliate_name: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Name of associated or partner company for the service.
"""
- setup_future_usage: NotRequired[
- "Literal['']|Literal['none', 'off_session']"
+ arrival: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival"
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
-
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
-
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
-
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+ Arrival details.
"""
-
-
-class PaymentIntentUpdateParamsPaymentMethodOptionsKlarna(TypedDict):
- capture_method: NotRequired["Literal['']|Literal['manual']"]
+ carrier_name: NotRequired[str]
"""
- Controls when the funds are captured from the customer's account.
-
- If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
-
- If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ Name of transportation company.
"""
- on_demand: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand"
+ currency: NotRequired[str]
+ """
+ Currency.
+ """
+ departure: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture"
]
"""
- On-demand details if setting up or charging an on-demand payment.
+ Departure details.
"""
- preferred_locale: NotRequired[
- Literal[
- "cs-CZ",
- "da-DK",
- "de-AT",
- "de-CH",
- "de-DE",
- "el-GR",
- "en-AT",
- "en-AU",
- "en-BE",
- "en-CA",
- "en-CH",
- "en-CZ",
- "en-DE",
- "en-DK",
- "en-ES",
- "en-FI",
- "en-FR",
- "en-GB",
- "en-GR",
- "en-IE",
- "en-IT",
- "en-NL",
- "en-NO",
- "en-NZ",
- "en-PL",
- "en-PT",
- "en-RO",
- "en-SE",
- "en-US",
- "es-ES",
- "es-US",
- "fi-FI",
- "fr-BE",
- "fr-CA",
- "fr-CH",
- "fr-FR",
- "it-CH",
- "it-IT",
- "nb-NO",
- "nl-BE",
- "nl-NL",
- "pl-PL",
- "pt-PT",
- "ro-RO",
- "sv-FI",
- "sv-SE",
+ insurances: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance"
]
]
"""
- Preferred language of the Klarna authorization page that the customer is redirected to
+ List of insurances for this reservation.
"""
- setup_future_usage: NotRequired[
- Literal["none", "off_session", "on_session"]
+ passengers: NotRequired[
+ List[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger"
+ ]
]
"""
- Indicates that you intend to make future payments with this PaymentIntent's payment method.
+ List of passengers that this reservation applies to.
+ """
+ price: NotRequired[int]
+ """
+ Price in cents.
+ """
+ ticket_class: NotRequired[
+ Literal["business", "economy", "first_class", "premium_economy"]
+ ]
+ """
+ Ticket class.
+ """
- If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
- If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrival(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress"
+ ]
+ """
+ Address of the arrival location.
+ """
+ arrival_location: NotRequired[str]
+ """
+ Identifier name or reference for the arrival location.
+ """
- When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
- If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailArrivalAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- subscriptions: NotRequired[
- "Literal['']|List[PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription]"
+ The city or town.
+ """
+ country: NotRequired[str]
+ """
+ The country in ISO 3166-1 alpha-2 format.
+ """
+ postal_code: NotRequired[str]
+ """
+ The postal code formatted according to country.
+ """
+ region: NotRequired[str]
+ """
+ The state, county, province, or region formatted according to country.
+ """
+ street_address: NotRequired[str]
+ """
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDeparture(
+ TypedDict,
+):
+ address: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress"
]
"""
- Subscription details if setting up or charging a subscription.
+ Address of the departure location.
+ """
+ departs_at: NotRequired[int]
+ """
+ Timestamp of departure.
+ """
+ departure_location: NotRequired[str]
+ """
+ Identifier name or reference for the origin location.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict):
- average_amount: NotRequired[int]
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailDepartureAddress(
+ TypedDict,
+):
+ city: NotRequired[str]
"""
- Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
+ The city or town.
"""
- maximum_amount: NotRequired[int]
+ country: NotRequired[str]
"""
- The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ The country in ISO 3166-1 alpha-2 format.
"""
- minimum_amount: NotRequired[int]
+ postal_code: NotRequired[str]
"""
- The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
+ The postal code formatted according to country.
"""
- purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
+ region: NotRequired[str]
"""
- Interval at which the customer is making purchases
+ The state, county, province, or region formatted according to country.
"""
- purchase_interval_count: NotRequired[int]
+ street_address: NotRequired[str]
"""
- The number of `purchase_interval` between charges
+ Line 1 of the street address.
+ """
+ street_address2: NotRequired[str]
+ """
+ Line 2 of the street address.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscription(
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailInsurance(
TypedDict,
):
- interval: Literal["day", "month", "week", "year"]
+ currency: NotRequired[str]
"""
- Unit of time between subscription charges.
+ Insurance currency.
"""
- interval_count: NotRequired[int]
+ insurance_company_name: NotRequired[str]
"""
- The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
+ Name of the company providing the insurance.
"""
- name: NotRequired[str]
+ insurance_type: NotRequired[
+ Literal["baggage", "bankruptcy", "cancelation", "emergency", "medical"]
+ ]
"""
- Name for subscription.
+ Type of insurance.
"""
- next_billing: NotRequired[
- "PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
- ]
+ price: NotRequired[int]
"""
- Describes the upcoming charge for this subscription.
+ Price of insurance in cents.
"""
- reference: str
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataTrainReservationDetailPassenger(
+ TypedDict,
+):
+ family_name: NotRequired[str]
"""
- A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
+ The family name of the person.
+ """
+ given_name: NotRequired[str]
+ """
+ The given name of the person.
"""
-class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
+class PaymentIntentUpdateParamsPaymentMethodOptionsKlarnaSupplementaryPurchaseDataVoucher(
TypedDict,
):
- amount: int
+ affiliate_name: NotRequired[str]
"""
- The amount of the next charge for the subscription.
+ Name of associated or partner company for this voucher.
"""
- date: str
+ ends_at: NotRequired[int]
"""
- The date of the next charge for the subscription in YYYY-MM-DD format.
+ The voucher validity end time.
+ """
+ starts_at: NotRequired[int]
+ """
+ The voucher validity start time.
+ """
+ voucher_company: NotRequired[str]
+ """
+ The issuer or provider of this voucher.
+ """
+ voucher_name: NotRequired[str]
+ """
+ The name or reference to identify the voucher.
+ """
+ voucher_type: NotRequired[
+ Literal[
+ "digital_product",
+ "discount",
+ "gift_card",
+ "physical_product",
+ "services",
+ ]
+ ]
+ """
+ The type of this voucher.
"""
@@ -2696,6 +5844,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsPaypal(TypedDict):
"""
Controls when the funds will be captured from the customer's account.
"""
+ line_items: NotRequired[
+ List["PaymentIntentUpdateParamsPaymentMethodOptionsPaypalLineItem"]
+ ]
+ """
+ The line items purchased by the customer.
+ """
preferred_locale: NotRequired[
Literal[
"cs-CZ",
@@ -2728,6 +5882,10 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsPaypal(TypedDict):
"""
A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
"""
+ reference_id: NotRequired[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
risk_correlation_id: NotRequired[str]
"""
The risk correlation ID for an on-session payment using a saved PayPal payment method.
@@ -2746,6 +5904,73 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsPaypal(TypedDict):
If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
+ subsellers: NotRequired[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsPaypalLineItem(TypedDict):
+ category: NotRequired[
+ Literal["digital_goods", "donation", "physical_goods"]
+ ]
+ """
+ Type of the line item.
+ """
+ description: NotRequired[str]
+ """
+ Description of the line item.
+ """
+ name: str
+ """
+ Descriptive name of the line item.
+ """
+ quantity: int
+ """
+ Quantity of the line item. Must be a positive number.
+ """
+ sku: NotRequired[str]
+ """
+ Client facing stock keeping unit, article number or similar.
+ """
+ sold_by: NotRequired[str]
+ """
+ The Stripe account ID of the connected account that sells the item.
+ """
+ tax: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPaypalLineItemTax"
+ ]
+ """
+ The tax information for the line item.
+ """
+ unit_amount: int
+ """
+ Price for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsPaypalLineItemTax(
+ TypedDict
+):
+ amount: int
+ """
+ The tax for a single unit of the line item in minor units. Cannot be a negative number.
+ """
+ behavior: Literal["exclusive", "inclusive"]
+ """
+ The tax behavior for the line item.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsPaypay(TypedDict):
+ capture_method: NotRequired["Literal['']|Literal['manual']"]
+ """
+ Controls when the funds are captured from the customer's account.
+
+ If provided, this parameter overrides the behavior of the top-level [capture_method](https://docs.stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
+
+ If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
+ """
class PaymentIntentUpdateParamsPaymentMethodOptionsPayto(TypedDict):
@@ -2817,7 +6042,13 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsPix(TypedDict):
"""
The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ mandate_options: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsPixMandateOptions"
+ ]
+ """
+ Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
+ """
+ setup_future_usage: NotRequired[Literal["none", "off_session"]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2831,6 +6062,45 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsPix(TypedDict):
"""
+class PaymentIntentUpdateParamsPaymentMethodOptionsPixMandateOptions(
+ TypedDict
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
+ """
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ Type of amount. Defaults to `maximum`.
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
+ """
+ end_date: NotRequired[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ payment_schedule: NotRequired[
+ Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"]
+ ]
+ """
+ Schedule at which the future payments will be charged. Defaults to `weekly`.
+ """
+ reference: NotRequired[str]
+ """
+ Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
+ """
+ start_date: NotRequired[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
+ """
+
+
class PaymentIntentUpdateParamsPaymentMethodOptionsPromptpay(TypedDict):
setup_future_usage: NotRequired[Literal["none"]]
"""
@@ -2846,6 +6116,25 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsPromptpay(TypedDict):
"""
+class PaymentIntentUpdateParamsPaymentMethodOptionsQris(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsRechnung(TypedDict):
+ pass
+
+
class PaymentIntentUpdateParamsPaymentMethodOptionsRevolutPay(TypedDict):
capture_method: NotRequired["Literal['']|Literal['manual']"]
"""
@@ -2927,6 +6216,21 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions(
"""
+class PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay(TypedDict):
+ setup_future_usage: NotRequired[Literal["none"]]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
class PaymentIntentUpdateParamsPaymentMethodOptionsSofort(TypedDict):
preferred_language: NotRequired[
"Literal['']|Literal['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']"
@@ -2950,6 +6254,23 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSofort(TypedDict):
"""
+class PaymentIntentUpdateParamsPaymentMethodOptionsStripeBalance(TypedDict):
+ setup_future_usage: NotRequired[
+ "Literal['']|Literal['none', 'off_session']"
+ ]
+ """
+ Indicates that you intend to make future payments with this PaymentIntent's payment method.
+
+ If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
+
+ If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
+
+ When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
+
+ If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
+ """
+
+
class PaymentIntentUpdateParamsPaymentMethodOptionsSwish(TypedDict):
reference: NotRequired["Literal['']|str"]
"""
@@ -3044,6 +6365,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnect
"""
Provide filters for the linked accounts that the customer can select for the payment method.
"""
+ manual_entry: NotRequired[
+ "PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
+ ]
+ """
+ Customize manual entry behavior
+ """
permissions: NotRequired[
List[
Literal["balances", "ownership", "payment_method", "transactions"]
@@ -3053,7 +6380,11 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnect
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -3071,6 +6402,19 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnect
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
+
+
+class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
+ TypedDict,
+):
+ mode: Literal["automatic", "custom"]
+ """
+ Settings for configuring manual entry of account details.
+ """
class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions(
diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py
index 9e70abc17..3dde2fc56 100644
--- a/stripe/params/_payment_link_create_params.py
+++ b/stripe/params/_payment_link_create_params.py
@@ -116,6 +116,7 @@ class PaymentLinkCreateParams(RequestOptions):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
"ideal",
"klarna",
@@ -129,11 +130,15 @@ class PaymentLinkCreateParams(RequestOptions):
"pay_by_bank",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
"swish",
"twint",
diff --git a/stripe/params/_payment_link_modify_params.py b/stripe/params/_payment_link_modify_params.py
index 498342578..e0f86a1e1 100644
--- a/stripe/params/_payment_link_modify_params.py
+++ b/stripe/params/_payment_link_modify_params.py
@@ -81,7 +81,7 @@ class PaymentLinkModifyParams(RequestOptions):
If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).
"""
payment_method_types: NotRequired[
- "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py
index afd9214f3..7388ff734 100644
--- a/stripe/params/_payment_link_update_params.py
+++ b/stripe/params/_payment_link_update_params.py
@@ -80,7 +80,7 @@ class PaymentLinkUpdateParams(TypedDict):
If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).
"""
payment_method_types: NotRequired[
- "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
diff --git a/stripe/params/_payment_method_configuration_create_params.py b/stripe/params/_payment_method_configuration_create_params.py
index cc7e3089b..37c71f565 100644
--- a/stripe/params/_payment_method_configuration_create_params.py
+++ b/stripe/params/_payment_method_configuration_create_params.py
@@ -118,10 +118,20 @@ class PaymentMethodConfigurationCreateParams(RequestOptions):
"""
Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://docs.stripe.com/google-pay) for more details.
"""
+ gopay: NotRequired["PaymentMethodConfigurationCreateParamsGopay"]
+ """
+ GoPay is a [single use](https://docs.stripe.com/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Gojek app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Gojek app to confirm payment.
+ """
grabpay: NotRequired["PaymentMethodConfigurationCreateParamsGrabpay"]
"""
GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://docs.stripe.com/payments/grabpay) for more details.
"""
+ id_bank_transfer: NotRequired[
+ "PaymentMethodConfigurationCreateParamsIdBankTransfer"
+ ]
+ """
+ Stripe users in Indonesia can receive bank transfers from customers in Indonesia. Bank transfers are a popular B2C and B2B payment method in Indonesia.
+ """
ideal: NotRequired["PaymentMethodConfigurationCreateParamsIdeal"]
"""
iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. Check this [page](https://docs.stripe.com/payments/ideal) for more details.
@@ -204,6 +214,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions):
"""
PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://docs.stripe.com/payments/paypal) for more details.
"""
+ paypay: NotRequired["PaymentMethodConfigurationCreateParamsPaypay"]
+ """
+ Customers can pay with PayPay online or using the PayPay app.
+ """
payto: NotRequired["PaymentMethodConfigurationCreateParamsPayto"]
"""
PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details.
@@ -216,6 +230,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions):
"""
PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://docs.stripe.com/payments/promptpay) for more details.
"""
+ qris: NotRequired["PaymentMethodConfigurationCreateParamsQris"]
+ """
+ QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
+ """
revolut_pay: NotRequired[
"PaymentMethodConfigurationCreateParamsRevolutPay"
]
@@ -236,6 +254,10 @@ class PaymentMethodConfigurationCreateParams(RequestOptions):
"""
The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details.
"""
+ shopeepay: NotRequired["PaymentMethodConfigurationCreateParamsShopeepay"]
+ """
+ ShopeePay is a [single use](https://docs.stripe.com/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Shopee app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Shopee app to confirm payment.
+ """
sofort: NotRequired["PaymentMethodConfigurationCreateParamsSofort"]
"""
Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details.
@@ -676,6 +698,22 @@ class PaymentMethodConfigurationCreateParamsGooglePayDisplayPreference(
"""
+class PaymentMethodConfigurationCreateParamsGopay(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationCreateParamsGopayDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationCreateParamsGopayDisplayPreference(TypedDict):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationCreateParamsGrabpay(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationCreateParamsGrabpayDisplayPreference"
@@ -694,6 +732,24 @@ class PaymentMethodConfigurationCreateParamsGrabpayDisplayPreference(
"""
+class PaymentMethodConfigurationCreateParamsIdBankTransfer(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationCreateParamsIdBankTransferDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationCreateParamsIdBankTransferDisplayPreference(
+ TypedDict,
+):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationCreateParamsIdeal(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationCreateParamsIdealDisplayPreference"
@@ -996,6 +1052,22 @@ class PaymentMethodConfigurationCreateParamsPaypalDisplayPreference(TypedDict):
"""
+class PaymentMethodConfigurationCreateParamsPaypay(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationCreateParamsPaypayDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationCreateParamsPaypayDisplayPreference(TypedDict):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationCreateParamsPayto(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationCreateParamsPaytoDisplayPreference"
@@ -1046,6 +1118,22 @@ class PaymentMethodConfigurationCreateParamsPromptpayDisplayPreference(
"""
+class PaymentMethodConfigurationCreateParamsQris(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationCreateParamsQrisDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationCreateParamsQrisDisplayPreference(TypedDict):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationCreateParamsRevolutPay(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationCreateParamsRevolutPayDisplayPreference"
@@ -1118,6 +1206,24 @@ class PaymentMethodConfigurationCreateParamsSepaDebitDisplayPreference(
"""
+class PaymentMethodConfigurationCreateParamsShopeepay(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationCreateParamsShopeepayDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationCreateParamsShopeepayDisplayPreference(
+ TypedDict,
+):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationCreateParamsSofort(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationCreateParamsSofortDisplayPreference"
diff --git a/stripe/params/_payment_method_configuration_modify_params.py b/stripe/params/_payment_method_configuration_modify_params.py
index 75633a65e..0a1de919b 100644
--- a/stripe/params/_payment_method_configuration_modify_params.py
+++ b/stripe/params/_payment_method_configuration_modify_params.py
@@ -122,10 +122,20 @@ class PaymentMethodConfigurationModifyParams(RequestOptions):
"""
Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://docs.stripe.com/google-pay) for more details.
"""
+ gopay: NotRequired["PaymentMethodConfigurationModifyParamsGopay"]
+ """
+ GoPay is a [single use](https://docs.stripe.com/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Gojek app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Gojek app to confirm payment.
+ """
grabpay: NotRequired["PaymentMethodConfigurationModifyParamsGrabpay"]
"""
GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://docs.stripe.com/payments/grabpay) for more details.
"""
+ id_bank_transfer: NotRequired[
+ "PaymentMethodConfigurationModifyParamsIdBankTransfer"
+ ]
+ """
+ Stripe users in Indonesia can receive bank transfers from customers in Indonesia. Bank transfers are a popular B2C and B2B payment method in Indonesia.
+ """
ideal: NotRequired["PaymentMethodConfigurationModifyParamsIdeal"]
"""
iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. Check this [page](https://docs.stripe.com/payments/ideal) for more details.
@@ -204,6 +214,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions):
"""
PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://docs.stripe.com/payments/paypal) for more details.
"""
+ paypay: NotRequired["PaymentMethodConfigurationModifyParamsPaypay"]
+ """
+ Customers can pay with PayPay online or using the PayPay app.
+ """
payto: NotRequired["PaymentMethodConfigurationModifyParamsPayto"]
"""
PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details.
@@ -216,6 +230,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions):
"""
PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://docs.stripe.com/payments/promptpay) for more details.
"""
+ qris: NotRequired["PaymentMethodConfigurationModifyParamsQris"]
+ """
+ QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
+ """
revolut_pay: NotRequired[
"PaymentMethodConfigurationModifyParamsRevolutPay"
]
@@ -236,6 +254,10 @@ class PaymentMethodConfigurationModifyParams(RequestOptions):
"""
The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details.
"""
+ shopeepay: NotRequired["PaymentMethodConfigurationModifyParamsShopeepay"]
+ """
+ ShopeePay is a [single use](https://docs.stripe.com/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Shopee app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Shopee app to confirm payment.
+ """
sofort: NotRequired["PaymentMethodConfigurationModifyParamsSofort"]
"""
Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details.
@@ -676,6 +698,22 @@ class PaymentMethodConfigurationModifyParamsGooglePayDisplayPreference(
"""
+class PaymentMethodConfigurationModifyParamsGopay(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationModifyParamsGopayDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationModifyParamsGopayDisplayPreference(TypedDict):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationModifyParamsGrabpay(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationModifyParamsGrabpayDisplayPreference"
@@ -694,6 +732,24 @@ class PaymentMethodConfigurationModifyParamsGrabpayDisplayPreference(
"""
+class PaymentMethodConfigurationModifyParamsIdBankTransfer(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationModifyParamsIdBankTransferDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationModifyParamsIdBankTransferDisplayPreference(
+ TypedDict,
+):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationModifyParamsIdeal(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationModifyParamsIdealDisplayPreference"
@@ -996,6 +1052,22 @@ class PaymentMethodConfigurationModifyParamsPaypalDisplayPreference(TypedDict):
"""
+class PaymentMethodConfigurationModifyParamsPaypay(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationModifyParamsPaypayDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationModifyParamsPaypayDisplayPreference(TypedDict):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationModifyParamsPayto(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationModifyParamsPaytoDisplayPreference"
@@ -1046,6 +1118,22 @@ class PaymentMethodConfigurationModifyParamsPromptpayDisplayPreference(
"""
+class PaymentMethodConfigurationModifyParamsQris(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationModifyParamsQrisDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationModifyParamsQrisDisplayPreference(TypedDict):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationModifyParamsRevolutPay(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationModifyParamsRevolutPayDisplayPreference"
@@ -1118,6 +1206,24 @@ class PaymentMethodConfigurationModifyParamsSepaDebitDisplayPreference(
"""
+class PaymentMethodConfigurationModifyParamsShopeepay(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationModifyParamsShopeepayDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationModifyParamsShopeepayDisplayPreference(
+ TypedDict,
+):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationModifyParamsSofort(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationModifyParamsSofortDisplayPreference"
diff --git a/stripe/params/_payment_method_configuration_update_params.py b/stripe/params/_payment_method_configuration_update_params.py
index bd66aa964..3c47fc9f0 100644
--- a/stripe/params/_payment_method_configuration_update_params.py
+++ b/stripe/params/_payment_method_configuration_update_params.py
@@ -121,10 +121,20 @@ class PaymentMethodConfigurationUpdateParams(TypedDict):
"""
Google Pay allows customers to make payments in your app or website using any credit or debit card saved to their Google Account, including those from Google Play, YouTube, Chrome, or an Android device. Use the Google Pay API to request any credit or debit card stored in your customer's Google account. Check this [page](https://docs.stripe.com/google-pay) for more details.
"""
+ gopay: NotRequired["PaymentMethodConfigurationUpdateParamsGopay"]
+ """
+ GoPay is a [single use](https://docs.stripe.com/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Gojek app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Gojek app to confirm payment.
+ """
grabpay: NotRequired["PaymentMethodConfigurationUpdateParamsGrabpay"]
"""
GrabPay is a payment method developed by [Grab](https://www.grab.com/sg/consumer/finance/pay/). GrabPay is a digital wallet - customers maintain a balance in their wallets that they pay out with. Check this [page](https://docs.stripe.com/payments/grabpay) for more details.
"""
+ id_bank_transfer: NotRequired[
+ "PaymentMethodConfigurationUpdateParamsIdBankTransfer"
+ ]
+ """
+ Stripe users in Indonesia can receive bank transfers from customers in Indonesia. Bank transfers are a popular B2C and B2B payment method in Indonesia.
+ """
ideal: NotRequired["PaymentMethodConfigurationUpdateParamsIdeal"]
"""
iDEAL is a Netherlands-based payment method that allows customers to complete transactions online using their bank credentials. All major Dutch banks are members of Currence, the scheme that operates iDEAL, making it the most popular online payment method in the Netherlands with a share of online transactions close to 55%. Check this [page](https://docs.stripe.com/payments/ideal) for more details.
@@ -203,6 +213,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict):
"""
PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://docs.stripe.com/payments/paypal) for more details.
"""
+ paypay: NotRequired["PaymentMethodConfigurationUpdateParamsPaypay"]
+ """
+ Customers can pay with PayPay online or using the PayPay app.
+ """
payto: NotRequired["PaymentMethodConfigurationUpdateParamsPayto"]
"""
PayTo is a [real-time](https://docs.stripe.com/payments/real-time) payment method that enables customers in Australia to pay by providing their bank account details. Customers must accept a mandate authorizing you to debit their account. Check this [page](https://docs.stripe.com/payments/payto) for more details.
@@ -215,6 +229,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict):
"""
PromptPay is a Thailand-based payment method that allows customers to make a payment using their preferred app from participating banks. Check this [page](https://docs.stripe.com/payments/promptpay) for more details.
"""
+ qris: NotRequired["PaymentMethodConfigurationUpdateParamsQris"]
+ """
+ QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
+ """
revolut_pay: NotRequired[
"PaymentMethodConfigurationUpdateParamsRevolutPay"
]
@@ -235,6 +253,10 @@ class PaymentMethodConfigurationUpdateParams(TypedDict):
"""
The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://docs.stripe.com/payments/sepa-debit) for more details.
"""
+ shopeepay: NotRequired["PaymentMethodConfigurationUpdateParamsShopeepay"]
+ """
+ ShopeePay is a [single use](https://docs.stripe.com/payments/payment-methods#usage) digital wallet payment method popular in Indonesia. When paying with GoPay, customers authenticate and approve payments using the Shopee app. Desktop checkout is performed by scanning a QR code. When checking out on mobile, customers are redirected to the Shopee app to confirm payment.
+ """
sofort: NotRequired["PaymentMethodConfigurationUpdateParamsSofort"]
"""
Stripe users in Europe and the United States can use the [Payment Intents API](https://stripe.com/docs/payments/payment-intents)—a single integration path for creating payments using any supported method—to accept [Sofort](https://www.sofort.com/) payments from customers. Check this [page](https://docs.stripe.com/payments/sofort) for more details.
@@ -675,6 +697,22 @@ class PaymentMethodConfigurationUpdateParamsGooglePayDisplayPreference(
"""
+class PaymentMethodConfigurationUpdateParamsGopay(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationUpdateParamsGopayDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationUpdateParamsGopayDisplayPreference(TypedDict):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationUpdateParamsGrabpay(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationUpdateParamsGrabpayDisplayPreference"
@@ -693,6 +731,24 @@ class PaymentMethodConfigurationUpdateParamsGrabpayDisplayPreference(
"""
+class PaymentMethodConfigurationUpdateParamsIdBankTransfer(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationUpdateParamsIdBankTransferDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationUpdateParamsIdBankTransferDisplayPreference(
+ TypedDict,
+):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationUpdateParamsIdeal(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationUpdateParamsIdealDisplayPreference"
@@ -995,6 +1051,22 @@ class PaymentMethodConfigurationUpdateParamsPaypalDisplayPreference(TypedDict):
"""
+class PaymentMethodConfigurationUpdateParamsPaypay(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationUpdateParamsPaypayDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationUpdateParamsPaypayDisplayPreference(TypedDict):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationUpdateParamsPayto(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationUpdateParamsPaytoDisplayPreference"
@@ -1045,6 +1117,22 @@ class PaymentMethodConfigurationUpdateParamsPromptpayDisplayPreference(
"""
+class PaymentMethodConfigurationUpdateParamsQris(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationUpdateParamsQrisDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationUpdateParamsQrisDisplayPreference(TypedDict):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationUpdateParamsRevolutPay(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationUpdateParamsRevolutPayDisplayPreference"
@@ -1117,6 +1205,24 @@ class PaymentMethodConfigurationUpdateParamsSepaDebitDisplayPreference(
"""
+class PaymentMethodConfigurationUpdateParamsShopeepay(TypedDict):
+ display_preference: NotRequired[
+ "PaymentMethodConfigurationUpdateParamsShopeepayDisplayPreference"
+ ]
+ """
+ Whether or not the payment method should be displayed.
+ """
+
+
+class PaymentMethodConfigurationUpdateParamsShopeepayDisplayPreference(
+ TypedDict,
+):
+ preference: NotRequired[Literal["none", "off", "on"]]
+ """
+ The account's preference for whether or not to display this payment method.
+ """
+
+
class PaymentMethodConfigurationUpdateParamsSofort(TypedDict):
display_preference: NotRequired[
"PaymentMethodConfigurationUpdateParamsSofortDisplayPreference"
diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py
index 925422485..e88ee7b2e 100644
--- a/stripe/params/_payment_method_create_params.py
+++ b/stripe/params/_payment_method_create_params.py
@@ -102,10 +102,18 @@ class PaymentMethodCreateParams(RequestOptions):
"""
If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
"""
+ gopay: NotRequired["PaymentMethodCreateParamsGopay"]
+ """
+ If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
+ """
grabpay: NotRequired["PaymentMethodCreateParamsGrabpay"]
"""
If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
"""
+ id_bank_transfer: NotRequired["PaymentMethodCreateParamsIdBankTransfer"]
+ """
+ If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
+ """
ideal: NotRequired["PaymentMethodCreateParamsIdeal"]
"""
If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
@@ -186,6 +194,10 @@ class PaymentMethodCreateParams(RequestOptions):
"""
If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
"""
+ paypay: NotRequired["PaymentMethodCreateParamsPaypay"]
+ """
+ If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
+ """
payto: NotRequired["PaymentMethodCreateParamsPayto"]
"""
If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
@@ -198,10 +210,18 @@ class PaymentMethodCreateParams(RequestOptions):
"""
If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
"""
+ qris: NotRequired["PaymentMethodCreateParamsQris"]
+ """
+ If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
+ """
radar_options: NotRequired["PaymentMethodCreateParamsRadarOptions"]
"""
Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
"""
+ rechnung: NotRequired["PaymentMethodCreateParamsRechnung"]
+ """
+ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
+ """
revolut_pay: NotRequired["PaymentMethodCreateParamsRevolutPay"]
"""
If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
@@ -218,10 +238,18 @@ class PaymentMethodCreateParams(RequestOptions):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
+ shopeepay: NotRequired["PaymentMethodCreateParamsShopeepay"]
+ """
+ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
+ """
sofort: NotRequired["PaymentMethodCreateParamsSofort"]
"""
If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
"""
+ stripe_balance: NotRequired["PaymentMethodCreateParamsStripeBalance"]
+ """
+ This hash contains details about the Stripe balance payment method.
+ """
swish: NotRequired["PaymentMethodCreateParamsSwish"]
"""
If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -252,7 +280,9 @@ class PaymentMethodCreateParams(RequestOptions):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -270,14 +300,19 @@ class PaymentMethodCreateParams(RequestOptions):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
@@ -559,10 +594,21 @@ class PaymentMethodCreateParamsGiropay(TypedDict):
pass
+class PaymentMethodCreateParamsGopay(TypedDict):
+ pass
+
+
class PaymentMethodCreateParamsGrabpay(TypedDict):
pass
+class PaymentMethodCreateParamsIdBankTransfer(TypedDict):
+ bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ """
+ Bank where the account is held.
+ """
+
+
class PaymentMethodCreateParamsIdeal(TypedDict):
bank: NotRequired[
Literal[
@@ -733,6 +779,10 @@ class PaymentMethodCreateParamsPaypal(TypedDict):
pass
+class PaymentMethodCreateParamsPaypay(TypedDict):
+ pass
+
+
class PaymentMethodCreateParamsPayto(TypedDict):
account_number: NotRequired[str]
"""
@@ -756,6 +806,10 @@ class PaymentMethodCreateParamsPromptpay(TypedDict):
pass
+class PaymentMethodCreateParamsQris(TypedDict):
+ pass
+
+
class PaymentMethodCreateParamsRadarOptions(TypedDict):
session: NotRequired[str]
"""
@@ -763,6 +817,28 @@ class PaymentMethodCreateParamsRadarOptions(TypedDict):
"""
+class PaymentMethodCreateParamsRechnung(TypedDict):
+ dob: "PaymentMethodCreateParamsRechnungDob"
+ """
+ Customer's date of birth
+ """
+
+
+class PaymentMethodCreateParamsRechnungDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
class PaymentMethodCreateParamsRevolutPay(TypedDict):
pass
@@ -782,6 +858,10 @@ class PaymentMethodCreateParamsSepaDebit(TypedDict):
"""
+class PaymentMethodCreateParamsShopeepay(TypedDict):
+ pass
+
+
class PaymentMethodCreateParamsSofort(TypedDict):
country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
"""
@@ -789,6 +869,17 @@ class PaymentMethodCreateParamsSofort(TypedDict):
"""
+class PaymentMethodCreateParamsStripeBalance(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
+
class PaymentMethodCreateParamsSwish(TypedDict):
pass
diff --git a/stripe/params/_payment_method_list_params.py b/stripe/params/_payment_method_list_params.py
index a7e69d1f3..50d1608d0 100644
--- a/stripe/params/_payment_method_list_params.py
+++ b/stripe/params/_payment_method_list_params.py
@@ -56,7 +56,9 @@ class PaymentMethodListParams(RequestOptions):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -74,14 +76,19 @@ class PaymentMethodListParams(RequestOptions):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
diff --git a/stripe/params/_price_modify_params.py b/stripe/params/_price_modify_params.py
index 6a5310928..1e062bdf3 100644
--- a/stripe/params/_price_modify_params.py
+++ b/stripe/params/_price_modify_params.py
@@ -28,6 +28,10 @@ class PriceModifyParams(RequestOptions):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
+ migrate_to: NotRequired["Literal['']|PriceModifyParamsMigrateTo"]
+ """
+ If specified, subscriptions using this price will be updated to use the new referenced price.
+ """
nickname: NotRequired[str]
"""
A brief description of the price, hidden from customers.
@@ -107,3 +111,18 @@ class PriceModifyParamsCurrencyOptionsTier(TypedDict):
"""
Specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use `inf` to define a fallback tier.
"""
+
+
+class PriceModifyParamsMigrateTo(TypedDict):
+ behavior: Literal["at_cycle_end"]
+ """
+ The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
+ """
+ effective_after: NotRequired[int]
+ """
+ The time after which subscriptions should start using the new price.
+ """
+ price: str
+ """
+ The ID of the price object.
+ """
diff --git a/stripe/params/_price_update_params.py b/stripe/params/_price_update_params.py
index 3176bfc00..2929385a1 100644
--- a/stripe/params/_price_update_params.py
+++ b/stripe/params/_price_update_params.py
@@ -27,6 +27,10 @@ class PriceUpdateParams(TypedDict):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
+ migrate_to: NotRequired["Literal['']|PriceUpdateParamsMigrateTo"]
+ """
+ If specified, subscriptions using this price will be updated to use the new referenced price.
+ """
nickname: NotRequired[str]
"""
A brief description of the price, hidden from customers.
@@ -106,3 +110,18 @@ class PriceUpdateParamsCurrencyOptionsTier(TypedDict):
"""
Specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use `inf` to define a fallback tier.
"""
+
+
+class PriceUpdateParamsMigrateTo(TypedDict):
+ behavior: Literal["at_cycle_end"]
+ """
+ The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
+ """
+ effective_after: NotRequired[int]
+ """
+ The time after which subscriptions should start using the new price.
+ """
+ price: str
+ """
+ The ID of the price object.
+ """
diff --git a/stripe/params/_quote_create_params.py b/stripe/params/_quote_create_params.py
index 9b0cd5db6..630521f09 100644
--- a/stripe/params/_quote_create_params.py
+++ b/stripe/params/_quote_create_params.py
@@ -6,6 +6,10 @@
class QuoteCreateParams(RequestOptions):
+ allow_backdated_lines: NotRequired[bool]
+ """
+ Set to true to allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
+ """
application_fee_amount: NotRequired["Literal['']|int"]
"""
The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.
@@ -72,6 +76,10 @@ class QuoteCreateParams(RequestOptions):
"""
A list of line items the customer is being quoted for. Each line item includes information about the product, the quantity, and the resulting cost.
"""
+ lines: NotRequired[List["QuoteCreateParamsLine"]]
+ """
+ A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
+ """
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -84,6 +92,12 @@ class QuoteCreateParams(RequestOptions):
"""
When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
"""
+ subscription_data_overrides: NotRequired[
+ List["QuoteCreateParamsSubscriptionDataOverride"]
+ ]
+ """
+ List representing overrides for `subscription_data` configurations for specific subscription schedules.
+ """
test_clock: NotRequired[str]
"""
ID of the test clock to attach to the quote.
@@ -125,12 +139,42 @@ class QuoteCreateParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["QuoteCreateParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class QuoteCreateParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired["QuoteCreateParamsDiscountDiscountEndDuration"]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteCreateParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class QuoteCreateParamsFromQuote(TypedDict):
is_revision: NotRequired[bool]
"""
@@ -198,12 +242,44 @@ class QuoteCreateParamsLineItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["QuoteCreateParamsLineItemDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class QuoteCreateParamsLineItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "QuoteCreateParamsLineItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteCreateParamsLineItemDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class QuoteCreateParamsLineItemPriceData(TypedDict):
currency: str
"""
@@ -242,7 +318,518 @@ class QuoteCreateParamsLineItemPriceDataRecurring(TypedDict):
"""
+class QuoteCreateParamsLine(TypedDict):
+ actions: NotRequired[List["QuoteCreateParamsLineAction"]]
+ """
+ An array of operations the quote line performs.
+ """
+ applies_to: NotRequired["QuoteCreateParamsLineAppliesTo"]
+ """
+ Details to identify the subscription schedule the quote line applies to.
+ """
+ billing_cycle_anchor: NotRequired[Literal["automatic", "line_starts_at"]]
+ """
+ For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
+ """
+ cancel_subscription_schedule: NotRequired[
+ "QuoteCreateParamsLineCancelSubscriptionSchedule"
+ ]
+ """
+ A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp. Currently only compatible with `quote_acceptance_date` for `starts_at`. When using cancel_subscription_schedule, the subscription schedule on the quote remains unalterable, except for modifications to the metadata, collection_method or invoice_settings.
+ """
+ ends_at: NotRequired["QuoteCreateParamsLineEndsAt"]
+ """
+ Details to identify the end of the time range modified by the proposed change. If not supplied, the quote line is considered a point-in-time operation that only affects the exact timestamp at `starts_at`, and a restricted set of attributes is supported on the quote line.
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Changes to how Stripe handles prorations during the quote line's time span. Affects if and how prorations are created when a future phase starts.
+ """
+ set_pause_collection: NotRequired[
+ "QuoteCreateParamsLineSetPauseCollection"
+ ]
+ """
+ Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
+ """
+ set_schedule_end: NotRequired[Literal["line_ends_at", "line_starts_at"]]
+ """
+ Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.
+ """
+ starts_at: NotRequired["QuoteCreateParamsLineStartsAt"]
+ """
+ Details to identify the earliest timestamp where the proposed change should take effect.
+ """
+ trial_settings: NotRequired["QuoteCreateParamsLineTrialSettings"]
+ """
+ Settings related to subscription trials.
+ """
+
+
+class QuoteCreateParamsLineAction(TypedDict):
+ add_discount: NotRequired["QuoteCreateParamsLineActionAddDiscount"]
+ """
+ Details for the `add_discount` type.
+ """
+ add_item: NotRequired["QuoteCreateParamsLineActionAddItem"]
+ """
+ Details for the `add_item` type.
+ """
+ add_metadata: NotRequired[Dict[str, str]]
+ """
+ Details for the `add_metadata` type: specify a hash of key-value pairs.
+ """
+ remove_discount: NotRequired["QuoteCreateParamsLineActionRemoveDiscount"]
+ """
+ Details for the `remove_discount` type.
+ """
+ remove_item: NotRequired["QuoteCreateParamsLineActionRemoveItem"]
+ """
+ Details for the `remove_item` type.
+ """
+ remove_metadata: NotRequired[List[str]]
+ """
+ Details for the `remove_metadata` type: specify an array of metadata keys.
+ """
+ set_discounts: NotRequired[List["QuoteCreateParamsLineActionSetDiscount"]]
+ """
+ Details for the `set_discounts` type.
+ """
+ set_items: NotRequired[List["QuoteCreateParamsLineActionSetItem"]]
+ """
+ Details for the `set_items` type.
+ """
+ set_metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Details for the `set_metadata` type: specify an array of key-value pairs.
+ """
+ type: Literal[
+ "add_discount",
+ "add_item",
+ "add_metadata",
+ "clear_discounts",
+ "clear_metadata",
+ "remove_discount",
+ "remove_item",
+ "remove_metadata",
+ "set_discounts",
+ "set_items",
+ "set_metadata",
+ ]
+ """
+ The type of action the quote line performs.
+ """
+
+
+class QuoteCreateParamsLineActionAddDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The coupon code to redeem.
+ """
+ discount: NotRequired[str]
+ """
+ An ID of an existing discount for a coupon that was already redeemed.
+ """
+ discount_end: NotRequired[
+ "QuoteCreateParamsLineActionAddDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ index: NotRequired[int]
+ """
+ The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
+ """
+ promotion_code: NotRequired[str]
+ """
+ The promotion code to redeem.
+ """
+
+
+class QuoteCreateParamsLineActionAddDiscountDiscountEnd(TypedDict):
+ type: Literal["line_ends_at"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteCreateParamsLineActionAddItem(TypedDict):
+ discounts: NotRequired[List["QuoteCreateParamsLineActionAddItemDiscount"]]
+ """
+ The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ price: str
+ """
+ The ID of the price object.
+ """
+ quantity: NotRequired[int]
+ """
+ Quantity for this item.
+ """
+ tax_rates: NotRequired[List[str]]
+ """
+ The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
+ """
+ trial: NotRequired["QuoteCreateParamsLineActionAddItemTrial"]
+ """
+ Options that configure the trial on the subscription item.
+ """
+
+
+class QuoteCreateParamsLineActionAddItemDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: NotRequired[
+ "QuoteCreateParamsLineActionAddItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class QuoteCreateParamsLineActionAddItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "QuoteCreateParamsLineActionAddItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteCreateParamsLineActionAddItemDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteCreateParamsLineActionAddItemTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class QuoteCreateParamsLineActionRemoveDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The coupon code to remove from the `discounts` array.
+ """
+ discount: NotRequired[str]
+ """
+ The ID of a discount to remove from the `discounts` array.
+ """
+ promotion_code: NotRequired[str]
+ """
+ The ID of a promotion code to remove from the `discounts` array.
+ """
+
+
+class QuoteCreateParamsLineActionRemoveItem(TypedDict):
+ price: str
+ """
+ ID of a price to remove.
+ """
+
+
+class QuoteCreateParamsLineActionSetDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The coupon code to replace the `discounts` array with.
+ """
+ discount: NotRequired[str]
+ """
+ An ID of an existing discount to replace the `discounts` array with.
+ """
+ promotion_code: NotRequired[str]
+ """
+ An ID of an existing promotion code to replace the `discounts` array with.
+ """
+
+
+class QuoteCreateParamsLineActionSetItem(TypedDict):
+ discounts: NotRequired[List["QuoteCreateParamsLineActionSetItemDiscount"]]
+ """
+ If an item with the `price` already exists, passing this will override the `discounts` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `discounts`.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
+ """
+ price: str
+ """
+ The ID of the price object.
+ """
+ quantity: NotRequired[int]
+ """
+ If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
+ """
+ tax_rates: NotRequired[List[str]]
+ """
+ If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
+ """
+ trial: NotRequired["QuoteCreateParamsLineActionSetItemTrial"]
+ """
+ If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
+ """
+
+
+class QuoteCreateParamsLineActionSetItemDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: NotRequired[
+ "QuoteCreateParamsLineActionSetItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class QuoteCreateParamsLineActionSetItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "QuoteCreateParamsLineActionSetItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteCreateParamsLineActionSetItemDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteCreateParamsLineActionSetItemTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class QuoteCreateParamsLineAppliesTo(TypedDict):
+ new_reference: NotRequired[str]
+ """
+ A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
+ """
+ subscription_schedule: NotRequired[str]
+ """
+ The ID of the schedule the line applies to.
+ """
+ type: Literal["new_reference", "subscription_schedule"]
+ """
+ Describes whether the quote line is affecting a new schedule or an existing schedule.
+ """
+
+
+class QuoteCreateParamsLineCancelSubscriptionSchedule(TypedDict):
+ cancel_at: Literal["line_starts_at"]
+ """
+ Timestamp helper to cancel the underlying schedule on the accompanying line's start date. Must be set to `line_starts_at`.
+ """
+ invoice_now: NotRequired[bool]
+ """
+ If the subscription schedule is `active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Boolean that defaults to `true`.
+ """
+ prorate: NotRequired[bool]
+ """
+ If the subscription schedule is `active`, indicates if the cancellation should be prorated. Boolean that defaults to `true`.
+ """
+
+
+class QuoteCreateParamsLineEndsAt(TypedDict):
+ discount_end: NotRequired["QuoteCreateParamsLineEndsAtDiscountEnd"]
+ """
+ Use the `end` time of a given discount.
+ """
+ duration: NotRequired["QuoteCreateParamsLineEndsAtDuration"]
+ """
+ Time span for the quote line starting from the `starts_at` date.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "billing_period_end",
+ "discount_end",
+ "duration",
+ "quote_acceptance_date",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ Select a way to pass in `ends_at`.
+ """
+
+
+class QuoteCreateParamsLineEndsAtDiscountEnd(TypedDict):
+ discount: str
+ """
+ The ID of a specific discount.
+ """
+
+
+class QuoteCreateParamsLineEndsAtDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteCreateParamsLineSetPauseCollection(TypedDict):
+ set: NotRequired["QuoteCreateParamsLineSetPauseCollectionSet"]
+ """
+ Details of the pause_collection behavior to apply to the amendment.
+ """
+ type: Literal["remove", "set"]
+ """
+ Determines the type of the pause_collection amendment.
+ """
+
+
+class QuoteCreateParamsLineSetPauseCollectionSet(TypedDict):
+ behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+
+
+class QuoteCreateParamsLineStartsAt(TypedDict):
+ discount_end: NotRequired["QuoteCreateParamsLineStartsAtDiscountEnd"]
+ """
+ Use the `end` time of a given discount.
+ """
+ line_ends_at: NotRequired["QuoteCreateParamsLineStartsAtLineEndsAt"]
+ """
+ The timestamp the given line ends at.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "discount_end",
+ "line_ends_at",
+ "now",
+ "quote_acceptance_date",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ Select a way to pass in `starts_at`.
+ """
+
+
+class QuoteCreateParamsLineStartsAtDiscountEnd(TypedDict):
+ discount: str
+ """
+ The ID of a specific discount.
+ """
+
+
+class QuoteCreateParamsLineStartsAtLineEndsAt(TypedDict):
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
+class QuoteCreateParamsLineTrialSettings(TypedDict):
+ end_behavior: NotRequired["QuoteCreateParamsLineTrialSettingsEndBehavior"]
+ """
+ Defines how the subscription should behave when a trial ends.
+ """
+
+
+class QuoteCreateParamsLineTrialSettingsEndBehavior(TypedDict):
+ prorate_up_front: NotRequired[Literal["defer", "include"]]
+ """
+ Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
+ """
+
+
class QuoteCreateParamsSubscriptionData(TypedDict):
+ bill_on_acceptance: NotRequired[
+ "QuoteCreateParamsSubscriptionDataBillOnAcceptance"
+ ]
+ """
+ Describes the period to bill for upon accepting the quote.
+ """
+ billing_behavior: NotRequired[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
+ billing_cycle_anchor: NotRequired["Literal['']|Literal['reset']"]
+ """
+ When specified as `reset`, the subscription will always start a new billing period when the quote is accepted.
+ """
billing_mode: NotRequired["QuoteCreateParamsSubscriptionDataBillingMode"]
"""
Controls how prorations and invoices for subscriptions are calculated and orchestrated.
@@ -255,18 +842,150 @@ class QuoteCreateParamsSubscriptionData(TypedDict):
"Literal['']|Literal['current_period_end']|int"
]
"""
- When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
+ When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
+ """
+ end_behavior: NotRequired[Literal["cancel", "release"]]
+ """
+ Behavior of the subscription schedule and underlying subscription when it ends.
+ """
+ from_subscription: NotRequired[str]
+ """
+ The id of a subscription that the quote will update. By default, the quote will contain the state of the subscription (such as line items, collection method and billing thresholds) unless overridden.
"""
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
"""
+ prebilling: NotRequired[
+ "Literal['']|QuoteCreateParamsSubscriptionDataPrebilling"
+ ]
+ """
+ If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
+
+ When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
+
+ Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://docs.stripe.com/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
+
+ Prorations can be disabled by passing `none`.
+ """
trial_period_days: NotRequired["Literal['']|int"]
"""
Integer representing the number of trial period days before the customer is charged for the first time.
"""
+class QuoteCreateParamsSubscriptionDataBillOnAcceptance(TypedDict):
+ bill_from: NotRequired[
+ "QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillFrom"
+ ]
+ """
+ The start of the period to bill from when the Quote is accepted.
+ """
+ bill_until: NotRequired[
+ "QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntil"
+ ]
+ """
+ The end of the period to bill until when the Quote is accepted.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillFrom(TypedDict):
+ line_starts_at: NotRequired[
+ "QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt"
+ ]
+ """
+ Details of a Quote line to start the bill period from.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "line_starts_at",
+ "now",
+ "pause_collection_start",
+ "quote_acceptance_date",
+ "timestamp",
+ ]
+ """
+ The type of method to specify the `bill_from` time.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt(
+ TypedDict,
+):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntil(TypedDict):
+ duration: NotRequired[
+ "QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntilDuration"
+ ]
+ """
+ Details of the duration over which to bill.
+ """
+ line_ends_at: NotRequired[
+ "QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt"
+ ]
+ """
+ Details of a Quote line item from which to bill until.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "duration",
+ "line_ends_at",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ The type of method to specify the `bill_until` time.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntilDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt(
+ TypedDict,
+):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
class QuoteCreateParamsSubscriptionDataBillingMode(TypedDict):
flexible: NotRequired[
"QuoteCreateParamsSubscriptionDataBillingModeFlexible"
@@ -287,6 +1006,181 @@ class QuoteCreateParamsSubscriptionDataBillingModeFlexible(TypedDict):
"""
+class QuoteCreateParamsSubscriptionDataPrebilling(TypedDict):
+ iterations: int
+ """
+ This is used to determine the number of billing cycles to prebill.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataOverride(TypedDict):
+ applies_to: "QuoteCreateParamsSubscriptionDataOverrideAppliesTo"
+ """
+ Whether the override applies to an existing Subscription Schedule or a new Subscription Schedule.
+ """
+ bill_on_acceptance: NotRequired[
+ "QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptance"
+ ]
+ """
+ Describes the period to bill for upon accepting the quote.
+ """
+ billing_behavior: NotRequired[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
+ customer: NotRequired[str]
+ """
+ The customer the Subscription Data override applies to. This is only relevant when `applies_to.type=new_reference`.
+ """
+ description: NotRequired[str]
+ """
+ The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
+ """
+ end_behavior: NotRequired[Literal["cancel", "release"]]
+ """
+ Behavior of the subscription schedule and underlying subscription when it ends.
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
+
+ When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
+
+ Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://docs.stripe.com/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
+
+ Prorations can be disabled by passing `none`.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataOverrideAppliesTo(TypedDict):
+ new_reference: NotRequired[str]
+ """
+ A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
+ """
+ subscription_schedule: NotRequired[str]
+ """
+ The ID of the schedule the line applies to.
+ """
+ type: Literal["new_reference", "subscription_schedule"]
+ """
+ Describes whether the quote line is affecting a new schedule or an existing schedule.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptance(TypedDict):
+ bill_from: NotRequired[
+ "QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom"
+ ]
+ """
+ The start of the period to bill from when the Quote is accepted.
+ """
+ bill_until: NotRequired[
+ "QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil"
+ ]
+ """
+ The end of the period to bill until when the Quote is accepted.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom(
+ TypedDict,
+):
+ line_starts_at: NotRequired[
+ "QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt"
+ ]
+ """
+ Details of a Quote line to start the bill period from.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "line_starts_at",
+ "now",
+ "pause_collection_start",
+ "quote_acceptance_date",
+ "timestamp",
+ ]
+ """
+ The type of method to specify the `bill_from` time.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt(
+ TypedDict,
+):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil(
+ TypedDict,
+):
+ duration: NotRequired[
+ "QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration"
+ ]
+ """
+ Details of the duration over which to bill.
+ """
+ line_ends_at: NotRequired[
+ "QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt"
+ ]
+ """
+ Details of a Quote line item from which to bill until.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "duration",
+ "line_ends_at",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ The type of method to specify the `bill_until` time.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteCreateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt(
+ TypedDict,
+):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
class QuoteCreateParamsTransferData(TypedDict):
amount: NotRequired[int]
"""
diff --git a/stripe/params/_quote_line_list_params.py b/stripe/params/_quote_line_list_params.py
new file mode 100644
index 000000000..ca9bb8757
--- /dev/null
+++ b/stripe/params/_quote_line_list_params.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class QuoteLineListParams(TypedDict):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_quote_list_lines_params.py b/stripe/params/_quote_list_lines_params.py
new file mode 100644
index 000000000..c98580d8f
--- /dev/null
+++ b/stripe/params/_quote_list_lines_params.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class QuoteListLinesParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_quote_list_params.py b/stripe/params/_quote_list_params.py
index af6197037..e5bb1b556 100644
--- a/stripe/params/_quote_list_params.py
+++ b/stripe/params/_quote_list_params.py
@@ -22,6 +22,10 @@ class QuoteListParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
+ from_subscription: NotRequired[str]
+ """
+ The subscription which the quote updates.
+ """
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
@@ -30,7 +34,9 @@ class QuoteListParams(RequestOptions):
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
- status: NotRequired[Literal["accepted", "canceled", "draft", "open"]]
+ status: NotRequired[
+ Literal["accepted", "accepting", "canceled", "draft", "open", "stale"]
+ ]
"""
The status of the quote.
"""
diff --git a/stripe/params/_quote_list_preview_invoice_lines_params.py b/stripe/params/_quote_list_preview_invoice_lines_params.py
new file mode 100644
index 000000000..8331d726e
--- /dev/null
+++ b/stripe/params/_quote_list_preview_invoice_lines_params.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class QuoteListPreviewInvoiceLinesParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_quote_list_preview_invoices_params.py b/stripe/params/_quote_list_preview_invoices_params.py
new file mode 100644
index 000000000..3c491f19c
--- /dev/null
+++ b/stripe/params/_quote_list_preview_invoices_params.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class QuoteListPreviewInvoicesParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_quote_list_preview_subscription_schedules_params.py b/stripe/params/_quote_list_preview_subscription_schedules_params.py
new file mode 100644
index 000000000..f00ab4060
--- /dev/null
+++ b/stripe/params/_quote_list_preview_subscription_schedules_params.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class QuoteListPreviewSubscriptionSchedulesParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_quote_mark_draft_params.py b/stripe/params/_quote_mark_draft_params.py
new file mode 100644
index 000000000..d181741dd
--- /dev/null
+++ b/stripe/params/_quote_mark_draft_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class QuoteMarkDraftParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/_quote_mark_stale_params.py b/stripe/params/_quote_mark_stale_params.py
new file mode 100644
index 000000000..2bbd432ec
--- /dev/null
+++ b/stripe/params/_quote_mark_stale_params.py
@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class QuoteMarkStaleParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ reason: NotRequired[str]
+ """
+ Reason the Quote is being marked stale.
+ """
diff --git a/stripe/params/_quote_modify_params.py b/stripe/params/_quote_modify_params.py
index 734b030d4..a0f40795f 100644
--- a/stripe/params/_quote_modify_params.py
+++ b/stripe/params/_quote_modify_params.py
@@ -6,6 +6,10 @@
class QuoteModifyParams(RequestOptions):
+ allow_backdated_lines: NotRequired[bool]
+ """
+ Set to true to allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
+ """
application_fee_amount: NotRequired["Literal['']|int"]
"""
The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.
@@ -68,6 +72,10 @@ class QuoteModifyParams(RequestOptions):
"""
A list of line items the customer is being quoted for. Each line item includes information about the product, the quantity, and the resulting cost.
"""
+ lines: NotRequired[List["QuoteModifyParamsLine"]]
+ """
+ A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
+ """
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -80,6 +88,12 @@ class QuoteModifyParams(RequestOptions):
"""
When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
"""
+ subscription_data_overrides: NotRequired[
+ "Literal['']|List[QuoteModifyParamsSubscriptionDataOverride]"
+ ]
+ """
+ List representing overrides for `subscription_data` configurations for specific subscription schedules.
+ """
transfer_data: NotRequired["Literal['']|QuoteModifyParamsTransferData"]
"""
The data with which to automatically create a Transfer for each of the invoices.
@@ -117,12 +131,42 @@ class QuoteModifyParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["QuoteModifyParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class QuoteModifyParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired["QuoteModifyParamsDiscountDiscountEndDuration"]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteModifyParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class QuoteModifyParamsInvoiceSettings(TypedDict):
days_until_due: NotRequired[int]
"""
@@ -183,12 +227,44 @@ class QuoteModifyParamsLineItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["QuoteModifyParamsLineItemDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class QuoteModifyParamsLineItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "QuoteModifyParamsLineItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteModifyParamsLineItemDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class QuoteModifyParamsLineItemPriceData(TypedDict):
currency: str
"""
@@ -227,7 +303,526 @@ class QuoteModifyParamsLineItemPriceDataRecurring(TypedDict):
"""
+class QuoteModifyParamsLine(TypedDict):
+ actions: NotRequired[List["QuoteModifyParamsLineAction"]]
+ """
+ An array of operations the quote line performs.
+ """
+ applies_to: NotRequired["QuoteModifyParamsLineAppliesTo"]
+ """
+ Details to identify the subscription schedule the quote line applies to.
+ """
+ billing_cycle_anchor: NotRequired[Literal["automatic", "line_starts_at"]]
+ """
+ For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
+ """
+ cancel_subscription_schedule: NotRequired[
+ "QuoteModifyParamsLineCancelSubscriptionSchedule"
+ ]
+ """
+ A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp. Currently only compatible with `quote_acceptance_date` for `starts_at`. When using cancel_subscription_schedule, the subscription schedule on the quote remains unalterable, except for modifications to the metadata, collection_method or invoice_settings.
+ """
+ ends_at: NotRequired["QuoteModifyParamsLineEndsAt"]
+ """
+ Details to identify the end of the time range modified by the proposed change. If not supplied, the quote line is considered a point-in-time operation that only affects the exact timestamp at `starts_at`, and a restricted set of attributes is supported on the quote line.
+ """
+ id: NotRequired[str]
+ """
+ The ID of an existing line on the quote.
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Changes to how Stripe handles prorations during the quote line's time span. Affects if and how prorations are created when a future phase starts.
+ """
+ set_pause_collection: NotRequired[
+ "QuoteModifyParamsLineSetPauseCollection"
+ ]
+ """
+ Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
+ """
+ set_schedule_end: NotRequired[Literal["line_ends_at", "line_starts_at"]]
+ """
+ Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.
+ """
+ starts_at: NotRequired["QuoteModifyParamsLineStartsAt"]
+ """
+ Details to identify the earliest timestamp where the proposed change should take effect.
+ """
+ trial_settings: NotRequired["QuoteModifyParamsLineTrialSettings"]
+ """
+ Settings related to subscription trials.
+ """
+
+
+class QuoteModifyParamsLineAction(TypedDict):
+ add_discount: NotRequired["QuoteModifyParamsLineActionAddDiscount"]
+ """
+ Details for the `add_discount` type.
+ """
+ add_item: NotRequired["QuoteModifyParamsLineActionAddItem"]
+ """
+ Details for the `add_item` type.
+ """
+ add_metadata: NotRequired[Dict[str, str]]
+ """
+ Details for the `add_metadata` type: specify a hash of key-value pairs.
+ """
+ remove_discount: NotRequired["QuoteModifyParamsLineActionRemoveDiscount"]
+ """
+ Details for the `remove_discount` type.
+ """
+ remove_item: NotRequired["QuoteModifyParamsLineActionRemoveItem"]
+ """
+ Details for the `remove_item` type.
+ """
+ remove_metadata: NotRequired[List[str]]
+ """
+ Details for the `remove_metadata` type: specify an array of metadata keys.
+ """
+ set_discounts: NotRequired[List["QuoteModifyParamsLineActionSetDiscount"]]
+ """
+ Details for the `set_discounts` type.
+ """
+ set_items: NotRequired[List["QuoteModifyParamsLineActionSetItem"]]
+ """
+ Details for the `set_items` type.
+ """
+ set_metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Details for the `set_metadata` type: specify an array of key-value pairs.
+ """
+ type: Literal[
+ "add_discount",
+ "add_item",
+ "add_metadata",
+ "clear_discounts",
+ "clear_metadata",
+ "remove_discount",
+ "remove_item",
+ "remove_metadata",
+ "set_discounts",
+ "set_items",
+ "set_metadata",
+ ]
+ """
+ The type of action the quote line performs.
+ """
+
+
+class QuoteModifyParamsLineActionAddDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The coupon code to redeem.
+ """
+ discount: NotRequired[str]
+ """
+ An ID of an existing discount for a coupon that was already redeemed.
+ """
+ discount_end: NotRequired[
+ "QuoteModifyParamsLineActionAddDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ index: NotRequired[int]
+ """
+ The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
+ """
+ promotion_code: NotRequired[str]
+ """
+ The promotion code to redeem.
+ """
+
+
+class QuoteModifyParamsLineActionAddDiscountDiscountEnd(TypedDict):
+ type: Literal["line_ends_at"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteModifyParamsLineActionAddItem(TypedDict):
+ discounts: NotRequired[List["QuoteModifyParamsLineActionAddItemDiscount"]]
+ """
+ The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ price: str
+ """
+ The ID of the price object.
+ """
+ quantity: NotRequired[int]
+ """
+ Quantity for this item.
+ """
+ tax_rates: NotRequired[List[str]]
+ """
+ The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
+ """
+ trial: NotRequired["QuoteModifyParamsLineActionAddItemTrial"]
+ """
+ Options that configure the trial on the subscription item.
+ """
+
+
+class QuoteModifyParamsLineActionAddItemDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: NotRequired[
+ "QuoteModifyParamsLineActionAddItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class QuoteModifyParamsLineActionAddItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "QuoteModifyParamsLineActionAddItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteModifyParamsLineActionAddItemDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteModifyParamsLineActionAddItemTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class QuoteModifyParamsLineActionRemoveDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The coupon code to remove from the `discounts` array.
+ """
+ discount: NotRequired[str]
+ """
+ The ID of a discount to remove from the `discounts` array.
+ """
+ promotion_code: NotRequired[str]
+ """
+ The ID of a promotion code to remove from the `discounts` array.
+ """
+
+
+class QuoteModifyParamsLineActionRemoveItem(TypedDict):
+ price: str
+ """
+ ID of a price to remove.
+ """
+
+
+class QuoteModifyParamsLineActionSetDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The coupon code to replace the `discounts` array with.
+ """
+ discount: NotRequired[str]
+ """
+ An ID of an existing discount to replace the `discounts` array with.
+ """
+ promotion_code: NotRequired[str]
+ """
+ An ID of an existing promotion code to replace the `discounts` array with.
+ """
+
+
+class QuoteModifyParamsLineActionSetItem(TypedDict):
+ discounts: NotRequired[List["QuoteModifyParamsLineActionSetItemDiscount"]]
+ """
+ If an item with the `price` already exists, passing this will override the `discounts` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `discounts`.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
+ """
+ price: str
+ """
+ The ID of the price object.
+ """
+ quantity: NotRequired[int]
+ """
+ If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
+ """
+ tax_rates: NotRequired[List[str]]
+ """
+ If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
+ """
+ trial: NotRequired["QuoteModifyParamsLineActionSetItemTrial"]
+ """
+ If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
+ """
+
+
+class QuoteModifyParamsLineActionSetItemDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: NotRequired[
+ "QuoteModifyParamsLineActionSetItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class QuoteModifyParamsLineActionSetItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "QuoteModifyParamsLineActionSetItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteModifyParamsLineActionSetItemDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteModifyParamsLineActionSetItemTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class QuoteModifyParamsLineAppliesTo(TypedDict):
+ new_reference: NotRequired[str]
+ """
+ A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
+ """
+ subscription_schedule: NotRequired[str]
+ """
+ The ID of the schedule the line applies to.
+ """
+ type: Literal["new_reference", "subscription_schedule"]
+ """
+ Describes whether the quote line is affecting a new schedule or an existing schedule.
+ """
+
+
+class QuoteModifyParamsLineCancelSubscriptionSchedule(TypedDict):
+ cancel_at: Literal["line_starts_at"]
+ """
+ Timestamp helper to cancel the underlying schedule on the accompanying line's start date. Must be set to `line_starts_at`.
+ """
+ invoice_now: NotRequired[bool]
+ """
+ If the subscription schedule is `active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Boolean that defaults to `true`.
+ """
+ prorate: NotRequired[bool]
+ """
+ If the subscription schedule is `active`, indicates if the cancellation should be prorated. Boolean that defaults to `true`.
+ """
+
+
+class QuoteModifyParamsLineEndsAt(TypedDict):
+ discount_end: NotRequired["QuoteModifyParamsLineEndsAtDiscountEnd"]
+ """
+ Use the `end` time of a given discount.
+ """
+ duration: NotRequired["QuoteModifyParamsLineEndsAtDuration"]
+ """
+ Time span for the quote line starting from the `starts_at` date.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "billing_period_end",
+ "discount_end",
+ "duration",
+ "quote_acceptance_date",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ Select a way to pass in `ends_at`.
+ """
+
+
+class QuoteModifyParamsLineEndsAtDiscountEnd(TypedDict):
+ discount: str
+ """
+ The ID of a specific discount.
+ """
+
+
+class QuoteModifyParamsLineEndsAtDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteModifyParamsLineSetPauseCollection(TypedDict):
+ set: NotRequired["QuoteModifyParamsLineSetPauseCollectionSet"]
+ """
+ Details of the pause_collection behavior to apply to the amendment.
+ """
+ type: Literal["remove", "set"]
+ """
+ Determines the type of the pause_collection amendment.
+ """
+
+
+class QuoteModifyParamsLineSetPauseCollectionSet(TypedDict):
+ behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+
+
+class QuoteModifyParamsLineStartsAt(TypedDict):
+ discount_end: NotRequired["QuoteModifyParamsLineStartsAtDiscountEnd"]
+ """
+ Use the `end` time of a given discount.
+ """
+ line_ends_at: NotRequired["QuoteModifyParamsLineStartsAtLineEndsAt"]
+ """
+ The timestamp the given line ends at.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "discount_end",
+ "line_ends_at",
+ "now",
+ "quote_acceptance_date",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ Select a way to pass in `starts_at`.
+ """
+
+
+class QuoteModifyParamsLineStartsAtDiscountEnd(TypedDict):
+ discount: str
+ """
+ The ID of a specific discount.
+ """
+
+
+class QuoteModifyParamsLineStartsAtLineEndsAt(TypedDict):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
+class QuoteModifyParamsLineTrialSettings(TypedDict):
+ end_behavior: NotRequired["QuoteModifyParamsLineTrialSettingsEndBehavior"]
+ """
+ Defines how the subscription should behave when a trial ends.
+ """
+
+
+class QuoteModifyParamsLineTrialSettingsEndBehavior(TypedDict):
+ prorate_up_front: NotRequired[Literal["defer", "include"]]
+ """
+ Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
+ """
+
+
class QuoteModifyParamsSubscriptionData(TypedDict):
+ bill_on_acceptance: NotRequired[
+ "Literal['']|QuoteModifyParamsSubscriptionDataBillOnAcceptance"
+ ]
+ """
+ Describes the period to bill for upon accepting the quote.
+ """
+ billing_behavior: NotRequired[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
+ billing_cycle_anchor: NotRequired["Literal['']|Literal['reset']"]
+ """
+ When specified as `reset`, the subscription will always start a new billing period when the quote is accepted.
+ """
description: NotRequired["Literal['']|str"]
"""
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
@@ -236,18 +831,321 @@ class QuoteModifyParamsSubscriptionData(TypedDict):
"Literal['']|Literal['current_period_end']|int"
]
"""
- When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
+ When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
+ """
+ end_behavior: NotRequired[Literal["cancel", "release"]]
+ """
+ Behavior of the subscription schedule and underlying subscription when it ends.
"""
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
"""
+ prebilling: NotRequired[
+ "Literal['']|QuoteModifyParamsSubscriptionDataPrebilling"
+ ]
+ """
+ If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
+
+ When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
+
+ Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://docs.stripe.com/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
+
+ Prorations can be disabled by passing `none`.
+ """
trial_period_days: NotRequired["Literal['']|int"]
"""
Integer representing the number of trial period days before the customer is charged for the first time.
"""
+class QuoteModifyParamsSubscriptionDataBillOnAcceptance(TypedDict):
+ bill_from: NotRequired[
+ "QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillFrom"
+ ]
+ """
+ The start of the period to bill from when the Quote is accepted.
+ """
+ bill_until: NotRequired[
+ "QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntil"
+ ]
+ """
+ The end of the period to bill until when the Quote is accepted.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillFrom(TypedDict):
+ line_starts_at: NotRequired[
+ "QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt"
+ ]
+ """
+ Details of a Quote line to start the bill period from.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "line_starts_at",
+ "now",
+ "pause_collection_start",
+ "quote_acceptance_date",
+ "timestamp",
+ ]
+ """
+ The type of method to specify the `bill_from` time.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt(
+ TypedDict,
+):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntil(TypedDict):
+ duration: NotRequired[
+ "QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilDuration"
+ ]
+ """
+ Details of the duration over which to bill.
+ """
+ line_ends_at: NotRequired[
+ "QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt"
+ ]
+ """
+ Details of a Quote line item from which to bill until.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "duration",
+ "line_ends_at",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ The type of method to specify the `bill_until` time.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt(
+ TypedDict,
+):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataPrebilling(TypedDict):
+ iterations: int
+ """
+ This is used to determine the number of billing cycles to prebill.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataOverride(TypedDict):
+ applies_to: "QuoteModifyParamsSubscriptionDataOverrideAppliesTo"
+ """
+ Whether the override applies to an existing Subscription Schedule or a new Subscription Schedule.
+ """
+ bill_on_acceptance: NotRequired[
+ "Literal['']|QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptance"
+ ]
+ """
+ Describes the period to bill for upon accepting the quote.
+ """
+ billing_behavior: NotRequired[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
+ customer: NotRequired[str]
+ """
+ The customer the Subscription Data override applies to.
+ """
+ description: NotRequired["Literal['']|str"]
+ """
+ The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
+ """
+ end_behavior: NotRequired[Literal["cancel", "release"]]
+ """
+ Behavior of the subscription schedule and underlying subscription when it ends.
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
+
+ When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
+
+ Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://docs.stripe.com/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
+
+ Prorations can be disabled by passing `none`.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataOverrideAppliesTo(TypedDict):
+ new_reference: NotRequired[str]
+ """
+ A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
+ """
+ subscription_schedule: NotRequired[str]
+ """
+ The ID of the schedule the line applies to.
+ """
+ type: Literal["new_reference", "subscription_schedule"]
+ """
+ Describes whether the quote line is affecting a new schedule or an existing schedule.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptance(TypedDict):
+ bill_from: NotRequired[
+ "QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom"
+ ]
+ """
+ The start of the period to bill from when the Quote is accepted.
+ """
+ bill_until: NotRequired[
+ "QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil"
+ ]
+ """
+ The end of the period to bill until when the Quote is accepted.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom(
+ TypedDict,
+):
+ line_starts_at: NotRequired[
+ "QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt"
+ ]
+ """
+ Details of a Quote line to start the bill period from.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "line_starts_at",
+ "now",
+ "pause_collection_start",
+ "quote_acceptance_date",
+ "timestamp",
+ ]
+ """
+ The type of method to specify the `bill_from` time.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt(
+ TypedDict,
+):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil(
+ TypedDict,
+):
+ duration: NotRequired[
+ "QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration"
+ ]
+ """
+ Details of the duration over which to bill.
+ """
+ line_ends_at: NotRequired[
+ "QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt"
+ ]
+ """
+ Details of a Quote line item from which to bill until.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "duration",
+ "line_ends_at",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ The type of method to specify the `bill_until` time.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteModifyParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt(
+ TypedDict,
+):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
class QuoteModifyParamsTransferData(TypedDict):
amount: NotRequired[int]
"""
diff --git a/stripe/params/_quote_preview_invoice_list_params.py b/stripe/params/_quote_preview_invoice_list_params.py
new file mode 100644
index 000000000..8462b992c
--- /dev/null
+++ b/stripe/params/_quote_preview_invoice_list_params.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class QuotePreviewInvoiceListParams(TypedDict):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_quote_preview_subscription_schedule_list_params.py b/stripe/params/_quote_preview_subscription_schedule_list_params.py
new file mode 100644
index 000000000..1b30957f8
--- /dev/null
+++ b/stripe/params/_quote_preview_subscription_schedule_list_params.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class QuotePreviewSubscriptionScheduleListParams(TypedDict):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/_quote_reestimate_params.py b/stripe/params/_quote_reestimate_params.py
new file mode 100644
index 000000000..a4110e28b
--- /dev/null
+++ b/stripe/params/_quote_reestimate_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class QuoteReestimateParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/_quote_update_params.py b/stripe/params/_quote_update_params.py
index 71481477a..e17e88e36 100644
--- a/stripe/params/_quote_update_params.py
+++ b/stripe/params/_quote_update_params.py
@@ -5,6 +5,10 @@
class QuoteUpdateParams(TypedDict):
+ allow_backdated_lines: NotRequired[bool]
+ """
+ Set to true to allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
+ """
application_fee_amount: NotRequired["Literal['']|int"]
"""
The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field.
@@ -67,6 +71,10 @@ class QuoteUpdateParams(TypedDict):
"""
A list of line items the customer is being quoted for. Each line item includes information about the product, the quantity, and the resulting cost.
"""
+ lines: NotRequired[List["QuoteUpdateParamsLine"]]
+ """
+ A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
+ """
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -79,6 +87,12 @@ class QuoteUpdateParams(TypedDict):
"""
When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
"""
+ subscription_data_overrides: NotRequired[
+ "Literal['']|List[QuoteUpdateParamsSubscriptionDataOverride]"
+ ]
+ """
+ List representing overrides for `subscription_data` configurations for specific subscription schedules.
+ """
transfer_data: NotRequired["Literal['']|QuoteUpdateParamsTransferData"]
"""
The data with which to automatically create a Transfer for each of the invoices.
@@ -116,12 +130,42 @@ class QuoteUpdateParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["QuoteUpdateParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class QuoteUpdateParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired["QuoteUpdateParamsDiscountDiscountEndDuration"]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteUpdateParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class QuoteUpdateParamsInvoiceSettings(TypedDict):
days_until_due: NotRequired[int]
"""
@@ -182,12 +226,44 @@ class QuoteUpdateParamsLineItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["QuoteUpdateParamsLineItemDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class QuoteUpdateParamsLineItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "QuoteUpdateParamsLineItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteUpdateParamsLineItemDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class QuoteUpdateParamsLineItemPriceData(TypedDict):
currency: str
"""
@@ -226,7 +302,526 @@ class QuoteUpdateParamsLineItemPriceDataRecurring(TypedDict):
"""
+class QuoteUpdateParamsLine(TypedDict):
+ actions: NotRequired[List["QuoteUpdateParamsLineAction"]]
+ """
+ An array of operations the quote line performs.
+ """
+ applies_to: NotRequired["QuoteUpdateParamsLineAppliesTo"]
+ """
+ Details to identify the subscription schedule the quote line applies to.
+ """
+ billing_cycle_anchor: NotRequired[Literal["automatic", "line_starts_at"]]
+ """
+ For point-in-time quote lines (having no `ends_at` timestamp), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the Quote Line `starts_at` timestamp.For time-span based quote lines (having both `starts_at` and `ends_at`), the only valid value is `automatic`, which removes any previously configured billing cycle anchor resets during the window of time spanning the quote line.
+ """
+ cancel_subscription_schedule: NotRequired[
+ "QuoteUpdateParamsLineCancelSubscriptionSchedule"
+ ]
+ """
+ A point-in-time operation that cancels an existing subscription schedule at the line's starts_at timestamp. Currently only compatible with `quote_acceptance_date` for `starts_at`. When using cancel_subscription_schedule, the subscription schedule on the quote remains unalterable, except for modifications to the metadata, collection_method or invoice_settings.
+ """
+ ends_at: NotRequired["QuoteUpdateParamsLineEndsAt"]
+ """
+ Details to identify the end of the time range modified by the proposed change. If not supplied, the quote line is considered a point-in-time operation that only affects the exact timestamp at `starts_at`, and a restricted set of attributes is supported on the quote line.
+ """
+ id: NotRequired[str]
+ """
+ The ID of an existing line on the quote.
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Changes to how Stripe handles prorations during the quote line's time span. Affects if and how prorations are created when a future phase starts.
+ """
+ set_pause_collection: NotRequired[
+ "QuoteUpdateParamsLineSetPauseCollection"
+ ]
+ """
+ Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
+ """
+ set_schedule_end: NotRequired[Literal["line_ends_at", "line_starts_at"]]
+ """
+ Timestamp helper to end the underlying schedule early, based on the acompanying line's start or end date.
+ """
+ starts_at: NotRequired["QuoteUpdateParamsLineStartsAt"]
+ """
+ Details to identify the earliest timestamp where the proposed change should take effect.
+ """
+ trial_settings: NotRequired["QuoteUpdateParamsLineTrialSettings"]
+ """
+ Settings related to subscription trials.
+ """
+
+
+class QuoteUpdateParamsLineAction(TypedDict):
+ add_discount: NotRequired["QuoteUpdateParamsLineActionAddDiscount"]
+ """
+ Details for the `add_discount` type.
+ """
+ add_item: NotRequired["QuoteUpdateParamsLineActionAddItem"]
+ """
+ Details for the `add_item` type.
+ """
+ add_metadata: NotRequired[Dict[str, str]]
+ """
+ Details for the `add_metadata` type: specify a hash of key-value pairs.
+ """
+ remove_discount: NotRequired["QuoteUpdateParamsLineActionRemoveDiscount"]
+ """
+ Details for the `remove_discount` type.
+ """
+ remove_item: NotRequired["QuoteUpdateParamsLineActionRemoveItem"]
+ """
+ Details for the `remove_item` type.
+ """
+ remove_metadata: NotRequired[List[str]]
+ """
+ Details for the `remove_metadata` type: specify an array of metadata keys.
+ """
+ set_discounts: NotRequired[List["QuoteUpdateParamsLineActionSetDiscount"]]
+ """
+ Details for the `set_discounts` type.
+ """
+ set_items: NotRequired[List["QuoteUpdateParamsLineActionSetItem"]]
+ """
+ Details for the `set_items` type.
+ """
+ set_metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Details for the `set_metadata` type: specify an array of key-value pairs.
+ """
+ type: Literal[
+ "add_discount",
+ "add_item",
+ "add_metadata",
+ "clear_discounts",
+ "clear_metadata",
+ "remove_discount",
+ "remove_item",
+ "remove_metadata",
+ "set_discounts",
+ "set_items",
+ "set_metadata",
+ ]
+ """
+ The type of action the quote line performs.
+ """
+
+
+class QuoteUpdateParamsLineActionAddDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The coupon code to redeem.
+ """
+ discount: NotRequired[str]
+ """
+ An ID of an existing discount for a coupon that was already redeemed.
+ """
+ discount_end: NotRequired[
+ "QuoteUpdateParamsLineActionAddDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ index: NotRequired[int]
+ """
+ The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
+ """
+ promotion_code: NotRequired[str]
+ """
+ The promotion code to redeem.
+ """
+
+
+class QuoteUpdateParamsLineActionAddDiscountDiscountEnd(TypedDict):
+ type: Literal["line_ends_at"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteUpdateParamsLineActionAddItem(TypedDict):
+ discounts: NotRequired[List["QuoteUpdateParamsLineActionAddItemDiscount"]]
+ """
+ The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ price: str
+ """
+ The ID of the price object.
+ """
+ quantity: NotRequired[int]
+ """
+ Quantity for this item.
+ """
+ tax_rates: NotRequired[List[str]]
+ """
+ The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
+ """
+ trial: NotRequired["QuoteUpdateParamsLineActionAddItemTrial"]
+ """
+ Options that configure the trial on the subscription item.
+ """
+
+
+class QuoteUpdateParamsLineActionAddItemDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: NotRequired[
+ "QuoteUpdateParamsLineActionAddItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class QuoteUpdateParamsLineActionAddItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "QuoteUpdateParamsLineActionAddItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteUpdateParamsLineActionAddItemDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteUpdateParamsLineActionAddItemTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class QuoteUpdateParamsLineActionRemoveDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The coupon code to remove from the `discounts` array.
+ """
+ discount: NotRequired[str]
+ """
+ The ID of a discount to remove from the `discounts` array.
+ """
+ promotion_code: NotRequired[str]
+ """
+ The ID of a promotion code to remove from the `discounts` array.
+ """
+
+
+class QuoteUpdateParamsLineActionRemoveItem(TypedDict):
+ price: str
+ """
+ ID of a price to remove.
+ """
+
+
+class QuoteUpdateParamsLineActionSetDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The coupon code to replace the `discounts` array with.
+ """
+ discount: NotRequired[str]
+ """
+ An ID of an existing discount to replace the `discounts` array with.
+ """
+ promotion_code: NotRequired[str]
+ """
+ An ID of an existing promotion code to replace the `discounts` array with.
+ """
+
+
+class QuoteUpdateParamsLineActionSetItem(TypedDict):
+ discounts: NotRequired[List["QuoteUpdateParamsLineActionSetItemDiscount"]]
+ """
+ If an item with the `price` already exists, passing this will override the `discounts` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `discounts`.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
+ """
+ price: str
+ """
+ The ID of the price object.
+ """
+ quantity: NotRequired[int]
+ """
+ If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
+ """
+ tax_rates: NotRequired[List[str]]
+ """
+ If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
+ """
+ trial: NotRequired["QuoteUpdateParamsLineActionSetItemTrial"]
+ """
+ If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
+ """
+
+
+class QuoteUpdateParamsLineActionSetItemDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: NotRequired[
+ "QuoteUpdateParamsLineActionSetItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class QuoteUpdateParamsLineActionSetItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "QuoteUpdateParamsLineActionSetItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class QuoteUpdateParamsLineActionSetItemDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteUpdateParamsLineActionSetItemTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class QuoteUpdateParamsLineAppliesTo(TypedDict):
+ new_reference: NotRequired[str]
+ """
+ A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
+ """
+ subscription_schedule: NotRequired[str]
+ """
+ The ID of the schedule the line applies to.
+ """
+ type: Literal["new_reference", "subscription_schedule"]
+ """
+ Describes whether the quote line is affecting a new schedule or an existing schedule.
+ """
+
+
+class QuoteUpdateParamsLineCancelSubscriptionSchedule(TypedDict):
+ cancel_at: Literal["line_starts_at"]
+ """
+ Timestamp helper to cancel the underlying schedule on the accompanying line's start date. Must be set to `line_starts_at`.
+ """
+ invoice_now: NotRequired[bool]
+ """
+ If the subscription schedule is `active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Boolean that defaults to `true`.
+ """
+ prorate: NotRequired[bool]
+ """
+ If the subscription schedule is `active`, indicates if the cancellation should be prorated. Boolean that defaults to `true`.
+ """
+
+
+class QuoteUpdateParamsLineEndsAt(TypedDict):
+ discount_end: NotRequired["QuoteUpdateParamsLineEndsAtDiscountEnd"]
+ """
+ Use the `end` time of a given discount.
+ """
+ duration: NotRequired["QuoteUpdateParamsLineEndsAtDuration"]
+ """
+ Time span for the quote line starting from the `starts_at` date.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "billing_period_end",
+ "discount_end",
+ "duration",
+ "quote_acceptance_date",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ Select a way to pass in `ends_at`.
+ """
+
+
+class QuoteUpdateParamsLineEndsAtDiscountEnd(TypedDict):
+ discount: str
+ """
+ The ID of a specific discount.
+ """
+
+
+class QuoteUpdateParamsLineEndsAtDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteUpdateParamsLineSetPauseCollection(TypedDict):
+ set: NotRequired["QuoteUpdateParamsLineSetPauseCollectionSet"]
+ """
+ Details of the pause_collection behavior to apply to the amendment.
+ """
+ type: Literal["remove", "set"]
+ """
+ Determines the type of the pause_collection amendment.
+ """
+
+
+class QuoteUpdateParamsLineSetPauseCollectionSet(TypedDict):
+ behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+
+
+class QuoteUpdateParamsLineStartsAt(TypedDict):
+ discount_end: NotRequired["QuoteUpdateParamsLineStartsAtDiscountEnd"]
+ """
+ Use the `end` time of a given discount.
+ """
+ line_ends_at: NotRequired["QuoteUpdateParamsLineStartsAtLineEndsAt"]
+ """
+ The timestamp the given line ends at.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "discount_end",
+ "line_ends_at",
+ "now",
+ "quote_acceptance_date",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ Select a way to pass in `starts_at`.
+ """
+
+
+class QuoteUpdateParamsLineStartsAtDiscountEnd(TypedDict):
+ discount: str
+ """
+ The ID of a specific discount.
+ """
+
+
+class QuoteUpdateParamsLineStartsAtLineEndsAt(TypedDict):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
+class QuoteUpdateParamsLineTrialSettings(TypedDict):
+ end_behavior: NotRequired["QuoteUpdateParamsLineTrialSettingsEndBehavior"]
+ """
+ Defines how the subscription should behave when a trial ends.
+ """
+
+
+class QuoteUpdateParamsLineTrialSettingsEndBehavior(TypedDict):
+ prorate_up_front: NotRequired[Literal["defer", "include"]]
+ """
+ Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
+ """
+
+
class QuoteUpdateParamsSubscriptionData(TypedDict):
+ bill_on_acceptance: NotRequired[
+ "Literal['']|QuoteUpdateParamsSubscriptionDataBillOnAcceptance"
+ ]
+ """
+ Describes the period to bill for upon accepting the quote.
+ """
+ billing_behavior: NotRequired[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
+ billing_cycle_anchor: NotRequired["Literal['']|Literal['reset']"]
+ """
+ When specified as `reset`, the subscription will always start a new billing period when the quote is accepted.
+ """
description: NotRequired["Literal['']|str"]
"""
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
@@ -235,18 +830,321 @@ class QuoteUpdateParamsSubscriptionData(TypedDict):
"Literal['']|Literal['current_period_end']|int"
]
"""
- When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
+ When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
+ """
+ end_behavior: NotRequired[Literal["cancel", "release"]]
+ """
+ Behavior of the subscription schedule and underlying subscription when it ends.
"""
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
"""
+ prebilling: NotRequired[
+ "Literal['']|QuoteUpdateParamsSubscriptionDataPrebilling"
+ ]
+ """
+ If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
+
+ When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
+
+ Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://docs.stripe.com/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
+
+ Prorations can be disabled by passing `none`.
+ """
trial_period_days: NotRequired["Literal['']|int"]
"""
Integer representing the number of trial period days before the customer is charged for the first time.
"""
+class QuoteUpdateParamsSubscriptionDataBillOnAcceptance(TypedDict):
+ bill_from: NotRequired[
+ "QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillFrom"
+ ]
+ """
+ The start of the period to bill from when the Quote is accepted.
+ """
+ bill_until: NotRequired[
+ "QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntil"
+ ]
+ """
+ The end of the period to bill until when the Quote is accepted.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillFrom(TypedDict):
+ line_starts_at: NotRequired[
+ "QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt"
+ ]
+ """
+ Details of a Quote line to start the bill period from.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "line_starts_at",
+ "now",
+ "pause_collection_start",
+ "quote_acceptance_date",
+ "timestamp",
+ ]
+ """
+ The type of method to specify the `bill_from` time.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillFromLineStartsAt(
+ TypedDict,
+):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntil(TypedDict):
+ duration: NotRequired[
+ "QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilDuration"
+ ]
+ """
+ Details of the duration over which to bill.
+ """
+ line_ends_at: NotRequired[
+ "QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt"
+ ]
+ """
+ Details of a Quote line item from which to bill until.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "duration",
+ "line_ends_at",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ The type of method to specify the `bill_until` time.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataBillOnAcceptanceBillUntilLineEndsAt(
+ TypedDict,
+):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataPrebilling(TypedDict):
+ iterations: int
+ """
+ This is used to determine the number of billing cycles to prebill.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataOverride(TypedDict):
+ applies_to: "QuoteUpdateParamsSubscriptionDataOverrideAppliesTo"
+ """
+ Whether the override applies to an existing Subscription Schedule or a new Subscription Schedule.
+ """
+ bill_on_acceptance: NotRequired[
+ "Literal['']|QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptance"
+ ]
+ """
+ Describes the period to bill for upon accepting the quote.
+ """
+ billing_behavior: NotRequired[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
+ customer: NotRequired[str]
+ """
+ The customer the Subscription Data override applies to.
+ """
+ description: NotRequired["Literal['']|str"]
+ """
+ The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
+ """
+ end_behavior: NotRequired[Literal["cancel", "release"]]
+ """
+ Behavior of the subscription schedule and underlying subscription when it ends.
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`.
+
+ When updating a subscription, valid values are `create_prorations`, `none`, or `always_invoice`.
+
+ Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under [certain conditions](https://docs.stripe.com/subscriptions/upgrading-downgrading#immediate-payment). In order to always invoice immediately for prorations, pass `always_invoice`.
+
+ Prorations can be disabled by passing `none`.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataOverrideAppliesTo(TypedDict):
+ new_reference: NotRequired[str]
+ """
+ A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
+ """
+ subscription_schedule: NotRequired[str]
+ """
+ The ID of the schedule the line applies to.
+ """
+ type: Literal["new_reference", "subscription_schedule"]
+ """
+ Describes whether the quote line is affecting a new schedule or an existing schedule.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptance(TypedDict):
+ bill_from: NotRequired[
+ "QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom"
+ ]
+ """
+ The start of the period to bill from when the Quote is accepted.
+ """
+ bill_until: NotRequired[
+ "QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil"
+ ]
+ """
+ The end of the period to bill until when the Quote is accepted.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillFrom(
+ TypedDict,
+):
+ line_starts_at: NotRequired[
+ "QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt"
+ ]
+ """
+ Details of a Quote line to start the bill period from.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "line_starts_at",
+ "now",
+ "pause_collection_start",
+ "quote_acceptance_date",
+ "timestamp",
+ ]
+ """
+ The type of method to specify the `bill_from` time.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillFromLineStartsAt(
+ TypedDict,
+):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntil(
+ TypedDict,
+):
+ duration: NotRequired[
+ "QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration"
+ ]
+ """
+ Details of the duration over which to bill.
+ """
+ line_ends_at: NotRequired[
+ "QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt"
+ ]
+ """
+ Details of a Quote line item from which to bill until.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp.
+ """
+ type: Literal[
+ "duration",
+ "line_ends_at",
+ "schedule_end",
+ "timestamp",
+ "upcoming_invoice",
+ ]
+ """
+ The type of method to specify the `bill_until` time.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class QuoteUpdateParamsSubscriptionDataOverrideBillOnAcceptanceBillUntilLineEndsAt(
+ TypedDict,
+):
+ id: NotRequired[str]
+ """
+ The ID of a quote line.
+ """
+ index: NotRequired[int]
+ """
+ The position of the previous quote line in the `lines` array after which this line should begin. Indexes start from 0 and must be less than the index of the current line in the array.
+ """
+
+
class QuoteUpdateParamsTransferData(TypedDict):
amount: NotRequired[int]
"""
diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py
index 9f48da351..f78d236d1 100644
--- a/stripe/params/_setup_intent_confirm_params.py
+++ b/stripe/params/_setup_intent_confirm_params.py
@@ -192,10 +192,20 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict):
"""
If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
"""
+ gopay: NotRequired["SetupIntentConfirmParamsPaymentMethodDataGopay"]
+ """
+ If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
+ """
grabpay: NotRequired["SetupIntentConfirmParamsPaymentMethodDataGrabpay"]
"""
If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
"""
+ id_bank_transfer: NotRequired[
+ "SetupIntentConfirmParamsPaymentMethodDataIdBankTransfer"
+ ]
+ """
+ If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
+ """
ideal: NotRequired["SetupIntentConfirmParamsPaymentMethodDataIdeal"]
"""
If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
@@ -282,6 +292,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict):
"""
If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
"""
+ paypay: NotRequired["SetupIntentConfirmParamsPaymentMethodDataPaypay"]
+ """
+ If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
+ """
payto: NotRequired["SetupIntentConfirmParamsPaymentMethodDataPayto"]
"""
If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
@@ -296,12 +310,20 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict):
"""
If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
"""
+ qris: NotRequired["SetupIntentConfirmParamsPaymentMethodDataQris"]
+ """
+ If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
+ """
radar_options: NotRequired[
"SetupIntentConfirmParamsPaymentMethodDataRadarOptions"
]
"""
Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
"""
+ rechnung: NotRequired["SetupIntentConfirmParamsPaymentMethodDataRechnung"]
+ """
+ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
+ """
revolut_pay: NotRequired[
"SetupIntentConfirmParamsPaymentMethodDataRevolutPay"
]
@@ -324,10 +346,22 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
+ shopeepay: NotRequired[
+ "SetupIntentConfirmParamsPaymentMethodDataShopeepay"
+ ]
+ """
+ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
+ """
sofort: NotRequired["SetupIntentConfirmParamsPaymentMethodDataSofort"]
"""
If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
"""
+ stripe_balance: NotRequired[
+ "SetupIntentConfirmParamsPaymentMethodDataStripeBalance"
+ ]
+ """
+ This hash contains details about the Stripe balance payment method.
+ """
swish: NotRequired["SetupIntentConfirmParamsPaymentMethodDataSwish"]
"""
If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -355,7 +389,9 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -373,14 +409,19 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
@@ -626,10 +667,21 @@ class SetupIntentConfirmParamsPaymentMethodDataGiropay(TypedDict):
pass
+class SetupIntentConfirmParamsPaymentMethodDataGopay(TypedDict):
+ pass
+
+
class SetupIntentConfirmParamsPaymentMethodDataGrabpay(TypedDict):
pass
+class SetupIntentConfirmParamsPaymentMethodDataIdBankTransfer(TypedDict):
+ bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ """
+ Bank where the account is held.
+ """
+
+
class SetupIntentConfirmParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
Literal[
@@ -800,6 +852,10 @@ class SetupIntentConfirmParamsPaymentMethodDataPaypal(TypedDict):
pass
+class SetupIntentConfirmParamsPaymentMethodDataPaypay(TypedDict):
+ pass
+
+
class SetupIntentConfirmParamsPaymentMethodDataPayto(TypedDict):
account_number: NotRequired[str]
"""
@@ -823,6 +879,10 @@ class SetupIntentConfirmParamsPaymentMethodDataPromptpay(TypedDict):
pass
+class SetupIntentConfirmParamsPaymentMethodDataQris(TypedDict):
+ pass
+
+
class SetupIntentConfirmParamsPaymentMethodDataRadarOptions(TypedDict):
session: NotRequired[str]
"""
@@ -830,6 +890,28 @@ class SetupIntentConfirmParamsPaymentMethodDataRadarOptions(TypedDict):
"""
+class SetupIntentConfirmParamsPaymentMethodDataRechnung(TypedDict):
+ dob: "SetupIntentConfirmParamsPaymentMethodDataRechnungDob"
+ """
+ Customer's date of birth
+ """
+
+
+class SetupIntentConfirmParamsPaymentMethodDataRechnungDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
class SetupIntentConfirmParamsPaymentMethodDataRevolutPay(TypedDict):
pass
@@ -849,6 +931,10 @@ class SetupIntentConfirmParamsPaymentMethodDataSepaDebit(TypedDict):
"""
+class SetupIntentConfirmParamsPaymentMethodDataShopeepay(TypedDict):
+ pass
+
+
class SetupIntentConfirmParamsPaymentMethodDataSofort(TypedDict):
country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
"""
@@ -856,6 +942,17 @@ class SetupIntentConfirmParamsPaymentMethodDataSofort(TypedDict):
"""
+class SetupIntentConfirmParamsPaymentMethodDataStripeBalance(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
+
class SetupIntentConfirmParamsPaymentMethodDataSwish(TypedDict):
pass
@@ -940,6 +1037,10 @@ class SetupIntentConfirmParamsPaymentMethodOptions(TypedDict):
"""
If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
"""
+ pix: NotRequired["SetupIntentConfirmParamsPaymentMethodOptionsPix"]
+ """
+ If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
+ """
sepa_debit: NotRequired[
"SetupIntentConfirmParamsPaymentMethodOptionsSepaDebit"
]
@@ -1341,6 +1442,11 @@ class SetupIntentConfirmParamsPaymentMethodOptionsPaypal(TypedDict):
"""
The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
"""
+ currency: NotRequired[str]
+ subsellers: NotRequired[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
class SetupIntentConfirmParamsPaymentMethodOptionsPayto(TypedDict):
@@ -1389,6 +1495,52 @@ class SetupIntentConfirmParamsPaymentMethodOptionsPaytoMandateOptions(
"""
+class SetupIntentConfirmParamsPaymentMethodOptionsPix(TypedDict):
+ mandate_options: NotRequired[
+ "SetupIntentConfirmParamsPaymentMethodOptionsPixMandateOptions"
+ ]
+ """
+ Additional fields for mandate creation.
+ """
+
+
+class SetupIntentConfirmParamsPaymentMethodOptionsPixMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
+ """
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ Type of amount. Defaults to `maximum`.
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
+ """
+ end_date: NotRequired[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ payment_schedule: NotRequired[
+ Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"]
+ ]
+ """
+ Schedule at which the future payments will be charged. Defaults to `weekly`.
+ """
+ reference: NotRequired[str]
+ """
+ Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
+ """
+ start_date: NotRequired[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
+ """
+
+
class SetupIntentConfirmParamsPaymentMethodOptionsSepaDebit(TypedDict):
mandate_options: NotRequired[
"SetupIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions"
@@ -1443,6 +1595,12 @@ class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnecti
"""
Provide filters for the linked accounts that the customer can select for the payment method.
"""
+ manual_entry: NotRequired[
+ "SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
+ ]
+ """
+ Customize manual entry behavior
+ """
permissions: NotRequired[
List[
Literal["balances", "ownership", "payment_method", "transactions"]
@@ -1452,7 +1610,11 @@ class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnecti
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -1470,6 +1632,19 @@ class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnecti
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
+
+
+class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
+ TypedDict,
+):
+ mode: Literal["automatic", "custom"]
+ """
+ Settings for configuring manual entry of account details.
+ """
class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions(
diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py
index 4e73a8557..14b15720a 100644
--- a/stripe/params/_setup_intent_create_params.py
+++ b/stripe/params/_setup_intent_create_params.py
@@ -66,7 +66,9 @@ class SetupIntentCreateParams(RequestOptions):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -83,14 +85,19 @@ class SetupIntentCreateParams(RequestOptions):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
@@ -324,10 +331,20 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
"""
+ gopay: NotRequired["SetupIntentCreateParamsPaymentMethodDataGopay"]
+ """
+ If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
+ """
grabpay: NotRequired["SetupIntentCreateParamsPaymentMethodDataGrabpay"]
"""
If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
"""
+ id_bank_transfer: NotRequired[
+ "SetupIntentCreateParamsPaymentMethodDataIdBankTransfer"
+ ]
+ """
+ If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
+ """
ideal: NotRequired["SetupIntentCreateParamsPaymentMethodDataIdeal"]
"""
If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
@@ -412,6 +429,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
"""
+ paypay: NotRequired["SetupIntentCreateParamsPaymentMethodDataPaypay"]
+ """
+ If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
+ """
payto: NotRequired["SetupIntentCreateParamsPaymentMethodDataPayto"]
"""
If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
@@ -424,12 +445,20 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
"""
+ qris: NotRequired["SetupIntentCreateParamsPaymentMethodDataQris"]
+ """
+ If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
+ """
radar_options: NotRequired[
"SetupIntentCreateParamsPaymentMethodDataRadarOptions"
]
"""
Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
"""
+ rechnung: NotRequired["SetupIntentCreateParamsPaymentMethodDataRechnung"]
+ """
+ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
+ """
revolut_pay: NotRequired[
"SetupIntentCreateParamsPaymentMethodDataRevolutPay"
]
@@ -452,10 +481,20 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
+ shopeepay: NotRequired["SetupIntentCreateParamsPaymentMethodDataShopeepay"]
+ """
+ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
+ """
sofort: NotRequired["SetupIntentCreateParamsPaymentMethodDataSofort"]
"""
If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
"""
+ stripe_balance: NotRequired[
+ "SetupIntentCreateParamsPaymentMethodDataStripeBalance"
+ ]
+ """
+ This hash contains details about the Stripe balance payment method.
+ """
swish: NotRequired["SetupIntentCreateParamsPaymentMethodDataSwish"]
"""
If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -483,7 +522,9 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -501,14 +542,19 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
@@ -752,10 +798,21 @@ class SetupIntentCreateParamsPaymentMethodDataGiropay(TypedDict):
pass
+class SetupIntentCreateParamsPaymentMethodDataGopay(TypedDict):
+ pass
+
+
class SetupIntentCreateParamsPaymentMethodDataGrabpay(TypedDict):
pass
+class SetupIntentCreateParamsPaymentMethodDataIdBankTransfer(TypedDict):
+ bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ """
+ Bank where the account is held.
+ """
+
+
class SetupIntentCreateParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
Literal[
@@ -926,6 +983,10 @@ class SetupIntentCreateParamsPaymentMethodDataPaypal(TypedDict):
pass
+class SetupIntentCreateParamsPaymentMethodDataPaypay(TypedDict):
+ pass
+
+
class SetupIntentCreateParamsPaymentMethodDataPayto(TypedDict):
account_number: NotRequired[str]
"""
@@ -949,6 +1010,10 @@ class SetupIntentCreateParamsPaymentMethodDataPromptpay(TypedDict):
pass
+class SetupIntentCreateParamsPaymentMethodDataQris(TypedDict):
+ pass
+
+
class SetupIntentCreateParamsPaymentMethodDataRadarOptions(TypedDict):
session: NotRequired[str]
"""
@@ -956,6 +1021,28 @@ class SetupIntentCreateParamsPaymentMethodDataRadarOptions(TypedDict):
"""
+class SetupIntentCreateParamsPaymentMethodDataRechnung(TypedDict):
+ dob: "SetupIntentCreateParamsPaymentMethodDataRechnungDob"
+ """
+ Customer's date of birth
+ """
+
+
+class SetupIntentCreateParamsPaymentMethodDataRechnungDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
class SetupIntentCreateParamsPaymentMethodDataRevolutPay(TypedDict):
pass
@@ -975,6 +1062,10 @@ class SetupIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict):
"""
+class SetupIntentCreateParamsPaymentMethodDataShopeepay(TypedDict):
+ pass
+
+
class SetupIntentCreateParamsPaymentMethodDataSofort(TypedDict):
country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
"""
@@ -982,6 +1073,17 @@ class SetupIntentCreateParamsPaymentMethodDataSofort(TypedDict):
"""
+class SetupIntentCreateParamsPaymentMethodDataStripeBalance(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
+
class SetupIntentCreateParamsPaymentMethodDataSwish(TypedDict):
pass
@@ -1066,6 +1168,10 @@ class SetupIntentCreateParamsPaymentMethodOptions(TypedDict):
"""
If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
"""
+ pix: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsPix"]
+ """
+ If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
+ """
sepa_debit: NotRequired[
"SetupIntentCreateParamsPaymentMethodOptionsSepaDebit"
]
@@ -1463,6 +1569,11 @@ class SetupIntentCreateParamsPaymentMethodOptionsPaypal(TypedDict):
"""
The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
"""
+ currency: NotRequired[str]
+ subsellers: NotRequired[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
class SetupIntentCreateParamsPaymentMethodOptionsPayto(TypedDict):
@@ -1511,6 +1622,52 @@ class SetupIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions(
"""
+class SetupIntentCreateParamsPaymentMethodOptionsPix(TypedDict):
+ mandate_options: NotRequired[
+ "SetupIntentCreateParamsPaymentMethodOptionsPixMandateOptions"
+ ]
+ """
+ Additional fields for mandate creation.
+ """
+
+
+class SetupIntentCreateParamsPaymentMethodOptionsPixMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
+ """
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ Type of amount. Defaults to `maximum`.
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
+ """
+ end_date: NotRequired[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ payment_schedule: NotRequired[
+ Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"]
+ ]
+ """
+ Schedule at which the future payments will be charged. Defaults to `weekly`.
+ """
+ reference: NotRequired[str]
+ """
+ Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
+ """
+ start_date: NotRequired[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
+ """
+
+
class SetupIntentCreateParamsPaymentMethodOptionsSepaDebit(TypedDict):
mandate_options: NotRequired[
"SetupIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions"
@@ -1565,6 +1722,12 @@ class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
"""
Provide filters for the linked accounts that the customer can select for the payment method.
"""
+ manual_entry: NotRequired[
+ "SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
+ ]
+ """
+ Customize manual entry behavior
+ """
permissions: NotRequired[
List[
Literal["balances", "ownership", "payment_method", "transactions"]
@@ -1574,7 +1737,11 @@ class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -1592,6 +1759,19 @@ class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
+
+
+class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
+ TypedDict,
+):
+ mode: Literal["automatic", "custom"]
+ """
+ Settings for configuring manual entry of account details.
+ """
class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions(
diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py
index 878cb4137..72a27f0c5 100644
--- a/stripe/params/_setup_intent_modify_params.py
+++ b/stripe/params/_setup_intent_modify_params.py
@@ -29,7 +29,7 @@ class SetupIntentModifyParams(RequestOptions):
An arbitrary string attached to the object. Often useful for displaying to users.
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types to exclude from use with this SetupIntent.
@@ -172,10 +172,20 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict):
"""
If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
"""
+ gopay: NotRequired["SetupIntentModifyParamsPaymentMethodDataGopay"]
+ """
+ If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
+ """
grabpay: NotRequired["SetupIntentModifyParamsPaymentMethodDataGrabpay"]
"""
If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
"""
+ id_bank_transfer: NotRequired[
+ "SetupIntentModifyParamsPaymentMethodDataIdBankTransfer"
+ ]
+ """
+ If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
+ """
ideal: NotRequired["SetupIntentModifyParamsPaymentMethodDataIdeal"]
"""
If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
@@ -260,6 +270,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict):
"""
If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
"""
+ paypay: NotRequired["SetupIntentModifyParamsPaymentMethodDataPaypay"]
+ """
+ If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
+ """
payto: NotRequired["SetupIntentModifyParamsPaymentMethodDataPayto"]
"""
If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
@@ -272,12 +286,20 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict):
"""
If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
"""
+ qris: NotRequired["SetupIntentModifyParamsPaymentMethodDataQris"]
+ """
+ If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
+ """
radar_options: NotRequired[
"SetupIntentModifyParamsPaymentMethodDataRadarOptions"
]
"""
Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
"""
+ rechnung: NotRequired["SetupIntentModifyParamsPaymentMethodDataRechnung"]
+ """
+ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
+ """
revolut_pay: NotRequired[
"SetupIntentModifyParamsPaymentMethodDataRevolutPay"
]
@@ -300,10 +322,20 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
+ shopeepay: NotRequired["SetupIntentModifyParamsPaymentMethodDataShopeepay"]
+ """
+ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
+ """
sofort: NotRequired["SetupIntentModifyParamsPaymentMethodDataSofort"]
"""
If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
"""
+ stripe_balance: NotRequired[
+ "SetupIntentModifyParamsPaymentMethodDataStripeBalance"
+ ]
+ """
+ This hash contains details about the Stripe balance payment method.
+ """
swish: NotRequired["SetupIntentModifyParamsPaymentMethodDataSwish"]
"""
If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -331,7 +363,9 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -349,14 +383,19 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
@@ -600,10 +639,21 @@ class SetupIntentModifyParamsPaymentMethodDataGiropay(TypedDict):
pass
+class SetupIntentModifyParamsPaymentMethodDataGopay(TypedDict):
+ pass
+
+
class SetupIntentModifyParamsPaymentMethodDataGrabpay(TypedDict):
pass
+class SetupIntentModifyParamsPaymentMethodDataIdBankTransfer(TypedDict):
+ bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ """
+ Bank where the account is held.
+ """
+
+
class SetupIntentModifyParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
Literal[
@@ -774,6 +824,10 @@ class SetupIntentModifyParamsPaymentMethodDataPaypal(TypedDict):
pass
+class SetupIntentModifyParamsPaymentMethodDataPaypay(TypedDict):
+ pass
+
+
class SetupIntentModifyParamsPaymentMethodDataPayto(TypedDict):
account_number: NotRequired[str]
"""
@@ -797,6 +851,10 @@ class SetupIntentModifyParamsPaymentMethodDataPromptpay(TypedDict):
pass
+class SetupIntentModifyParamsPaymentMethodDataQris(TypedDict):
+ pass
+
+
class SetupIntentModifyParamsPaymentMethodDataRadarOptions(TypedDict):
session: NotRequired[str]
"""
@@ -804,6 +862,28 @@ class SetupIntentModifyParamsPaymentMethodDataRadarOptions(TypedDict):
"""
+class SetupIntentModifyParamsPaymentMethodDataRechnung(TypedDict):
+ dob: "SetupIntentModifyParamsPaymentMethodDataRechnungDob"
+ """
+ Customer's date of birth
+ """
+
+
+class SetupIntentModifyParamsPaymentMethodDataRechnungDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
class SetupIntentModifyParamsPaymentMethodDataRevolutPay(TypedDict):
pass
@@ -823,6 +903,10 @@ class SetupIntentModifyParamsPaymentMethodDataSepaDebit(TypedDict):
"""
+class SetupIntentModifyParamsPaymentMethodDataShopeepay(TypedDict):
+ pass
+
+
class SetupIntentModifyParamsPaymentMethodDataSofort(TypedDict):
country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
"""
@@ -830,6 +914,17 @@ class SetupIntentModifyParamsPaymentMethodDataSofort(TypedDict):
"""
+class SetupIntentModifyParamsPaymentMethodDataStripeBalance(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
+
class SetupIntentModifyParamsPaymentMethodDataSwish(TypedDict):
pass
@@ -914,6 +1009,10 @@ class SetupIntentModifyParamsPaymentMethodOptions(TypedDict):
"""
If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
"""
+ pix: NotRequired["SetupIntentModifyParamsPaymentMethodOptionsPix"]
+ """
+ If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
+ """
sepa_debit: NotRequired[
"SetupIntentModifyParamsPaymentMethodOptionsSepaDebit"
]
@@ -1311,6 +1410,11 @@ class SetupIntentModifyParamsPaymentMethodOptionsPaypal(TypedDict):
"""
The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
"""
+ currency: NotRequired[str]
+ subsellers: NotRequired[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
class SetupIntentModifyParamsPaymentMethodOptionsPayto(TypedDict):
@@ -1359,6 +1463,52 @@ class SetupIntentModifyParamsPaymentMethodOptionsPaytoMandateOptions(
"""
+class SetupIntentModifyParamsPaymentMethodOptionsPix(TypedDict):
+ mandate_options: NotRequired[
+ "SetupIntentModifyParamsPaymentMethodOptionsPixMandateOptions"
+ ]
+ """
+ Additional fields for mandate creation.
+ """
+
+
+class SetupIntentModifyParamsPaymentMethodOptionsPixMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
+ """
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ Type of amount. Defaults to `maximum`.
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
+ """
+ end_date: NotRequired[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ payment_schedule: NotRequired[
+ Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"]
+ ]
+ """
+ Schedule at which the future payments will be charged. Defaults to `weekly`.
+ """
+ reference: NotRequired[str]
+ """
+ Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
+ """
+ start_date: NotRequired[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
+ """
+
+
class SetupIntentModifyParamsPaymentMethodOptionsSepaDebit(TypedDict):
mandate_options: NotRequired[
"SetupIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions"
@@ -1413,6 +1563,12 @@ class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
"""
Provide filters for the linked accounts that the customer can select for the payment method.
"""
+ manual_entry: NotRequired[
+ "SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
+ ]
+ """
+ Customize manual entry behavior
+ """
permissions: NotRequired[
List[
Literal["balances", "ownership", "payment_method", "transactions"]
@@ -1422,7 +1578,11 @@ class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -1440,6 +1600,19 @@ class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
+
+
+class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
+ TypedDict,
+):
+ mode: Literal["automatic", "custom"]
+ """
+ Settings for configuring manual entry of account details.
+ """
class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions(
diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py
index 91a0531c1..aab38860f 100644
--- a/stripe/params/_setup_intent_update_params.py
+++ b/stripe/params/_setup_intent_update_params.py
@@ -28,7 +28,7 @@ class SetupIntentUpdateParams(TypedDict):
An arbitrary string attached to the object. Often useful for displaying to users.
"""
excluded_payment_method_types: NotRequired[
- "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
+ "Literal['']|List[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'sepa_debit', 'shopeepay', 'sofort', 'stripe_balance', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
]
"""
The list of payment method types to exclude from use with this SetupIntent.
@@ -171,10 +171,20 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict):
"""
If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
"""
+ gopay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataGopay"]
+ """
+ If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
+ """
grabpay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataGrabpay"]
"""
If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
"""
+ id_bank_transfer: NotRequired[
+ "SetupIntentUpdateParamsPaymentMethodDataIdBankTransfer"
+ ]
+ """
+ If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
+ """
ideal: NotRequired["SetupIntentUpdateParamsPaymentMethodDataIdeal"]
"""
If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
@@ -259,6 +269,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict):
"""
If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
"""
+ paypay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataPaypay"]
+ """
+ If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
+ """
payto: NotRequired["SetupIntentUpdateParamsPaymentMethodDataPayto"]
"""
If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
@@ -271,12 +285,20 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict):
"""
If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
"""
+ qris: NotRequired["SetupIntentUpdateParamsPaymentMethodDataQris"]
+ """
+ If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
+ """
radar_options: NotRequired[
"SetupIntentUpdateParamsPaymentMethodDataRadarOptions"
]
"""
Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
"""
+ rechnung: NotRequired["SetupIntentUpdateParamsPaymentMethodDataRechnung"]
+ """
+ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
+ """
revolut_pay: NotRequired[
"SetupIntentUpdateParamsPaymentMethodDataRevolutPay"
]
@@ -299,10 +321,20 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
+ shopeepay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataShopeepay"]
+ """
+ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
+ """
sofort: NotRequired["SetupIntentUpdateParamsPaymentMethodDataSofort"]
"""
If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
"""
+ stripe_balance: NotRequired[
+ "SetupIntentUpdateParamsPaymentMethodDataStripeBalance"
+ ]
+ """
+ This hash contains details about the Stripe balance payment method.
+ """
swish: NotRequired["SetupIntentUpdateParamsPaymentMethodDataSwish"]
"""
If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -330,7 +362,9 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -348,14 +382,19 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
@@ -599,10 +638,21 @@ class SetupIntentUpdateParamsPaymentMethodDataGiropay(TypedDict):
pass
+class SetupIntentUpdateParamsPaymentMethodDataGopay(TypedDict):
+ pass
+
+
class SetupIntentUpdateParamsPaymentMethodDataGrabpay(TypedDict):
pass
+class SetupIntentUpdateParamsPaymentMethodDataIdBankTransfer(TypedDict):
+ bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ """
+ Bank where the account is held.
+ """
+
+
class SetupIntentUpdateParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
Literal[
@@ -773,6 +823,10 @@ class SetupIntentUpdateParamsPaymentMethodDataPaypal(TypedDict):
pass
+class SetupIntentUpdateParamsPaymentMethodDataPaypay(TypedDict):
+ pass
+
+
class SetupIntentUpdateParamsPaymentMethodDataPayto(TypedDict):
account_number: NotRequired[str]
"""
@@ -796,6 +850,10 @@ class SetupIntentUpdateParamsPaymentMethodDataPromptpay(TypedDict):
pass
+class SetupIntentUpdateParamsPaymentMethodDataQris(TypedDict):
+ pass
+
+
class SetupIntentUpdateParamsPaymentMethodDataRadarOptions(TypedDict):
session: NotRequired[str]
"""
@@ -803,6 +861,28 @@ class SetupIntentUpdateParamsPaymentMethodDataRadarOptions(TypedDict):
"""
+class SetupIntentUpdateParamsPaymentMethodDataRechnung(TypedDict):
+ dob: "SetupIntentUpdateParamsPaymentMethodDataRechnungDob"
+ """
+ Customer's date of birth
+ """
+
+
+class SetupIntentUpdateParamsPaymentMethodDataRechnungDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
class SetupIntentUpdateParamsPaymentMethodDataRevolutPay(TypedDict):
pass
@@ -822,6 +902,10 @@ class SetupIntentUpdateParamsPaymentMethodDataSepaDebit(TypedDict):
"""
+class SetupIntentUpdateParamsPaymentMethodDataShopeepay(TypedDict):
+ pass
+
+
class SetupIntentUpdateParamsPaymentMethodDataSofort(TypedDict):
country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
"""
@@ -829,6 +913,17 @@ class SetupIntentUpdateParamsPaymentMethodDataSofort(TypedDict):
"""
+class SetupIntentUpdateParamsPaymentMethodDataStripeBalance(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
+
class SetupIntentUpdateParamsPaymentMethodDataSwish(TypedDict):
pass
@@ -913,6 +1008,10 @@ class SetupIntentUpdateParamsPaymentMethodOptions(TypedDict):
"""
If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
"""
+ pix: NotRequired["SetupIntentUpdateParamsPaymentMethodOptionsPix"]
+ """
+ If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
+ """
sepa_debit: NotRequired[
"SetupIntentUpdateParamsPaymentMethodOptionsSepaDebit"
]
@@ -1310,6 +1409,11 @@ class SetupIntentUpdateParamsPaymentMethodOptionsPaypal(TypedDict):
"""
The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
"""
+ currency: NotRequired[str]
+ subsellers: NotRequired[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
class SetupIntentUpdateParamsPaymentMethodOptionsPayto(TypedDict):
@@ -1358,6 +1462,52 @@ class SetupIntentUpdateParamsPaymentMethodOptionsPaytoMandateOptions(
"""
+class SetupIntentUpdateParamsPaymentMethodOptionsPix(TypedDict):
+ mandate_options: NotRequired[
+ "SetupIntentUpdateParamsPaymentMethodOptionsPixMandateOptions"
+ ]
+ """
+ Additional fields for mandate creation.
+ """
+
+
+class SetupIntentUpdateParamsPaymentMethodOptionsPixMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
+ """
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ Type of amount. Defaults to `maximum`.
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
+ """
+ end_date: NotRequired[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ payment_schedule: NotRequired[
+ Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"]
+ ]
+ """
+ Schedule at which the future payments will be charged. Defaults to `weekly`.
+ """
+ reference: NotRequired[str]
+ """
+ Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
+ """
+ start_date: NotRequired[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
+ """
+
+
class SetupIntentUpdateParamsPaymentMethodOptionsSepaDebit(TypedDict):
mandate_options: NotRequired[
"SetupIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions"
@@ -1412,6 +1562,12 @@ class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
"""
Provide filters for the linked accounts that the customer can select for the payment method.
"""
+ manual_entry: NotRequired[
+ "SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry"
+ ]
+ """
+ Customize manual entry behavior
+ """
permissions: NotRequired[
List[
Literal["balances", "ownership", "payment_method", "transactions"]
@@ -1421,7 +1577,11 @@ class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -1439,6 +1599,19 @@ class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
+
+
+class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry(
+ TypedDict,
+):
+ mode: Literal["automatic", "custom"]
+ """
+ Settings for configuring manual entry of account details.
+ """
class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions(
diff --git a/stripe/params/_subscription_attach_cadence_params.py b/stripe/params/_subscription_attach_cadence_params.py
new file mode 100644
index 000000000..094ad8779
--- /dev/null
+++ b/stripe/params/_subscription_attach_cadence_params.py
@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class SubscriptionAttachCadenceParams(RequestOptions):
+ billing_cadence: str
+ """
+ The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py
index 35c75cfe2..ab8182c4f 100644
--- a/stripe/params/_subscription_create_params.py
+++ b/stripe/params/_subscription_create_params.py
@@ -24,6 +24,10 @@ class SubscriptionCreateParams(RequestOptions):
"""
A past timestamp to backdate the subscription's start date to. If set, the first invoice will contain line items for the timespan between the start date and the current time. Can be combined with trials and the billing cycle anchor.
"""
+ billing_cadence: NotRequired[str]
+ """
+ The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
+ """
billing_cycle_anchor: NotRequired[int]
"""
A future timestamp in UTC format to anchor the subscription's [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle). The anchor is the reference point that aligns future billing cycle dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals.
@@ -38,6 +42,12 @@ class SubscriptionCreateParams(RequestOptions):
"""
Controls how prorations and invoices for subscriptions are calculated and orchestrated.
"""
+ billing_schedules: NotRequired[
+ List["SubscriptionCreateParamsBillingSchedule"]
+ ]
+ """
+ Sets the billing schedules for the subscription.
+ """
billing_thresholds: NotRequired[
"Literal['']|SubscriptionCreateParamsBillingThresholds"
]
@@ -151,6 +161,10 @@ class SubscriptionCreateParams(RequestOptions):
"""
Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.
"""
+ prebilling: NotRequired["SubscriptionCreateParamsPrebilling"]
+ """
+ If specified, the invoicing for the given billing cycle iterations will be processed now.
+ """
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
]
@@ -221,12 +235,48 @@ class SubscriptionCreateParamsAddInvoiceItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionCreateParamsAddInvoiceItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionCreateParamsAddInvoiceItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionCreateParamsAddInvoiceItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionCreateParamsAddInvoiceItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionCreateParamsAddInvoiceItemPeriod(TypedDict):
end: "SubscriptionCreateParamsAddInvoiceItemPeriodEnd"
"""
@@ -346,6 +396,62 @@ class SubscriptionCreateParamsBillingModeFlexible(TypedDict):
"""
+class SubscriptionCreateParamsBillingSchedule(TypedDict):
+ applies_to: NotRequired[
+ List["SubscriptionCreateParamsBillingScheduleAppliesTo"]
+ ]
+ """
+ Configure billing schedule differently for individual subscription items.
+ """
+ bill_until: "SubscriptionCreateParamsBillingScheduleBillUntil"
+ """
+ The end date for the billing schedule.
+ """
+ key: NotRequired[str]
+ """
+ Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
+ """
+
+
+class SubscriptionCreateParamsBillingScheduleAppliesTo(TypedDict):
+ price: NotRequired[str]
+ """
+ The ID of the price object.
+ """
+ type: Literal["price"]
+ """
+ Controls which subscription items the billing schedule applies to.
+ """
+
+
+class SubscriptionCreateParamsBillingScheduleBillUntil(TypedDict):
+ duration: NotRequired[
+ "SubscriptionCreateParamsBillingScheduleBillUntilDuration"
+ ]
+ """
+ Specifies the billing period.
+ """
+ timestamp: NotRequired[int]
+ """
+ The end date of the billing schedule.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
+ """
+
+
+class SubscriptionCreateParamsBillingScheduleBillUntilDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies billing duration. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: NotRequired[int]
+ """
+ The multiplier applied to the interval.
+ """
+
+
class SubscriptionCreateParamsBillingThresholds(TypedDict):
amount_gte: NotRequired[int]
"""
@@ -366,12 +472,44 @@ class SubscriptionCreateParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["SubscriptionCreateParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionCreateParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionCreateParamsDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionCreateParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionCreateParamsInvoiceSettings(TypedDict):
account_tax_ids: NotRequired["Literal['']|List[str]"]
"""
@@ -431,6 +569,10 @@ class SubscriptionCreateParamsItem(TypedDict):
"""
A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
"""
+ trial: NotRequired["SubscriptionCreateParamsItemTrial"]
+ """
+ Define options to configure the trial on the subscription item.
+ """
class SubscriptionCreateParamsItemBillingThresholds(TypedDict):
@@ -449,12 +591,46 @@ class SubscriptionCreateParamsItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionCreateParamsItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionCreateParamsItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionCreateParamsItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionCreateParamsItemDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionCreateParamsItemPriceData(TypedDict):
currency: str
"""
@@ -493,6 +669,17 @@ class SubscriptionCreateParamsItemPriceDataRecurring(TypedDict):
"""
+class SubscriptionCreateParamsItemTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
class SubscriptionCreateParamsPaymentSettings(TypedDict):
payment_method_options: NotRequired[
"SubscriptionCreateParamsPaymentSettingsPaymentMethodOptions"
@@ -501,7 +688,7 @@ class SubscriptionCreateParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to invoices created by the subscription.
"""
payment_method_types: NotRequired[
- "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]"
+ "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
@@ -537,6 +724,12 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
This sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
"""
+ id_bank_transfer: NotRequired[
+ "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer"
+ ]
+ """
+ This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
+ """
konbini: NotRequired[
"Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsKonbini"
]
@@ -549,12 +742,24 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
This sub-hash contains details about the PayTo payment method options to pass to the invoice's PaymentIntent.
"""
+ pix: NotRequired[
+ "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPix"
+ ]
+ """
+ This sub-hash contains details about the Pix payment method options to pass to the invoice's PaymentIntent.
+ """
sepa_debit: NotRequired[
"Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit"
]
"""
This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice's PaymentIntent.
"""
+ upi: NotRequired[
+ "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUpi"
+ ]
+ """
+ This sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
+ """
us_bank_account: NotRequired[
"Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount"
]
@@ -691,6 +896,12 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance
"""
+class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer(
+ TypedDict,
+):
+ pass
+
+
class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsKonbini(
TypedDict,
):
@@ -735,12 +946,78 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOpt
"""
+class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPix(
+ TypedDict
+):
+ mandate_options: NotRequired[
+ "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions"
+ ]
+ """
+ Configuration options for setting up a mandate
+ """
+
+
+class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments. If not provided, defaults to 40000.
+ """
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+ end_date: NotRequired[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled.
+ """
+ payment_schedule: NotRequired[
+ Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"]
+ ]
+ """
+ Schedule at which the future payments will be charged. Defaults to `weekly`.
+ """
+
+
class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit(
TypedDict,
):
pass
+class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUpi(
+ TypedDict
+):
+ mandate_options: NotRequired[
+ "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+
+
class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount(
TypedDict,
):
@@ -776,7 +1053,11 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -790,6 +1071,10 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
class SubscriptionCreateParamsPendingInvoiceItemInterval(TypedDict):
@@ -803,6 +1088,17 @@ class SubscriptionCreateParamsPendingInvoiceItemInterval(TypedDict):
"""
+class SubscriptionCreateParamsPrebilling(TypedDict):
+ iterations: int
+ """
+ This is used to determine the number of billing cycles to prebill.
+ """
+ update_behavior: NotRequired[Literal["prebill", "reset"]]
+ """
+ Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
+ """
+
+
class SubscriptionCreateParamsTransferData(TypedDict):
amount_percent: NotRequired[float]
"""
diff --git a/stripe/params/_subscription_item_create_params.py b/stripe/params/_subscription_item_create_params.py
index 952d15004..42fc65de7 100644
--- a/stripe/params/_subscription_item_create_params.py
+++ b/stripe/params/_subscription_item_create_params.py
@@ -77,6 +77,10 @@ class SubscriptionItemCreateParams(RequestOptions):
"""
A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
"""
+ trial: NotRequired["SubscriptionItemCreateParamsTrial"]
+ """
+ Options that configure the trial on the subscription item.
+ """
class SubscriptionItemCreateParamsBillingThresholds(TypedDict):
@@ -95,12 +99,46 @@ class SubscriptionItemCreateParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionItemCreateParamsDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionItemCreateParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionItemCreateParamsDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionItemCreateParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionItemCreateParamsPriceData(TypedDict):
currency: str
"""
@@ -137,3 +175,14 @@ class SubscriptionItemCreateParamsPriceDataRecurring(TypedDict):
"""
The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
"""
+
+
+class SubscriptionItemCreateParamsTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
diff --git a/stripe/params/_subscription_item_modify_params.py b/stripe/params/_subscription_item_modify_params.py
index 01546a6c0..a0724f78f 100644
--- a/stripe/params/_subscription_item_modify_params.py
+++ b/stripe/params/_subscription_item_modify_params.py
@@ -95,12 +95,46 @@ class SubscriptionItemModifyParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionItemModifyParamsDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionItemModifyParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionItemModifyParamsDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionItemModifyParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionItemModifyParamsPriceData(TypedDict):
currency: str
"""
diff --git a/stripe/params/_subscription_item_update_params.py b/stripe/params/_subscription_item_update_params.py
index 3261b558d..e5dadc505 100644
--- a/stripe/params/_subscription_item_update_params.py
+++ b/stripe/params/_subscription_item_update_params.py
@@ -94,12 +94,46 @@ class SubscriptionItemUpdateParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionItemUpdateParamsDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionItemUpdateParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionItemUpdateParamsDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionItemUpdateParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionItemUpdateParamsPriceData(TypedDict):
currency: str
"""
diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py
index 0891345b0..a21c5e0b0 100644
--- a/stripe/params/_subscription_modify_params.py
+++ b/stripe/params/_subscription_modify_params.py
@@ -20,10 +20,20 @@ class SubscriptionModifyParams(RequestOptions):
"""
Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
"""
+ billing_cadence: NotRequired[str]
+ """
+ The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
+ """
billing_cycle_anchor: NotRequired[Literal["now", "unchanged"]]
"""
Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
+ billing_schedules: NotRequired[
+ "Literal['']|List[SubscriptionModifyParamsBillingSchedule]"
+ ]
+ """
+ Sets the billing schedules for the subscription.
+ """
billing_thresholds: NotRequired[
"Literal['']|SubscriptionModifyParamsBillingThresholds"
]
@@ -135,6 +145,10 @@ class SubscriptionModifyParams(RequestOptions):
"""
Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.
"""
+ prebilling: NotRequired["SubscriptionModifyParamsPrebilling"]
+ """
+ If specified, the invoicing for the given billing cycle iterations will be processed now.
+ """
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
]
@@ -207,12 +221,48 @@ class SubscriptionModifyParamsAddInvoiceItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionModifyParamsAddInvoiceItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionModifyParamsAddInvoiceItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionModifyParamsAddInvoiceItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionModifyParamsAddInvoiceItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionModifyParamsAddInvoiceItemPeriod(TypedDict):
end: "SubscriptionModifyParamsAddInvoiceItemPeriodEnd"
"""
@@ -291,6 +341,62 @@ class SubscriptionModifyParamsAutomaticTaxLiability(TypedDict):
"""
+class SubscriptionModifyParamsBillingSchedule(TypedDict):
+ applies_to: NotRequired[
+ List["SubscriptionModifyParamsBillingScheduleAppliesTo"]
+ ]
+ """
+ Configure billing schedule differently for individual subscription items.
+ """
+ bill_until: NotRequired["SubscriptionModifyParamsBillingScheduleBillUntil"]
+ """
+ The end date for the billing schedule.
+ """
+ key: NotRequired[str]
+ """
+ Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
+ """
+
+
+class SubscriptionModifyParamsBillingScheduleAppliesTo(TypedDict):
+ price: NotRequired[str]
+ """
+ The ID of the price object.
+ """
+ type: Literal["price"]
+ """
+ Controls which subscription items the billing schedule applies to.
+ """
+
+
+class SubscriptionModifyParamsBillingScheduleBillUntil(TypedDict):
+ duration: NotRequired[
+ "SubscriptionModifyParamsBillingScheduleBillUntilDuration"
+ ]
+ """
+ Specifies the billing period.
+ """
+ timestamp: NotRequired[int]
+ """
+ The end date of the billing schedule.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
+ """
+
+
+class SubscriptionModifyParamsBillingScheduleBillUntilDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies billing duration. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: NotRequired[int]
+ """
+ The multiplier applied to the interval.
+ """
+
+
class SubscriptionModifyParamsBillingThresholds(TypedDict):
amount_gte: NotRequired[int]
"""
@@ -324,12 +430,44 @@ class SubscriptionModifyParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["SubscriptionModifyParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionModifyParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionModifyParamsDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionModifyParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionModifyParamsInvoiceSettings(TypedDict):
account_tax_ids: NotRequired["Literal['']|List[str]"]
"""
@@ -419,12 +557,46 @@ class SubscriptionModifyParamsItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionModifyParamsItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionModifyParamsItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionModifyParamsItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionModifyParamsItemDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionModifyParamsItemPriceData(TypedDict):
currency: str
"""
@@ -482,7 +654,7 @@ class SubscriptionModifyParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to invoices created by the subscription.
"""
payment_method_types: NotRequired[
- "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]"
+ "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
@@ -518,6 +690,12 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
This sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
"""
+ id_bank_transfer: NotRequired[
+ "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer"
+ ]
+ """
+ This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
+ """
konbini: NotRequired[
"Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsKonbini"
]
@@ -530,12 +708,24 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
This sub-hash contains details about the PayTo payment method options to pass to the invoice's PaymentIntent.
"""
+ pix: NotRequired[
+ "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPix"
+ ]
+ """
+ This sub-hash contains details about the Pix payment method options to pass to the invoice's PaymentIntent.
+ """
sepa_debit: NotRequired[
"Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit"
]
"""
This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice's PaymentIntent.
"""
+ upi: NotRequired[
+ "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUpi"
+ ]
+ """
+ This sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
+ """
us_bank_account: NotRequired[
"Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount"
]
@@ -672,6 +862,12 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance
"""
+class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer(
+ TypedDict,
+):
+ pass
+
+
class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsKonbini(
TypedDict,
):
@@ -716,12 +912,78 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOpt
"""
+class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPix(
+ TypedDict
+):
+ mandate_options: NotRequired[
+ "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions"
+ ]
+ """
+ Configuration options for setting up a mandate
+ """
+
+
+class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments. If not provided, defaults to 40000.
+ """
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+ end_date: NotRequired[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled.
+ """
+ payment_schedule: NotRequired[
+ Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"]
+ ]
+ """
+ Schedule at which the future payments will be charged. Defaults to `weekly`.
+ """
+
+
class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit(
TypedDict,
):
pass
+class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUpi(
+ TypedDict
+):
+ mandate_options: NotRequired[
+ "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+
+
class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount(
TypedDict,
):
@@ -757,7 +1019,11 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -771,6 +1037,10 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
class SubscriptionModifyParamsPendingInvoiceItemInterval(TypedDict):
@@ -784,6 +1054,17 @@ class SubscriptionModifyParamsPendingInvoiceItemInterval(TypedDict):
"""
+class SubscriptionModifyParamsPrebilling(TypedDict):
+ iterations: int
+ """
+ This is used to determine the number of billing cycles to prebill.
+ """
+ update_behavior: NotRequired[Literal["prebill", "reset"]]
+ """
+ Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
+ """
+
+
class SubscriptionModifyParamsTransferData(TypedDict):
amount_percent: NotRequired[float]
"""
diff --git a/stripe/params/_subscription_schedule_amend_params.py b/stripe/params/_subscription_schedule_amend_params.py
new file mode 100644
index 000000000..3c0e7032f
--- /dev/null
+++ b/stripe/params/_subscription_schedule_amend_params.py
@@ -0,0 +1,654 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class SubscriptionScheduleAmendParams(RequestOptions):
+ amendments: NotRequired[List["SubscriptionScheduleAmendParamsAmendment"]]
+ """
+ Changes to apply to the phases of the subscription schedule, in the order provided.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ prebilling: NotRequired[
+ "Literal['']|List[SubscriptionScheduleAmendParamsPrebilling]"
+ ]
+ """
+ Provide any time periods to bill in advance.
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ In cases where the amendment changes the currently active phase,
+ specifies if and how to prorate at the time of the request.
+ """
+ schedule_settings: NotRequired[
+ "SubscriptionScheduleAmendParamsScheduleSettings"
+ ]
+ """
+ Changes to apply to the subscription schedule.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendment(TypedDict):
+ amendment_end: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentAmendmentEnd"
+ ]
+ """
+ Details to identify the end of the time range modified by the proposed change. If not supplied, the amendment is considered a point-in-time operation that only affects the exact timestamp at `amendment_start`, and a restricted set of attributes is supported on the amendment.
+ """
+ amendment_start: "SubscriptionScheduleAmendParamsAmendmentAmendmentStart"
+ """
+ Details to identify the earliest timestamp where the proposed change should take effect.
+ """
+ billing_cycle_anchor: NotRequired[Literal["amendment_start", "automatic"]]
+ """
+ For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
+ """
+ discount_actions: NotRequired[
+ List["SubscriptionScheduleAmendParamsAmendmentDiscountAction"]
+ ]
+ """
+ Changes to the coupons being redeemed or discounts being applied during the amendment time span.
+ """
+ item_actions: NotRequired[
+ List["SubscriptionScheduleAmendParamsAmendmentItemAction"]
+ ]
+ """
+ Changes to the subscription items during the amendment time span.
+ """
+ metadata_actions: NotRequired[
+ List["SubscriptionScheduleAmendParamsAmendmentMetadataAction"]
+ ]
+ """
+ Instructions for how to modify phase metadata
+ """
+ proration_behavior: NotRequired[
+ Literal["always_invoice", "create_prorations", "none"]
+ ]
+ """
+ Changes to how Stripe handles prorations during the amendment time span. Affects if and how prorations are created when a future phase starts. In cases where the amendment changes the currently active phase, it is used to determine whether or how to prorate now, at the time of the request. Also supported as a point-in-time operation when `amendment_end` is `null`.
+ """
+ set_pause_collection: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentSetPauseCollection"
+ ]
+ """
+ Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
+ """
+ set_schedule_end: NotRequired[Literal["amendment_end", "amendment_start"]]
+ """
+ Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
+ """
+ trial_settings: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentTrialSettings"
+ ]
+ """
+ Settings related to subscription trials.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentAmendmentEnd(TypedDict):
+ discount_end: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentAmendmentEndDiscountEnd"
+ ]
+ """
+ Use the `end` time of a given discount.
+ """
+ duration: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentAmendmentEndDuration"
+ ]
+ """
+ Time span for the amendment starting from the `amendment_start`.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
+ """
+ type: Literal[
+ "discount_end",
+ "duration",
+ "schedule_end",
+ "timestamp",
+ "trial_end",
+ "trial_start",
+ "upcoming_invoice",
+ ]
+ """
+ Select one of three ways to pass the `amendment_end`.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentAmendmentEndDiscountEnd(
+ TypedDict,
+):
+ discount: str
+ """
+ The ID of a specific discount.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentAmendmentEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentAmendmentStart(TypedDict):
+ amendment_end: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentAmendmentStartAmendmentEnd"
+ ]
+ """
+ Details of another amendment in the same array, immediately after which this amendment should begin.
+ """
+ discount_end: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentAmendmentStartDiscountEnd"
+ ]
+ """
+ Use the `end` time of a given discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the amendment to start.
+ """
+ type: Literal[
+ "amendment_end",
+ "discount_end",
+ "now",
+ "schedule_end",
+ "timestamp",
+ "trial_end",
+ "trial_start",
+ "upcoming_invoice",
+ ]
+ """
+ Select one of three ways to pass the `amendment_start`.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentAmendmentStartAmendmentEnd(
+ TypedDict,
+):
+ index: int
+ """
+ The position of the previous amendment in the `amendments` array after which this amendment should begin. Indexes start from 0 and must be less than the index of the current amendment in the array.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentAmendmentStartDiscountEnd(
+ TypedDict,
+):
+ discount: str
+ """
+ The ID of a specific discount.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentDiscountAction(TypedDict):
+ add: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentDiscountActionAdd"
+ ]
+ """
+ Details of the discount to add.
+ """
+ remove: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentDiscountActionRemove"
+ ]
+ """
+ Details of the discount to remove.
+ """
+ set: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentDiscountActionSet"
+ ]
+ """
+ Details of the discount to replace the existing discounts with.
+ """
+ type: Literal["add", "remove", "set"]
+ """
+ Determines the type of discount action.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentDiscountActionAdd(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The coupon code to redeem.
+ """
+ discount: NotRequired[str]
+ """
+ An ID of an existing discount for a coupon that was already redeemed.
+ """
+ discount_end: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentDiscountActionAddDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ index: NotRequired[int]
+ """
+ The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
+ """
+ promotion_code: NotRequired[str]
+ """
+ The promotion code to redeem.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentDiscountActionAddDiscountEnd(
+ TypedDict,
+):
+ type: Literal["amendment_end"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentDiscountActionRemove(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The coupon code to remove from the `discounts` array.
+ """
+ discount: NotRequired[str]
+ """
+ The ID of a discount to remove from the `discounts` array.
+ """
+ promotion_code: NotRequired[str]
+ """
+ The ID of a promotion code to remove from the `discounts` array.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentDiscountActionSet(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The coupon code to replace the `discounts` array with.
+ """
+ discount: NotRequired[str]
+ """
+ An ID of an existing discount to replace the `discounts` array with.
+ """
+ promotion_code: NotRequired[str]
+ """
+ An ID of an existing promotion code to replace the `discounts` array with.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentItemAction(TypedDict):
+ add: NotRequired["SubscriptionScheduleAmendParamsAmendmentItemActionAdd"]
+ """
+ Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item.
+ """
+ remove: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentItemActionRemove"
+ ]
+ """
+ Details of the subscription item to remove.
+ """
+ set: NotRequired["SubscriptionScheduleAmendParamsAmendmentItemActionSet"]
+ """
+ Details of the subscription item to replace the existing items with. If an item with the `set[price]` already exists, the `items` array is not cleared. Instead, all of the other `set` properties that are passed in this request will replace the existing values for the configuration item.
+ """
+ type: Literal["add", "remove", "set"]
+ """
+ Determines the type of item action.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentItemActionAdd(TypedDict):
+ discounts: NotRequired[
+ List["SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscount"]
+ ]
+ """
+ The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ price: str
+ """
+ The ID of the price object.
+ """
+ quantity: NotRequired[int]
+ """
+ Quantity for this item.
+ """
+ tax_rates: NotRequired[List[str]]
+ """
+ The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
+ """
+ trial: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentItemActionAddTrial"
+ ]
+ """
+ Options that configure the trial on the subscription item.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscountDiscountEnd(
+ TypedDict,
+):
+ duration: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentItemActionAddDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentItemActionAddTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentItemActionRemove(TypedDict):
+ price: str
+ """
+ ID of a price to remove.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentItemActionSet(TypedDict):
+ discounts: NotRequired[
+ List["SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscount"]
+ ]
+ """
+ If an item with the `price` already exists, passing this will override the `discounts` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `discounts`.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
+ """
+ price: str
+ """
+ The ID of the price object.
+ """
+ quantity: NotRequired[int]
+ """
+ If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
+ """
+ tax_rates: NotRequired[List[str]]
+ """
+ If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
+ """
+ trial: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentItemActionSetTrial"
+ ]
+ """
+ If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ ID of the coupon to create a new discount for.
+ """
+ discount: NotRequired[str]
+ """
+ ID of an existing discount on the object (or one of its ancestors) to reuse.
+ """
+ discount_end: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
+ promotion_code: NotRequired[str]
+ """
+ ID of the promotion code to create a new discount for.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscountDiscountEnd(
+ TypedDict,
+):
+ duration: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentItemActionSetDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentItemActionSetTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentMetadataAction(TypedDict):
+ add: NotRequired[Dict[str, str]]
+ """
+ Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
+ """
+ remove: NotRequired[List[str]]
+ """
+ Keys to remove from schedule phase metadata.
+ """
+ set: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
+ """
+ type: Literal["add", "remove", "set"]
+ """
+ Select one of three ways to update phase-level `metadata` on subscription schedules.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentSetPauseCollection(TypedDict):
+ set: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentSetPauseCollectionSet"
+ ]
+ """
+ Details of the pause_collection behavior to apply to the amendment.
+ """
+ type: Literal["remove", "set"]
+ """
+ Determines the type of the pause_collection amendment.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentSetPauseCollectionSet(TypedDict):
+ behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentTrialSettings(TypedDict):
+ end_behavior: NotRequired[
+ "SubscriptionScheduleAmendParamsAmendmentTrialSettingsEndBehavior"
+ ]
+ """
+ Defines how the subscription should behave when a trial ends.
+ """
+
+
+class SubscriptionScheduleAmendParamsAmendmentTrialSettingsEndBehavior(
+ TypedDict,
+):
+ prorate_up_front: NotRequired[Literal["defer", "include"]]
+ """
+ Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
+ """
+
+
+class SubscriptionScheduleAmendParamsPrebilling(TypedDict):
+ bill_from: NotRequired["SubscriptionScheduleAmendParamsPrebillingBillFrom"]
+ """
+ The beginning of the prebilled time period. The default value is `now`.
+ """
+ bill_until: NotRequired[
+ "SubscriptionScheduleAmendParamsPrebillingBillUntil"
+ ]
+ """
+ The end of the prebilled time period.
+ """
+ invoice_at: NotRequired[Literal["now"]]
+ """
+ When the prebilling invoice should be created. The default value is `now`.
+ """
+ update_behavior: NotRequired[Literal["prebill", "reset"]]
+ """
+ Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
+ """
+
+
+class SubscriptionScheduleAmendParamsPrebillingBillFrom(TypedDict):
+ amendment_start: NotRequired[
+ "SubscriptionScheduleAmendParamsPrebillingBillFromAmendmentStart"
+ ]
+ """
+ Start the prebilled period when a specified amendment begins.
+ """
+ timestamp: NotRequired[int]
+ """
+ Start the prebilled period at a precise integer timestamp, starting from the Unix epoch.
+ """
+ type: Literal["amendment_start", "now", "timestamp"]
+ """
+ Select one of several ways to pass the `bill_from` value.
+ """
+
+
+class SubscriptionScheduleAmendParamsPrebillingBillFromAmendmentStart(
+ TypedDict,
+):
+ index: int
+ """
+ The position of the amendment in the `amendments` array with which prebilling should begin. Indexes start from 0 and must be less than the total number of supplied amendments.
+ """
+
+
+class SubscriptionScheduleAmendParamsPrebillingBillUntil(TypedDict):
+ amendment_end: NotRequired[
+ "SubscriptionScheduleAmendParamsPrebillingBillUntilAmendmentEnd"
+ ]
+ """
+ End the prebilled period when a specified amendment ends.
+ """
+ duration: NotRequired[
+ "SubscriptionScheduleAmendParamsPrebillingBillUntilDuration"
+ ]
+ """
+ Time span for prebilling, starting from `bill_from`.
+ """
+ timestamp: NotRequired[int]
+ """
+ End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
+ """
+ type: Literal["amendment_end", "duration", "schedule_end", "timestamp"]
+ """
+ Select one of several ways to pass the `bill_until` value.
+ """
+
+
+class SubscriptionScheduleAmendParamsPrebillingBillUntilAmendmentEnd(
+ TypedDict
+):
+ index: int
+ """
+ The position of the amendment in the `amendments` array at which prebilling should end. Indexes start from 0 and must be less than the total number of supplied amendments.
+ """
+
+
+class SubscriptionScheduleAmendParamsPrebillingBillUntilDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
+class SubscriptionScheduleAmendParamsScheduleSettings(TypedDict):
+ end_behavior: NotRequired[Literal["cancel", "release"]]
+ """
+ Behavior of the subscription schedule and underlying subscription when it ends.
+ """
diff --git a/stripe/params/_subscription_schedule_create_params.py b/stripe/params/_subscription_schedule_create_params.py
index 48a8b9a5d..486d645ee 100644
--- a/stripe/params/_subscription_schedule_create_params.py
+++ b/stripe/params/_subscription_schedule_create_params.py
@@ -6,6 +6,12 @@
class SubscriptionScheduleCreateParams(RequestOptions):
+ billing_behavior: NotRequired[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
billing_mode: NotRequired["SubscriptionScheduleCreateParamsBillingMode"]
"""
Controls how prorations and invoices for subscriptions are calculated and orchestrated.
@@ -44,6 +50,10 @@ class SubscriptionScheduleCreateParams(RequestOptions):
"""
List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
"""
+ prebilling: NotRequired["SubscriptionScheduleCreateParamsPrebilling"]
+ """
+ If specified, the invoicing for the given billing cycle iterations will be processed now.
+ """
start_date: NotRequired["int|Literal['now']"]
"""
When the subscription schedule starts. We recommend using `now` so that it starts the subscription immediately. You can also use a Unix timestamp to backdate the subscription so that it starts on a past date, or set a future date for the subscription to start on.
@@ -286,6 +296,12 @@ class SubscriptionScheduleCreateParamsPhase(TypedDict):
"""
The account on behalf of which to charge, for each of the associated subscription's invoices.
"""
+ pause_collection: NotRequired[
+ "SubscriptionScheduleCreateParamsPhasePauseCollection"
+ ]
+ """
+ If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
+ """
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
]
@@ -302,10 +318,20 @@ class SubscriptionScheduleCreateParamsPhase(TypedDict):
"""
If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
"""
+ trial_continuation: NotRequired[Literal["continue", "none"]]
+ """
+ Specify trial behavior when crossing phase boundaries
+ """
trial_end: NotRequired[int]
"""
Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
"""
+ trial_settings: NotRequired[
+ "SubscriptionScheduleCreateParamsPhaseTrialSettings"
+ ]
+ """
+ Settings related to subscription trials.
+ """
class SubscriptionScheduleCreateParamsPhaseAddInvoiceItem(TypedDict):
@@ -354,12 +380,50 @@ class SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscountDiscountEnd(
+ TypedDict,
+):
+ duration: NotRequired[
+ "SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionScheduleCreateParamsPhaseAddInvoiceItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionScheduleCreateParamsPhaseAddInvoiceItemPeriod(TypedDict):
end: "SubscriptionScheduleCreateParamsPhaseAddInvoiceItemPeriodEnd"
"""
@@ -462,12 +526,48 @@ class SubscriptionScheduleCreateParamsPhaseDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionScheduleCreateParamsPhaseDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionScheduleCreateParamsPhaseDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionScheduleCreateParamsPhaseDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionScheduleCreateParamsPhaseDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionScheduleCreateParamsPhaseDuration(TypedDict):
interval: Literal["day", "month", "week", "year"]
"""
@@ -546,6 +646,10 @@ class SubscriptionScheduleCreateParamsPhaseItem(TypedDict):
"""
A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
"""
+ trial: NotRequired["SubscriptionScheduleCreateParamsPhaseItemTrial"]
+ """
+ Options that configure the trial on the subscription item.
+ """
class SubscriptionScheduleCreateParamsPhaseItemBillingThresholds(TypedDict):
@@ -564,12 +668,48 @@ class SubscriptionScheduleCreateParamsPhaseItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionScheduleCreateParamsPhaseItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionScheduleCreateParamsPhaseItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionScheduleCreateParamsPhaseItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionScheduleCreateParamsPhaseItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionScheduleCreateParamsPhaseItemPriceData(TypedDict):
currency: str
"""
@@ -608,6 +748,24 @@ class SubscriptionScheduleCreateParamsPhaseItemPriceDataRecurring(TypedDict):
"""
+class SubscriptionScheduleCreateParamsPhaseItemTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class SubscriptionScheduleCreateParamsPhasePauseCollection(TypedDict):
+ behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+
+
class SubscriptionScheduleCreateParamsPhaseTransferData(TypedDict):
amount_percent: NotRequired[float]
"""
@@ -617,3 +775,30 @@ class SubscriptionScheduleCreateParamsPhaseTransferData(TypedDict):
"""
ID of an existing, connected Stripe account.
"""
+
+
+class SubscriptionScheduleCreateParamsPhaseTrialSettings(TypedDict):
+ end_behavior: NotRequired[
+ "SubscriptionScheduleCreateParamsPhaseTrialSettingsEndBehavior"
+ ]
+ """
+ Defines how the subscription should behave when a trial ends.
+ """
+
+
+class SubscriptionScheduleCreateParamsPhaseTrialSettingsEndBehavior(TypedDict):
+ prorate_up_front: NotRequired[Literal["defer", "include"]]
+ """
+ Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
+ """
+
+
+class SubscriptionScheduleCreateParamsPrebilling(TypedDict):
+ iterations: int
+ """
+ This is used to determine the number of billing cycles to prebill.
+ """
+ update_behavior: NotRequired[Literal["prebill", "reset"]]
+ """
+ Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
+ """
diff --git a/stripe/params/_subscription_schedule_modify_params.py b/stripe/params/_subscription_schedule_modify_params.py
index e47484ff5..95582da3e 100644
--- a/stripe/params/_subscription_schedule_modify_params.py
+++ b/stripe/params/_subscription_schedule_modify_params.py
@@ -6,6 +6,12 @@
class SubscriptionScheduleModifyParams(RequestOptions):
+ billing_behavior: NotRequired[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
default_settings: NotRequired[
"SubscriptionScheduleModifyParamsDefaultSettings"
]
@@ -28,6 +34,10 @@ class SubscriptionScheduleModifyParams(RequestOptions):
"""
List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
"""
+ prebilling: NotRequired["SubscriptionScheduleModifyParamsPrebilling"]
+ """
+ If specified, the invoicing for the given billing cycle iterations will be processed now.
+ """
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
]
@@ -252,6 +262,12 @@ class SubscriptionScheduleModifyParamsPhase(TypedDict):
"""
The account on behalf of which to charge, for each of the associated subscription's invoices.
"""
+ pause_collection: NotRequired[
+ "SubscriptionScheduleModifyParamsPhasePauseCollection"
+ ]
+ """
+ If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
+ """
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
]
@@ -272,10 +288,20 @@ class SubscriptionScheduleModifyParamsPhase(TypedDict):
"""
If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
"""
+ trial_continuation: NotRequired[Literal["continue", "none"]]
+ """
+ Specify trial behavior when crossing phase boundaries
+ """
trial_end: NotRequired["int|Literal['now']"]
"""
Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
"""
+ trial_settings: NotRequired[
+ "SubscriptionScheduleModifyParamsPhaseTrialSettings"
+ ]
+ """
+ Settings related to subscription trials.
+ """
class SubscriptionScheduleModifyParamsPhaseAddInvoiceItem(TypedDict):
@@ -324,12 +350,50 @@ class SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscountDiscountEnd(
+ TypedDict,
+):
+ duration: NotRequired[
+ "SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionScheduleModifyParamsPhaseAddInvoiceItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriod(TypedDict):
end: "SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPeriodEnd"
"""
@@ -432,12 +496,48 @@ class SubscriptionScheduleModifyParamsPhaseDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionScheduleModifyParamsPhaseDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionScheduleModifyParamsPhaseDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionScheduleModifyParamsPhaseDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionScheduleModifyParamsPhaseDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionScheduleModifyParamsPhaseDuration(TypedDict):
interval: Literal["day", "month", "week", "year"]
"""
@@ -516,6 +616,10 @@ class SubscriptionScheduleModifyParamsPhaseItem(TypedDict):
"""
A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
"""
+ trial: NotRequired["SubscriptionScheduleModifyParamsPhaseItemTrial"]
+ """
+ Options that configure the trial on the subscription item.
+ """
class SubscriptionScheduleModifyParamsPhaseItemBillingThresholds(TypedDict):
@@ -534,12 +638,48 @@ class SubscriptionScheduleModifyParamsPhaseItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionScheduleModifyParamsPhaseItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionScheduleModifyParamsPhaseItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionScheduleModifyParamsPhaseItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionScheduleModifyParamsPhaseItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionScheduleModifyParamsPhaseItemPriceData(TypedDict):
currency: str
"""
@@ -578,6 +718,24 @@ class SubscriptionScheduleModifyParamsPhaseItemPriceDataRecurring(TypedDict):
"""
+class SubscriptionScheduleModifyParamsPhaseItemTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class SubscriptionScheduleModifyParamsPhasePauseCollection(TypedDict):
+ behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+
+
class SubscriptionScheduleModifyParamsPhaseTransferData(TypedDict):
amount_percent: NotRequired[float]
"""
@@ -587,3 +745,30 @@ class SubscriptionScheduleModifyParamsPhaseTransferData(TypedDict):
"""
ID of an existing, connected Stripe account.
"""
+
+
+class SubscriptionScheduleModifyParamsPhaseTrialSettings(TypedDict):
+ end_behavior: NotRequired[
+ "SubscriptionScheduleModifyParamsPhaseTrialSettingsEndBehavior"
+ ]
+ """
+ Defines how the subscription should behave when a trial ends.
+ """
+
+
+class SubscriptionScheduleModifyParamsPhaseTrialSettingsEndBehavior(TypedDict):
+ prorate_up_front: NotRequired[Literal["defer", "include"]]
+ """
+ Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
+ """
+
+
+class SubscriptionScheduleModifyParamsPrebilling(TypedDict):
+ iterations: int
+ """
+ This is used to determine the number of billing cycles to prebill.
+ """
+ update_behavior: NotRequired[Literal["prebill", "reset"]]
+ """
+ Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
+ """
diff --git a/stripe/params/_subscription_schedule_update_params.py b/stripe/params/_subscription_schedule_update_params.py
index 4427a0bbf..cb7a2eb66 100644
--- a/stripe/params/_subscription_schedule_update_params.py
+++ b/stripe/params/_subscription_schedule_update_params.py
@@ -5,6 +5,12 @@
class SubscriptionScheduleUpdateParams(TypedDict):
+ billing_behavior: NotRequired[
+ Literal["prorate_on_next_phase", "prorate_up_front"]
+ ]
+ """
+ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
+ """
default_settings: NotRequired[
"SubscriptionScheduleUpdateParamsDefaultSettings"
]
@@ -27,6 +33,10 @@ class SubscriptionScheduleUpdateParams(TypedDict):
"""
List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
"""
+ prebilling: NotRequired["SubscriptionScheduleUpdateParamsPrebilling"]
+ """
+ If specified, the invoicing for the given billing cycle iterations will be processed now.
+ """
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
]
@@ -251,6 +261,12 @@ class SubscriptionScheduleUpdateParamsPhase(TypedDict):
"""
The account on behalf of which to charge, for each of the associated subscription's invoices.
"""
+ pause_collection: NotRequired[
+ "SubscriptionScheduleUpdateParamsPhasePauseCollection"
+ ]
+ """
+ If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
+ """
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
]
@@ -271,10 +287,20 @@ class SubscriptionScheduleUpdateParamsPhase(TypedDict):
"""
If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
"""
+ trial_continuation: NotRequired[Literal["continue", "none"]]
+ """
+ Specify trial behavior when crossing phase boundaries
+ """
trial_end: NotRequired["int|Literal['now']"]
"""
Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
"""
+ trial_settings: NotRequired[
+ "SubscriptionScheduleUpdateParamsPhaseTrialSettings"
+ ]
+ """
+ Settings related to subscription trials.
+ """
class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItem(TypedDict):
@@ -323,12 +349,50 @@ class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscountDiscountEnd(
+ TypedDict,
+):
+ duration: NotRequired[
+ "SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriod(TypedDict):
end: "SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPeriodEnd"
"""
@@ -431,12 +495,48 @@ class SubscriptionScheduleUpdateParamsPhaseDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionScheduleUpdateParamsPhaseDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionScheduleUpdateParamsPhaseDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionScheduleUpdateParamsPhaseDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionScheduleUpdateParamsPhaseDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionScheduleUpdateParamsPhaseDuration(TypedDict):
interval: Literal["day", "month", "week", "year"]
"""
@@ -515,6 +615,10 @@ class SubscriptionScheduleUpdateParamsPhaseItem(TypedDict):
"""
A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
"""
+ trial: NotRequired["SubscriptionScheduleUpdateParamsPhaseItemTrial"]
+ """
+ Options that configure the trial on the subscription item.
+ """
class SubscriptionScheduleUpdateParamsPhaseItemBillingThresholds(TypedDict):
@@ -533,12 +637,48 @@ class SubscriptionScheduleUpdateParamsPhaseItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionScheduleUpdateParamsPhaseItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionScheduleUpdateParamsPhaseItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionScheduleUpdateParamsPhaseItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionScheduleUpdateParamsPhaseItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionScheduleUpdateParamsPhaseItemPriceData(TypedDict):
currency: str
"""
@@ -577,6 +717,24 @@ class SubscriptionScheduleUpdateParamsPhaseItemPriceDataRecurring(TypedDict):
"""
+class SubscriptionScheduleUpdateParamsPhaseItemTrial(TypedDict):
+ converts_to: NotRequired[List[str]]
+ """
+ List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
+ """
+ type: Literal["free", "paid"]
+ """
+ Determines the type of trial for this item.
+ """
+
+
+class SubscriptionScheduleUpdateParamsPhasePauseCollection(TypedDict):
+ behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ """
+ The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
+ """
+
+
class SubscriptionScheduleUpdateParamsPhaseTransferData(TypedDict):
amount_percent: NotRequired[float]
"""
@@ -586,3 +744,30 @@ class SubscriptionScheduleUpdateParamsPhaseTransferData(TypedDict):
"""
ID of an existing, connected Stripe account.
"""
+
+
+class SubscriptionScheduleUpdateParamsPhaseTrialSettings(TypedDict):
+ end_behavior: NotRequired[
+ "SubscriptionScheduleUpdateParamsPhaseTrialSettingsEndBehavior"
+ ]
+ """
+ Defines how the subscription should behave when a trial ends.
+ """
+
+
+class SubscriptionScheduleUpdateParamsPhaseTrialSettingsEndBehavior(TypedDict):
+ prorate_up_front: NotRequired[Literal["defer", "include"]]
+ """
+ Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
+ """
+
+
+class SubscriptionScheduleUpdateParamsPrebilling(TypedDict):
+ iterations: int
+ """
+ This is used to determine the number of billing cycles to prebill.
+ """
+ update_behavior: NotRequired[Literal["prebill", "reset"]]
+ """
+ Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
+ """
diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py
index 3fe0aeecf..c3c555e3b 100644
--- a/stripe/params/_subscription_update_params.py
+++ b/stripe/params/_subscription_update_params.py
@@ -19,10 +19,20 @@ class SubscriptionUpdateParams(TypedDict):
"""
Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
"""
+ billing_cadence: NotRequired[str]
+ """
+ The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
+ """
billing_cycle_anchor: NotRequired[Literal["now", "unchanged"]]
"""
Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
+ billing_schedules: NotRequired[
+ "Literal['']|List[SubscriptionUpdateParamsBillingSchedule]"
+ ]
+ """
+ Sets the billing schedules for the subscription.
+ """
billing_thresholds: NotRequired[
"Literal['']|SubscriptionUpdateParamsBillingThresholds"
]
@@ -134,6 +144,10 @@ class SubscriptionUpdateParams(TypedDict):
"""
Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.
"""
+ prebilling: NotRequired["SubscriptionUpdateParamsPrebilling"]
+ """
+ If specified, the invoicing for the given billing cycle iterations will be processed now.
+ """
proration_behavior: NotRequired[
Literal["always_invoice", "create_prorations", "none"]
]
@@ -206,12 +220,48 @@ class SubscriptionUpdateParamsAddInvoiceItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionUpdateParamsAddInvoiceItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionUpdateParamsAddInvoiceItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionUpdateParamsAddInvoiceItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionUpdateParamsAddInvoiceItemDiscountDiscountEndDuration(
+ TypedDict,
+):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionUpdateParamsAddInvoiceItemPeriod(TypedDict):
end: "SubscriptionUpdateParamsAddInvoiceItemPeriodEnd"
"""
@@ -290,6 +340,62 @@ class SubscriptionUpdateParamsAutomaticTaxLiability(TypedDict):
"""
+class SubscriptionUpdateParamsBillingSchedule(TypedDict):
+ applies_to: NotRequired[
+ List["SubscriptionUpdateParamsBillingScheduleAppliesTo"]
+ ]
+ """
+ Configure billing schedule differently for individual subscription items.
+ """
+ bill_until: NotRequired["SubscriptionUpdateParamsBillingScheduleBillUntil"]
+ """
+ The end date for the billing schedule.
+ """
+ key: NotRequired[str]
+ """
+ Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
+ """
+
+
+class SubscriptionUpdateParamsBillingScheduleAppliesTo(TypedDict):
+ price: NotRequired[str]
+ """
+ The ID of the price object.
+ """
+ type: Literal["price"]
+ """
+ Controls which subscription items the billing schedule applies to.
+ """
+
+
+class SubscriptionUpdateParamsBillingScheduleBillUntil(TypedDict):
+ duration: NotRequired[
+ "SubscriptionUpdateParamsBillingScheduleBillUntilDuration"
+ ]
+ """
+ Specifies the billing period.
+ """
+ timestamp: NotRequired[int]
+ """
+ The end date of the billing schedule.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
+ """
+
+
+class SubscriptionUpdateParamsBillingScheduleBillUntilDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies billing duration. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: NotRequired[int]
+ """
+ The multiplier applied to the interval.
+ """
+
+
class SubscriptionUpdateParamsBillingThresholds(TypedDict):
amount_gte: NotRequired[int]
"""
@@ -323,12 +429,44 @@ class SubscriptionUpdateParamsDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired["SubscriptionUpdateParamsDiscountDiscountEnd"]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionUpdateParamsDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionUpdateParamsDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionUpdateParamsDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionUpdateParamsInvoiceSettings(TypedDict):
account_tax_ids: NotRequired["Literal['']|List[str]"]
"""
@@ -418,12 +556,46 @@ class SubscriptionUpdateParamsItemDiscount(TypedDict):
"""
ID of an existing discount on the object (or one of its ancestors) to reuse.
"""
+ discount_end: NotRequired[
+ "SubscriptionUpdateParamsItemDiscountDiscountEnd"
+ ]
+ """
+ Details to determine how long the discount should be applied for.
+ """
promotion_code: NotRequired[str]
"""
ID of the promotion code to create a new discount for.
"""
+class SubscriptionUpdateParamsItemDiscountDiscountEnd(TypedDict):
+ duration: NotRequired[
+ "SubscriptionUpdateParamsItemDiscountDiscountEndDuration"
+ ]
+ """
+ Time span for the redeemed discount.
+ """
+ timestamp: NotRequired[int]
+ """
+ A precise Unix timestamp for the discount to end. Must be in the future.
+ """
+ type: Literal["duration", "timestamp"]
+ """
+ The type of calculation made to determine when the discount ends.
+ """
+
+
+class SubscriptionUpdateParamsItemDiscountDiscountEndDuration(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
+ """
+ interval_count: int
+ """
+ The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
+ """
+
+
class SubscriptionUpdateParamsItemPriceData(TypedDict):
currency: str
"""
@@ -481,7 +653,7 @@ class SubscriptionUpdateParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to invoices created by the subscription.
"""
payment_method_types: NotRequired[
- "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]"
+ "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay']]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
@@ -517,6 +689,12 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
This sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
"""
+ id_bank_transfer: NotRequired[
+ "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer"
+ ]
+ """
+ This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
+ """
konbini: NotRequired[
"Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini"
]
@@ -529,12 +707,24 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
This sub-hash contains details about the PayTo payment method options to pass to the invoice's PaymentIntent.
"""
+ pix: NotRequired[
+ "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPix"
+ ]
+ """
+ This sub-hash contains details about the Pix payment method options to pass to the invoice's PaymentIntent.
+ """
sepa_debit: NotRequired[
"Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit"
]
"""
This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice's PaymentIntent.
"""
+ upi: NotRequired[
+ "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUpi"
+ ]
+ """
+ This sub-hash contains details about the UPI payment method options to pass to the invoice's PaymentIntent.
+ """
us_bank_account: NotRequired[
"Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount"
]
@@ -671,6 +861,12 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance
"""
+class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsIdBankTransfer(
+ TypedDict,
+):
+ pass
+
+
class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini(
TypedDict,
):
@@ -715,12 +911,78 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOpt
"""
+class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPix(
+ TypedDict
+):
+ mandate_options: NotRequired[
+ "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions"
+ ]
+ """
+ Configuration options for setting up a mandate
+ """
+
+
+class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsPixMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments. If not provided, defaults to 40000.
+ """
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+ end_date: NotRequired[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled.
+ """
+ payment_schedule: NotRequired[
+ Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"]
+ ]
+ """
+ Schedule at which the future payments will be charged. Defaults to `weekly`.
+ """
+
+
class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit(
TypedDict,
):
pass
+class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUpi(
+ TypedDict
+):
+ mandate_options: NotRequired[
+ "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate
+ """
+
+
+class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUpiMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate or subscription that is meant to be displayed to the customer.
+ """
+ end_date: NotRequired[int]
+ """
+ End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+
+
class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount(
TypedDict,
):
@@ -756,7 +1018,11 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -770,6 +1036,10 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
+ institution: NotRequired[str]
+ """
+ ID of the institution to use to filter for selectable accounts.
+ """
class SubscriptionUpdateParamsPendingInvoiceItemInterval(TypedDict):
@@ -783,6 +1053,17 @@ class SubscriptionUpdateParamsPendingInvoiceItemInterval(TypedDict):
"""
+class SubscriptionUpdateParamsPrebilling(TypedDict):
+ iterations: int
+ """
+ This is used to determine the number of billing cycles to prebill.
+ """
+ update_behavior: NotRequired[Literal["prebill", "reset"]]
+ """
+ Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
+ """
+
+
class SubscriptionUpdateParamsTransferData(TypedDict):
amount_percent: NotRequired[float]
"""
diff --git a/stripe/params/_transfer_create_params.py b/stripe/params/_transfer_create_params.py
index 95dea8f91..08c8f56dc 100644
--- a/stripe/params/_transfer_create_params.py
+++ b/stripe/params/_transfer_create_params.py
@@ -26,6 +26,10 @@ class TransferCreateParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
+ fx_quote: NotRequired[str]
+ """
+ The FX rate in the quote is validated and used to convert the transfer amount to the destination currency.
+ """
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py
index 2b49034a0..9837a49d8 100644
--- a/stripe/params/_webhook_endpoint_create_params.py
+++ b/stripe/params/_webhook_endpoint_create_params.py
@@ -150,6 +150,8 @@ class WebhookEndpointCreateParams(RequestOptions):
"account.external_account.deleted",
"account.external_account.updated",
"account.updated",
+ "account_notice.created",
+ "account_notice.updated",
"application_fee.created",
"application_fee.refund.updated",
"application_fee.refunded",
@@ -160,6 +162,16 @@ class WebhookEndpointCreateParams(RequestOptions):
"billing_portal.configuration.updated",
"billing_portal.session.created",
"capability.updated",
+ "capital.financing_offer.accepted",
+ "capital.financing_offer.accepted_other_offer",
+ "capital.financing_offer.canceled",
+ "capital.financing_offer.created",
+ "capital.financing_offer.expired",
+ "capital.financing_offer.fully_repaid",
+ "capital.financing_offer.paid_out",
+ "capital.financing_offer.rejected",
+ "capital.financing_offer.replacement_created",
+ "capital.financing_transaction.created",
"cash_balance.funds_available",
"charge.captured",
"charge.dispute.closed",
@@ -200,11 +212,15 @@ class WebhookEndpointCreateParams(RequestOptions):
"customer.source.deleted",
"customer.source.expiring",
"customer.source.updated",
+ "customer.subscription.collection_paused",
+ "customer.subscription.collection_resumed",
"customer.subscription.created",
+ "customer.subscription.custom_event",
"customer.subscription.deleted",
"customer.subscription.paused",
"customer.subscription.pending_update_applied",
"customer.subscription.pending_update_expired",
+ "customer.subscription.price_migration_failed",
"customer.subscription.resumed",
"customer.subscription.trial_will_end",
"customer.subscription.updated",
@@ -221,9 +237,12 @@ class WebhookEndpointCreateParams(RequestOptions):
"financial_connections.account.disconnected",
"financial_connections.account.reactivated",
"financial_connections.account.refreshed_balance",
+ "financial_connections.account.refreshed_inferred_balances",
"financial_connections.account.refreshed_ownership",
"financial_connections.account.refreshed_transactions",
"financial_connections.account.upcoming_account_number_expiry",
+ "financial_connections.session.updated",
+ "fx_quote.expired",
"identity.verification_session.canceled",
"identity.verification_session.created",
"identity.verification_session.processing",
@@ -238,6 +257,7 @@ class WebhookEndpointCreateParams(RequestOptions):
"invoice.overdue",
"invoice.overpaid",
"invoice.paid",
+ "invoice.payment.overpaid",
"invoice.payment_action_required",
"invoice.payment_attempt_required",
"invoice.payment_failed",
@@ -263,10 +283,15 @@ class WebhookEndpointCreateParams(RequestOptions):
"issuing_dispute.funds_rescinded",
"issuing_dispute.submitted",
"issuing_dispute.updated",
+ "issuing_dispute_settlement_detail.created",
+ "issuing_dispute_settlement_detail.updated",
+ "issuing_fraud_liability_debit.created",
"issuing_personalization_design.activated",
"issuing_personalization_design.deactivated",
"issuing_personalization_design.rejected",
"issuing_personalization_design.updated",
+ "issuing_settlement.created",
+ "issuing_settlement.updated",
"issuing_token.created",
"issuing_token.updated",
"issuing_transaction.created",
@@ -302,15 +327,26 @@ class WebhookEndpointCreateParams(RequestOptions):
"price.created",
"price.deleted",
"price.updated",
+ "privacy.redaction_job.canceled",
+ "privacy.redaction_job.created",
+ "privacy.redaction_job.ready",
+ "privacy.redaction_job.succeeded",
+ "privacy.redaction_job.validation_error",
"product.created",
"product.deleted",
"product.updated",
"promotion_code.created",
"promotion_code.updated",
+ "quote.accept_failed",
"quote.accepted",
+ "quote.accepting",
"quote.canceled",
"quote.created",
+ "quote.draft",
"quote.finalized",
+ "quote.reestimate_failed",
+ "quote.reestimated",
+ "quote.stale",
"radar.early_fraud_warning.created",
"radar.early_fraud_warning.updated",
"refund.created",
@@ -339,8 +375,10 @@ class WebhookEndpointCreateParams(RequestOptions):
"subscription_schedule.completed",
"subscription_schedule.created",
"subscription_schedule.expiring",
+ "subscription_schedule.price_migration_failed",
"subscription_schedule.released",
"subscription_schedule.updated",
+ "tax.form.updated",
"tax.settings.updated",
"tax_rate.created",
"tax_rate.updated",
diff --git a/stripe/params/_webhook_endpoint_modify_params.py b/stripe/params/_webhook_endpoint_modify_params.py
index 66fa34971..6139fa21f 100644
--- a/stripe/params/_webhook_endpoint_modify_params.py
+++ b/stripe/params/_webhook_endpoint_modify_params.py
@@ -24,6 +24,8 @@ class WebhookEndpointModifyParams(RequestOptions):
"account.external_account.deleted",
"account.external_account.updated",
"account.updated",
+ "account_notice.created",
+ "account_notice.updated",
"application_fee.created",
"application_fee.refund.updated",
"application_fee.refunded",
@@ -34,6 +36,16 @@ class WebhookEndpointModifyParams(RequestOptions):
"billing_portal.configuration.updated",
"billing_portal.session.created",
"capability.updated",
+ "capital.financing_offer.accepted",
+ "capital.financing_offer.accepted_other_offer",
+ "capital.financing_offer.canceled",
+ "capital.financing_offer.created",
+ "capital.financing_offer.expired",
+ "capital.financing_offer.fully_repaid",
+ "capital.financing_offer.paid_out",
+ "capital.financing_offer.rejected",
+ "capital.financing_offer.replacement_created",
+ "capital.financing_transaction.created",
"cash_balance.funds_available",
"charge.captured",
"charge.dispute.closed",
@@ -74,11 +86,15 @@ class WebhookEndpointModifyParams(RequestOptions):
"customer.source.deleted",
"customer.source.expiring",
"customer.source.updated",
+ "customer.subscription.collection_paused",
+ "customer.subscription.collection_resumed",
"customer.subscription.created",
+ "customer.subscription.custom_event",
"customer.subscription.deleted",
"customer.subscription.paused",
"customer.subscription.pending_update_applied",
"customer.subscription.pending_update_expired",
+ "customer.subscription.price_migration_failed",
"customer.subscription.resumed",
"customer.subscription.trial_will_end",
"customer.subscription.updated",
@@ -95,9 +111,12 @@ class WebhookEndpointModifyParams(RequestOptions):
"financial_connections.account.disconnected",
"financial_connections.account.reactivated",
"financial_connections.account.refreshed_balance",
+ "financial_connections.account.refreshed_inferred_balances",
"financial_connections.account.refreshed_ownership",
"financial_connections.account.refreshed_transactions",
"financial_connections.account.upcoming_account_number_expiry",
+ "financial_connections.session.updated",
+ "fx_quote.expired",
"identity.verification_session.canceled",
"identity.verification_session.created",
"identity.verification_session.processing",
@@ -112,6 +131,7 @@ class WebhookEndpointModifyParams(RequestOptions):
"invoice.overdue",
"invoice.overpaid",
"invoice.paid",
+ "invoice.payment.overpaid",
"invoice.payment_action_required",
"invoice.payment_attempt_required",
"invoice.payment_failed",
@@ -137,10 +157,15 @@ class WebhookEndpointModifyParams(RequestOptions):
"issuing_dispute.funds_rescinded",
"issuing_dispute.submitted",
"issuing_dispute.updated",
+ "issuing_dispute_settlement_detail.created",
+ "issuing_dispute_settlement_detail.updated",
+ "issuing_fraud_liability_debit.created",
"issuing_personalization_design.activated",
"issuing_personalization_design.deactivated",
"issuing_personalization_design.rejected",
"issuing_personalization_design.updated",
+ "issuing_settlement.created",
+ "issuing_settlement.updated",
"issuing_token.created",
"issuing_token.updated",
"issuing_transaction.created",
@@ -176,15 +201,26 @@ class WebhookEndpointModifyParams(RequestOptions):
"price.created",
"price.deleted",
"price.updated",
+ "privacy.redaction_job.canceled",
+ "privacy.redaction_job.created",
+ "privacy.redaction_job.ready",
+ "privacy.redaction_job.succeeded",
+ "privacy.redaction_job.validation_error",
"product.created",
"product.deleted",
"product.updated",
"promotion_code.created",
"promotion_code.updated",
+ "quote.accept_failed",
"quote.accepted",
+ "quote.accepting",
"quote.canceled",
"quote.created",
+ "quote.draft",
"quote.finalized",
+ "quote.reestimate_failed",
+ "quote.reestimated",
+ "quote.stale",
"radar.early_fraud_warning.created",
"radar.early_fraud_warning.updated",
"refund.created",
@@ -213,8 +249,10 @@ class WebhookEndpointModifyParams(RequestOptions):
"subscription_schedule.completed",
"subscription_schedule.created",
"subscription_schedule.expiring",
+ "subscription_schedule.price_migration_failed",
"subscription_schedule.released",
"subscription_schedule.updated",
+ "tax.form.updated",
"tax.settings.updated",
"tax_rate.created",
"tax_rate.updated",
diff --git a/stripe/params/_webhook_endpoint_update_params.py b/stripe/params/_webhook_endpoint_update_params.py
index ce676a54a..89a036a7a 100644
--- a/stripe/params/_webhook_endpoint_update_params.py
+++ b/stripe/params/_webhook_endpoint_update_params.py
@@ -23,6 +23,8 @@ class WebhookEndpointUpdateParams(TypedDict):
"account.external_account.deleted",
"account.external_account.updated",
"account.updated",
+ "account_notice.created",
+ "account_notice.updated",
"application_fee.created",
"application_fee.refund.updated",
"application_fee.refunded",
@@ -33,6 +35,16 @@ class WebhookEndpointUpdateParams(TypedDict):
"billing_portal.configuration.updated",
"billing_portal.session.created",
"capability.updated",
+ "capital.financing_offer.accepted",
+ "capital.financing_offer.accepted_other_offer",
+ "capital.financing_offer.canceled",
+ "capital.financing_offer.created",
+ "capital.financing_offer.expired",
+ "capital.financing_offer.fully_repaid",
+ "capital.financing_offer.paid_out",
+ "capital.financing_offer.rejected",
+ "capital.financing_offer.replacement_created",
+ "capital.financing_transaction.created",
"cash_balance.funds_available",
"charge.captured",
"charge.dispute.closed",
@@ -73,11 +85,15 @@ class WebhookEndpointUpdateParams(TypedDict):
"customer.source.deleted",
"customer.source.expiring",
"customer.source.updated",
+ "customer.subscription.collection_paused",
+ "customer.subscription.collection_resumed",
"customer.subscription.created",
+ "customer.subscription.custom_event",
"customer.subscription.deleted",
"customer.subscription.paused",
"customer.subscription.pending_update_applied",
"customer.subscription.pending_update_expired",
+ "customer.subscription.price_migration_failed",
"customer.subscription.resumed",
"customer.subscription.trial_will_end",
"customer.subscription.updated",
@@ -94,9 +110,12 @@ class WebhookEndpointUpdateParams(TypedDict):
"financial_connections.account.disconnected",
"financial_connections.account.reactivated",
"financial_connections.account.refreshed_balance",
+ "financial_connections.account.refreshed_inferred_balances",
"financial_connections.account.refreshed_ownership",
"financial_connections.account.refreshed_transactions",
"financial_connections.account.upcoming_account_number_expiry",
+ "financial_connections.session.updated",
+ "fx_quote.expired",
"identity.verification_session.canceled",
"identity.verification_session.created",
"identity.verification_session.processing",
@@ -111,6 +130,7 @@ class WebhookEndpointUpdateParams(TypedDict):
"invoice.overdue",
"invoice.overpaid",
"invoice.paid",
+ "invoice.payment.overpaid",
"invoice.payment_action_required",
"invoice.payment_attempt_required",
"invoice.payment_failed",
@@ -136,10 +156,15 @@ class WebhookEndpointUpdateParams(TypedDict):
"issuing_dispute.funds_rescinded",
"issuing_dispute.submitted",
"issuing_dispute.updated",
+ "issuing_dispute_settlement_detail.created",
+ "issuing_dispute_settlement_detail.updated",
+ "issuing_fraud_liability_debit.created",
"issuing_personalization_design.activated",
"issuing_personalization_design.deactivated",
"issuing_personalization_design.rejected",
"issuing_personalization_design.updated",
+ "issuing_settlement.created",
+ "issuing_settlement.updated",
"issuing_token.created",
"issuing_token.updated",
"issuing_transaction.created",
@@ -175,15 +200,26 @@ class WebhookEndpointUpdateParams(TypedDict):
"price.created",
"price.deleted",
"price.updated",
+ "privacy.redaction_job.canceled",
+ "privacy.redaction_job.created",
+ "privacy.redaction_job.ready",
+ "privacy.redaction_job.succeeded",
+ "privacy.redaction_job.validation_error",
"product.created",
"product.deleted",
"product.updated",
"promotion_code.created",
"promotion_code.updated",
+ "quote.accept_failed",
"quote.accepted",
+ "quote.accepting",
"quote.canceled",
"quote.created",
+ "quote.draft",
"quote.finalized",
+ "quote.reestimate_failed",
+ "quote.reestimated",
+ "quote.stale",
"radar.early_fraud_warning.created",
"radar.early_fraud_warning.updated",
"refund.created",
@@ -212,8 +248,10 @@ class WebhookEndpointUpdateParams(TypedDict):
"subscription_schedule.completed",
"subscription_schedule.created",
"subscription_schedule.expiring",
+ "subscription_schedule.price_migration_failed",
"subscription_schedule.released",
"subscription_schedule.updated",
+ "tax.form.updated",
"tax.settings.updated",
"tax_rate.created",
"tax_rate.updated",
diff --git a/stripe/params/billing/__init__.py b/stripe/params/billing/__init__.py
index 29df82a75..4c39da990 100644
--- a/stripe/params/billing/__init__.py
+++ b/stripe/params/billing/__init__.py
@@ -4,6 +4,7 @@
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
+ from stripe.params.billing import analytics as analytics
from stripe.params.billing._alert_activate_params import (
AlertActivateParams as AlertActivateParams,
)
@@ -102,6 +103,7 @@
# name -> (import_target, is_submodule)
_import_map = {
+ "analytics": ("stripe.params.billing.analytics", True),
"AlertActivateParams": (
"stripe.params.billing._alert_activate_params",
False,
diff --git a/stripe/params/billing/analytics/__init__.py b/stripe/params/billing/analytics/__init__.py
new file mode 100644
index 000000000..0650e5c95
--- /dev/null
+++ b/stripe/params/billing/analytics/__init__.py
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.billing.analytics._meter_usage_retrieve_params import (
+ MeterUsageRetrieveParams as MeterUsageRetrieveParams,
+ MeterUsageRetrieveParamsMeter as MeterUsageRetrieveParamsMeter,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "MeterUsageRetrieveParams": (
+ "stripe.params.billing.analytics._meter_usage_retrieve_params",
+ False,
+ ),
+ "MeterUsageRetrieveParamsMeter": (
+ "stripe.params.billing.analytics._meter_usage_retrieve_params",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/params/billing/analytics/_meter_usage_retrieve_params.py b/stripe/params/billing/analytics/_meter_usage_retrieve_params.py
new file mode 100644
index 000000000..cf6abd874
--- /dev/null
+++ b/stripe/params/billing/analytics/_meter_usage_retrieve_params.py
@@ -0,0 +1,657 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class MeterUsageRetrieveParams(RequestOptions):
+ customer: str
+ """
+ The customer id to fetch meter usage data for.
+ """
+ ends_at: int
+ """
+ The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ meters: NotRequired[List["MeterUsageRetrieveParamsMeter"]]
+ """
+ An array of meter parameters to specify which meters to include in the usage data. If not specified, usage across all meters for the customer is included.
+ """
+ starts_at: int
+ """
+ The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries.
+ """
+ timezone: NotRequired[
+ Literal[
+ "Africa/Abidjan",
+ "Africa/Accra",
+ "Africa/Addis_Ababa",
+ "Africa/Algiers",
+ "Africa/Asmara",
+ "Africa/Asmera",
+ "Africa/Bamako",
+ "Africa/Bangui",
+ "Africa/Banjul",
+ "Africa/Bissau",
+ "Africa/Blantyre",
+ "Africa/Brazzaville",
+ "Africa/Bujumbura",
+ "Africa/Cairo",
+ "Africa/Casablanca",
+ "Africa/Ceuta",
+ "Africa/Conakry",
+ "Africa/Dakar",
+ "Africa/Dar_es_Salaam",
+ "Africa/Djibouti",
+ "Africa/Douala",
+ "Africa/El_Aaiun",
+ "Africa/Freetown",
+ "Africa/Gaborone",
+ "Africa/Harare",
+ "Africa/Johannesburg",
+ "Africa/Juba",
+ "Africa/Kampala",
+ "Africa/Khartoum",
+ "Africa/Kigali",
+ "Africa/Kinshasa",
+ "Africa/Lagos",
+ "Africa/Libreville",
+ "Africa/Lome",
+ "Africa/Luanda",
+ "Africa/Lubumbashi",
+ "Africa/Lusaka",
+ "Africa/Malabo",
+ "Africa/Maputo",
+ "Africa/Maseru",
+ "Africa/Mbabane",
+ "Africa/Mogadishu",
+ "Africa/Monrovia",
+ "Africa/Nairobi",
+ "Africa/Ndjamena",
+ "Africa/Niamey",
+ "Africa/Nouakchott",
+ "Africa/Ouagadougou",
+ "Africa/Porto-Novo",
+ "Africa/Sao_Tome",
+ "Africa/Timbuktu",
+ "Africa/Tripoli",
+ "Africa/Tunis",
+ "Africa/Windhoek",
+ "America/Adak",
+ "America/Anchorage",
+ "America/Anguilla",
+ "America/Antigua",
+ "America/Araguaina",
+ "America/Argentina/Buenos_Aires",
+ "America/Argentina/Catamarca",
+ "America/Argentina/ComodRivadavia",
+ "America/Argentina/Cordoba",
+ "America/Argentina/Jujuy",
+ "America/Argentina/La_Rioja",
+ "America/Argentina/Mendoza",
+ "America/Argentina/Rio_Gallegos",
+ "America/Argentina/Salta",
+ "America/Argentina/San_Juan",
+ "America/Argentina/San_Luis",
+ "America/Argentina/Tucuman",
+ "America/Argentina/Ushuaia",
+ "America/Aruba",
+ "America/Asuncion",
+ "America/Atikokan",
+ "America/Atka",
+ "America/Bahia",
+ "America/Bahia_Banderas",
+ "America/Barbados",
+ "America/Belem",
+ "America/Belize",
+ "America/Blanc-Sablon",
+ "America/Boa_Vista",
+ "America/Bogota",
+ "America/Boise",
+ "America/Buenos_Aires",
+ "America/Cambridge_Bay",
+ "America/Campo_Grande",
+ "America/Cancun",
+ "America/Caracas",
+ "America/Catamarca",
+ "America/Cayenne",
+ "America/Cayman",
+ "America/Chicago",
+ "America/Chihuahua",
+ "America/Ciudad_Juarez",
+ "America/Coral_Harbour",
+ "America/Cordoba",
+ "America/Costa_Rica",
+ "America/Coyhaique",
+ "America/Creston",
+ "America/Cuiaba",
+ "America/Curacao",
+ "America/Danmarkshavn",
+ "America/Dawson",
+ "America/Dawson_Creek",
+ "America/Denver",
+ "America/Detroit",
+ "America/Dominica",
+ "America/Edmonton",
+ "America/Eirunepe",
+ "America/El_Salvador",
+ "America/Ensenada",
+ "America/Fort_Nelson",
+ "America/Fort_Wayne",
+ "America/Fortaleza",
+ "America/Glace_Bay",
+ "America/Godthab",
+ "America/Goose_Bay",
+ "America/Grand_Turk",
+ "America/Grenada",
+ "America/Guadeloupe",
+ "America/Guatemala",
+ "America/Guayaquil",
+ "America/Guyana",
+ "America/Halifax",
+ "America/Havana",
+ "America/Hermosillo",
+ "America/Indiana/Indianapolis",
+ "America/Indiana/Knox",
+ "America/Indiana/Marengo",
+ "America/Indiana/Petersburg",
+ "America/Indiana/Tell_City",
+ "America/Indiana/Vevay",
+ "America/Indiana/Vincennes",
+ "America/Indiana/Winamac",
+ "America/Indianapolis",
+ "America/Inuvik",
+ "America/Iqaluit",
+ "America/Jamaica",
+ "America/Jujuy",
+ "America/Juneau",
+ "America/Kentucky/Louisville",
+ "America/Kentucky/Monticello",
+ "America/Knox_IN",
+ "America/Kralendijk",
+ "America/La_Paz",
+ "America/Lima",
+ "America/Los_Angeles",
+ "America/Louisville",
+ "America/Lower_Princes",
+ "America/Maceio",
+ "America/Managua",
+ "America/Manaus",
+ "America/Marigot",
+ "America/Martinique",
+ "America/Matamoros",
+ "America/Mazatlan",
+ "America/Mendoza",
+ "America/Menominee",
+ "America/Merida",
+ "America/Metlakatla",
+ "America/Mexico_City",
+ "America/Miquelon",
+ "America/Moncton",
+ "America/Monterrey",
+ "America/Montevideo",
+ "America/Montreal",
+ "America/Montserrat",
+ "America/Nassau",
+ "America/New_York",
+ "America/Nipigon",
+ "America/Nome",
+ "America/Noronha",
+ "America/North_Dakota/Beulah",
+ "America/North_Dakota/Center",
+ "America/North_Dakota/New_Salem",
+ "America/Nuuk",
+ "America/Ojinaga",
+ "America/Panama",
+ "America/Pangnirtung",
+ "America/Paramaribo",
+ "America/Phoenix",
+ "America/Port-au-Prince",
+ "America/Port_of_Spain",
+ "America/Porto_Acre",
+ "America/Porto_Velho",
+ "America/Puerto_Rico",
+ "America/Punta_Arenas",
+ "America/Rainy_River",
+ "America/Rankin_Inlet",
+ "America/Recife",
+ "America/Regina",
+ "America/Resolute",
+ "America/Rio_Branco",
+ "America/Rosario",
+ "America/Santa_Isabel",
+ "America/Santarem",
+ "America/Santiago",
+ "America/Santo_Domingo",
+ "America/Sao_Paulo",
+ "America/Scoresbysund",
+ "America/Shiprock",
+ "America/Sitka",
+ "America/St_Barthelemy",
+ "America/St_Johns",
+ "America/St_Kitts",
+ "America/St_Lucia",
+ "America/St_Thomas",
+ "America/St_Vincent",
+ "America/Swift_Current",
+ "America/Tegucigalpa",
+ "America/Thule",
+ "America/Thunder_Bay",
+ "America/Tijuana",
+ "America/Toronto",
+ "America/Tortola",
+ "America/Vancouver",
+ "America/Virgin",
+ "America/Whitehorse",
+ "America/Winnipeg",
+ "America/Yakutat",
+ "America/Yellowknife",
+ "Antarctica/Casey",
+ "Antarctica/Davis",
+ "Antarctica/DumontDUrville",
+ "Antarctica/Macquarie",
+ "Antarctica/Mawson",
+ "Antarctica/McMurdo",
+ "Antarctica/Palmer",
+ "Antarctica/Rothera",
+ "Antarctica/South_Pole",
+ "Antarctica/Syowa",
+ "Antarctica/Troll",
+ "Antarctica/Vostok",
+ "Arctic/Longyearbyen",
+ "Asia/Aden",
+ "Asia/Almaty",
+ "Asia/Amman",
+ "Asia/Anadyr",
+ "Asia/Aqtau",
+ "Asia/Aqtobe",
+ "Asia/Ashgabat",
+ "Asia/Ashkhabad",
+ "Asia/Atyrau",
+ "Asia/Baghdad",
+ "Asia/Bahrain",
+ "Asia/Baku",
+ "Asia/Bangkok",
+ "Asia/Barnaul",
+ "Asia/Beirut",
+ "Asia/Bishkek",
+ "Asia/Brunei",
+ "Asia/Calcutta",
+ "Asia/Chita",
+ "Asia/Choibalsan",
+ "Asia/Chongqing",
+ "Asia/Chungking",
+ "Asia/Colombo",
+ "Asia/Dacca",
+ "Asia/Damascus",
+ "Asia/Dhaka",
+ "Asia/Dili",
+ "Asia/Dubai",
+ "Asia/Dushanbe",
+ "Asia/Famagusta",
+ "Asia/Gaza",
+ "Asia/Harbin",
+ "Asia/Hebron",
+ "Asia/Ho_Chi_Minh",
+ "Asia/Hong_Kong",
+ "Asia/Hovd",
+ "Asia/Irkutsk",
+ "Asia/Istanbul",
+ "Asia/Jakarta",
+ "Asia/Jayapura",
+ "Asia/Jerusalem",
+ "Asia/Kabul",
+ "Asia/Kamchatka",
+ "Asia/Karachi",
+ "Asia/Kashgar",
+ "Asia/Kathmandu",
+ "Asia/Katmandu",
+ "Asia/Khandyga",
+ "Asia/Kolkata",
+ "Asia/Krasnoyarsk",
+ "Asia/Kuala_Lumpur",
+ "Asia/Kuching",
+ "Asia/Kuwait",
+ "Asia/Macao",
+ "Asia/Macau",
+ "Asia/Magadan",
+ "Asia/Makassar",
+ "Asia/Manila",
+ "Asia/Muscat",
+ "Asia/Nicosia",
+ "Asia/Novokuznetsk",
+ "Asia/Novosibirsk",
+ "Asia/Omsk",
+ "Asia/Oral",
+ "Asia/Phnom_Penh",
+ "Asia/Pontianak",
+ "Asia/Pyongyang",
+ "Asia/Qatar",
+ "Asia/Qostanay",
+ "Asia/Qyzylorda",
+ "Asia/Rangoon",
+ "Asia/Riyadh",
+ "Asia/Saigon",
+ "Asia/Sakhalin",
+ "Asia/Samarkand",
+ "Asia/Seoul",
+ "Asia/Shanghai",
+ "Asia/Singapore",
+ "Asia/Srednekolymsk",
+ "Asia/Taipei",
+ "Asia/Tashkent",
+ "Asia/Tbilisi",
+ "Asia/Tehran",
+ "Asia/Tel_Aviv",
+ "Asia/Thimbu",
+ "Asia/Thimphu",
+ "Asia/Tokyo",
+ "Asia/Tomsk",
+ "Asia/Ujung_Pandang",
+ "Asia/Ulaanbaatar",
+ "Asia/Ulan_Bator",
+ "Asia/Urumqi",
+ "Asia/Ust-Nera",
+ "Asia/Vientiane",
+ "Asia/Vladivostok",
+ "Asia/Yakutsk",
+ "Asia/Yangon",
+ "Asia/Yekaterinburg",
+ "Asia/Yerevan",
+ "Atlantic/Azores",
+ "Atlantic/Bermuda",
+ "Atlantic/Canary",
+ "Atlantic/Cape_Verde",
+ "Atlantic/Faeroe",
+ "Atlantic/Faroe",
+ "Atlantic/Jan_Mayen",
+ "Atlantic/Madeira",
+ "Atlantic/Reykjavik",
+ "Atlantic/South_Georgia",
+ "Atlantic/St_Helena",
+ "Atlantic/Stanley",
+ "Australia/ACT",
+ "Australia/Adelaide",
+ "Australia/Brisbane",
+ "Australia/Broken_Hill",
+ "Australia/Canberra",
+ "Australia/Currie",
+ "Australia/Darwin",
+ "Australia/Eucla",
+ "Australia/Hobart",
+ "Australia/LHI",
+ "Australia/Lindeman",
+ "Australia/Lord_Howe",
+ "Australia/Melbourne",
+ "Australia/NSW",
+ "Australia/North",
+ "Australia/Perth",
+ "Australia/Queensland",
+ "Australia/South",
+ "Australia/Sydney",
+ "Australia/Tasmania",
+ "Australia/Victoria",
+ "Australia/West",
+ "Australia/Yancowinna",
+ "Brazil/Acre",
+ "Brazil/DeNoronha",
+ "Brazil/East",
+ "Brazil/West",
+ "CET",
+ "CST6CDT",
+ "Canada/Atlantic",
+ "Canada/Central",
+ "Canada/Eastern",
+ "Canada/Mountain",
+ "Canada/Newfoundland",
+ "Canada/Pacific",
+ "Canada/Saskatchewan",
+ "Canada/Yukon",
+ "Chile/Continental",
+ "Chile/EasterIsland",
+ "Cuba",
+ "EET",
+ "EST",
+ "EST5EDT",
+ "Egypt",
+ "Eire",
+ "Etc/GMT",
+ "Etc/GMT+0",
+ "Etc/GMT+1",
+ "Etc/GMT+10",
+ "Etc/GMT+11",
+ "Etc/GMT+12",
+ "Etc/GMT+2",
+ "Etc/GMT+3",
+ "Etc/GMT+4",
+ "Etc/GMT+5",
+ "Etc/GMT+6",
+ "Etc/GMT+7",
+ "Etc/GMT+8",
+ "Etc/GMT+9",
+ "Etc/GMT-0",
+ "Etc/GMT-1",
+ "Etc/GMT-10",
+ "Etc/GMT-11",
+ "Etc/GMT-12",
+ "Etc/GMT-13",
+ "Etc/GMT-14",
+ "Etc/GMT-2",
+ "Etc/GMT-3",
+ "Etc/GMT-4",
+ "Etc/GMT-5",
+ "Etc/GMT-6",
+ "Etc/GMT-7",
+ "Etc/GMT-8",
+ "Etc/GMT-9",
+ "Etc/GMT0",
+ "Etc/Greenwich",
+ "Etc/UCT",
+ "Etc/UTC",
+ "Etc/Universal",
+ "Etc/Zulu",
+ "Europe/Amsterdam",
+ "Europe/Andorra",
+ "Europe/Astrakhan",
+ "Europe/Athens",
+ "Europe/Belfast",
+ "Europe/Belgrade",
+ "Europe/Berlin",
+ "Europe/Bratislava",
+ "Europe/Brussels",
+ "Europe/Bucharest",
+ "Europe/Budapest",
+ "Europe/Busingen",
+ "Europe/Chisinau",
+ "Europe/Copenhagen",
+ "Europe/Dublin",
+ "Europe/Gibraltar",
+ "Europe/Guernsey",
+ "Europe/Helsinki",
+ "Europe/Isle_of_Man",
+ "Europe/Istanbul",
+ "Europe/Jersey",
+ "Europe/Kaliningrad",
+ "Europe/Kiev",
+ "Europe/Kirov",
+ "Europe/Kyiv",
+ "Europe/Lisbon",
+ "Europe/Ljubljana",
+ "Europe/London",
+ "Europe/Luxembourg",
+ "Europe/Madrid",
+ "Europe/Malta",
+ "Europe/Mariehamn",
+ "Europe/Minsk",
+ "Europe/Monaco",
+ "Europe/Moscow",
+ "Europe/Nicosia",
+ "Europe/Oslo",
+ "Europe/Paris",
+ "Europe/Podgorica",
+ "Europe/Prague",
+ "Europe/Riga",
+ "Europe/Rome",
+ "Europe/Samara",
+ "Europe/San_Marino",
+ "Europe/Sarajevo",
+ "Europe/Saratov",
+ "Europe/Simferopol",
+ "Europe/Skopje",
+ "Europe/Sofia",
+ "Europe/Stockholm",
+ "Europe/Tallinn",
+ "Europe/Tirane",
+ "Europe/Tiraspol",
+ "Europe/Ulyanovsk",
+ "Europe/Uzhgorod",
+ "Europe/Vaduz",
+ "Europe/Vatican",
+ "Europe/Vienna",
+ "Europe/Vilnius",
+ "Europe/Volgograd",
+ "Europe/Warsaw",
+ "Europe/Zagreb",
+ "Europe/Zaporozhye",
+ "Europe/Zurich",
+ "Factory",
+ "GB",
+ "GB-Eire",
+ "GMT",
+ "GMT+0",
+ "GMT-0",
+ "GMT0",
+ "Greenwich",
+ "HST",
+ "Hongkong",
+ "Iceland",
+ "Indian/Antananarivo",
+ "Indian/Chagos",
+ "Indian/Christmas",
+ "Indian/Cocos",
+ "Indian/Comoro",
+ "Indian/Kerguelen",
+ "Indian/Mahe",
+ "Indian/Maldives",
+ "Indian/Mauritius",
+ "Indian/Mayotte",
+ "Indian/Reunion",
+ "Iran",
+ "Israel",
+ "Jamaica",
+ "Japan",
+ "Kwajalein",
+ "Libya",
+ "MET",
+ "MST",
+ "MST7MDT",
+ "Mexico/BajaNorte",
+ "Mexico/BajaSur",
+ "Mexico/General",
+ "NZ",
+ "NZ-CHAT",
+ "Navajo",
+ "PRC",
+ "PST8PDT",
+ "Pacific/Apia",
+ "Pacific/Auckland",
+ "Pacific/Bougainville",
+ "Pacific/Chatham",
+ "Pacific/Chuuk",
+ "Pacific/Easter",
+ "Pacific/Efate",
+ "Pacific/Enderbury",
+ "Pacific/Fakaofo",
+ "Pacific/Fiji",
+ "Pacific/Funafuti",
+ "Pacific/Galapagos",
+ "Pacific/Gambier",
+ "Pacific/Guadalcanal",
+ "Pacific/Guam",
+ "Pacific/Honolulu",
+ "Pacific/Johnston",
+ "Pacific/Kanton",
+ "Pacific/Kiritimati",
+ "Pacific/Kosrae",
+ "Pacific/Kwajalein",
+ "Pacific/Majuro",
+ "Pacific/Marquesas",
+ "Pacific/Midway",
+ "Pacific/Nauru",
+ "Pacific/Niue",
+ "Pacific/Norfolk",
+ "Pacific/Noumea",
+ "Pacific/Pago_Pago",
+ "Pacific/Palau",
+ "Pacific/Pitcairn",
+ "Pacific/Pohnpei",
+ "Pacific/Ponape",
+ "Pacific/Port_Moresby",
+ "Pacific/Rarotonga",
+ "Pacific/Saipan",
+ "Pacific/Samoa",
+ "Pacific/Tahiti",
+ "Pacific/Tarawa",
+ "Pacific/Tongatapu",
+ "Pacific/Truk",
+ "Pacific/Wake",
+ "Pacific/Wallis",
+ "Pacific/Yap",
+ "Poland",
+ "Portugal",
+ "ROC",
+ "ROK",
+ "Singapore",
+ "Turkey",
+ "UCT",
+ "US/Alaska",
+ "US/Aleutian",
+ "US/Arizona",
+ "US/Central",
+ "US/East-Indiana",
+ "US/Eastern",
+ "US/Hawaii",
+ "US/Indiana-Starke",
+ "US/Michigan",
+ "US/Mountain",
+ "US/Pacific",
+ "US/Pacific-New",
+ "US/Samoa",
+ "UTC",
+ "Universal",
+ "W-SU",
+ "WET",
+ "Zulu",
+ ]
+ ]
+ """
+ The timezone to use for the start and end times. Defaults to UTC if not specified.
+ """
+ value_grouping_window: NotRequired[Literal["day", "hour", "month", "week"]]
+ """
+ Specifies what granularity to use when aggregating meter usage events. If not specified, a single event would be returned for the specified time range.
+ """
+
+
+class MeterUsageRetrieveParamsMeter(TypedDict):
+ dimension_filters: NotRequired[Dict[str, List[str]]]
+ """
+ Key-value pairs used to filter usage events by meter dimension values. Each value is an array that can include multiple values for the key. If specified, usage is filtered for matching usage events.
+ """
+ dimension_group_by_keys: NotRequired[List[str]]
+ """
+ List of meter dimension keys to group by. If specified, usage events will be grouped by the given meter dimension key's values.
+ """
+ meter: str
+ """
+ Meter id to query usage for.
+ """
+ tenant_filters: NotRequired[Dict[str, List[str]]]
+ """
+ Key-value pairs used to filter usage events by high cardinality tenant dimension values. Each value is an array that can include multiple values for the key. If specified, usage is filtered for matching usage events.
+ """
diff --git a/stripe/params/capital/__init__.py b/stripe/params/capital/__init__.py
new file mode 100644
index 000000000..fbc2f7974
--- /dev/null
+++ b/stripe/params/capital/__init__.py
@@ -0,0 +1,72 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.capital._financing_offer_list_params import (
+ FinancingOfferListParams as FinancingOfferListParams,
+ FinancingOfferListParamsCreated as FinancingOfferListParamsCreated,
+ )
+ from stripe.params.capital._financing_offer_mark_delivered_params import (
+ FinancingOfferMarkDeliveredParams as FinancingOfferMarkDeliveredParams,
+ )
+ from stripe.params.capital._financing_offer_retrieve_params import (
+ FinancingOfferRetrieveParams as FinancingOfferRetrieveParams,
+ )
+ from stripe.params.capital._financing_summary_retrieve_params import (
+ FinancingSummaryRetrieveParams as FinancingSummaryRetrieveParams,
+ )
+ from stripe.params.capital._financing_transaction_list_params import (
+ FinancingTransactionListParams as FinancingTransactionListParams,
+ )
+ from stripe.params.capital._financing_transaction_retrieve_params import (
+ FinancingTransactionRetrieveParams as FinancingTransactionRetrieveParams,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "FinancingOfferListParams": (
+ "stripe.params.capital._financing_offer_list_params",
+ False,
+ ),
+ "FinancingOfferListParamsCreated": (
+ "stripe.params.capital._financing_offer_list_params",
+ False,
+ ),
+ "FinancingOfferMarkDeliveredParams": (
+ "stripe.params.capital._financing_offer_mark_delivered_params",
+ False,
+ ),
+ "FinancingOfferRetrieveParams": (
+ "stripe.params.capital._financing_offer_retrieve_params",
+ False,
+ ),
+ "FinancingSummaryRetrieveParams": (
+ "stripe.params.capital._financing_summary_retrieve_params",
+ False,
+ ),
+ "FinancingTransactionListParams": (
+ "stripe.params.capital._financing_transaction_list_params",
+ False,
+ ),
+ "FinancingTransactionRetrieveParams": (
+ "stripe.params.capital._financing_transaction_retrieve_params",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/params/capital/_financing_offer_list_params.py b/stripe/params/capital/_financing_offer_list_params.py
new file mode 100644
index 000000000..9ff4ba5cb
--- /dev/null
+++ b/stripe/params/capital/_financing_offer_list_params.py
@@ -0,0 +1,68 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class FinancingOfferListParams(RequestOptions):
+ connected_account: NotRequired[str]
+ """
+ limit list to offers belonging to given connected account
+ """
+ created: NotRequired["FinancingOfferListParamsCreated|int"]
+ """
+ Only return offers that were created during the given date interval.
+ """
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
+ status: NotRequired[
+ Literal[
+ "accepted",
+ "canceled",
+ "completed",
+ "delivered",
+ "expired",
+ "fully_repaid",
+ "paid_out",
+ "rejected",
+ "revoked",
+ "undelivered",
+ ]
+ ]
+ """
+ limit list to offers with given status
+ """
+
+
+class FinancingOfferListParamsCreated(TypedDict):
+ gt: NotRequired[int]
+ """
+ Minimum value to filter by (exclusive)
+ """
+ gte: NotRequired[int]
+ """
+ Minimum value to filter by (inclusive)
+ """
+ lt: NotRequired[int]
+ """
+ Maximum value to filter by (exclusive)
+ """
+ lte: NotRequired[int]
+ """
+ Maximum value to filter by (inclusive)
+ """
diff --git a/stripe/params/capital/_financing_offer_mark_delivered_params.py b/stripe/params/capital/_financing_offer_mark_delivered_params.py
new file mode 100644
index 000000000..e662a5681
--- /dev/null
+++ b/stripe/params/capital/_financing_offer_mark_delivered_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FinancingOfferMarkDeliveredParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/capital/_financing_offer_retrieve_params.py b/stripe/params/capital/_financing_offer_retrieve_params.py
new file mode 100644
index 000000000..fb554bcf3
--- /dev/null
+++ b/stripe/params/capital/_financing_offer_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FinancingOfferRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/capital/_financing_summary_retrieve_params.py b/stripe/params/capital/_financing_summary_retrieve_params.py
new file mode 100644
index 000000000..8b6b54ec6
--- /dev/null
+++ b/stripe/params/capital/_financing_summary_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FinancingSummaryRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/capital/_financing_transaction_list_params.py b/stripe/params/capital/_financing_transaction_list_params.py
new file mode 100644
index 000000000..8cb2f017f
--- /dev/null
+++ b/stripe/params/capital/_financing_transaction_list_params.py
@@ -0,0 +1,40 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FinancingTransactionListParams(RequestOptions):
+ charge: NotRequired[str]
+ """
+ For transactions of type `paydown` and reason `automatic_withholding` only, only returns transactions that were created as a result of this charge.
+ """
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ financing_offer: NotRequired[str]
+ """
+ Returns transactions that were created that apply to this financing offer ID.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ reversed_transaction: NotRequired[str]
+ """
+ Only returns transactions that are responsible for reversing this financing transaction ID.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
+ treasury_transaction: NotRequired[str]
+ """
+ For transactions of type `paydown` and reason `automatic_withholding` only, only returns transactions that were created as a result of this Treasury Transaction.
+ """
diff --git a/stripe/params/capital/_financing_transaction_retrieve_params.py b/stripe/params/capital/_financing_transaction_retrieve_params.py
new file mode 100644
index 000000000..af7f0a1d7
--- /dev/null
+++ b/stripe/params/capital/_financing_transaction_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FinancingTransactionRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py
index 7a0905661..d3a183bca 100644
--- a/stripe/params/checkout/__init__.py
+++ b/stripe/params/checkout/__init__.py
@@ -29,6 +29,7 @@
SessionCreateParamsCustomTextTermsOfServiceAcceptance as SessionCreateParamsCustomTextTermsOfServiceAcceptance,
SessionCreateParamsCustomerUpdate as SessionCreateParamsCustomerUpdate,
SessionCreateParamsDiscount as SessionCreateParamsDiscount,
+ SessionCreateParamsDiscountCouponData as SessionCreateParamsDiscountCouponData,
SessionCreateParamsInvoiceCreation as SessionCreateParamsInvoiceCreation,
SessionCreateParamsInvoiceCreationInvoiceData as SessionCreateParamsInvoiceCreationInvoiceData,
SessionCreateParamsInvoiceCreationInvoiceDataCustomField as SessionCreateParamsInvoiceCreationInvoiceDataCustomField,
@@ -95,6 +96,7 @@
SessionCreateParamsPaymentMethodOptionsPayto as SessionCreateParamsPaymentMethodOptionsPayto,
SessionCreateParamsPaymentMethodOptionsPaytoMandateOptions as SessionCreateParamsPaymentMethodOptionsPaytoMandateOptions,
SessionCreateParamsPaymentMethodOptionsPix as SessionCreateParamsPaymentMethodOptionsPix,
+ SessionCreateParamsPaymentMethodOptionsPixMandateOptions as SessionCreateParamsPaymentMethodOptionsPixMandateOptions,
SessionCreateParamsPaymentMethodOptionsRevolutPay as SessionCreateParamsPaymentMethodOptionsRevolutPay,
SessionCreateParamsPaymentMethodOptionsSamsungPay as SessionCreateParamsPaymentMethodOptionsSamsungPay,
SessionCreateParamsPaymentMethodOptionsSatispay as SessionCreateParamsPaymentMethodOptionsSatispay,
@@ -107,6 +109,7 @@
SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
SessionCreateParamsPaymentMethodOptionsWechatPay as SessionCreateParamsPaymentMethodOptionsWechatPay,
SessionCreateParamsPermissions as SessionCreateParamsPermissions,
+ SessionCreateParamsPermissionsUpdate as SessionCreateParamsPermissionsUpdate,
SessionCreateParamsPhoneNumberCollection as SessionCreateParamsPhoneNumberCollection,
SessionCreateParamsSavedPaymentMethodOptions as SessionCreateParamsSavedPaymentMethodOptions,
SessionCreateParamsSetupIntentData as SessionCreateParamsSetupIntentData,
@@ -146,9 +149,16 @@
)
from stripe.params.checkout._session_modify_params import (
SessionModifyParams as SessionModifyParams,
+ SessionModifyParamsAutomaticTax as SessionModifyParamsAutomaticTax,
+ SessionModifyParamsAutomaticTaxLiability as SessionModifyParamsAutomaticTaxLiability,
SessionModifyParamsCollectedInformation as SessionModifyParamsCollectedInformation,
SessionModifyParamsCollectedInformationShippingDetails as SessionModifyParamsCollectedInformationShippingDetails,
SessionModifyParamsCollectedInformationShippingDetailsAddress as SessionModifyParamsCollectedInformationShippingDetailsAddress,
+ SessionModifyParamsDiscount as SessionModifyParamsDiscount,
+ SessionModifyParamsDiscountCouponData as SessionModifyParamsDiscountCouponData,
+ SessionModifyParamsInvoiceCreation as SessionModifyParamsInvoiceCreation,
+ SessionModifyParamsInvoiceCreationInvoiceData as SessionModifyParamsInvoiceCreationInvoiceData,
+ SessionModifyParamsInvoiceCreationInvoiceDataIssuer as SessionModifyParamsInvoiceCreationInvoiceDataIssuer,
SessionModifyParamsLineItem as SessionModifyParamsLineItem,
SessionModifyParamsLineItemAdjustableQuantity as SessionModifyParamsLineItemAdjustableQuantity,
SessionModifyParamsLineItemPriceData as SessionModifyParamsLineItemPriceData,
@@ -161,15 +171,25 @@
SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimateMinimum as SessionModifyParamsShippingOptionShippingRateDataDeliveryEstimateMinimum,
SessionModifyParamsShippingOptionShippingRateDataFixedAmount as SessionModifyParamsShippingOptionShippingRateDataFixedAmount,
SessionModifyParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions as SessionModifyParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions,
+ SessionModifyParamsSubscriptionData as SessionModifyParamsSubscriptionData,
+ SessionModifyParamsSubscriptionDataInvoiceSettings as SessionModifyParamsSubscriptionDataInvoiceSettings,
+ SessionModifyParamsSubscriptionDataInvoiceSettingsIssuer as SessionModifyParamsSubscriptionDataInvoiceSettingsIssuer,
)
from stripe.params.checkout._session_retrieve_params import (
SessionRetrieveParams as SessionRetrieveParams,
)
from stripe.params.checkout._session_update_params import (
SessionUpdateParams as SessionUpdateParams,
+ SessionUpdateParamsAutomaticTax as SessionUpdateParamsAutomaticTax,
+ SessionUpdateParamsAutomaticTaxLiability as SessionUpdateParamsAutomaticTaxLiability,
SessionUpdateParamsCollectedInformation as SessionUpdateParamsCollectedInformation,
SessionUpdateParamsCollectedInformationShippingDetails as SessionUpdateParamsCollectedInformationShippingDetails,
SessionUpdateParamsCollectedInformationShippingDetailsAddress as SessionUpdateParamsCollectedInformationShippingDetailsAddress,
+ SessionUpdateParamsDiscount as SessionUpdateParamsDiscount,
+ SessionUpdateParamsDiscountCouponData as SessionUpdateParamsDiscountCouponData,
+ SessionUpdateParamsInvoiceCreation as SessionUpdateParamsInvoiceCreation,
+ SessionUpdateParamsInvoiceCreationInvoiceData as SessionUpdateParamsInvoiceCreationInvoiceData,
+ SessionUpdateParamsInvoiceCreationInvoiceDataIssuer as SessionUpdateParamsInvoiceCreationInvoiceDataIssuer,
SessionUpdateParamsLineItem as SessionUpdateParamsLineItem,
SessionUpdateParamsLineItemAdjustableQuantity as SessionUpdateParamsLineItemAdjustableQuantity,
SessionUpdateParamsLineItemPriceData as SessionUpdateParamsLineItemPriceData,
@@ -182,6 +202,9 @@
SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum as SessionUpdateParamsShippingOptionShippingRateDataDeliveryEstimateMinimum,
SessionUpdateParamsShippingOptionShippingRateDataFixedAmount as SessionUpdateParamsShippingOptionShippingRateDataFixedAmount,
SessionUpdateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions as SessionUpdateParamsShippingOptionShippingRateDataFixedAmountCurrencyOptions,
+ SessionUpdateParamsSubscriptionData as SessionUpdateParamsSubscriptionData,
+ SessionUpdateParamsSubscriptionDataInvoiceSettings as SessionUpdateParamsSubscriptionDataInvoiceSettings,
+ SessionUpdateParamsSubscriptionDataInvoiceSettingsIssuer as SessionUpdateParamsSubscriptionDataInvoiceSettingsIssuer,
)
# name -> (import_target, is_submodule)
@@ -282,6 +305,10 @@
"stripe.params.checkout._session_create_params",
False,
),
+ "SessionCreateParamsDiscountCouponData": (
+ "stripe.params.checkout._session_create_params",
+ False,
+ ),
"SessionCreateParamsInvoiceCreation": (
"stripe.params.checkout._session_create_params",
False,
@@ -546,6 +573,10 @@
"stripe.params.checkout._session_create_params",
False,
),
+ "SessionCreateParamsPaymentMethodOptionsPixMandateOptions": (
+ "stripe.params.checkout._session_create_params",
+ False,
+ ),
"SessionCreateParamsPaymentMethodOptionsRevolutPay": (
"stripe.params.checkout._session_create_params",
False,
@@ -594,6 +625,10 @@
"stripe.params.checkout._session_create_params",
False,
),
+ "SessionCreateParamsPermissionsUpdate": (
+ "stripe.params.checkout._session_create_params",
+ False,
+ ),
"SessionCreateParamsPhoneNumberCollection": (
"stripe.params.checkout._session_create_params",
False,
@@ -710,6 +745,14 @@
"stripe.params.checkout._session_modify_params",
False,
),
+ "SessionModifyParamsAutomaticTax": (
+ "stripe.params.checkout._session_modify_params",
+ False,
+ ),
+ "SessionModifyParamsAutomaticTaxLiability": (
+ "stripe.params.checkout._session_modify_params",
+ False,
+ ),
"SessionModifyParamsCollectedInformation": (
"stripe.params.checkout._session_modify_params",
False,
@@ -722,6 +765,26 @@
"stripe.params.checkout._session_modify_params",
False,
),
+ "SessionModifyParamsDiscount": (
+ "stripe.params.checkout._session_modify_params",
+ False,
+ ),
+ "SessionModifyParamsDiscountCouponData": (
+ "stripe.params.checkout._session_modify_params",
+ False,
+ ),
+ "SessionModifyParamsInvoiceCreation": (
+ "stripe.params.checkout._session_modify_params",
+ False,
+ ),
+ "SessionModifyParamsInvoiceCreationInvoiceData": (
+ "stripe.params.checkout._session_modify_params",
+ False,
+ ),
+ "SessionModifyParamsInvoiceCreationInvoiceDataIssuer": (
+ "stripe.params.checkout._session_modify_params",
+ False,
+ ),
"SessionModifyParamsLineItem": (
"stripe.params.checkout._session_modify_params",
False,
@@ -770,6 +833,18 @@
"stripe.params.checkout._session_modify_params",
False,
),
+ "SessionModifyParamsSubscriptionData": (
+ "stripe.params.checkout._session_modify_params",
+ False,
+ ),
+ "SessionModifyParamsSubscriptionDataInvoiceSettings": (
+ "stripe.params.checkout._session_modify_params",
+ False,
+ ),
+ "SessionModifyParamsSubscriptionDataInvoiceSettingsIssuer": (
+ "stripe.params.checkout._session_modify_params",
+ False,
+ ),
"SessionRetrieveParams": (
"stripe.params.checkout._session_retrieve_params",
False,
@@ -778,6 +853,14 @@
"stripe.params.checkout._session_update_params",
False,
),
+ "SessionUpdateParamsAutomaticTax": (
+ "stripe.params.checkout._session_update_params",
+ False,
+ ),
+ "SessionUpdateParamsAutomaticTaxLiability": (
+ "stripe.params.checkout._session_update_params",
+ False,
+ ),
"SessionUpdateParamsCollectedInformation": (
"stripe.params.checkout._session_update_params",
False,
@@ -790,6 +873,26 @@
"stripe.params.checkout._session_update_params",
False,
),
+ "SessionUpdateParamsDiscount": (
+ "stripe.params.checkout._session_update_params",
+ False,
+ ),
+ "SessionUpdateParamsDiscountCouponData": (
+ "stripe.params.checkout._session_update_params",
+ False,
+ ),
+ "SessionUpdateParamsInvoiceCreation": (
+ "stripe.params.checkout._session_update_params",
+ False,
+ ),
+ "SessionUpdateParamsInvoiceCreationInvoiceData": (
+ "stripe.params.checkout._session_update_params",
+ False,
+ ),
+ "SessionUpdateParamsInvoiceCreationInvoiceDataIssuer": (
+ "stripe.params.checkout._session_update_params",
+ False,
+ ),
"SessionUpdateParamsLineItem": (
"stripe.params.checkout._session_update_params",
False,
@@ -838,6 +941,18 @@
"stripe.params.checkout._session_update_params",
False,
),
+ "SessionUpdateParamsSubscriptionData": (
+ "stripe.params.checkout._session_update_params",
+ False,
+ ),
+ "SessionUpdateParamsSubscriptionDataInvoiceSettings": (
+ "stripe.params.checkout._session_update_params",
+ False,
+ ),
+ "SessionUpdateParamsSubscriptionDataInvoiceSettingsIssuer": (
+ "stripe.params.checkout._session_update_params",
+ False,
+ ),
}
if not TYPE_CHECKING:
diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py
index 5598d804f..38f8c4794 100644
--- a/stripe/params/checkout/_session_create_params.py
+++ b/stripe/params/checkout/_session_create_params.py
@@ -124,6 +124,7 @@ class SessionCreateParams(RequestOptions):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
"ideal",
"kakao_pay",
@@ -141,13 +142,17 @@ class SessionCreateParams(RequestOptions):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
"swish",
"twint",
@@ -307,6 +312,7 @@ class SessionCreateParams(RequestOptions):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
"ideal",
"kakao_pay",
@@ -325,13 +331,17 @@ class SessionCreateParams(RequestOptions):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
"swish",
"twint",
@@ -751,12 +761,43 @@ class SessionCreateParamsDiscount(TypedDict):
"""
The ID of the coupon to apply to this Session.
"""
+ coupon_data: NotRequired["SessionCreateParamsDiscountCouponData"]
+ """
+ Data used to generate a new [Coupon](https://docs.stripe.com/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
+ """
promotion_code: NotRequired[str]
"""
The ID of a promotion code to apply to this Session.
"""
+class SessionCreateParamsDiscountCouponData(TypedDict):
+ amount_off: NotRequired[int]
+ """
+ A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
+ """
+ duration: NotRequired[Literal["forever", "once", "repeating"]]
+ """
+ Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
+ """
+ metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ name: NotRequired[str]
+ """
+ Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
+ """
+ percent_off: NotRequired[float]
+ """
+ A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
+ """
+
+
class SessionCreateParamsInvoiceCreation(TypedDict):
enabled: bool
"""
@@ -1607,6 +1648,12 @@ class SessionCreateParamsPaymentMethodOptionsCard(TypedDict):
"""
Installment options for card payments
"""
+ request_decremental_authorization: NotRequired[
+ Literal["if_available", "never"]
+ ]
+ """
+ Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
+ """
request_extended_authorization: NotRequired[
Literal["if_available", "never"]
]
@@ -2116,6 +2163,10 @@ class SessionCreateParamsPaymentMethodOptionsPaypal(TypedDict):
"""
A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
"""
+ reference_id: NotRequired[str]
+ """
+ A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
+ """
risk_correlation_id: NotRequired[str]
"""
The risk correlation ID for an on-session payment using a saved PayPal payment method.
@@ -2134,6 +2185,10 @@ class SessionCreateParamsPaymentMethodOptionsPaypal(TypedDict):
If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
"""
+ subsellers: NotRequired[List[str]]
+ """
+ The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
+ """
class SessionCreateParamsPaymentMethodOptionsPayto(TypedDict):
@@ -2199,7 +2254,13 @@ class SessionCreateParamsPaymentMethodOptionsPix(TypedDict):
"""
The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
"""
- setup_future_usage: NotRequired[Literal["none"]]
+ mandate_options: NotRequired[
+ "SessionCreateParamsPaymentMethodOptionsPixMandateOptions"
+ ]
+ """
+ Additional fields for mandate creation.
+ """
+ setup_future_usage: NotRequired[Literal["none", "off_session"]]
"""
Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2211,6 +2272,43 @@ class SessionCreateParamsPaymentMethodOptionsPix(TypedDict):
"""
+class SessionCreateParamsPaymentMethodOptionsPixMandateOptions(TypedDict):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
+ """
+ amount_includes_iof: NotRequired[Literal["always", "never"]]
+ """
+ Determines if the amount includes the IOF tax. Defaults to `never`.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ Type of amount. Defaults to `maximum`.
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
+ """
+ end_date: NotRequired[str]
+ """
+ Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
+ """
+ payment_schedule: NotRequired[
+ Literal["halfyearly", "monthly", "quarterly", "weekly", "yearly"]
+ ]
+ """
+ Schedule at which the future payments will be charged. Defaults to `weekly`.
+ """
+ reference: NotRequired[str]
+ """
+ Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
+ """
+ start_date: NotRequired[str]
+ """
+ Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
+ """
+
+
class SessionCreateParamsPaymentMethodOptionsRevolutPay(TypedDict):
capture_method: NotRequired[Literal["manual"]]
"""
@@ -2350,7 +2448,11 @@ class SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -2379,6 +2481,24 @@ class SessionCreateParamsPaymentMethodOptionsWechatPay(TypedDict):
class SessionCreateParamsPermissions(TypedDict):
+ update: NotRequired["SessionCreateParamsPermissionsUpdate"]
+ """
+ Permissions for updating the Checkout Session.
+ """
+ update_discounts: NotRequired[Literal["client_only", "server_only"]]
+ """
+ Determines which entity is allowed to update the discounts (coupons or promotion codes) that apply to this session.
+
+ Default is `client_only`. Stripe Checkout client will automatically handle discount updates. If set to `server_only`, only your server is allowed to update discounts.
+ """
+ update_line_items: NotRequired[Literal["client_only", "server_only"]]
+ """
+ Determines which entity is allowed to update the line items.
+
+ Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
+
+ When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
+ """
update_shipping_details: NotRequired[Literal["client_only", "server_only"]]
"""
Determines which entity is allowed to update the shipping details.
@@ -2389,6 +2509,25 @@ class SessionCreateParamsPermissions(TypedDict):
"""
+class SessionCreateParamsPermissionsUpdate(TypedDict):
+ line_items: NotRequired[Literal["client_only", "server_only"]]
+ """
+ Determines which entity is allowed to update the line items.
+
+ Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
+
+ When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
+ """
+ shipping_details: NotRequired[Literal["client_only", "server_only"]]
+ """
+ Determines which entity is allowed to update the shipping details.
+
+ Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
+
+ When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
+ """
+
+
class SessionCreateParamsPhoneNumberCollection(TypedDict):
enabled: bool
"""
diff --git a/stripe/params/checkout/_session_modify_params.py b/stripe/params/checkout/_session_modify_params.py
index ee3989f1b..5772cccac 100644
--- a/stripe/params/checkout/_session_modify_params.py
+++ b/stripe/params/checkout/_session_modify_params.py
@@ -6,16 +6,28 @@
class SessionModifyParams(RequestOptions):
+ automatic_tax: NotRequired["SessionModifyParamsAutomaticTax"]
+ """
+ Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.
+ """
collected_information: NotRequired[
"SessionModifyParamsCollectedInformation"
]
"""
Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
"""
+ discounts: NotRequired["Literal['']|List[SessionModifyParamsDiscount]"]
+ """
+ List of coupons and promotion codes attached to the Checkout Session.
+ """
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
+ invoice_creation: NotRequired["SessionModifyParamsInvoiceCreation"]
+ """
+ Generate a post-purchase Invoice for one-time payments.
+ """
line_items: NotRequired[List["SessionModifyParamsLineItem"]]
"""
A list of items the customer is purchasing.
@@ -42,6 +54,28 @@ class SessionModifyParams(RequestOptions):
"""
The shipping rate options to apply to this Session. Up to a maximum of 5.
"""
+ subscription_data: NotRequired["SessionModifyParamsSubscriptionData"]
+ """
+ A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
+ """
+
+
+class SessionModifyParamsAutomaticTax(TypedDict):
+ liability: NotRequired["SessionModifyParamsAutomaticTaxLiability"]
+ """
+ The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
+ """
+
+
+class SessionModifyParamsAutomaticTaxLiability(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced in the request.
+ """
class SessionModifyParamsCollectedInformation(TypedDict):
@@ -91,6 +125,69 @@ class SessionModifyParamsCollectedInformationShippingDetailsAddress(TypedDict):
"""
+class SessionModifyParamsDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The ID of the [Coupon](https://docs.stripe.com/api/coupons) to apply to this Session. One of `coupon` or `coupon_data` is required when updating discounts.
+ """
+ coupon_data: NotRequired["SessionModifyParamsDiscountCouponData"]
+ """
+ Data used to generate a new [Coupon](https://docs.stripe.com/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
+ """
+
+
+class SessionModifyParamsDiscountCouponData(TypedDict):
+ amount_off: NotRequired[int]
+ """
+ A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
+ """
+ duration: NotRequired[Literal["forever", "once", "repeating"]]
+ """
+ Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
+ """
+ metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ name: NotRequired[str]
+ """
+ Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
+ """
+ percent_off: NotRequired[float]
+ """
+ A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
+ """
+
+
+class SessionModifyParamsInvoiceCreation(TypedDict):
+ invoice_data: NotRequired["SessionModifyParamsInvoiceCreationInvoiceData"]
+ """
+ Parameters passed when creating invoices for payment-mode Checkout Sessions.
+ """
+
+
+class SessionModifyParamsInvoiceCreationInvoiceData(TypedDict):
+ issuer: NotRequired["SessionModifyParamsInvoiceCreationInvoiceDataIssuer"]
+ """
+ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
+ """
+
+
+class SessionModifyParamsInvoiceCreationInvoiceDataIssuer(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced in the request.
+ """
+
+
class SessionModifyParamsLineItem(TypedDict):
adjustable_quantity: NotRequired[
"SessionModifyParamsLineItemAdjustableQuantity"
@@ -332,3 +429,40 @@ class SessionModifyParamsShippingOptionShippingRateDataFixedAmountCurrencyOption
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
+
+
+class SessionModifyParamsSubscriptionData(TypedDict):
+ invoice_settings: NotRequired[
+ "SessionModifyParamsSubscriptionDataInvoiceSettings"
+ ]
+ """
+ All invoices will be billed using the specified settings.
+ """
+ trial_end: NotRequired[int]
+ """
+ Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
+ """
+ trial_period_days: NotRequired["Literal['']|int"]
+ """
+ Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
+ """
+
+
+class SessionModifyParamsSubscriptionDataInvoiceSettings(TypedDict):
+ issuer: NotRequired[
+ "SessionModifyParamsSubscriptionDataInvoiceSettingsIssuer"
+ ]
+ """
+ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
+ """
+
+
+class SessionModifyParamsSubscriptionDataInvoiceSettingsIssuer(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced in the request.
+ """
diff --git a/stripe/params/checkout/_session_update_params.py b/stripe/params/checkout/_session_update_params.py
index f0ac3ed7d..f6eabc23a 100644
--- a/stripe/params/checkout/_session_update_params.py
+++ b/stripe/params/checkout/_session_update_params.py
@@ -5,16 +5,28 @@
class SessionUpdateParams(TypedDict):
+ automatic_tax: NotRequired["SessionUpdateParamsAutomaticTax"]
+ """
+ Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.
+ """
collected_information: NotRequired[
"SessionUpdateParamsCollectedInformation"
]
"""
Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
"""
+ discounts: NotRequired["Literal['']|List[SessionUpdateParamsDiscount]"]
+ """
+ List of coupons and promotion codes attached to the Checkout Session.
+ """
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
+ invoice_creation: NotRequired["SessionUpdateParamsInvoiceCreation"]
+ """
+ Generate a post-purchase Invoice for one-time payments.
+ """
line_items: NotRequired[List["SessionUpdateParamsLineItem"]]
"""
A list of items the customer is purchasing.
@@ -41,6 +53,28 @@ class SessionUpdateParams(TypedDict):
"""
The shipping rate options to apply to this Session. Up to a maximum of 5.
"""
+ subscription_data: NotRequired["SessionUpdateParamsSubscriptionData"]
+ """
+ A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
+ """
+
+
+class SessionUpdateParamsAutomaticTax(TypedDict):
+ liability: NotRequired["SessionUpdateParamsAutomaticTaxLiability"]
+ """
+ The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
+ """
+
+
+class SessionUpdateParamsAutomaticTaxLiability(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced in the request.
+ """
class SessionUpdateParamsCollectedInformation(TypedDict):
@@ -90,6 +124,69 @@ class SessionUpdateParamsCollectedInformationShippingDetailsAddress(TypedDict):
"""
+class SessionUpdateParamsDiscount(TypedDict):
+ coupon: NotRequired[str]
+ """
+ The ID of the [Coupon](https://docs.stripe.com/api/coupons) to apply to this Session. One of `coupon` or `coupon_data` is required when updating discounts.
+ """
+ coupon_data: NotRequired["SessionUpdateParamsDiscountCouponData"]
+ """
+ Data used to generate a new [Coupon](https://docs.stripe.com/api/coupon) object inline. One of `coupon` or `coupon_data` is required when updating discounts.
+ """
+
+
+class SessionUpdateParamsDiscountCouponData(TypedDict):
+ amount_off: NotRequired[int]
+ """
+ A positive integer representing the amount to subtract from an invoice total (required if `percent_off` is not passed).
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `amount_off` parameter (required if `amount_off` is passed).
+ """
+ duration: NotRequired[Literal["forever", "once", "repeating"]]
+ """
+ Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`.
+ """
+ metadata: NotRequired["Literal['']|Dict[str, str]"]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ name: NotRequired[str]
+ """
+ Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the `id` is shown if `name` is not set.
+ """
+ percent_off: NotRequired[float]
+ """
+ A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
+ """
+
+
+class SessionUpdateParamsInvoiceCreation(TypedDict):
+ invoice_data: NotRequired["SessionUpdateParamsInvoiceCreationInvoiceData"]
+ """
+ Parameters passed when creating invoices for payment-mode Checkout Sessions.
+ """
+
+
+class SessionUpdateParamsInvoiceCreationInvoiceData(TypedDict):
+ issuer: NotRequired["SessionUpdateParamsInvoiceCreationInvoiceDataIssuer"]
+ """
+ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
+ """
+
+
+class SessionUpdateParamsInvoiceCreationInvoiceDataIssuer(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced in the request.
+ """
+
+
class SessionUpdateParamsLineItem(TypedDict):
adjustable_quantity: NotRequired[
"SessionUpdateParamsLineItemAdjustableQuantity"
@@ -331,3 +428,40 @@ class SessionUpdateParamsShippingOptionShippingRateDataFixedAmountCurrencyOption
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
+
+
+class SessionUpdateParamsSubscriptionData(TypedDict):
+ invoice_settings: NotRequired[
+ "SessionUpdateParamsSubscriptionDataInvoiceSettings"
+ ]
+ """
+ All invoices will be billed using the specified settings.
+ """
+ trial_end: NotRequired[int]
+ """
+ Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
+ """
+ trial_period_days: NotRequired["Literal['']|int"]
+ """
+ Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
+ """
+
+
+class SessionUpdateParamsSubscriptionDataInvoiceSettings(TypedDict):
+ issuer: NotRequired[
+ "SessionUpdateParamsSubscriptionDataInvoiceSettingsIssuer"
+ ]
+ """
+ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
+ """
+
+
+class SessionUpdateParamsSubscriptionDataInvoiceSettingsIssuer(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account being referenced when `type` is `account`.
+ """
+ type: Literal["account", "self"]
+ """
+ Type of the account referenced in the request.
+ """
diff --git a/stripe/params/financial_connections/__init__.py b/stripe/params/financial_connections/__init__.py
index bfa14a8f5..f0bc4f804 100644
--- a/stripe/params/financial_connections/__init__.py
+++ b/stripe/params/financial_connections/__init__.py
@@ -7,6 +7,12 @@
from stripe.params.financial_connections._account_disconnect_params import (
AccountDisconnectParams as AccountDisconnectParams,
)
+ from stripe.params.financial_connections._account_inferred_balance_list_params import (
+ AccountInferredBalanceListParams as AccountInferredBalanceListParams,
+ )
+ from stripe.params.financial_connections._account_list_inferred_balances_params import (
+ AccountListInferredBalancesParams as AccountListInferredBalancesParams,
+ )
from stripe.params.financial_connections._account_list_owners_params import (
AccountListOwnersParams as AccountListOwnersParams,
)
@@ -32,10 +38,18 @@
from stripe.params.financial_connections._account_unsubscribe_params import (
AccountUnsubscribeParams as AccountUnsubscribeParams,
)
+ from stripe.params.financial_connections._institution_list_params import (
+ InstitutionListParams as InstitutionListParams,
+ )
+ from stripe.params.financial_connections._institution_retrieve_params import (
+ InstitutionRetrieveParams as InstitutionRetrieveParams,
+ )
from stripe.params.financial_connections._session_create_params import (
SessionCreateParams as SessionCreateParams,
SessionCreateParamsAccountHolder as SessionCreateParamsAccountHolder,
SessionCreateParamsFilters as SessionCreateParamsFilters,
+ SessionCreateParamsLimits as SessionCreateParamsLimits,
+ SessionCreateParamsManualEntry as SessionCreateParamsManualEntry,
)
from stripe.params.financial_connections._session_retrieve_params import (
SessionRetrieveParams as SessionRetrieveParams,
@@ -55,6 +69,14 @@
"stripe.params.financial_connections._account_disconnect_params",
False,
),
+ "AccountInferredBalanceListParams": (
+ "stripe.params.financial_connections._account_inferred_balance_list_params",
+ False,
+ ),
+ "AccountListInferredBalancesParams": (
+ "stripe.params.financial_connections._account_list_inferred_balances_params",
+ False,
+ ),
"AccountListOwnersParams": (
"stripe.params.financial_connections._account_list_owners_params",
False,
@@ -91,6 +113,14 @@
"stripe.params.financial_connections._account_unsubscribe_params",
False,
),
+ "InstitutionListParams": (
+ "stripe.params.financial_connections._institution_list_params",
+ False,
+ ),
+ "InstitutionRetrieveParams": (
+ "stripe.params.financial_connections._institution_retrieve_params",
+ False,
+ ),
"SessionCreateParams": (
"stripe.params.financial_connections._session_create_params",
False,
@@ -103,6 +133,14 @@
"stripe.params.financial_connections._session_create_params",
False,
),
+ "SessionCreateParamsLimits": (
+ "stripe.params.financial_connections._session_create_params",
+ False,
+ ),
+ "SessionCreateParamsManualEntry": (
+ "stripe.params.financial_connections._session_create_params",
+ False,
+ ),
"SessionRetrieveParams": (
"stripe.params.financial_connections._session_retrieve_params",
False,
diff --git a/stripe/params/financial_connections/_account_inferred_balance_list_params.py b/stripe/params/financial_connections/_account_inferred_balance_list_params.py
new file mode 100644
index 000000000..24106a4dc
--- /dev/null
+++ b/stripe/params/financial_connections/_account_inferred_balance_list_params.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class AccountInferredBalanceListParams(TypedDict):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/financial_connections/_account_list_inferred_balances_params.py b/stripe/params/financial_connections/_account_list_inferred_balances_params.py
new file mode 100644
index 000000000..d36ad9553
--- /dev/null
+++ b/stripe/params/financial_connections/_account_list_inferred_balances_params.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class AccountListInferredBalancesParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/financial_connections/_account_refresh_account_params.py b/stripe/params/financial_connections/_account_refresh_account_params.py
index 578ef3c4b..257cd29cd 100644
--- a/stripe/params/financial_connections/_account_refresh_account_params.py
+++ b/stripe/params/financial_connections/_account_refresh_account_params.py
@@ -10,7 +10,9 @@ class AccountRefreshAccountParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
- features: List[Literal["balance", "ownership", "transactions"]]
+ features: List[
+ Literal["balance", "inferred_balances", "ownership", "transactions"]
+ ]
"""
The list of account features that you would like to refresh.
"""
diff --git a/stripe/params/financial_connections/_account_refresh_params.py b/stripe/params/financial_connections/_account_refresh_params.py
index 7ca98edde..e4c8a982a 100644
--- a/stripe/params/financial_connections/_account_refresh_params.py
+++ b/stripe/params/financial_connections/_account_refresh_params.py
@@ -9,7 +9,9 @@ class AccountRefreshParams(TypedDict):
"""
Specifies which fields in the response should be expanded.
"""
- features: List[Literal["balance", "ownership", "transactions"]]
+ features: List[
+ Literal["balance", "inferred_balances", "ownership", "transactions"]
+ ]
"""
The list of account features that you would like to refresh.
"""
diff --git a/stripe/params/financial_connections/_account_subscribe_params.py b/stripe/params/financial_connections/_account_subscribe_params.py
index b6ac1c02e..1ab376be3 100644
--- a/stripe/params/financial_connections/_account_subscribe_params.py
+++ b/stripe/params/financial_connections/_account_subscribe_params.py
@@ -10,7 +10,7 @@ class AccountSubscribeParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
- features: List[Literal["transactions"]]
+ features: List[Literal["balance", "inferred_balances", "transactions"]]
"""
The list of account features to which you would like to subscribe.
"""
diff --git a/stripe/params/financial_connections/_account_unsubscribe_params.py b/stripe/params/financial_connections/_account_unsubscribe_params.py
index 98cc488d8..6035ae614 100644
--- a/stripe/params/financial_connections/_account_unsubscribe_params.py
+++ b/stripe/params/financial_connections/_account_unsubscribe_params.py
@@ -10,7 +10,7 @@ class AccountUnsubscribeParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
- features: List[Literal["transactions"]]
+ features: List[Literal["balance", "inferred_balances", "transactions"]]
"""
The list of account features from which you would like to unsubscribe.
"""
diff --git a/stripe/params/financial_connections/_institution_list_params.py b/stripe/params/financial_connections/_institution_list_params.py
new file mode 100644
index 000000000..d6294d9f0
--- /dev/null
+++ b/stripe/params/financial_connections/_institution_list_params.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class InstitutionListParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/financial_connections/_institution_retrieve_params.py b/stripe/params/financial_connections/_institution_retrieve_params.py
new file mode 100644
index 000000000..f791467db
--- /dev/null
+++ b/stripe/params/financial_connections/_institution_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class InstitutionRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/financial_connections/_session_create_params.py b/stripe/params/financial_connections/_session_create_params.py
index 4150e379b..ebb694b62 100644
--- a/stripe/params/financial_connections/_session_create_params.py
+++ b/stripe/params/financial_connections/_session_create_params.py
@@ -18,6 +18,14 @@ class SessionCreateParams(RequestOptions):
"""
Filters to restrict the kinds of accounts to collect.
"""
+ limits: NotRequired["SessionCreateParamsLimits"]
+ """
+ Settings for configuring Session-specific limits.
+ """
+ manual_entry: NotRequired["SessionCreateParamsManualEntry"]
+ """
+ Customize manual entry behavior
+ """
permissions: List[
Literal["balances", "ownership", "payment_method", "transactions"]
]
@@ -27,7 +35,11 @@ class SessionCreateParams(RequestOptions):
Possible values are `balances`, `transactions`, `ownership`, and `payment_method`.
"""
prefetch: NotRequired[
- List[Literal["balances", "ownership", "transactions"]]
+ List[
+ Literal[
+ "balances", "inferred_balances", "ownership", "transactions"
+ ]
+ ]
]
"""
List of data features that you would like to retrieve upon account creation.
@@ -76,3 +88,21 @@ class SessionCreateParamsFilters(TypedDict):
"""
List of countries from which to collect accounts.
"""
+ institution: NotRequired[str]
+ """
+ Stripe ID of the institution with which the customer should be directed to log in.
+ """
+
+
+class SessionCreateParamsLimits(TypedDict):
+ accounts: int
+ """
+ The number of accounts that can be linked in this Session.
+ """
+
+
+class SessionCreateParamsManualEntry(TypedDict):
+ mode: NotRequired[Literal["automatic", "custom"]]
+ """
+ Whether manual entry will be handled by Stripe during the Session.
+ """
diff --git a/stripe/params/issuing/__init__.py b/stripe/params/issuing/__init__.py
index 6598454d6..c1c613c49 100644
--- a/stripe/params/issuing/__init__.py
+++ b/stripe/params/issuing/__init__.py
@@ -181,6 +181,44 @@
CardholderUpdateParamsSpendingControls as CardholderUpdateParamsSpendingControls,
CardholderUpdateParamsSpendingControlsSpendingLimit as CardholderUpdateParamsSpendingControlsSpendingLimit,
)
+ from stripe.params.issuing._credit_underwriting_record_correct_params import (
+ CreditUnderwritingRecordCorrectParams as CreditUnderwritingRecordCorrectParams,
+ CreditUnderwritingRecordCorrectParamsApplication as CreditUnderwritingRecordCorrectParamsApplication,
+ CreditUnderwritingRecordCorrectParamsCreditUser as CreditUnderwritingRecordCorrectParamsCreditUser,
+ CreditUnderwritingRecordCorrectParamsDecision as CreditUnderwritingRecordCorrectParamsDecision,
+ CreditUnderwritingRecordCorrectParamsDecisionApplicationRejected as CreditUnderwritingRecordCorrectParamsDecisionApplicationRejected,
+ CreditUnderwritingRecordCorrectParamsDecisionCreditLimitApproved as CreditUnderwritingRecordCorrectParamsDecisionCreditLimitApproved,
+ CreditUnderwritingRecordCorrectParamsDecisionCreditLimitDecreased as CreditUnderwritingRecordCorrectParamsDecisionCreditLimitDecreased,
+ CreditUnderwritingRecordCorrectParamsDecisionCreditLineClosed as CreditUnderwritingRecordCorrectParamsDecisionCreditLineClosed,
+ CreditUnderwritingRecordCorrectParamsUnderwritingException as CreditUnderwritingRecordCorrectParamsUnderwritingException,
+ )
+ from stripe.params.issuing._credit_underwriting_record_create_from_application_params import (
+ CreditUnderwritingRecordCreateFromApplicationParams as CreditUnderwritingRecordCreateFromApplicationParams,
+ CreditUnderwritingRecordCreateFromApplicationParamsApplication as CreditUnderwritingRecordCreateFromApplicationParamsApplication,
+ CreditUnderwritingRecordCreateFromApplicationParamsCreditUser as CreditUnderwritingRecordCreateFromApplicationParamsCreditUser,
+ )
+ from stripe.params.issuing._credit_underwriting_record_create_from_proactive_review_params import (
+ CreditUnderwritingRecordCreateFromProactiveReviewParams as CreditUnderwritingRecordCreateFromProactiveReviewParams,
+ CreditUnderwritingRecordCreateFromProactiveReviewParamsCreditUser as CreditUnderwritingRecordCreateFromProactiveReviewParamsCreditUser,
+ CreditUnderwritingRecordCreateFromProactiveReviewParamsDecision as CreditUnderwritingRecordCreateFromProactiveReviewParamsDecision,
+ CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLimitApproved as CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLimitApproved,
+ CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLimitDecreased as CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLimitDecreased,
+ CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLineClosed as CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLineClosed,
+ CreditUnderwritingRecordCreateFromProactiveReviewParamsUnderwritingException as CreditUnderwritingRecordCreateFromProactiveReviewParamsUnderwritingException,
+ )
+ from stripe.params.issuing._credit_underwriting_record_list_params import (
+ CreditUnderwritingRecordListParams as CreditUnderwritingRecordListParams,
+ )
+ from stripe.params.issuing._credit_underwriting_record_report_decision_params import (
+ CreditUnderwritingRecordReportDecisionParams as CreditUnderwritingRecordReportDecisionParams,
+ CreditUnderwritingRecordReportDecisionParamsDecision as CreditUnderwritingRecordReportDecisionParamsDecision,
+ CreditUnderwritingRecordReportDecisionParamsDecisionApplicationRejected as CreditUnderwritingRecordReportDecisionParamsDecisionApplicationRejected,
+ CreditUnderwritingRecordReportDecisionParamsDecisionCreditLimitApproved as CreditUnderwritingRecordReportDecisionParamsDecisionCreditLimitApproved,
+ CreditUnderwritingRecordReportDecisionParamsUnderwritingException as CreditUnderwritingRecordReportDecisionParamsUnderwritingException,
+ )
+ from stripe.params.issuing._credit_underwriting_record_retrieve_params import (
+ CreditUnderwritingRecordRetrieveParams as CreditUnderwritingRecordRetrieveParams,
+ )
from stripe.params.issuing._dispute_create_params import (
DisputeCreateParams as DisputeCreateParams,
DisputeCreateParamsEvidence as DisputeCreateParamsEvidence,
@@ -213,6 +251,12 @@
from stripe.params.issuing._dispute_retrieve_params import (
DisputeRetrieveParams as DisputeRetrieveParams,
)
+ from stripe.params.issuing._dispute_settlement_detail_list_params import (
+ DisputeSettlementDetailListParams as DisputeSettlementDetailListParams,
+ )
+ from stripe.params.issuing._dispute_settlement_detail_retrieve_params import (
+ DisputeSettlementDetailRetrieveParams as DisputeSettlementDetailRetrieveParams,
+ )
from stripe.params.issuing._dispute_submit_params import (
DisputeSubmitParams as DisputeSubmitParams,
)
@@ -228,6 +272,13 @@
DisputeUpdateParamsEvidenceOther as DisputeUpdateParamsEvidenceOther,
DisputeUpdateParamsEvidenceServiceNotAsDescribed as DisputeUpdateParamsEvidenceServiceNotAsDescribed,
)
+ from stripe.params.issuing._fraud_liability_debit_list_params import (
+ FraudLiabilityDebitListParams as FraudLiabilityDebitListParams,
+ FraudLiabilityDebitListParamsCreated as FraudLiabilityDebitListParamsCreated,
+ )
+ from stripe.params.issuing._fraud_liability_debit_retrieve_params import (
+ FraudLiabilityDebitRetrieveParams as FraudLiabilityDebitRetrieveParams,
+ )
from stripe.params.issuing._personalization_design_activate_params import (
PersonalizationDesignActivateParams as PersonalizationDesignActivateParams,
)
@@ -802,6 +853,110 @@
"stripe.params.issuing._cardholder_update_params",
False,
),
+ "CreditUnderwritingRecordCorrectParams": (
+ "stripe.params.issuing._credit_underwriting_record_correct_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCorrectParamsApplication": (
+ "stripe.params.issuing._credit_underwriting_record_correct_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCorrectParamsCreditUser": (
+ "stripe.params.issuing._credit_underwriting_record_correct_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCorrectParamsDecision": (
+ "stripe.params.issuing._credit_underwriting_record_correct_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCorrectParamsDecisionApplicationRejected": (
+ "stripe.params.issuing._credit_underwriting_record_correct_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCorrectParamsDecisionCreditLimitApproved": (
+ "stripe.params.issuing._credit_underwriting_record_correct_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCorrectParamsDecisionCreditLimitDecreased": (
+ "stripe.params.issuing._credit_underwriting_record_correct_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCorrectParamsDecisionCreditLineClosed": (
+ "stripe.params.issuing._credit_underwriting_record_correct_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCorrectParamsUnderwritingException": (
+ "stripe.params.issuing._credit_underwriting_record_correct_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCreateFromApplicationParams": (
+ "stripe.params.issuing._credit_underwriting_record_create_from_application_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCreateFromApplicationParamsApplication": (
+ "stripe.params.issuing._credit_underwriting_record_create_from_application_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCreateFromApplicationParamsCreditUser": (
+ "stripe.params.issuing._credit_underwriting_record_create_from_application_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCreateFromProactiveReviewParams": (
+ "stripe.params.issuing._credit_underwriting_record_create_from_proactive_review_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCreateFromProactiveReviewParamsCreditUser": (
+ "stripe.params.issuing._credit_underwriting_record_create_from_proactive_review_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCreateFromProactiveReviewParamsDecision": (
+ "stripe.params.issuing._credit_underwriting_record_create_from_proactive_review_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLimitApproved": (
+ "stripe.params.issuing._credit_underwriting_record_create_from_proactive_review_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLimitDecreased": (
+ "stripe.params.issuing._credit_underwriting_record_create_from_proactive_review_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLineClosed": (
+ "stripe.params.issuing._credit_underwriting_record_create_from_proactive_review_params",
+ False,
+ ),
+ "CreditUnderwritingRecordCreateFromProactiveReviewParamsUnderwritingException": (
+ "stripe.params.issuing._credit_underwriting_record_create_from_proactive_review_params",
+ False,
+ ),
+ "CreditUnderwritingRecordListParams": (
+ "stripe.params.issuing._credit_underwriting_record_list_params",
+ False,
+ ),
+ "CreditUnderwritingRecordReportDecisionParams": (
+ "stripe.params.issuing._credit_underwriting_record_report_decision_params",
+ False,
+ ),
+ "CreditUnderwritingRecordReportDecisionParamsDecision": (
+ "stripe.params.issuing._credit_underwriting_record_report_decision_params",
+ False,
+ ),
+ "CreditUnderwritingRecordReportDecisionParamsDecisionApplicationRejected": (
+ "stripe.params.issuing._credit_underwriting_record_report_decision_params",
+ False,
+ ),
+ "CreditUnderwritingRecordReportDecisionParamsDecisionCreditLimitApproved": (
+ "stripe.params.issuing._credit_underwriting_record_report_decision_params",
+ False,
+ ),
+ "CreditUnderwritingRecordReportDecisionParamsUnderwritingException": (
+ "stripe.params.issuing._credit_underwriting_record_report_decision_params",
+ False,
+ ),
+ "CreditUnderwritingRecordRetrieveParams": (
+ "stripe.params.issuing._credit_underwriting_record_retrieve_params",
+ False,
+ ),
"DisputeCreateParams": (
"stripe.params.issuing._dispute_create_params",
False,
@@ -895,6 +1050,14 @@
"stripe.params.issuing._dispute_retrieve_params",
False,
),
+ "DisputeSettlementDetailListParams": (
+ "stripe.params.issuing._dispute_settlement_detail_list_params",
+ False,
+ ),
+ "DisputeSettlementDetailRetrieveParams": (
+ "stripe.params.issuing._dispute_settlement_detail_retrieve_params",
+ False,
+ ),
"DisputeSubmitParams": (
"stripe.params.issuing._dispute_submit_params",
False,
@@ -939,6 +1102,18 @@
"stripe.params.issuing._dispute_update_params",
False,
),
+ "FraudLiabilityDebitListParams": (
+ "stripe.params.issuing._fraud_liability_debit_list_params",
+ False,
+ ),
+ "FraudLiabilityDebitListParamsCreated": (
+ "stripe.params.issuing._fraud_liability_debit_list_params",
+ False,
+ ),
+ "FraudLiabilityDebitRetrieveParams": (
+ "stripe.params.issuing._fraud_liability_debit_retrieve_params",
+ False,
+ ),
"PersonalizationDesignActivateParams": (
"stripe.params.issuing._personalization_design_activate_params",
False,
diff --git a/stripe/params/issuing/_cardholder_create_params.py b/stripe/params/issuing/_cardholder_create_params.py
index 83fa12c91..c115aaf9f 100644
--- a/stripe/params/issuing/_cardholder_create_params.py
+++ b/stripe/params/issuing/_cardholder_create_params.py
@@ -36,7 +36,8 @@ class CardholderCreateParams(RequestOptions):
"""
phone_number: NotRequired[str]
"""
- The cardholder's phone number. This will be transformed to [E.164](https://en.wikipedia.org/wiki/E.164) if it is not provided in that format already. This is required for all cardholders who will be creating EU cards. See the [3D Secure documentation](https://docs.stripe.com/issuing/3d-secure#when-is-3d-secure-applied) for more details.
+ The cardholder's phone number. This will be transformed to [E.164](https://en.wikipedia.org/wiki/E.164) if it is not provided in that format already. This is required for all cardholders who will be creating EU cards.
+ While phone number is optional if the cardholder will not be creating EU cards, note that this cardholder will not be eligible for 3DS without a phone number. See the [3D Secure documentation](https://docs.stripe.com/issuing/3d-secure#when-is-3d-secure-applied) for more details.
"""
preferred_locales: NotRequired[List[Literal["de", "en", "es", "fr", "it"]]]
"""
diff --git a/stripe/params/issuing/_credit_underwriting_record_correct_params.py b/stripe/params/issuing/_credit_underwriting_record_correct_params.py
new file mode 100644
index 000000000..d7b2c7a51
--- /dev/null
+++ b/stripe/params/issuing/_credit_underwriting_record_correct_params.py
@@ -0,0 +1,402 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class CreditUnderwritingRecordCorrectParams(RequestOptions):
+ application: NotRequired[
+ "CreditUnderwritingRecordCorrectParamsApplication"
+ ]
+ """
+ Details about the application submission.
+ """
+ credit_user: NotRequired["CreditUnderwritingRecordCorrectParamsCreditUser"]
+ """
+ Information about the company or person applying or holding the account.
+ """
+ decided_at: NotRequired[int]
+ """
+ Date when a decision was made.
+ """
+ decision: NotRequired["CreditUnderwritingRecordCorrectParamsDecision"]
+ """
+ Details about the decision.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ regulatory_reporting_file: NotRequired[str]
+ """
+ File containing regulatory reporting data for the decision. Required if you are subject to this [reporting requirement](https://docs.stripe.com/issuing/credit/report-required-regulatory-data-for-credit-decisions). Optional if previously provided and no changes are needed.
+ """
+ underwriting_exception: NotRequired[
+ "CreditUnderwritingRecordCorrectParamsUnderwritingException"
+ ]
+ """
+ If an exception to the usual underwriting criteria was made for this decision, details about the exception must be provided. Exceptions should only be granted in rare circumstances, in consultation with Stripe Compliance.
+ """
+
+
+class CreditUnderwritingRecordCorrectParamsApplication(TypedDict):
+ application_method: NotRequired[
+ Literal["in_person", "mail", "online", "phone"]
+ ]
+ """
+ The channel through which the applicant has submitted their application. Defaults to `online`.
+ """
+ purpose: Literal["credit_limit_increase", "credit_line_opening"]
+ """
+ Scope of demand made by the applicant.
+ """
+ submitted_at: int
+ """
+ Date when the applicant submitted their application.
+ """
+
+
+class CreditUnderwritingRecordCorrectParamsCreditUser(TypedDict):
+ email: str
+ """
+ Email of the applicant or accountholder.
+ """
+ name: str
+ """
+ Full name of the company or person.
+ """
+
+
+class CreditUnderwritingRecordCorrectParamsDecision(TypedDict):
+ application_rejected: NotRequired[
+ "CreditUnderwritingRecordCorrectParamsDecisionApplicationRejected"
+ ]
+ """
+ Details about the application rejection.
+ """
+ credit_limit_approved: NotRequired[
+ "CreditUnderwritingRecordCorrectParamsDecisionCreditLimitApproved"
+ ]
+ """
+ Details about the credit limit approved. An approved credit limit is required before you can set a `credit_limit_amount` in the [CreditPolicy API](https://docs.stripe.com/api/issuing/credit_policy/)
+ """
+ credit_limit_decreased: NotRequired[
+ "CreditUnderwritingRecordCorrectParamsDecisionCreditLimitDecreased"
+ ]
+ """
+ Details about the credit limit decreased.
+ """
+ credit_line_closed: NotRequired[
+ "CreditUnderwritingRecordCorrectParamsDecisionCreditLineClosed"
+ ]
+ """
+ Details about the credit line closed.
+ """
+ type: Literal[
+ "additional_information_requested",
+ "application_rejected",
+ "credit_limit_approved",
+ "credit_limit_decreased",
+ "credit_line_closed",
+ "no_changes",
+ "withdrawn_by_applicant",
+ ]
+ """
+ Outcome of the decision.
+ """
+
+
+class CreditUnderwritingRecordCorrectParamsDecisionApplicationRejected(
+ TypedDict,
+):
+ reason_other_explanation: NotRequired[str]
+ """
+ Details about the `reasons.other` when present.
+ """
+ reasons: List[
+ Literal[
+ "applicant_is_not_beneficial_owner",
+ "applicant_too_young",
+ "application_is_not_beneficial_owner",
+ "bankruptcy",
+ "business_size_too_small",
+ "current_account_tier_ineligible",
+ "customer_already_exists",
+ "customer_requested_account_closure",
+ "debt_to_cash_balance_ratio_too_high",
+ "debt_to_equity_ratio_too_high",
+ "delinquent_credit_obligations",
+ "dispute_rate_too_high",
+ "duration_of_residence",
+ "excessive_income_or_revenue_obligations",
+ "expenses_to_cash_balance_ratio_too_high",
+ "foreclosure_or_repossession",
+ "frozen_file_at_credit_bureau",
+ "garnishment_or_attachment",
+ "government_loan_program_criteria",
+ "high_concentration_of_clients",
+ "high_risk_industry",
+ "incomplete_application",
+ "inconsistent_monthly_revenues",
+ "insufficient_account_history_with_platform",
+ "insufficient_bank_account_history",
+ "insufficient_cash_balance",
+ "insufficient_cash_flow",
+ "insufficient_collateral",
+ "insufficient_credit_experience",
+ "insufficient_deposits",
+ "insufficient_income",
+ "insufficient_margin_ratio",
+ "insufficient_operating_profit",
+ "insufficient_period_in_operation",
+ "insufficient_reserves",
+ "insufficient_revenue",
+ "insufficient_social_media_performance",
+ "insufficient_time_in_network",
+ "insufficient_trade_credit_insurance",
+ "invalid_business_license",
+ "lacking_cash_account",
+ "late_payment_history_reported_to_bureau",
+ "lien_collection_action_or_judgement",
+ "negative_public_information",
+ "no_credit_file",
+ "other",
+ "outside_supported_country",
+ "outside_supported_state",
+ "poor_payment_history_with_platform",
+ "prior_or_current_legal_action",
+ "prohibited_industry",
+ "rate_of_cash_balance_fluctuation_too_high",
+ "recent_inquiries_on_business_credit_report",
+ "removal_of_bank_account_connection",
+ "revenue_discrepancy",
+ "runway_too_short",
+ "suspected_fraud",
+ "too_many_non_sufficient_funds_or_overdrafts",
+ "unable_to_verify_address",
+ "unable_to_verify_identity",
+ "unable_to_verify_income_or_revenue",
+ "unprofitable",
+ "unsupportable_business_type",
+ ]
+ ]
+ """
+ List of reasons why the application was rejected, up to 4 reasons, in order of importance.
+ """
+
+
+class CreditUnderwritingRecordCorrectParamsDecisionCreditLimitApproved(
+ TypedDict,
+):
+ amount: int
+ """
+ The credit approved, in the currency of the account and [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ """
+ currency: NotRequired[str]
+ """
+ The currency of the credit approved, will default to the Account's Issuing currency.
+ """
+
+
+class CreditUnderwritingRecordCorrectParamsDecisionCreditLimitDecreased(
+ TypedDict,
+):
+ amount: int
+ """
+ The credit approved, in the currency of the account and [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ """
+ currency: NotRequired[str]
+ """
+ The currency of the credit approved, will default to the Account's Issuing currency.
+ """
+ reason_other_explanation: NotRequired[str]
+ """
+ Details about the `reasons.other` when present.
+ """
+ reasons: List[
+ Literal[
+ "applicant_is_not_beneficial_owner",
+ "applicant_too_young",
+ "application_is_not_beneficial_owner",
+ "bankruptcy",
+ "business_size_too_small",
+ "change_in_financial_state",
+ "change_in_utilization_of_credit_line",
+ "current_account_tier_ineligible",
+ "customer_already_exists",
+ "customer_requested_account_closure",
+ "debt_to_cash_balance_ratio_too_high",
+ "debt_to_equity_ratio_too_high",
+ "decrease_in_income_to_expense_ratio",
+ "decrease_in_social_media_performance",
+ "delinquent_credit_obligations",
+ "dispute_rate_too_high",
+ "duration_of_residence",
+ "exceeds_acceptable_platform_exposure",
+ "excessive_income_or_revenue_obligations",
+ "expenses_to_cash_balance_ratio_too_high",
+ "foreclosure_or_repossession",
+ "frozen_file_at_credit_bureau",
+ "garnishment_or_attachment",
+ "government_loan_program_criteria",
+ "has_recent_credit_limit_increase",
+ "high_concentration_of_clients",
+ "high_risk_industry",
+ "incomplete_application",
+ "inconsistent_monthly_revenues",
+ "insufficient_account_history_with_platform",
+ "insufficient_bank_account_history",
+ "insufficient_cash_balance",
+ "insufficient_cash_flow",
+ "insufficient_collateral",
+ "insufficient_credit_experience",
+ "insufficient_credit_utilization",
+ "insufficient_deposits",
+ "insufficient_income",
+ "insufficient_margin_ratio",
+ "insufficient_operating_profit",
+ "insufficient_period_in_operation",
+ "insufficient_reserves",
+ "insufficient_revenue",
+ "insufficient_social_media_performance",
+ "insufficient_time_in_network",
+ "insufficient_trade_credit_insurance",
+ "insufficient_usage_as_qualified_expenses",
+ "invalid_business_license",
+ "lacking_cash_account",
+ "late_payment_history_reported_to_bureau",
+ "lien_collection_action_or_judgement",
+ "negative_public_information",
+ "no_credit_file",
+ "other",
+ "outside_supported_country",
+ "outside_supported_state",
+ "poor_payment_history_with_platform",
+ "prior_or_current_legal_action",
+ "prohibited_industry",
+ "rate_of_cash_balance_fluctuation_too_high",
+ "recent_inquiries_on_business_credit_report",
+ "removal_of_bank_account_connection",
+ "revenue_discrepancy",
+ "runway_too_short",
+ "suspected_fraud",
+ "too_many_non_sufficient_funds_or_overdrafts",
+ "unable_to_verify_address",
+ "unable_to_verify_identity",
+ "unable_to_verify_income_or_revenue",
+ "unprofitable",
+ "unsupportable_business_type",
+ ]
+ ]
+ """
+ List of reasons why the existing credit was decreased, up to 4 reasons, in order of importance.
+ """
+
+
+class CreditUnderwritingRecordCorrectParamsDecisionCreditLineClosed(TypedDict):
+ reason_other_explanation: NotRequired[str]
+ """
+ Details about the `reasons.other` when present.
+ """
+ reasons: List[
+ Literal[
+ "applicant_is_not_beneficial_owner",
+ "applicant_too_young",
+ "application_is_not_beneficial_owner",
+ "bankruptcy",
+ "business_size_too_small",
+ "change_in_financial_state",
+ "change_in_utilization_of_credit_line",
+ "current_account_tier_ineligible",
+ "customer_already_exists",
+ "customer_requested_account_closure",
+ "debt_to_cash_balance_ratio_too_high",
+ "debt_to_equity_ratio_too_high",
+ "decrease_in_income_to_expense_ratio",
+ "decrease_in_social_media_performance",
+ "delinquent_credit_obligations",
+ "dispute_rate_too_high",
+ "duration_of_residence",
+ "exceeds_acceptable_platform_exposure",
+ "excessive_income_or_revenue_obligations",
+ "expenses_to_cash_balance_ratio_too_high",
+ "foreclosure_or_repossession",
+ "frozen_file_at_credit_bureau",
+ "garnishment_or_attachment",
+ "government_loan_program_criteria",
+ "has_recent_credit_limit_increase",
+ "high_concentration_of_clients",
+ "high_risk_industry",
+ "incomplete_application",
+ "inconsistent_monthly_revenues",
+ "insufficient_account_history_with_platform",
+ "insufficient_bank_account_history",
+ "insufficient_cash_balance",
+ "insufficient_cash_flow",
+ "insufficient_collateral",
+ "insufficient_credit_experience",
+ "insufficient_credit_utilization",
+ "insufficient_deposits",
+ "insufficient_income",
+ "insufficient_margin_ratio",
+ "insufficient_operating_profit",
+ "insufficient_period_in_operation",
+ "insufficient_reserves",
+ "insufficient_revenue",
+ "insufficient_social_media_performance",
+ "insufficient_time_in_network",
+ "insufficient_trade_credit_insurance",
+ "insufficient_usage_as_qualified_expenses",
+ "invalid_business_license",
+ "lacking_cash_account",
+ "late_payment_history_reported_to_bureau",
+ "lien_collection_action_or_judgement",
+ "negative_public_information",
+ "no_credit_file",
+ "other",
+ "outside_supported_country",
+ "outside_supported_state",
+ "poor_payment_history_with_platform",
+ "prior_or_current_legal_action",
+ "prohibited_industry",
+ "rate_of_cash_balance_fluctuation_too_high",
+ "recent_inquiries_on_business_credit_report",
+ "removal_of_bank_account_connection",
+ "revenue_discrepancy",
+ "runway_too_short",
+ "suspected_fraud",
+ "too_many_non_sufficient_funds_or_overdrafts",
+ "unable_to_verify_address",
+ "unable_to_verify_identity",
+ "unable_to_verify_income_or_revenue",
+ "unprofitable",
+ "unsupportable_business_type",
+ ]
+ ]
+ """
+ List of reasons why the credit line was closed, up to 4 reasons, in order of importance.
+ """
+
+
+class CreditUnderwritingRecordCorrectParamsUnderwritingException(TypedDict):
+ explanation: str
+ """
+ Written explanation for the exception.
+ """
+ original_decision_type: Literal[
+ "additional_information_requested",
+ "application_rejected",
+ "credit_limit_approved",
+ "credit_limit_decreased",
+ "credit_line_closed",
+ "no_changes",
+ "withdrawn_by_applicant",
+ ]
+ """
+ The decision before the exception was applied.
+ """
diff --git a/stripe/params/issuing/_credit_underwriting_record_create_from_application_params.py b/stripe/params/issuing/_credit_underwriting_record_create_from_application_params.py
new file mode 100644
index 000000000..f6f1672e5
--- /dev/null
+++ b/stripe/params/issuing/_credit_underwriting_record_create_from_application_params.py
@@ -0,0 +1,58 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class CreditUnderwritingRecordCreateFromApplicationParams(RequestOptions):
+ application: (
+ "CreditUnderwritingRecordCreateFromApplicationParamsApplication"
+ )
+ """
+ Details about the application submission.
+ """
+ credit_user: (
+ "CreditUnderwritingRecordCreateFromApplicationParamsCreditUser"
+ )
+ """
+ Information about the company or person applying or holding the account.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+
+
+class CreditUnderwritingRecordCreateFromApplicationParamsApplication(
+ TypedDict
+):
+ application_method: NotRequired[
+ Literal["in_person", "mail", "online", "phone"]
+ ]
+ """
+ The channel through which the applicant has submitted their application. Defaults to `online`.
+ """
+ purpose: Literal["credit_limit_increase", "credit_line_opening"]
+ """
+ Scope of demand made by the applicant.
+ """
+ submitted_at: int
+ """
+ Date when the applicant submitted their application.
+ """
+
+
+class CreditUnderwritingRecordCreateFromApplicationParamsCreditUser(TypedDict):
+ email: str
+ """
+ Email of the applicant or accountholder.
+ """
+ name: str
+ """
+ Full name of the company or person.
+ """
diff --git a/stripe/params/issuing/_credit_underwriting_record_create_from_proactive_review_params.py b/stripe/params/issuing/_credit_underwriting_record_create_from_proactive_review_params.py
new file mode 100644
index 000000000..39d10f711
--- /dev/null
+++ b/stripe/params/issuing/_credit_underwriting_record_create_from_proactive_review_params.py
@@ -0,0 +1,301 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class CreditUnderwritingRecordCreateFromProactiveReviewParams(RequestOptions):
+ credit_user: (
+ "CreditUnderwritingRecordCreateFromProactiveReviewParamsCreditUser"
+ )
+ """
+ Information about the company or person applying or holding the account.
+ """
+ decided_at: int
+ """
+ Date when a decision was made.
+ """
+ decision: "CreditUnderwritingRecordCreateFromProactiveReviewParamsDecision"
+ """
+ Details about the decision.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ regulatory_reporting_file: NotRequired[str]
+ """
+ File containing regulatory reporting data for the decision. Required if you are subject to this [reporting requirement](https://docs.stripe.com/issuing/credit/report-required-regulatory-data-for-credit-decisions).
+ """
+ underwriting_exception: NotRequired[
+ "CreditUnderwritingRecordCreateFromProactiveReviewParamsUnderwritingException"
+ ]
+ """
+ If an exception to the usual underwriting criteria was made for this decision, details about the exception must be provided. Exceptions should only be granted in rare circumstances, in consultation with Stripe Compliance.
+ """
+
+
+class CreditUnderwritingRecordCreateFromProactiveReviewParamsCreditUser(
+ TypedDict,
+):
+ email: str
+ """
+ Email of the applicant or accountholder.
+ """
+ name: str
+ """
+ Full name of the company or person.
+ """
+
+
+class CreditUnderwritingRecordCreateFromProactiveReviewParamsDecision(
+ TypedDict,
+):
+ credit_limit_approved: NotRequired[
+ "CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLimitApproved"
+ ]
+ """
+ Details about the credit limit approved. An approved credit limit is required before you can set a `credit_limit_amount` in the [CreditPolicy API](https://docs.stripe.com/api/issuing/credit_policy/)
+ """
+ credit_limit_decreased: NotRequired[
+ "CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLimitDecreased"
+ ]
+ """
+ Details about the credit limit decreased.
+ """
+ credit_line_closed: NotRequired[
+ "CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLineClosed"
+ ]
+ """
+ Details about the credit line closed.
+ """
+ type: Literal[
+ "credit_limit_approved",
+ "credit_limit_decreased",
+ "credit_line_closed",
+ "no_changes",
+ ]
+ """
+ Outcome of the decision.
+ """
+
+
+class CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLimitApproved(
+ TypedDict,
+):
+ amount: int
+ """
+ The credit approved, in the currency of the account and [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ """
+ currency: NotRequired[str]
+ """
+ The currency of the credit approved, will default to the Account's Issuing currency.
+ """
+
+
+class CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLimitDecreased(
+ TypedDict,
+):
+ amount: int
+ """
+ The credit approved, in the currency of the account and [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ """
+ currency: NotRequired[str]
+ """
+ The currency of the credit approved, will default to the Account's Issuing currency.
+ """
+ reason_other_explanation: NotRequired[str]
+ """
+ Details about the `reasons.other` when present.
+ """
+ reasons: List[
+ Literal[
+ "applicant_is_not_beneficial_owner",
+ "applicant_too_young",
+ "application_is_not_beneficial_owner",
+ "bankruptcy",
+ "business_size_too_small",
+ "change_in_financial_state",
+ "change_in_utilization_of_credit_line",
+ "current_account_tier_ineligible",
+ "customer_already_exists",
+ "customer_requested_account_closure",
+ "debt_to_cash_balance_ratio_too_high",
+ "debt_to_equity_ratio_too_high",
+ "decrease_in_income_to_expense_ratio",
+ "decrease_in_social_media_performance",
+ "delinquent_credit_obligations",
+ "dispute_rate_too_high",
+ "duration_of_residence",
+ "exceeds_acceptable_platform_exposure",
+ "excessive_income_or_revenue_obligations",
+ "expenses_to_cash_balance_ratio_too_high",
+ "foreclosure_or_repossession",
+ "frozen_file_at_credit_bureau",
+ "garnishment_or_attachment",
+ "government_loan_program_criteria",
+ "has_recent_credit_limit_increase",
+ "high_concentration_of_clients",
+ "high_risk_industry",
+ "incomplete_application",
+ "inconsistent_monthly_revenues",
+ "insufficient_account_history_with_platform",
+ "insufficient_bank_account_history",
+ "insufficient_cash_balance",
+ "insufficient_cash_flow",
+ "insufficient_collateral",
+ "insufficient_credit_experience",
+ "insufficient_credit_utilization",
+ "insufficient_deposits",
+ "insufficient_income",
+ "insufficient_margin_ratio",
+ "insufficient_operating_profit",
+ "insufficient_period_in_operation",
+ "insufficient_reserves",
+ "insufficient_revenue",
+ "insufficient_social_media_performance",
+ "insufficient_time_in_network",
+ "insufficient_trade_credit_insurance",
+ "insufficient_usage_as_qualified_expenses",
+ "invalid_business_license",
+ "lacking_cash_account",
+ "late_payment_history_reported_to_bureau",
+ "lien_collection_action_or_judgement",
+ "negative_public_information",
+ "no_credit_file",
+ "other",
+ "outside_supported_country",
+ "outside_supported_state",
+ "poor_payment_history_with_platform",
+ "prior_or_current_legal_action",
+ "prohibited_industry",
+ "rate_of_cash_balance_fluctuation_too_high",
+ "recent_inquiries_on_business_credit_report",
+ "removal_of_bank_account_connection",
+ "revenue_discrepancy",
+ "runway_too_short",
+ "suspected_fraud",
+ "too_many_non_sufficient_funds_or_overdrafts",
+ "unable_to_verify_address",
+ "unable_to_verify_identity",
+ "unable_to_verify_income_or_revenue",
+ "unprofitable",
+ "unsupportable_business_type",
+ ]
+ ]
+ """
+ List of reasons why the existing credit was decreased, up to 4 reasons, in order of importance.
+ """
+
+
+class CreditUnderwritingRecordCreateFromProactiveReviewParamsDecisionCreditLineClosed(
+ TypedDict,
+):
+ reason_other_explanation: NotRequired[str]
+ """
+ Details about the `reasons.other` when present.
+ """
+ reasons: List[
+ Literal[
+ "applicant_is_not_beneficial_owner",
+ "applicant_too_young",
+ "application_is_not_beneficial_owner",
+ "bankruptcy",
+ "business_size_too_small",
+ "change_in_financial_state",
+ "change_in_utilization_of_credit_line",
+ "current_account_tier_ineligible",
+ "customer_already_exists",
+ "customer_requested_account_closure",
+ "debt_to_cash_balance_ratio_too_high",
+ "debt_to_equity_ratio_too_high",
+ "decrease_in_income_to_expense_ratio",
+ "decrease_in_social_media_performance",
+ "delinquent_credit_obligations",
+ "dispute_rate_too_high",
+ "duration_of_residence",
+ "exceeds_acceptable_platform_exposure",
+ "excessive_income_or_revenue_obligations",
+ "expenses_to_cash_balance_ratio_too_high",
+ "foreclosure_or_repossession",
+ "frozen_file_at_credit_bureau",
+ "garnishment_or_attachment",
+ "government_loan_program_criteria",
+ "has_recent_credit_limit_increase",
+ "high_concentration_of_clients",
+ "high_risk_industry",
+ "incomplete_application",
+ "inconsistent_monthly_revenues",
+ "insufficient_account_history_with_platform",
+ "insufficient_bank_account_history",
+ "insufficient_cash_balance",
+ "insufficient_cash_flow",
+ "insufficient_collateral",
+ "insufficient_credit_experience",
+ "insufficient_credit_utilization",
+ "insufficient_deposits",
+ "insufficient_income",
+ "insufficient_margin_ratio",
+ "insufficient_operating_profit",
+ "insufficient_period_in_operation",
+ "insufficient_reserves",
+ "insufficient_revenue",
+ "insufficient_social_media_performance",
+ "insufficient_time_in_network",
+ "insufficient_trade_credit_insurance",
+ "insufficient_usage_as_qualified_expenses",
+ "invalid_business_license",
+ "lacking_cash_account",
+ "late_payment_history_reported_to_bureau",
+ "lien_collection_action_or_judgement",
+ "negative_public_information",
+ "no_credit_file",
+ "other",
+ "outside_supported_country",
+ "outside_supported_state",
+ "poor_payment_history_with_platform",
+ "prior_or_current_legal_action",
+ "prohibited_industry",
+ "rate_of_cash_balance_fluctuation_too_high",
+ "recent_inquiries_on_business_credit_report",
+ "removal_of_bank_account_connection",
+ "revenue_discrepancy",
+ "runway_too_short",
+ "suspected_fraud",
+ "too_many_non_sufficient_funds_or_overdrafts",
+ "unable_to_verify_address",
+ "unable_to_verify_identity",
+ "unable_to_verify_income_or_revenue",
+ "unprofitable",
+ "unsupportable_business_type",
+ ]
+ ]
+ """
+ List of reasons why the credit line was closed, up to 4 reasons, in order of importance.
+ """
+
+
+class CreditUnderwritingRecordCreateFromProactiveReviewParamsUnderwritingException(
+ TypedDict,
+):
+ explanation: str
+ """
+ Written explanation for the exception.
+ """
+ original_decision_type: Literal[
+ "additional_information_requested",
+ "application_rejected",
+ "credit_limit_approved",
+ "credit_limit_decreased",
+ "credit_line_closed",
+ "no_changes",
+ "withdrawn_by_applicant",
+ ]
+ """
+ The decision before the exception was applied.
+ """
diff --git a/stripe/params/issuing/_credit_underwriting_record_list_params.py b/stripe/params/issuing/_credit_underwriting_record_list_params.py
new file mode 100644
index 000000000..af075200f
--- /dev/null
+++ b/stripe/params/issuing/_credit_underwriting_record_list_params.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class CreditUnderwritingRecordListParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/issuing/_credit_underwriting_record_report_decision_params.py b/stripe/params/issuing/_credit_underwriting_record_report_decision_params.py
new file mode 100644
index 000000000..cb1fbbfcb
--- /dev/null
+++ b/stripe/params/issuing/_credit_underwriting_record_report_decision_params.py
@@ -0,0 +1,171 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class CreditUnderwritingRecordReportDecisionParams(RequestOptions):
+ decided_at: int
+ """
+ Date when a decision was made.
+ """
+ decision: "CreditUnderwritingRecordReportDecisionParamsDecision"
+ """
+ Details about the decision.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
+ """
+ regulatory_reporting_file: NotRequired[str]
+ """
+ File containing regulatory reporting data for the decision. Required if you are subject to this [reporting requirement](https://docs.stripe.com/issuing/credit/report-required-regulatory-data-for-credit-decisions).
+ """
+ underwriting_exception: NotRequired[
+ "CreditUnderwritingRecordReportDecisionParamsUnderwritingException"
+ ]
+ """
+ If an exception to the usual underwriting criteria was made for this decision, details about the exception must be provided. Exceptions should only be granted in rare circumstances, in consultation with Stripe Compliance.
+ """
+
+
+class CreditUnderwritingRecordReportDecisionParamsDecision(TypedDict):
+ application_rejected: NotRequired[
+ "CreditUnderwritingRecordReportDecisionParamsDecisionApplicationRejected"
+ ]
+ """
+ Details about the application rejection.
+ """
+ credit_limit_approved: NotRequired[
+ "CreditUnderwritingRecordReportDecisionParamsDecisionCreditLimitApproved"
+ ]
+ """
+ Details about the credit limit approved. An approved credit limit is required before you can set a `credit_limit_amount` in the [CreditPolicy API](https://docs.stripe.com/api/issuing/credit_policy/)
+ """
+ type: Literal[
+ "additional_information_requested",
+ "application_rejected",
+ "credit_limit_approved",
+ "withdrawn_by_applicant",
+ ]
+ """
+ Outcome of the decision.
+ """
+
+
+class CreditUnderwritingRecordReportDecisionParamsDecisionApplicationRejected(
+ TypedDict,
+):
+ reason_other_explanation: NotRequired[str]
+ """
+ Details about the `reasons.other` when present.
+ """
+ reasons: List[
+ Literal[
+ "applicant_is_not_beneficial_owner",
+ "applicant_too_young",
+ "application_is_not_beneficial_owner",
+ "bankruptcy",
+ "business_size_too_small",
+ "current_account_tier_ineligible",
+ "customer_already_exists",
+ "customer_requested_account_closure",
+ "debt_to_cash_balance_ratio_too_high",
+ "debt_to_equity_ratio_too_high",
+ "delinquent_credit_obligations",
+ "dispute_rate_too_high",
+ "duration_of_residence",
+ "excessive_income_or_revenue_obligations",
+ "expenses_to_cash_balance_ratio_too_high",
+ "foreclosure_or_repossession",
+ "frozen_file_at_credit_bureau",
+ "garnishment_or_attachment",
+ "government_loan_program_criteria",
+ "high_concentration_of_clients",
+ "high_risk_industry",
+ "incomplete_application",
+ "inconsistent_monthly_revenues",
+ "insufficient_account_history_with_platform",
+ "insufficient_bank_account_history",
+ "insufficient_cash_balance",
+ "insufficient_cash_flow",
+ "insufficient_collateral",
+ "insufficient_credit_experience",
+ "insufficient_deposits",
+ "insufficient_income",
+ "insufficient_margin_ratio",
+ "insufficient_operating_profit",
+ "insufficient_period_in_operation",
+ "insufficient_reserves",
+ "insufficient_revenue",
+ "insufficient_social_media_performance",
+ "insufficient_time_in_network",
+ "insufficient_trade_credit_insurance",
+ "invalid_business_license",
+ "lacking_cash_account",
+ "late_payment_history_reported_to_bureau",
+ "lien_collection_action_or_judgement",
+ "negative_public_information",
+ "no_credit_file",
+ "other",
+ "outside_supported_country",
+ "outside_supported_state",
+ "poor_payment_history_with_platform",
+ "prior_or_current_legal_action",
+ "prohibited_industry",
+ "rate_of_cash_balance_fluctuation_too_high",
+ "recent_inquiries_on_business_credit_report",
+ "removal_of_bank_account_connection",
+ "revenue_discrepancy",
+ "runway_too_short",
+ "suspected_fraud",
+ "too_many_non_sufficient_funds_or_overdrafts",
+ "unable_to_verify_address",
+ "unable_to_verify_identity",
+ "unable_to_verify_income_or_revenue",
+ "unprofitable",
+ "unsupportable_business_type",
+ ]
+ ]
+ """
+ List of reasons why the application was rejected, up to 4 reasons, in order of importance.
+ """
+
+
+class CreditUnderwritingRecordReportDecisionParamsDecisionCreditLimitApproved(
+ TypedDict,
+):
+ amount: int
+ """
+ The credit approved, in the currency of the account and [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ """
+ currency: NotRequired[str]
+ """
+ The currency of the credit approved, will default to the Account's Issuing currency.
+ """
+
+
+class CreditUnderwritingRecordReportDecisionParamsUnderwritingException(
+ TypedDict,
+):
+ explanation: str
+ """
+ Written explanation for the exception.
+ """
+ original_decision_type: Literal[
+ "additional_information_requested",
+ "application_rejected",
+ "credit_limit_approved",
+ "credit_limit_decreased",
+ "credit_line_closed",
+ "no_changes",
+ "withdrawn_by_applicant",
+ ]
+ """
+ The decision before the exception was applied.
+ """
diff --git a/stripe/params/issuing/_credit_underwriting_record_retrieve_params.py b/stripe/params/issuing/_credit_underwriting_record_retrieve_params.py
new file mode 100644
index 000000000..7671b0950
--- /dev/null
+++ b/stripe/params/issuing/_credit_underwriting_record_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class CreditUnderwritingRecordRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/issuing/_dispute_settlement_detail_list_params.py b/stripe/params/issuing/_dispute_settlement_detail_list_params.py
new file mode 100644
index 000000000..6e6a476b4
--- /dev/null
+++ b/stripe/params/issuing/_dispute_settlement_detail_list_params.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class DisputeSettlementDetailListParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ settlement: NotRequired[str]
+ """
+ Select the Issuing dispute settlement details for the given settlement.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/issuing/_dispute_settlement_detail_retrieve_params.py b/stripe/params/issuing/_dispute_settlement_detail_retrieve_params.py
new file mode 100644
index 000000000..313bb7905
--- /dev/null
+++ b/stripe/params/issuing/_dispute_settlement_detail_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class DisputeSettlementDetailRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/issuing/_fraud_liability_debit_list_params.py b/stripe/params/issuing/_fraud_liability_debit_list_params.py
new file mode 100644
index 000000000..dde07192e
--- /dev/null
+++ b/stripe/params/issuing/_fraud_liability_debit_list_params.py
@@ -0,0 +1,47 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class FraudLiabilityDebitListParams(RequestOptions):
+ created: NotRequired["FraudLiabilityDebitListParamsCreated|int"]
+ """
+ Only return Issuing Fraud Liability Debits that were created during the given date interval.
+ """
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
+
+
+class FraudLiabilityDebitListParamsCreated(TypedDict):
+ gt: NotRequired[int]
+ """
+ Minimum value to filter by (exclusive)
+ """
+ gte: NotRequired[int]
+ """
+ Minimum value to filter by (inclusive)
+ """
+ lt: NotRequired[int]
+ """
+ Maximum value to filter by (exclusive)
+ """
+ lte: NotRequired[int]
+ """
+ Maximum value to filter by (inclusive)
+ """
diff --git a/stripe/params/issuing/_fraud_liability_debit_retrieve_params.py b/stripe/params/issuing/_fraud_liability_debit_retrieve_params.py
new file mode 100644
index 000000000..173a91b23
--- /dev/null
+++ b/stripe/params/issuing/_fraud_liability_debit_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FraudLiabilityDebitRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/issuing/_transaction_list_params.py b/stripe/params/issuing/_transaction_list_params.py
index 41595dd53..ad985c220 100644
--- a/stripe/params/issuing/_transaction_list_params.py
+++ b/stripe/params/issuing/_transaction_list_params.py
@@ -30,6 +30,10 @@ class TransactionListParams(RequestOptions):
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
+ settlement: NotRequired[str]
+ """
+ Only return transactions that are associated with the given settlement.
+ """
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
diff --git a/stripe/params/privacy/__init__.py b/stripe/params/privacy/__init__.py
new file mode 100644
index 000000000..57b375653
--- /dev/null
+++ b/stripe/params/privacy/__init__.py
@@ -0,0 +1,100 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.privacy._redaction_job_cancel_params import (
+ RedactionJobCancelParams as RedactionJobCancelParams,
+ )
+ from stripe.params.privacy._redaction_job_create_params import (
+ RedactionJobCreateParams as RedactionJobCreateParams,
+ RedactionJobCreateParamsObjects as RedactionJobCreateParamsObjects,
+ )
+ from stripe.params.privacy._redaction_job_list_params import (
+ RedactionJobListParams as RedactionJobListParams,
+ )
+ from stripe.params.privacy._redaction_job_list_validation_errors_params import (
+ RedactionJobListValidationErrorsParams as RedactionJobListValidationErrorsParams,
+ )
+ from stripe.params.privacy._redaction_job_modify_params import (
+ RedactionJobModifyParams as RedactionJobModifyParams,
+ )
+ from stripe.params.privacy._redaction_job_retrieve_params import (
+ RedactionJobRetrieveParams as RedactionJobRetrieveParams,
+ )
+ from stripe.params.privacy._redaction_job_run_params import (
+ RedactionJobRunParams as RedactionJobRunParams,
+ )
+ from stripe.params.privacy._redaction_job_update_params import (
+ RedactionJobUpdateParams as RedactionJobUpdateParams,
+ )
+ from stripe.params.privacy._redaction_job_validate_params import (
+ RedactionJobValidateParams as RedactionJobValidateParams,
+ )
+ from stripe.params.privacy._redaction_job_validation_error_list_params import (
+ RedactionJobValidationErrorListParams as RedactionJobValidationErrorListParams,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "RedactionJobCancelParams": (
+ "stripe.params.privacy._redaction_job_cancel_params",
+ False,
+ ),
+ "RedactionJobCreateParams": (
+ "stripe.params.privacy._redaction_job_create_params",
+ False,
+ ),
+ "RedactionJobCreateParamsObjects": (
+ "stripe.params.privacy._redaction_job_create_params",
+ False,
+ ),
+ "RedactionJobListParams": (
+ "stripe.params.privacy._redaction_job_list_params",
+ False,
+ ),
+ "RedactionJobListValidationErrorsParams": (
+ "stripe.params.privacy._redaction_job_list_validation_errors_params",
+ False,
+ ),
+ "RedactionJobModifyParams": (
+ "stripe.params.privacy._redaction_job_modify_params",
+ False,
+ ),
+ "RedactionJobRetrieveParams": (
+ "stripe.params.privacy._redaction_job_retrieve_params",
+ False,
+ ),
+ "RedactionJobRunParams": (
+ "stripe.params.privacy._redaction_job_run_params",
+ False,
+ ),
+ "RedactionJobUpdateParams": (
+ "stripe.params.privacy._redaction_job_update_params",
+ False,
+ ),
+ "RedactionJobValidateParams": (
+ "stripe.params.privacy._redaction_job_validate_params",
+ False,
+ ),
+ "RedactionJobValidationErrorListParams": (
+ "stripe.params.privacy._redaction_job_validation_error_list_params",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/params/privacy/_redaction_job_cancel_params.py b/stripe/params/privacy/_redaction_job_cancel_params.py
new file mode 100644
index 000000000..e029d00c0
--- /dev/null
+++ b/stripe/params/privacy/_redaction_job_cancel_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class RedactionJobCancelParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/privacy/_redaction_job_create_params.py b/stripe/params/privacy/_redaction_job_create_params.py
new file mode 100644
index 000000000..2b4a7f4de
--- /dev/null
+++ b/stripe/params/privacy/_redaction_job_create_params.py
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class RedactionJobCreateParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ objects: "RedactionJobCreateParamsObjects"
+ """
+ The objects to redact. These root objects and their related ones will be validated for redaction.
+ """
+ validation_behavior: NotRequired[Literal["error", "fix"]]
+ """
+ Determines the validation behavior of the job. Default is `error`.
+ """
+
+
+class RedactionJobCreateParamsObjects(TypedDict):
+ charges: NotRequired[List[str]]
+ checkout_sessions: NotRequired[List[str]]
+ customers: NotRequired[List[str]]
+ identity_verification_sessions: NotRequired[List[str]]
+ invoices: NotRequired[List[str]]
+ issuing_cardholders: NotRequired[List[str]]
+ issuing_cards: NotRequired[List[str]]
+ payment_intents: NotRequired[List[str]]
+ radar_value_list_items: NotRequired[List[str]]
+ setup_intents: NotRequired[List[str]]
diff --git a/stripe/params/privacy/_redaction_job_list_params.py b/stripe/params/privacy/_redaction_job_list_params.py
new file mode 100644
index 000000000..96aa8a231
--- /dev/null
+++ b/stripe/params/privacy/_redaction_job_list_params.py
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import Literal, NotRequired
+
+
+class RedactionJobListParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
+ status: NotRequired[
+ Literal[
+ "canceled",
+ "canceling",
+ "created",
+ "failed",
+ "ready",
+ "redacting",
+ "succeeded",
+ "validating",
+ ]
+ ]
diff --git a/stripe/params/privacy/_redaction_job_list_validation_errors_params.py b/stripe/params/privacy/_redaction_job_list_validation_errors_params.py
new file mode 100644
index 000000000..42669cacc
--- /dev/null
+++ b/stripe/params/privacy/_redaction_job_list_validation_errors_params.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class RedactionJobListValidationErrorsParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/privacy/_redaction_job_modify_params.py b/stripe/params/privacy/_redaction_job_modify_params.py
new file mode 100644
index 000000000..424eeeea6
--- /dev/null
+++ b/stripe/params/privacy/_redaction_job_modify_params.py
@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import Literal, NotRequired
+
+
+class RedactionJobModifyParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ validation_behavior: NotRequired[Literal["error", "fix"]]
+ """
+ Determines the validation behavior of the job. Default is `error`.
+ """
diff --git a/stripe/params/privacy/_redaction_job_retrieve_params.py b/stripe/params/privacy/_redaction_job_retrieve_params.py
new file mode 100644
index 000000000..afa1cdcc5
--- /dev/null
+++ b/stripe/params/privacy/_redaction_job_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class RedactionJobRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/privacy/_redaction_job_run_params.py b/stripe/params/privacy/_redaction_job_run_params.py
new file mode 100644
index 000000000..0ef368c31
--- /dev/null
+++ b/stripe/params/privacy/_redaction_job_run_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class RedactionJobRunParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/privacy/_redaction_job_update_params.py b/stripe/params/privacy/_redaction_job_update_params.py
new file mode 100644
index 000000000..1a499c55e
--- /dev/null
+++ b/stripe/params/privacy/_redaction_job_update_params.py
@@ -0,0 +1,15 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class RedactionJobUpdateParams(TypedDict):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ validation_behavior: NotRequired[Literal["error", "fix"]]
+ """
+ Determines the validation behavior of the job. Default is `error`.
+ """
diff --git a/stripe/params/privacy/_redaction_job_validate_params.py b/stripe/params/privacy/_redaction_job_validate_params.py
new file mode 100644
index 000000000..48b0148f6
--- /dev/null
+++ b/stripe/params/privacy/_redaction_job_validate_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class RedactionJobValidateParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/privacy/_redaction_job_validation_error_list_params.py b/stripe/params/privacy/_redaction_job_validation_error_list_params.py
new file mode 100644
index 000000000..7fb54be41
--- /dev/null
+++ b/stripe/params/privacy/_redaction_job_validation_error_list_params.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class RedactionJobValidationErrorListParams(TypedDict):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/reserve/__init__.py b/stripe/params/reserve/__init__.py
new file mode 100644
index 000000000..83513fd5e
--- /dev/null
+++ b/stripe/params/reserve/__init__.py
@@ -0,0 +1,54 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.reserve._hold_list_params import (
+ HoldListParams as HoldListParams,
+ )
+ from stripe.params.reserve._hold_retrieve_params import (
+ HoldRetrieveParams as HoldRetrieveParams,
+ )
+ from stripe.params.reserve._plan_retrieve_params import (
+ PlanRetrieveParams as PlanRetrieveParams,
+ )
+ from stripe.params.reserve._release_list_params import (
+ ReleaseListParams as ReleaseListParams,
+ )
+ from stripe.params.reserve._release_retrieve_params import (
+ ReleaseRetrieveParams as ReleaseRetrieveParams,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "HoldListParams": ("stripe.params.reserve._hold_list_params", False),
+ "HoldRetrieveParams": (
+ "stripe.params.reserve._hold_retrieve_params",
+ False,
+ ),
+ "PlanRetrieveParams": (
+ "stripe.params.reserve._plan_retrieve_params",
+ False,
+ ),
+ "ReleaseListParams": ("stripe.params.reserve._release_list_params", False),
+ "ReleaseRetrieveParams": (
+ "stripe.params.reserve._release_retrieve_params",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/params/reserve/_hold_list_params.py b/stripe/params/reserve/_hold_list_params.py
new file mode 100644
index 000000000..b561bc6be
--- /dev/null
+++ b/stripe/params/reserve/_hold_list_params.py
@@ -0,0 +1,45 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import Literal, NotRequired
+
+
+class HoldListParams(RequestOptions):
+ currency: NotRequired[str]
+ """
+ Only return ReserveHolds associated with the currency specified by this currency code. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ is_releasable: NotRequired[bool]
+ """
+ Only return ReserveHolds that are releasable.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ reason: NotRequired[Literal["charge", "standalone"]]
+ reserve_plan: NotRequired[str]
+ """
+ Only return ReserveHolds associated with the ReservePlan specified by this ReservePlan ID.
+ """
+ reserve_release: NotRequired[str]
+ """
+ Only return ReserveHolds associated with the ReserveRelease specified by this ReserveRelease ID.
+ """
+ source_charge: NotRequired[str]
+ """
+ Only return ReserveHolds associated with the Charge specified by this source charge ID.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/reserve/_hold_retrieve_params.py b/stripe/params/reserve/_hold_retrieve_params.py
new file mode 100644
index 000000000..114d31a94
--- /dev/null
+++ b/stripe/params/reserve/_hold_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class HoldRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/reserve/_plan_retrieve_params.py b/stripe/params/reserve/_plan_retrieve_params.py
new file mode 100644
index 000000000..f1d5ea9e1
--- /dev/null
+++ b/stripe/params/reserve/_plan_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class PlanRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/reserve/_release_list_params.py b/stripe/params/reserve/_release_list_params.py
new file mode 100644
index 000000000..0ddd881c8
--- /dev/null
+++ b/stripe/params/reserve/_release_list_params.py
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class ReleaseListParams(RequestOptions):
+ currency: NotRequired[str]
+ """
+ Only return ReserveReleases associated with the currency specified by this currency code. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ reserve_hold: NotRequired[str]
+ """
+ Only return ReserveReleases associated with the ReserveHold specified by this ReserveHold ID.
+ """
+ reserve_plan: NotRequired[str]
+ """
+ Only return ReserveReleases associated with the ReservePlan specified by this ReservePlan ID.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
diff --git a/stripe/params/reserve/_release_retrieve_params.py b/stripe/params/reserve/_release_retrieve_params.py
new file mode 100644
index 000000000..79dd61eaf
--- /dev/null
+++ b/stripe/params/reserve/_release_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class ReleaseRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/tax/__init__.py b/stripe/params/tax/__init__.py
index 116e07891..0db0a9dca 100644
--- a/stripe/params/tax/__init__.py
+++ b/stripe/params/tax/__init__.py
@@ -26,6 +26,16 @@
from stripe.params.tax._calculation_retrieve_params import (
CalculationRetrieveParams as CalculationRetrieveParams,
)
+ from stripe.params.tax._form_list_params import (
+ FormListParams as FormListParams,
+ FormListParamsPayee as FormListParamsPayee,
+ )
+ from stripe.params.tax._form_pdf_params import (
+ FormPdfParams as FormPdfParams,
+ )
+ from stripe.params.tax._form_retrieve_params import (
+ FormRetrieveParams as FormRetrieveParams,
+ )
from stripe.params.tax._registration_create_params import (
RegistrationCreateParams as RegistrationCreateParams,
RegistrationCreateParamsCountryOptions as RegistrationCreateParamsCountryOptions,
@@ -287,6 +297,10 @@
"stripe.params.tax._calculation_retrieve_params",
False,
),
+ "FormListParams": ("stripe.params.tax._form_list_params", False),
+ "FormListParamsPayee": ("stripe.params.tax._form_list_params", False),
+ "FormPdfParams": ("stripe.params.tax._form_pdf_params", False),
+ "FormRetrieveParams": ("stripe.params.tax._form_retrieve_params", False),
"RegistrationCreateParams": (
"stripe.params.tax._registration_create_params",
False,
diff --git a/stripe/params/tax/_form_list_params.py b/stripe/params/tax/_form_list_params.py
new file mode 100644
index 000000000..19ba1fafb
--- /dev/null
+++ b/stripe/params/tax/_form_list_params.py
@@ -0,0 +1,58 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class FormListParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ payee: "FormListParamsPayee"
+ """
+ The payee whose volume is represented on the tax form.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
+ type: NotRequired[
+ Literal[
+ "au_serr",
+ "ca_mrdp",
+ "eu_dac7",
+ "gb_mrdp",
+ "nz_mrdp",
+ "us_1099_k",
+ "us_1099_misc",
+ "us_1099_nec",
+ ]
+ ]
+ """
+ An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future tax form types. If your integration expects only one type of tax form in the response, make sure to provide a type value in the request.
+ """
+
+
+class FormListParamsPayee(TypedDict):
+ account: NotRequired[str]
+ """
+ The ID of the Stripe account whose forms will be retrieved.
+ """
+ external_reference: NotRequired[str]
+ """
+ The external reference to the payee whose forms will be retrieved.
+ """
+ type: NotRequired[Literal["account", "external_reference"]]
+ """
+ Specifies the payee type. Either `account` or `external_reference`.
+ """
diff --git a/stripe/params/tax/_form_pdf_params.py b/stripe/params/tax/_form_pdf_params.py
new file mode 100644
index 000000000..3569951b8
--- /dev/null
+++ b/stripe/params/tax/_form_pdf_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FormPdfParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/tax/_form_retrieve_params.py b/stripe/params/tax/_form_retrieve_params.py
new file mode 100644
index 000000000..ed2727b6b
--- /dev/null
+++ b/stripe/params/tax/_form_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FormRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/terminal/__init__.py b/stripe/params/terminal/__init__.py
index 80dd3f91f..37b428948 100644
--- a/stripe/params/terminal/__init__.py
+++ b/stripe/params/terminal/__init__.py
@@ -9,6 +9,7 @@
ConfigurationCreateParamsBbposWisepad3 as ConfigurationCreateParamsBbposWisepad3,
ConfigurationCreateParamsBbposWiseposE as ConfigurationCreateParamsBbposWiseposE,
ConfigurationCreateParamsOffline as ConfigurationCreateParamsOffline,
+ ConfigurationCreateParamsReaderSecurity as ConfigurationCreateParamsReaderSecurity,
ConfigurationCreateParamsRebootWindow as ConfigurationCreateParamsRebootWindow,
ConfigurationCreateParamsStripeS700 as ConfigurationCreateParamsStripeS700,
ConfigurationCreateParamsTipping as ConfigurationCreateParamsTipping,
@@ -51,6 +52,7 @@
ConfigurationModifyParamsBbposWisepad3 as ConfigurationModifyParamsBbposWisepad3,
ConfigurationModifyParamsBbposWiseposE as ConfigurationModifyParamsBbposWiseposE,
ConfigurationModifyParamsOffline as ConfigurationModifyParamsOffline,
+ ConfigurationModifyParamsReaderSecurity as ConfigurationModifyParamsReaderSecurity,
ConfigurationModifyParamsRebootWindow as ConfigurationModifyParamsRebootWindow,
ConfigurationModifyParamsStripeS700 as ConfigurationModifyParamsStripeS700,
ConfigurationModifyParamsTipping as ConfigurationModifyParamsTipping,
@@ -90,6 +92,7 @@
ConfigurationUpdateParamsBbposWisepad3 as ConfigurationUpdateParamsBbposWisepad3,
ConfigurationUpdateParamsBbposWiseposE as ConfigurationUpdateParamsBbposWiseposE,
ConfigurationUpdateParamsOffline as ConfigurationUpdateParamsOffline,
+ ConfigurationUpdateParamsReaderSecurity as ConfigurationUpdateParamsReaderSecurity,
ConfigurationUpdateParamsRebootWindow as ConfigurationUpdateParamsRebootWindow,
ConfigurationUpdateParamsStripeS700 as ConfigurationUpdateParamsStripeS700,
ConfigurationUpdateParamsTipping as ConfigurationUpdateParamsTipping,
@@ -172,6 +175,9 @@
ReaderCollectPaymentMethodParamsCollectConfig as ReaderCollectPaymentMethodParamsCollectConfig,
ReaderCollectPaymentMethodParamsCollectConfigTipping as ReaderCollectPaymentMethodParamsCollectConfigTipping,
)
+ from stripe.params.terminal._reader_collected_data_retrieve_params import (
+ ReaderCollectedDataRetrieveParams as ReaderCollectedDataRetrieveParams,
+ )
from stripe.params.terminal._reader_confirm_payment_intent_params import (
ReaderConfirmPaymentIntentParams as ReaderConfirmPaymentIntentParams,
ReaderConfirmPaymentIntentParamsConfirmConfig as ReaderConfirmPaymentIntentParamsConfirmConfig,
@@ -243,6 +249,10 @@
"stripe.params.terminal._configuration_create_params",
False,
),
+ "ConfigurationCreateParamsReaderSecurity": (
+ "stripe.params.terminal._configuration_create_params",
+ False,
+ ),
"ConfigurationCreateParamsRebootWindow": (
"stripe.params.terminal._configuration_create_params",
False,
@@ -387,6 +397,10 @@
"stripe.params.terminal._configuration_modify_params",
False,
),
+ "ConfigurationModifyParamsReaderSecurity": (
+ "stripe.params.terminal._configuration_modify_params",
+ False,
+ ),
"ConfigurationModifyParamsRebootWindow": (
"stripe.params.terminal._configuration_modify_params",
False,
@@ -527,6 +541,10 @@
"stripe.params.terminal._configuration_update_params",
False,
),
+ "ConfigurationUpdateParamsReaderSecurity": (
+ "stripe.params.terminal._configuration_update_params",
+ False,
+ ),
"ConfigurationUpdateParamsRebootWindow": (
"stripe.params.terminal._configuration_update_params",
False,
@@ -763,6 +781,10 @@
"stripe.params.terminal._reader_collect_payment_method_params",
False,
),
+ "ReaderCollectedDataRetrieveParams": (
+ "stripe.params.terminal._reader_collected_data_retrieve_params",
+ False,
+ ),
"ReaderConfirmPaymentIntentParams": (
"stripe.params.terminal._reader_confirm_payment_intent_params",
False,
diff --git a/stripe/params/terminal/_configuration_create_params.py b/stripe/params/terminal/_configuration_create_params.py
index 4172b8028..b5e00a9fc 100644
--- a/stripe/params/terminal/_configuration_create_params.py
+++ b/stripe/params/terminal/_configuration_create_params.py
@@ -26,6 +26,12 @@ class ConfigurationCreateParams(RequestOptions):
"""
Configurations for collecting transactions offline.
"""
+ reader_security: NotRequired[
+ "Literal['']|ConfigurationCreateParamsReaderSecurity"
+ ]
+ """
+ Configurations for reader security settings.
+ """
reboot_window: NotRequired["ConfigurationCreateParamsRebootWindow"]
"""
Reboot time settings for readers. that support customized reboot time configuration.
@@ -69,6 +75,13 @@ class ConfigurationCreateParamsOffline(TypedDict):
"""
+class ConfigurationCreateParamsReaderSecurity(TypedDict):
+ admin_menu_passcode: NotRequired["Literal['']|str"]
+ """
+ Passcode used to access a reader's admin menu.
+ """
+
+
class ConfigurationCreateParamsRebootWindow(TypedDict):
end_hour: int
"""
diff --git a/stripe/params/terminal/_configuration_modify_params.py b/stripe/params/terminal/_configuration_modify_params.py
index 0c7d6ca35..44b44ec93 100644
--- a/stripe/params/terminal/_configuration_modify_params.py
+++ b/stripe/params/terminal/_configuration_modify_params.py
@@ -30,6 +30,12 @@ class ConfigurationModifyParams(RequestOptions):
"""
Configurations for collecting transactions offline.
"""
+ reader_security: NotRequired[
+ "Literal['']|ConfigurationModifyParamsReaderSecurity"
+ ]
+ """
+ Configurations for reader security settings.
+ """
reboot_window: NotRequired[
"Literal['']|ConfigurationModifyParamsRebootWindow"
]
@@ -77,6 +83,13 @@ class ConfigurationModifyParamsOffline(TypedDict):
"""
+class ConfigurationModifyParamsReaderSecurity(TypedDict):
+ admin_menu_passcode: NotRequired["Literal['']|str"]
+ """
+ Passcode used to access a reader's admin menu.
+ """
+
+
class ConfigurationModifyParamsRebootWindow(TypedDict):
end_hour: int
"""
diff --git a/stripe/params/terminal/_configuration_update_params.py b/stripe/params/terminal/_configuration_update_params.py
index d7891bf1d..d89546304 100644
--- a/stripe/params/terminal/_configuration_update_params.py
+++ b/stripe/params/terminal/_configuration_update_params.py
@@ -29,6 +29,12 @@ class ConfigurationUpdateParams(TypedDict):
"""
Configurations for collecting transactions offline.
"""
+ reader_security: NotRequired[
+ "Literal['']|ConfigurationUpdateParamsReaderSecurity"
+ ]
+ """
+ Configurations for reader security settings.
+ """
reboot_window: NotRequired[
"Literal['']|ConfigurationUpdateParamsRebootWindow"
]
@@ -76,6 +82,13 @@ class ConfigurationUpdateParamsOffline(TypedDict):
"""
+class ConfigurationUpdateParamsReaderSecurity(TypedDict):
+ admin_menu_passcode: NotRequired["Literal['']|str"]
+ """
+ Passcode used to access a reader's admin menu.
+ """
+
+
class ConfigurationUpdateParamsRebootWindow(TypedDict):
end_hour: int
"""
diff --git a/stripe/params/terminal/_reader_collected_data_retrieve_params.py b/stripe/params/terminal/_reader_collected_data_retrieve_params.py
new file mode 100644
index 000000000..4172306d0
--- /dev/null
+++ b/stripe/params/terminal/_reader_collected_data_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class ReaderCollectedDataRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/test_helpers/__init__.py b/stripe/params/test_helpers/__init__.py
index 39dc6913e..bf44f46ce 100644
--- a/stripe/params/test_helpers/__init__.py
+++ b/stripe/params/test_helpers/__init__.py
@@ -32,7 +32,9 @@
ConfirmationTokenCreateParamsPaymentMethodDataEps as ConfirmationTokenCreateParamsPaymentMethodDataEps,
ConfirmationTokenCreateParamsPaymentMethodDataFpx as ConfirmationTokenCreateParamsPaymentMethodDataFpx,
ConfirmationTokenCreateParamsPaymentMethodDataGiropay as ConfirmationTokenCreateParamsPaymentMethodDataGiropay,
+ ConfirmationTokenCreateParamsPaymentMethodDataGopay as ConfirmationTokenCreateParamsPaymentMethodDataGopay,
ConfirmationTokenCreateParamsPaymentMethodDataGrabpay as ConfirmationTokenCreateParamsPaymentMethodDataGrabpay,
+ ConfirmationTokenCreateParamsPaymentMethodDataIdBankTransfer as ConfirmationTokenCreateParamsPaymentMethodDataIdBankTransfer,
ConfirmationTokenCreateParamsPaymentMethodDataIdeal as ConfirmationTokenCreateParamsPaymentMethodDataIdeal,
ConfirmationTokenCreateParamsPaymentMethodDataInteracPresent as ConfirmationTokenCreateParamsPaymentMethodDataInteracPresent,
ConfirmationTokenCreateParamsPaymentMethodDataKakaoPay as ConfirmationTokenCreateParamsPaymentMethodDataKakaoPay,
@@ -52,15 +54,21 @@
ConfirmationTokenCreateParamsPaymentMethodDataPayco as ConfirmationTokenCreateParamsPaymentMethodDataPayco,
ConfirmationTokenCreateParamsPaymentMethodDataPaynow as ConfirmationTokenCreateParamsPaymentMethodDataPaynow,
ConfirmationTokenCreateParamsPaymentMethodDataPaypal as ConfirmationTokenCreateParamsPaymentMethodDataPaypal,
+ ConfirmationTokenCreateParamsPaymentMethodDataPaypay as ConfirmationTokenCreateParamsPaymentMethodDataPaypay,
ConfirmationTokenCreateParamsPaymentMethodDataPayto as ConfirmationTokenCreateParamsPaymentMethodDataPayto,
ConfirmationTokenCreateParamsPaymentMethodDataPix as ConfirmationTokenCreateParamsPaymentMethodDataPix,
ConfirmationTokenCreateParamsPaymentMethodDataPromptpay as ConfirmationTokenCreateParamsPaymentMethodDataPromptpay,
+ ConfirmationTokenCreateParamsPaymentMethodDataQris as ConfirmationTokenCreateParamsPaymentMethodDataQris,
ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions as ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions,
+ ConfirmationTokenCreateParamsPaymentMethodDataRechnung as ConfirmationTokenCreateParamsPaymentMethodDataRechnung,
+ ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob as ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob,
ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay as ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay,
ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay as ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay,
ConfirmationTokenCreateParamsPaymentMethodDataSatispay as ConfirmationTokenCreateParamsPaymentMethodDataSatispay,
ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit,
+ ConfirmationTokenCreateParamsPaymentMethodDataShopeepay as ConfirmationTokenCreateParamsPaymentMethodDataShopeepay,
ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort,
+ ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance as ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance,
ConfirmationTokenCreateParamsPaymentMethodDataSwish as ConfirmationTokenCreateParamsPaymentMethodDataSwish,
ConfirmationTokenCreateParamsPaymentMethodDataTwint as ConfirmationTokenCreateParamsPaymentMethodDataTwint,
ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount as ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount,
@@ -188,10 +196,18 @@
"stripe.params.test_helpers._confirmation_token_create_params",
False,
),
+ "ConfirmationTokenCreateParamsPaymentMethodDataGopay": (
+ "stripe.params.test_helpers._confirmation_token_create_params",
+ False,
+ ),
"ConfirmationTokenCreateParamsPaymentMethodDataGrabpay": (
"stripe.params.test_helpers._confirmation_token_create_params",
False,
),
+ "ConfirmationTokenCreateParamsPaymentMethodDataIdBankTransfer": (
+ "stripe.params.test_helpers._confirmation_token_create_params",
+ False,
+ ),
"ConfirmationTokenCreateParamsPaymentMethodDataIdeal": (
"stripe.params.test_helpers._confirmation_token_create_params",
False,
@@ -268,6 +284,10 @@
"stripe.params.test_helpers._confirmation_token_create_params",
False,
),
+ "ConfirmationTokenCreateParamsPaymentMethodDataPaypay": (
+ "stripe.params.test_helpers._confirmation_token_create_params",
+ False,
+ ),
"ConfirmationTokenCreateParamsPaymentMethodDataPayto": (
"stripe.params.test_helpers._confirmation_token_create_params",
False,
@@ -280,10 +300,22 @@
"stripe.params.test_helpers._confirmation_token_create_params",
False,
),
+ "ConfirmationTokenCreateParamsPaymentMethodDataQris": (
+ "stripe.params.test_helpers._confirmation_token_create_params",
+ False,
+ ),
"ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions": (
"stripe.params.test_helpers._confirmation_token_create_params",
False,
),
+ "ConfirmationTokenCreateParamsPaymentMethodDataRechnung": (
+ "stripe.params.test_helpers._confirmation_token_create_params",
+ False,
+ ),
+ "ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob": (
+ "stripe.params.test_helpers._confirmation_token_create_params",
+ False,
+ ),
"ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay": (
"stripe.params.test_helpers._confirmation_token_create_params",
False,
@@ -300,10 +332,18 @@
"stripe.params.test_helpers._confirmation_token_create_params",
False,
),
+ "ConfirmationTokenCreateParamsPaymentMethodDataShopeepay": (
+ "stripe.params.test_helpers._confirmation_token_create_params",
+ False,
+ ),
"ConfirmationTokenCreateParamsPaymentMethodDataSofort": (
"stripe.params.test_helpers._confirmation_token_create_params",
False,
),
+ "ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance": (
+ "stripe.params.test_helpers._confirmation_token_create_params",
+ False,
+ ),
"ConfirmationTokenCreateParamsPaymentMethodDataSwish": (
"stripe.params.test_helpers._confirmation_token_create_params",
False,
diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py
index 8ea274194..4f86906ff 100644
--- a/stripe/params/test_helpers/_confirmation_token_create_params.py
+++ b/stripe/params/test_helpers/_confirmation_token_create_params.py
@@ -142,12 +142,22 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
"""
+ gopay: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataGopay"]
+ """
+ If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
+ """
grabpay: NotRequired[
"ConfirmationTokenCreateParamsPaymentMethodDataGrabpay"
]
"""
If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
"""
+ id_bank_transfer: NotRequired[
+ "ConfirmationTokenCreateParamsPaymentMethodDataIdBankTransfer"
+ ]
+ """
+ If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
+ """
ideal: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataIdeal"]
"""
If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
@@ -242,6 +252,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
"""
+ paypay: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPaypay"]
+ """
+ If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
+ """
payto: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPayto"]
"""
If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
@@ -256,12 +270,22 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
"""
+ qris: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataQris"]
+ """
+ If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
+ """
radar_options: NotRequired[
"ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions"
]
"""
Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
"""
+ rechnung: NotRequired[
+ "ConfirmationTokenCreateParamsPaymentMethodDataRechnung"
+ ]
+ """
+ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
+ """
revolut_pay: NotRequired[
"ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay"
]
@@ -286,10 +310,22 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"""
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
"""
+ shopeepay: NotRequired[
+ "ConfirmationTokenCreateParamsPaymentMethodDataShopeepay"
+ ]
+ """
+ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
+ """
sofort: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSofort"]
"""
If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
"""
+ stripe_balance: NotRequired[
+ "ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance"
+ ]
+ """
+ This hash contains details about the Stripe balance payment method.
+ """
swish: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSwish"]
"""
If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -317,7 +353,9 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"eps",
"fpx",
"giropay",
+ "gopay",
"grabpay",
+ "id_bank_transfer",
"ideal",
"kakao_pay",
"klarna",
@@ -335,14 +373,19 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
"payco",
"paynow",
"paypal",
+ "paypay",
"payto",
"pix",
"promptpay",
+ "qris",
+ "rechnung",
"revolut_pay",
"samsung_pay",
"satispay",
"sepa_debit",
+ "shopeepay",
"sofort",
+ "stripe_balance",
"swish",
"twint",
"us_bank_account",
@@ -590,10 +633,21 @@ class ConfirmationTokenCreateParamsPaymentMethodDataGiropay(TypedDict):
pass
+class ConfirmationTokenCreateParamsPaymentMethodDataGopay(TypedDict):
+ pass
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataGrabpay(TypedDict):
pass
+class ConfirmationTokenCreateParamsPaymentMethodDataIdBankTransfer(TypedDict):
+ bank: NotRequired[Literal["bca", "bni", "bri", "cimb", "permata"]]
+ """
+ Bank where the account is held.
+ """
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
Literal[
@@ -764,6 +818,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataPaypal(TypedDict):
pass
+class ConfirmationTokenCreateParamsPaymentMethodDataPaypay(TypedDict):
+ pass
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataPayto(TypedDict):
account_number: NotRequired[str]
"""
@@ -787,6 +845,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataPromptpay(TypedDict):
pass
+class ConfirmationTokenCreateParamsPaymentMethodDataQris(TypedDict):
+ pass
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions(TypedDict):
session: NotRequired[str]
"""
@@ -794,6 +856,28 @@ class ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions(TypedDict):
"""
+class ConfirmationTokenCreateParamsPaymentMethodDataRechnung(TypedDict):
+ dob: "ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob"
+ """
+ Customer's date of birth
+ """
+
+
+class ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob(TypedDict):
+ day: int
+ """
+ The day of birth, between 1 and 31.
+ """
+ month: int
+ """
+ The month of birth, between 1 and 12.
+ """
+ year: int
+ """
+ The four-digit year of birth.
+ """
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay(TypedDict):
pass
@@ -813,6 +897,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit(TypedDict):
"""
+class ConfirmationTokenCreateParamsPaymentMethodDataShopeepay(TypedDict):
+ pass
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataSofort(TypedDict):
country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
"""
@@ -820,6 +908,17 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSofort(TypedDict):
"""
+class ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance(TypedDict):
+ account: NotRequired[str]
+ """
+ The connected account ID whose Stripe balance to use as the source of payment
+ """
+ source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ """
+ The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
+ """
+
+
class ConfirmationTokenCreateParamsPaymentMethodDataSwish(TypedDict):
pass
diff --git a/stripe/params/test_helpers/treasury/__init__.py b/stripe/params/test_helpers/treasury/__init__.py
index 30b270ea3..2f45ae0e7 100644
--- a/stripe/params/test_helpers/treasury/__init__.py
+++ b/stripe/params/test_helpers/treasury/__init__.py
@@ -50,11 +50,15 @@
ReceivedCreditCreateParams as ReceivedCreditCreateParams,
ReceivedCreditCreateParamsInitiatingPaymentMethodDetails as ReceivedCreditCreateParamsInitiatingPaymentMethodDetails,
ReceivedCreditCreateParamsInitiatingPaymentMethodDetailsUsBankAccount as ReceivedCreditCreateParamsInitiatingPaymentMethodDetailsUsBankAccount,
+ ReceivedCreditCreateParamsNetworkDetails as ReceivedCreditCreateParamsNetworkDetails,
+ ReceivedCreditCreateParamsNetworkDetailsAch as ReceivedCreditCreateParamsNetworkDetailsAch,
)
from stripe.params.test_helpers.treasury._received_debit_create_params import (
ReceivedDebitCreateParams as ReceivedDebitCreateParams,
ReceivedDebitCreateParamsInitiatingPaymentMethodDetails as ReceivedDebitCreateParamsInitiatingPaymentMethodDetails,
ReceivedDebitCreateParamsInitiatingPaymentMethodDetailsUsBankAccount as ReceivedDebitCreateParamsInitiatingPaymentMethodDetailsUsBankAccount,
+ ReceivedDebitCreateParamsNetworkDetails as ReceivedDebitCreateParamsNetworkDetails,
+ ReceivedDebitCreateParamsNetworkDetailsAch as ReceivedDebitCreateParamsNetworkDetailsAch,
)
# name -> (import_target, is_submodule)
@@ -151,6 +155,14 @@
"stripe.params.test_helpers.treasury._received_credit_create_params",
False,
),
+ "ReceivedCreditCreateParamsNetworkDetails": (
+ "stripe.params.test_helpers.treasury._received_credit_create_params",
+ False,
+ ),
+ "ReceivedCreditCreateParamsNetworkDetailsAch": (
+ "stripe.params.test_helpers.treasury._received_credit_create_params",
+ False,
+ ),
"ReceivedDebitCreateParams": (
"stripe.params.test_helpers.treasury._received_debit_create_params",
False,
@@ -163,6 +175,14 @@
"stripe.params.test_helpers.treasury._received_debit_create_params",
False,
),
+ "ReceivedDebitCreateParamsNetworkDetails": (
+ "stripe.params.test_helpers.treasury._received_debit_create_params",
+ False,
+ ),
+ "ReceivedDebitCreateParamsNetworkDetailsAch": (
+ "stripe.params.test_helpers.treasury._received_debit_create_params",
+ False,
+ ),
}
if not TYPE_CHECKING:
diff --git a/stripe/params/test_helpers/treasury/_received_credit_create_params.py b/stripe/params/test_helpers/treasury/_received_credit_create_params.py
index ebb70060d..b40f8bc70 100644
--- a/stripe/params/test_helpers/treasury/_received_credit_create_params.py
+++ b/stripe/params/test_helpers/treasury/_received_credit_create_params.py
@@ -35,6 +35,10 @@ class ReceivedCreditCreateParams(TypedDict):
"""
Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
"""
+ network_details: NotRequired["ReceivedCreditCreateParamsNetworkDetails"]
+ """
+ Details about the network used for the ReceivedCredit.
+ """
class ReceivedCreditCreateParamsInitiatingPaymentMethodDetails(TypedDict):
@@ -65,3 +69,21 @@ class ReceivedCreditCreateParamsInitiatingPaymentMethodDetailsUsBankAccount(
"""
The bank account's routing number.
"""
+
+
+class ReceivedCreditCreateParamsNetworkDetails(TypedDict):
+ ach: NotRequired["ReceivedCreditCreateParamsNetworkDetailsAch"]
+ """
+ Optional fields for `ach`.
+ """
+ type: Literal["ach"]
+ """
+ The type of flow that originated the ReceivedCredit.
+ """
+
+
+class ReceivedCreditCreateParamsNetworkDetailsAch(TypedDict):
+ addenda: NotRequired[str]
+ """
+ ACH Addenda record
+ """
diff --git a/stripe/params/test_helpers/treasury/_received_debit_create_params.py b/stripe/params/test_helpers/treasury/_received_debit_create_params.py
index 3ba648706..24f9ba78f 100644
--- a/stripe/params/test_helpers/treasury/_received_debit_create_params.py
+++ b/stripe/params/test_helpers/treasury/_received_debit_create_params.py
@@ -35,6 +35,10 @@ class ReceivedDebitCreateParams(TypedDict):
"""
Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
"""
+ network_details: NotRequired["ReceivedDebitCreateParamsNetworkDetails"]
+ """
+ Details about the network used for the ReceivedDebit.
+ """
class ReceivedDebitCreateParamsInitiatingPaymentMethodDetails(TypedDict):
@@ -65,3 +69,21 @@ class ReceivedDebitCreateParamsInitiatingPaymentMethodDetailsUsBankAccount(
"""
The bank account's routing number.
"""
+
+
+class ReceivedDebitCreateParamsNetworkDetails(TypedDict):
+ ach: NotRequired["ReceivedDebitCreateParamsNetworkDetailsAch"]
+ """
+ Optional fields for `ach`.
+ """
+ type: Literal["ach"]
+ """
+ The type of flow that originated the ReceivedDebit.
+ """
+
+
+class ReceivedDebitCreateParamsNetworkDetailsAch(TypedDict):
+ addenda: NotRequired[str]
+ """
+ Addenda record data associated with this ReceivedDebit.
+ """
diff --git a/stripe/params/treasury/__init__.py b/stripe/params/treasury/__init__.py
index dbb430948..aaab41be9 100644
--- a/stripe/params/treasury/__init__.py
+++ b/stripe/params/treasury/__init__.py
@@ -193,6 +193,8 @@
OutboundTransferCreateParamsDestinationPaymentMethodData as OutboundTransferCreateParamsDestinationPaymentMethodData,
OutboundTransferCreateParamsDestinationPaymentMethodOptions as OutboundTransferCreateParamsDestinationPaymentMethodOptions,
OutboundTransferCreateParamsDestinationPaymentMethodOptionsUsBankAccount as OutboundTransferCreateParamsDestinationPaymentMethodOptionsUsBankAccount,
+ OutboundTransferCreateParamsNetworkDetails as OutboundTransferCreateParamsNetworkDetails,
+ OutboundTransferCreateParamsNetworkDetailsAch as OutboundTransferCreateParamsNetworkDetailsAch,
)
from stripe.params.treasury._outbound_transfer_fail_params import (
OutboundTransferFailParams as OutboundTransferFailParams,
@@ -220,6 +222,8 @@
ReceivedCreditCreateParams as ReceivedCreditCreateParams,
ReceivedCreditCreateParamsInitiatingPaymentMethodDetails as ReceivedCreditCreateParamsInitiatingPaymentMethodDetails,
ReceivedCreditCreateParamsInitiatingPaymentMethodDetailsUsBankAccount as ReceivedCreditCreateParamsInitiatingPaymentMethodDetailsUsBankAccount,
+ ReceivedCreditCreateParamsNetworkDetails as ReceivedCreditCreateParamsNetworkDetails,
+ ReceivedCreditCreateParamsNetworkDetailsAch as ReceivedCreditCreateParamsNetworkDetailsAch,
)
from stripe.params.treasury._received_credit_list_params import (
ReceivedCreditListParams as ReceivedCreditListParams,
@@ -232,6 +236,8 @@
ReceivedDebitCreateParams as ReceivedDebitCreateParams,
ReceivedDebitCreateParamsInitiatingPaymentMethodDetails as ReceivedDebitCreateParamsInitiatingPaymentMethodDetails,
ReceivedDebitCreateParamsInitiatingPaymentMethodDetailsUsBankAccount as ReceivedDebitCreateParamsInitiatingPaymentMethodDetailsUsBankAccount,
+ ReceivedDebitCreateParamsNetworkDetails as ReceivedDebitCreateParamsNetworkDetails,
+ ReceivedDebitCreateParamsNetworkDetailsAch as ReceivedDebitCreateParamsNetworkDetailsAch,
)
from stripe.params.treasury._received_debit_list_params import (
ReceivedDebitListParams as ReceivedDebitListParams,
@@ -755,6 +761,14 @@
"stripe.params.treasury._outbound_transfer_create_params",
False,
),
+ "OutboundTransferCreateParamsNetworkDetails": (
+ "stripe.params.treasury._outbound_transfer_create_params",
+ False,
+ ),
+ "OutboundTransferCreateParamsNetworkDetailsAch": (
+ "stripe.params.treasury._outbound_transfer_create_params",
+ False,
+ ),
"OutboundTransferFailParams": (
"stripe.params.treasury._outbound_transfer_fail_params",
False,
@@ -807,6 +821,14 @@
"stripe.params.treasury._received_credit_create_params",
False,
),
+ "ReceivedCreditCreateParamsNetworkDetails": (
+ "stripe.params.treasury._received_credit_create_params",
+ False,
+ ),
+ "ReceivedCreditCreateParamsNetworkDetailsAch": (
+ "stripe.params.treasury._received_credit_create_params",
+ False,
+ ),
"ReceivedCreditListParams": (
"stripe.params.treasury._received_credit_list_params",
False,
@@ -831,6 +853,14 @@
"stripe.params.treasury._received_debit_create_params",
False,
),
+ "ReceivedDebitCreateParamsNetworkDetails": (
+ "stripe.params.treasury._received_debit_create_params",
+ False,
+ ),
+ "ReceivedDebitCreateParamsNetworkDetailsAch": (
+ "stripe.params.treasury._received_debit_create_params",
+ False,
+ ),
"ReceivedDebitListParams": (
"stripe.params.treasury._received_debit_list_params",
False,
diff --git a/stripe/params/treasury/_financial_account_create_params.py b/stripe/params/treasury/_financial_account_create_params.py
index db19b90c2..45ad4fd85 100644
--- a/stripe/params/treasury/_financial_account_create_params.py
+++ b/stripe/params/treasury/_financial_account_create_params.py
@@ -6,6 +6,10 @@
class FinancialAccountCreateParams(RequestOptions):
+ display_name: NotRequired["Literal['']|str"]
+ """
+ The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
+ """
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
@@ -103,6 +107,10 @@ class FinancialAccountCreateParamsFeaturesFinancialAddresses(TypedDict):
class FinancialAccountCreateParamsFeaturesFinancialAddressesAba(TypedDict):
+ bank: NotRequired[Literal["evolve", "fifth_third", "goldman_sachs"]]
+ """
+ Requested bank partner
+ """
requested: bool
"""
Whether the FinancialAccount should have the Feature.
diff --git a/stripe/params/treasury/_financial_account_features_update_params.py b/stripe/params/treasury/_financial_account_features_update_params.py
index 71344abf9..994ffd966 100644
--- a/stripe/params/treasury/_financial_account_features_update_params.py
+++ b/stripe/params/treasury/_financial_account_features_update_params.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from typing import List
-from typing_extensions import NotRequired, TypedDict
+from typing_extensions import Literal, NotRequired, TypedDict
class FinancialAccountFeaturesUpdateParams(TypedDict):
@@ -77,6 +77,10 @@ class FinancialAccountFeaturesUpdateParamsFinancialAddresses(TypedDict):
class FinancialAccountFeaturesUpdateParamsFinancialAddressesAba(TypedDict):
+ bank: NotRequired[Literal["evolve", "fifth_third", "goldman_sachs"]]
+ """
+ Requested bank partner
+ """
requested: bool
"""
Whether the FinancialAccount should have the Feature.
diff --git a/stripe/params/treasury/_financial_account_modify_params.py b/stripe/params/treasury/_financial_account_modify_params.py
index 65d86794c..ef4ac61a7 100644
--- a/stripe/params/treasury/_financial_account_modify_params.py
+++ b/stripe/params/treasury/_financial_account_modify_params.py
@@ -6,6 +6,10 @@
class FinancialAccountModifyParams(RequestOptions):
+ display_name: NotRequired["Literal['']|str"]
+ """
+ The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
+ """
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
@@ -105,6 +109,10 @@ class FinancialAccountModifyParamsFeaturesFinancialAddresses(TypedDict):
class FinancialAccountModifyParamsFeaturesFinancialAddressesAba(TypedDict):
+ bank: NotRequired[Literal["evolve", "fifth_third", "goldman_sachs"]]
+ """
+ Requested bank partner
+ """
requested: bool
"""
Whether the FinancialAccount should have the Feature.
diff --git a/stripe/params/treasury/_financial_account_update_features_params.py b/stripe/params/treasury/_financial_account_update_features_params.py
index 59fcb7257..434a5a3c6 100644
--- a/stripe/params/treasury/_financial_account_update_features_params.py
+++ b/stripe/params/treasury/_financial_account_update_features_params.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from typing import List
-from typing_extensions import NotRequired, TypedDict
+from typing_extensions import Literal, NotRequired, TypedDict
class FinancialAccountUpdateFeaturesParams(RequestOptions):
@@ -78,6 +78,10 @@ class FinancialAccountUpdateFeaturesParamsFinancialAddresses(TypedDict):
class FinancialAccountUpdateFeaturesParamsFinancialAddressesAba(TypedDict):
+ bank: NotRequired[Literal["evolve", "fifth_third", "goldman_sachs"]]
+ """
+ Requested bank partner
+ """
requested: bool
"""
Whether the FinancialAccount should have the Feature.
diff --git a/stripe/params/treasury/_financial_account_update_params.py b/stripe/params/treasury/_financial_account_update_params.py
index fa25425d0..6ea68f019 100644
--- a/stripe/params/treasury/_financial_account_update_params.py
+++ b/stripe/params/treasury/_financial_account_update_params.py
@@ -5,6 +5,10 @@
class FinancialAccountUpdateParams(TypedDict):
+ display_name: NotRequired["Literal['']|str"]
+ """
+ The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
+ """
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
@@ -104,6 +108,10 @@ class FinancialAccountUpdateParamsFeaturesFinancialAddresses(TypedDict):
class FinancialAccountUpdateParamsFeaturesFinancialAddressesAba(TypedDict):
+ bank: NotRequired[Literal["evolve", "fifth_third", "goldman_sachs"]]
+ """
+ Requested bank partner
+ """
requested: bool
"""
Whether the FinancialAccount should have the Feature.
diff --git a/stripe/params/treasury/_outbound_transfer_create_params.py b/stripe/params/treasury/_outbound_transfer_create_params.py
index 6e732e69e..04182a9db 100644
--- a/stripe/params/treasury/_outbound_transfer_create_params.py
+++ b/stripe/params/treasury/_outbound_transfer_create_params.py
@@ -46,6 +46,10 @@ class OutboundTransferCreateParams(RequestOptions):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
+ network_details: NotRequired["OutboundTransferCreateParamsNetworkDetails"]
+ """
+ Details about the network used for the OutboundTransfer.
+ """
statement_descriptor: NotRequired[str]
"""
Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for `ach` transfers or 140 characters for `us_domestic_wire` transfers. The default value is "transfer". Can only include -#.$&*, spaces, and alphanumeric characters.
@@ -79,3 +83,21 @@ class OutboundTransferCreateParamsDestinationPaymentMethodOptionsUsBankAccount(
"""
Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
"""
+
+
+class OutboundTransferCreateParamsNetworkDetails(TypedDict):
+ ach: NotRequired["OutboundTransferCreateParamsNetworkDetailsAch"]
+ """
+ Optional fields for `ach`.
+ """
+ type: Literal["ach"]
+ """
+ The type of flow that originated the OutboundTransfer.
+ """
+
+
+class OutboundTransferCreateParamsNetworkDetailsAch(TypedDict):
+ addenda: NotRequired[str]
+ """
+ Addenda record data associated with this OutboundTransfer.
+ """
diff --git a/stripe/params/treasury/_received_credit_create_params.py b/stripe/params/treasury/_received_credit_create_params.py
index 988331248..c73381441 100644
--- a/stripe/params/treasury/_received_credit_create_params.py
+++ b/stripe/params/treasury/_received_credit_create_params.py
@@ -36,6 +36,10 @@ class ReceivedCreditCreateParams(RequestOptions):
"""
Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
"""
+ network_details: NotRequired["ReceivedCreditCreateParamsNetworkDetails"]
+ """
+ Details about the network used for the ReceivedCredit.
+ """
class ReceivedCreditCreateParamsInitiatingPaymentMethodDetails(TypedDict):
@@ -66,3 +70,21 @@ class ReceivedCreditCreateParamsInitiatingPaymentMethodDetailsUsBankAccount(
"""
The bank account's routing number.
"""
+
+
+class ReceivedCreditCreateParamsNetworkDetails(TypedDict):
+ ach: NotRequired["ReceivedCreditCreateParamsNetworkDetailsAch"]
+ """
+ Optional fields for `ach`.
+ """
+ type: Literal["ach"]
+ """
+ The type of flow that originated the ReceivedCredit.
+ """
+
+
+class ReceivedCreditCreateParamsNetworkDetailsAch(TypedDict):
+ addenda: NotRequired[str]
+ """
+ ACH Addenda record
+ """
diff --git a/stripe/params/treasury/_received_debit_create_params.py b/stripe/params/treasury/_received_debit_create_params.py
index a1d8e82d0..1c5d8e1e4 100644
--- a/stripe/params/treasury/_received_debit_create_params.py
+++ b/stripe/params/treasury/_received_debit_create_params.py
@@ -36,6 +36,10 @@ class ReceivedDebitCreateParams(RequestOptions):
"""
Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
"""
+ network_details: NotRequired["ReceivedDebitCreateParamsNetworkDetails"]
+ """
+ Details about the network used for the ReceivedDebit.
+ """
class ReceivedDebitCreateParamsInitiatingPaymentMethodDetails(TypedDict):
@@ -66,3 +70,21 @@ class ReceivedDebitCreateParamsInitiatingPaymentMethodDetailsUsBankAccount(
"""
The bank account's routing number.
"""
+
+
+class ReceivedDebitCreateParamsNetworkDetails(TypedDict):
+ ach: NotRequired["ReceivedDebitCreateParamsNetworkDetailsAch"]
+ """
+ Optional fields for `ach`.
+ """
+ type: Literal["ach"]
+ """
+ The type of flow that originated the ReceivedDebit.
+ """
+
+
+class ReceivedDebitCreateParamsNetworkDetailsAch(TypedDict):
+ addenda: NotRequired[str]
+ """
+ Addenda record data associated with this ReceivedDebit.
+ """
diff --git a/stripe/params/v2/__init__.py b/stripe/params/v2/__init__.py
index 73f3c99bd..e7d4a7938 100644
--- a/stripe/params/v2/__init__.py
+++ b/stripe/params/v2/__init__.py
@@ -4,12 +4,19 @@
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
- from stripe.params.v2 import billing as billing, core as core
+ from stripe.params.v2 import (
+ billing as billing,
+ core as core,
+ money_management as money_management,
+ test_helpers as test_helpers,
+ )
# name -> (import_target, is_submodule)
_import_map = {
"billing": ("stripe.params.v2.billing", True),
"core": ("stripe.params.v2.core", True),
+ "money_management": ("stripe.params.v2.money_management", True),
+ "test_helpers": ("stripe.params.v2.test_helpers", True),
}
if not TYPE_CHECKING:
diff --git a/stripe/params/v2/billing/__init__.py b/stripe/params/v2/billing/__init__.py
index e2d32e826..548db152e 100644
--- a/stripe/params/v2/billing/__init__.py
+++ b/stripe/params/v2/billing/__init__.py
@@ -4,6 +4,103 @@
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
+ from stripe.params.v2.billing import (
+ bill_settings as bill_settings,
+ collection_settings as collection_settings,
+ )
+ from stripe.params.v2.billing._bill_setting_create_params import (
+ BillSettingCreateParams as BillSettingCreateParams,
+ BillSettingCreateParamsCalculation as BillSettingCreateParamsCalculation,
+ BillSettingCreateParamsCalculationTax as BillSettingCreateParamsCalculationTax,
+ BillSettingCreateParamsInvoice as BillSettingCreateParamsInvoice,
+ BillSettingCreateParamsInvoiceTimeUntilDue as BillSettingCreateParamsInvoiceTimeUntilDue,
+ )
+ from stripe.params.v2.billing._bill_setting_list_params import (
+ BillSettingListParams as BillSettingListParams,
+ )
+ from stripe.params.v2.billing._bill_setting_retrieve_params import (
+ BillSettingRetrieveParams as BillSettingRetrieveParams,
+ )
+ from stripe.params.v2.billing._bill_setting_update_params import (
+ BillSettingUpdateParams as BillSettingUpdateParams,
+ BillSettingUpdateParamsCalculation as BillSettingUpdateParamsCalculation,
+ BillSettingUpdateParamsCalculationTax as BillSettingUpdateParamsCalculationTax,
+ BillSettingUpdateParamsInvoice as BillSettingUpdateParamsInvoice,
+ BillSettingUpdateParamsInvoiceTimeUntilDue as BillSettingUpdateParamsInvoiceTimeUntilDue,
+ )
+ from stripe.params.v2.billing._cadence_cancel_params import (
+ CadenceCancelParams as CadenceCancelParams,
+ )
+ from stripe.params.v2.billing._cadence_create_params import (
+ CadenceCreateParams as CadenceCreateParams,
+ CadenceCreateParamsBillingCycle as CadenceCreateParamsBillingCycle,
+ CadenceCreateParamsBillingCycleDay as CadenceCreateParamsBillingCycleDay,
+ CadenceCreateParamsBillingCycleDayTime as CadenceCreateParamsBillingCycleDayTime,
+ CadenceCreateParamsBillingCycleMonth as CadenceCreateParamsBillingCycleMonth,
+ CadenceCreateParamsBillingCycleMonthTime as CadenceCreateParamsBillingCycleMonthTime,
+ CadenceCreateParamsBillingCycleWeek as CadenceCreateParamsBillingCycleWeek,
+ CadenceCreateParamsBillingCycleWeekTime as CadenceCreateParamsBillingCycleWeekTime,
+ CadenceCreateParamsBillingCycleYear as CadenceCreateParamsBillingCycleYear,
+ CadenceCreateParamsBillingCycleYearTime as CadenceCreateParamsBillingCycleYearTime,
+ CadenceCreateParamsPayer as CadenceCreateParamsPayer,
+ CadenceCreateParamsSettings as CadenceCreateParamsSettings,
+ CadenceCreateParamsSettingsBill as CadenceCreateParamsSettingsBill,
+ CadenceCreateParamsSettingsCollection as CadenceCreateParamsSettingsCollection,
+ )
+ from stripe.params.v2.billing._cadence_list_params import (
+ CadenceListParams as CadenceListParams,
+ CadenceListParamsPayer as CadenceListParamsPayer,
+ )
+ from stripe.params.v2.billing._cadence_retrieve_params import (
+ CadenceRetrieveParams as CadenceRetrieveParams,
+ )
+ from stripe.params.v2.billing._cadence_update_params import (
+ CadenceUpdateParams as CadenceUpdateParams,
+ CadenceUpdateParamsPayer as CadenceUpdateParamsPayer,
+ CadenceUpdateParamsSettings as CadenceUpdateParamsSettings,
+ CadenceUpdateParamsSettingsBill as CadenceUpdateParamsSettingsBill,
+ CadenceUpdateParamsSettingsCollection as CadenceUpdateParamsSettingsCollection,
+ )
+ from stripe.params.v2.billing._collection_setting_create_params import (
+ CollectionSettingCreateParams as CollectionSettingCreateParams,
+ CollectionSettingCreateParamsEmailDelivery as CollectionSettingCreateParamsEmailDelivery,
+ CollectionSettingCreateParamsEmailDeliveryPaymentDue as CollectionSettingCreateParamsEmailDeliveryPaymentDue,
+ CollectionSettingCreateParamsPaymentMethodOptions as CollectionSettingCreateParamsPaymentMethodOptions,
+ CollectionSettingCreateParamsPaymentMethodOptionsAcssDebit as CollectionSettingCreateParamsPaymentMethodOptionsAcssDebit,
+ CollectionSettingCreateParamsPaymentMethodOptionsAcssDebitMandateOptions as CollectionSettingCreateParamsPaymentMethodOptionsAcssDebitMandateOptions,
+ CollectionSettingCreateParamsPaymentMethodOptionsBancontact as CollectionSettingCreateParamsPaymentMethodOptionsBancontact,
+ CollectionSettingCreateParamsPaymentMethodOptionsCard as CollectionSettingCreateParamsPaymentMethodOptionsCard,
+ CollectionSettingCreateParamsPaymentMethodOptionsCardMandateOptions as CollectionSettingCreateParamsPaymentMethodOptionsCardMandateOptions,
+ CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalance as CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalance,
+ CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer as CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer,
+ CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
+ CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccount as CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccount,
+ CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
+ CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
+ )
+ from stripe.params.v2.billing._collection_setting_list_params import (
+ CollectionSettingListParams as CollectionSettingListParams,
+ )
+ from stripe.params.v2.billing._collection_setting_retrieve_params import (
+ CollectionSettingRetrieveParams as CollectionSettingRetrieveParams,
+ )
+ from stripe.params.v2.billing._collection_setting_update_params import (
+ CollectionSettingUpdateParams as CollectionSettingUpdateParams,
+ CollectionSettingUpdateParamsEmailDelivery as CollectionSettingUpdateParamsEmailDelivery,
+ CollectionSettingUpdateParamsEmailDeliveryPaymentDue as CollectionSettingUpdateParamsEmailDeliveryPaymentDue,
+ CollectionSettingUpdateParamsPaymentMethodOptions as CollectionSettingUpdateParamsPaymentMethodOptions,
+ CollectionSettingUpdateParamsPaymentMethodOptionsAcssDebit as CollectionSettingUpdateParamsPaymentMethodOptionsAcssDebit,
+ CollectionSettingUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions as CollectionSettingUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions,
+ CollectionSettingUpdateParamsPaymentMethodOptionsBancontact as CollectionSettingUpdateParamsPaymentMethodOptionsBancontact,
+ CollectionSettingUpdateParamsPaymentMethodOptionsCard as CollectionSettingUpdateParamsPaymentMethodOptionsCard,
+ CollectionSettingUpdateParamsPaymentMethodOptionsCardMandateOptions as CollectionSettingUpdateParamsPaymentMethodOptionsCardMandateOptions,
+ CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalance as CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalance,
+ CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer as CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer,
+ CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,
+ CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccount as CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccount,
+ CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections as CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections,
+ CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters as CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters,
+ )
from stripe.params.v2.billing._meter_event_adjustment_create_params import (
MeterEventAdjustmentCreateParams as MeterEventAdjustmentCreateParams,
MeterEventAdjustmentCreateParamsCancel as MeterEventAdjustmentCreateParamsCancel,
@@ -18,9 +115,294 @@
MeterEventStreamCreateParams as MeterEventStreamCreateParams,
MeterEventStreamCreateParamsEvent as MeterEventStreamCreateParamsEvent,
)
+ from stripe.params.v2.billing._profile_create_params import (
+ ProfileCreateParams as ProfileCreateParams,
+ )
+ from stripe.params.v2.billing._profile_list_params import (
+ ProfileListParams as ProfileListParams,
+ )
+ from stripe.params.v2.billing._profile_retrieve_params import (
+ ProfileRetrieveParams as ProfileRetrieveParams,
+ )
+ from stripe.params.v2.billing._profile_update_params import (
+ ProfileUpdateParams as ProfileUpdateParams,
+ )
# name -> (import_target, is_submodule)
_import_map = {
+ "bill_settings": ("stripe.params.v2.billing.bill_settings", True),
+ "collection_settings": (
+ "stripe.params.v2.billing.collection_settings",
+ True,
+ ),
+ "BillSettingCreateParams": (
+ "stripe.params.v2.billing._bill_setting_create_params",
+ False,
+ ),
+ "BillSettingCreateParamsCalculation": (
+ "stripe.params.v2.billing._bill_setting_create_params",
+ False,
+ ),
+ "BillSettingCreateParamsCalculationTax": (
+ "stripe.params.v2.billing._bill_setting_create_params",
+ False,
+ ),
+ "BillSettingCreateParamsInvoice": (
+ "stripe.params.v2.billing._bill_setting_create_params",
+ False,
+ ),
+ "BillSettingCreateParamsInvoiceTimeUntilDue": (
+ "stripe.params.v2.billing._bill_setting_create_params",
+ False,
+ ),
+ "BillSettingListParams": (
+ "stripe.params.v2.billing._bill_setting_list_params",
+ False,
+ ),
+ "BillSettingRetrieveParams": (
+ "stripe.params.v2.billing._bill_setting_retrieve_params",
+ False,
+ ),
+ "BillSettingUpdateParams": (
+ "stripe.params.v2.billing._bill_setting_update_params",
+ False,
+ ),
+ "BillSettingUpdateParamsCalculation": (
+ "stripe.params.v2.billing._bill_setting_update_params",
+ False,
+ ),
+ "BillSettingUpdateParamsCalculationTax": (
+ "stripe.params.v2.billing._bill_setting_update_params",
+ False,
+ ),
+ "BillSettingUpdateParamsInvoice": (
+ "stripe.params.v2.billing._bill_setting_update_params",
+ False,
+ ),
+ "BillSettingUpdateParamsInvoiceTimeUntilDue": (
+ "stripe.params.v2.billing._bill_setting_update_params",
+ False,
+ ),
+ "CadenceCancelParams": (
+ "stripe.params.v2.billing._cadence_cancel_params",
+ False,
+ ),
+ "CadenceCreateParams": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsBillingCycle": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsBillingCycleDay": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsBillingCycleDayTime": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsBillingCycleMonth": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsBillingCycleMonthTime": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsBillingCycleWeek": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsBillingCycleWeekTime": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsBillingCycleYear": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsBillingCycleYearTime": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsPayer": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsSettings": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsSettingsBill": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceCreateParamsSettingsCollection": (
+ "stripe.params.v2.billing._cadence_create_params",
+ False,
+ ),
+ "CadenceListParams": (
+ "stripe.params.v2.billing._cadence_list_params",
+ False,
+ ),
+ "CadenceListParamsPayer": (
+ "stripe.params.v2.billing._cadence_list_params",
+ False,
+ ),
+ "CadenceRetrieveParams": (
+ "stripe.params.v2.billing._cadence_retrieve_params",
+ False,
+ ),
+ "CadenceUpdateParams": (
+ "stripe.params.v2.billing._cadence_update_params",
+ False,
+ ),
+ "CadenceUpdateParamsPayer": (
+ "stripe.params.v2.billing._cadence_update_params",
+ False,
+ ),
+ "CadenceUpdateParamsSettings": (
+ "stripe.params.v2.billing._cadence_update_params",
+ False,
+ ),
+ "CadenceUpdateParamsSettingsBill": (
+ "stripe.params.v2.billing._cadence_update_params",
+ False,
+ ),
+ "CadenceUpdateParamsSettingsCollection": (
+ "stripe.params.v2.billing._cadence_update_params",
+ False,
+ ),
+ "CollectionSettingCreateParams": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsEmailDelivery": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsEmailDeliveryPaymentDue": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsPaymentMethodOptions": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsPaymentMethodOptionsAcssDebit": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsPaymentMethodOptionsAcssDebitMandateOptions": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsPaymentMethodOptionsBancontact": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsPaymentMethodOptionsCard": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsPaymentMethodOptionsCardMandateOptions": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalance": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccount": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
+ "stripe.params.v2.billing._collection_setting_create_params",
+ False,
+ ),
+ "CollectionSettingListParams": (
+ "stripe.params.v2.billing._collection_setting_list_params",
+ False,
+ ),
+ "CollectionSettingRetrieveParams": (
+ "stripe.params.v2.billing._collection_setting_retrieve_params",
+ False,
+ ),
+ "CollectionSettingUpdateParams": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsEmailDelivery": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsEmailDeliveryPaymentDue": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsPaymentMethodOptions": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsPaymentMethodOptionsAcssDebit": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsPaymentMethodOptionsBancontact": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsPaymentMethodOptionsCard": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsPaymentMethodOptionsCardMandateOptions": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalance": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccount": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
+ "CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters": (
+ "stripe.params.v2.billing._collection_setting_update_params",
+ False,
+ ),
"MeterEventAdjustmentCreateParams": (
"stripe.params.v2.billing._meter_event_adjustment_create_params",
False,
@@ -45,6 +427,22 @@
"stripe.params.v2.billing._meter_event_stream_create_params",
False,
),
+ "ProfileCreateParams": (
+ "stripe.params.v2.billing._profile_create_params",
+ False,
+ ),
+ "ProfileListParams": (
+ "stripe.params.v2.billing._profile_list_params",
+ False,
+ ),
+ "ProfileRetrieveParams": (
+ "stripe.params.v2.billing._profile_retrieve_params",
+ False,
+ ),
+ "ProfileUpdateParams": (
+ "stripe.params.v2.billing._profile_update_params",
+ False,
+ ),
}
if not TYPE_CHECKING:
diff --git a/stripe/params/v2/billing/_bill_setting_create_params.py b/stripe/params/v2/billing/_bill_setting_create_params.py
new file mode 100644
index 000000000..809fee5b1
--- /dev/null
+++ b/stripe/params/v2/billing/_bill_setting_create_params.py
@@ -0,0 +1,61 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class BillSettingCreateParams(TypedDict):
+ calculation: NotRequired["BillSettingCreateParamsCalculation"]
+ """
+ Settings related to calculating a bill.
+ """
+ display_name: NotRequired[str]
+ """
+ An optional customer-facing display name for the CollectionSetting object.
+ Maximum length of 250 characters.
+ """
+ invoice: NotRequired["BillSettingCreateParamsInvoice"]
+ """
+ Settings related to invoice behavior.
+ """
+ invoice_rendering_template: NotRequired[str]
+ """
+ The ID of the invoice rendering template to be used when generating invoices.
+ """
+ lookup_key: NotRequired[str]
+ """
+ A lookup key used to retrieve settings dynamically from a static string.
+ This may be up to 200 characters.
+ """
+
+
+class BillSettingCreateParamsCalculation(TypedDict):
+ tax: NotRequired["BillSettingCreateParamsCalculationTax"]
+ """
+ Settings for calculating tax.
+ """
+
+
+class BillSettingCreateParamsCalculationTax(TypedDict):
+ type: Literal["automatic", "manual"]
+ """
+ Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
+ """
+
+
+class BillSettingCreateParamsInvoice(TypedDict):
+ time_until_due: NotRequired["BillSettingCreateParamsInvoiceTimeUntilDue"]
+ """
+ The amount of time until the invoice will be overdue for payment.
+ """
+
+
+class BillSettingCreateParamsInvoiceTimeUntilDue(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ The interval unit for the time until due.
+ """
+ interval_count: int
+ """
+ The number of interval units. For example, if interval=day and interval_count=30,
+ the invoice will be due in 30 days.
+ """
diff --git a/stripe/params/v2/billing/_bill_setting_list_params.py b/stripe/params/v2/billing/_bill_setting_list_params.py
new file mode 100644
index 000000000..24cc73a54
--- /dev/null
+++ b/stripe/params/v2/billing/_bill_setting_list_params.py
@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class BillSettingListParams(TypedDict):
+ limit: NotRequired[int]
+ """
+ Optionally set the maximum number of results per page. Defaults to 20.
+ """
+ lookup_keys: NotRequired[List[str]]
+ """
+ Only return the settings with these lookup_keys, if any exist.
+ You can specify up to 10 lookup_keys.
+ """
diff --git a/stripe/params/v2/billing/_bill_setting_retrieve_params.py b/stripe/params/v2/billing/_bill_setting_retrieve_params.py
new file mode 100644
index 000000000..6ac0d05db
--- /dev/null
+++ b/stripe/params/v2/billing/_bill_setting_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class BillSettingRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/billing/_bill_setting_update_params.py b/stripe/params/v2/billing/_bill_setting_update_params.py
new file mode 100644
index 000000000..60a6cd9aa
--- /dev/null
+++ b/stripe/params/v2/billing/_bill_setting_update_params.py
@@ -0,0 +1,67 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class BillSettingUpdateParams(TypedDict):
+ calculation: NotRequired["BillSettingUpdateParamsCalculation"]
+ """
+ Settings related to calculating a bill.
+ """
+ display_name: NotRequired[str]
+ """
+ An optional customer-facing display name for the BillSetting object.
+ To remove the display name, set it to an empty string in the request.
+ Maximum length of 250 characters.
+ """
+ invoice: NotRequired["BillSettingUpdateParamsInvoice"]
+ """
+ Settings related to invoice behavior.
+ """
+ invoice_rendering_template: NotRequired[str]
+ """
+ The ID of the invoice rendering template to be used when generating invoices.
+ """
+ live_version: NotRequired[str]
+ """
+ Optionally change the live version of the BillSetting. Providing `live_version = "latest"` will set the
+ BillSetting' `live_version` to its latest version.
+ """
+ lookup_key: NotRequired[str]
+ """
+ A lookup key used to retrieve settings dynamically from a static string.
+ This may be up to 200 characters.
+ """
+
+
+class BillSettingUpdateParamsCalculation(TypedDict):
+ tax: NotRequired["BillSettingUpdateParamsCalculationTax"]
+ """
+ Settings for calculating tax.
+ """
+
+
+class BillSettingUpdateParamsCalculationTax(TypedDict):
+ type: Literal["automatic", "manual"]
+ """
+ Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
+ """
+
+
+class BillSettingUpdateParamsInvoice(TypedDict):
+ time_until_due: NotRequired["BillSettingUpdateParamsInvoiceTimeUntilDue"]
+ """
+ The amount of time until the invoice will be overdue for payment.
+ """
+
+
+class BillSettingUpdateParamsInvoiceTimeUntilDue(TypedDict):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ The interval unit for the time until due.
+ """
+ interval_count: int
+ """
+ The number of interval units. For example, if interval=day and interval_count=30,
+ the invoice will be due in 30 days.
+ """
diff --git a/stripe/params/v2/billing/_cadence_cancel_params.py b/stripe/params/v2/billing/_cadence_cancel_params.py
new file mode 100644
index 000000000..6125e76d8
--- /dev/null
+++ b/stripe/params/v2/billing/_cadence_cancel_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class CadenceCancelParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/billing/_cadence_create_params.py b/stripe/params/v2/billing/_cadence_create_params.py
new file mode 100644
index 000000000..7c8a67570
--- /dev/null
+++ b/stripe/params/v2/billing/_cadence_create_params.py
@@ -0,0 +1,247 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class CadenceCreateParams(TypedDict):
+ billing_cycle: "CadenceCreateParamsBillingCycle"
+ """
+ The billing cycle is the object that defines future billing cycle dates.
+ """
+ lookup_key: NotRequired[str]
+ """
+ A lookup key used to retrieve cadences dynamically from a static string. Maximum length of 200 characters.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ payer: "CadenceCreateParamsPayer"
+ """
+ The payer determines the entity financially responsible for the bill.
+ """
+ settings: NotRequired["CadenceCreateParamsSettings"]
+ """
+ The settings associated with the cadence.
+ """
+
+
+class CadenceCreateParamsBillingCycle(TypedDict):
+ interval_count: NotRequired[int]
+ """
+ The number of intervals (specified in the interval attribute) between
+ cadence billings. For example, type=month and interval_count=3 bills every
+ 3 months. If this is not provided, it will default to 1.
+ """
+ type: Literal["day", "month", "week", "year"]
+ """
+ The frequency at which a cadence bills.
+ """
+ day: NotRequired["CadenceCreateParamsBillingCycleDay"]
+ """
+ Specific configuration for determining billing dates when type=day.
+ """
+ month: NotRequired["CadenceCreateParamsBillingCycleMonth"]
+ """
+ Specific configuration for determining billing dates when type=month.
+ """
+ week: NotRequired["CadenceCreateParamsBillingCycleWeek"]
+ """
+ Specific configuration for determining billing dates when type=week.
+ """
+ year: NotRequired["CadenceCreateParamsBillingCycleYear"]
+ """
+ Specific configuration for determining billing dates when type=year.
+ """
+
+
+class CadenceCreateParamsBillingCycleDay(TypedDict):
+ time: NotRequired["CadenceCreateParamsBillingCycleDayTime"]
+ """
+ The time at which the billing cycle ends.
+ This field is optional, and if not provided, it will default to
+ the time at which the cadence was created in UTC timezone.
+ """
+
+
+class CadenceCreateParamsBillingCycleDayTime(TypedDict):
+ hour: int
+ """
+ The hour at which the billing cycle ends.
+ This must be an integer between 0 and 23, inclusive.
+ 0 represents midnight, and 23 represents 11 PM.
+ """
+ minute: int
+ """
+ The minute at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+ second: int
+ """
+ The second at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+
+
+class CadenceCreateParamsBillingCycleMonth(TypedDict):
+ day_of_month: int
+ """
+ The day to anchor the billing on for a type="month" billing cycle from
+ 1-31. If this number is greater than the number of days in the month being
+ billed, this will anchor to the last day of the month. If not provided,
+ this will default to the day the cadence was created.
+ """
+ month_of_year: NotRequired[int]
+ """
+ The month to anchor the billing on for a type="month" billing cycle from
+ 1-12. If not provided, this will default to the month the cadence was created.
+ This setting can only be used for monthly billing cycles with `interval_count` of 2, 3, 4 or 6.
+ All occurrences will be calculated from month provided.
+ """
+ time: NotRequired["CadenceCreateParamsBillingCycleMonthTime"]
+ """
+ The time at which the billing cycle ends.
+ This field is optional, and if not provided, it will default to
+ the time at which the cadence was created in UTC timezone.
+ """
+
+
+class CadenceCreateParamsBillingCycleMonthTime(TypedDict):
+ hour: int
+ """
+ The hour at which the billing cycle ends.
+ This must be an integer between 0 and 23, inclusive.
+ 0 represents midnight, and 23 represents 11 PM.
+ """
+ minute: int
+ """
+ The minute at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+ second: int
+ """
+ The second at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+
+
+class CadenceCreateParamsBillingCycleWeek(TypedDict):
+ day_of_week: int
+ """
+ The day of the week to bill the type=week billing cycle on.
+ Numbered from 1-7 for Monday to Sunday respectively, based on the ISO-8601
+ week day numbering. If not provided, this will default to the day the
+ cadence was created.
+ """
+ time: NotRequired["CadenceCreateParamsBillingCycleWeekTime"]
+ """
+ The time at which the billing cycle ends.
+ This field is optional, and if not provided, it will default to
+ the time at which the cadence was created in UTC timezone.
+ """
+
+
+class CadenceCreateParamsBillingCycleWeekTime(TypedDict):
+ hour: int
+ """
+ The hour at which the billing cycle ends.
+ This must be an integer between 0 and 23, inclusive.
+ 0 represents midnight, and 23 represents 11 PM.
+ """
+ minute: int
+ """
+ The minute at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+ second: int
+ """
+ The second at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+
+
+class CadenceCreateParamsBillingCycleYear(TypedDict):
+ day_of_month: NotRequired[int]
+ """
+ The day to anchor the billing on for a type="month" billing cycle from
+ 1-31. If this number is greater than the number of days in the month being
+ billed, this will anchor to the last day of the month. If not provided,
+ this will default to the day the cadence was created.
+ """
+ month_of_year: NotRequired[int]
+ """
+ The month to bill on from 1-12. If not provided, this will default to the
+ month the cadence was created.
+ """
+ time: NotRequired["CadenceCreateParamsBillingCycleYearTime"]
+ """
+ The time at which the billing cycle ends.
+ This field is optional, and if not provided, it will default to
+ the time at which the cadence was created in UTC timezone.
+ """
+
+
+class CadenceCreateParamsBillingCycleYearTime(TypedDict):
+ hour: int
+ """
+ The hour at which the billing cycle ends.
+ This must be an integer between 0 and 23, inclusive.
+ 0 represents midnight, and 23 represents 11 PM.
+ """
+ minute: int
+ """
+ The minute at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+ second: int
+ """
+ The second at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+
+
+class CadenceCreateParamsPayer(TypedDict):
+ billing_profile: str
+ """
+ The ID of the Billing Profile object which determines how a bill will be paid.
+ """
+
+
+class CadenceCreateParamsSettings(TypedDict):
+ bill: NotRequired["CadenceCreateParamsSettingsBill"]
+ """
+ Settings that configure bill generation, which includes calculating totals, tax, and presenting invoices.
+ If no setting is provided here, the settings from the customer referenced on the payer will be used.
+ If no customer settings are present, the merchant default settings will be used.
+ """
+ collection: NotRequired["CadenceCreateParamsSettingsCollection"]
+ """
+ Settings that configure and manage the behavior of collecting payments.
+ If no setting is provided here, the settings from the customer referenced from the payer will be used if they exist.
+ If no customer settings are present, the merchant default settings will be used.
+ """
+
+
+class CadenceCreateParamsSettingsBill(TypedDict):
+ id: str
+ """
+ The ID of the referenced settings object.
+ """
+ version: NotRequired[str]
+ """
+ An optional field to specify the version of the Settings to use.
+ If not provided, this will always default to the live version any time the settings are used.
+ """
+
+
+class CadenceCreateParamsSettingsCollection(TypedDict):
+ id: str
+ """
+ The ID of the referenced settings object.
+ """
+ version: NotRequired[str]
+ """
+ An optional field to specify the version of the Settings to use.
+ If not provided, this will always default to the live version any time the settings are used.
+ """
diff --git a/stripe/params/v2/billing/_cadence_list_params.py b/stripe/params/v2/billing/_cadence_list_params.py
new file mode 100644
index 000000000..ee791b64b
--- /dev/null
+++ b/stripe/params/v2/billing/_cadence_list_params.py
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class CadenceListParams(TypedDict):
+ include: NotRequired[List[Literal["settings_data"]]]
+ """
+ Additional resource to include in the response.
+ """
+ limit: NotRequired[int]
+ """
+ Optionally set the maximum number of results per page. Defaults to 20.
+ """
+ lookup_keys: NotRequired[List[str]]
+ """
+ Only return the cadences with these lookup_keys, if any exist. You can specify up to 10 lookup_keys.
+ Mutually exclusive with `test_clock` and `payer`.
+ """
+ payer: NotRequired["CadenceListParamsPayer"]
+ """
+ If provided, only cadences that specifically reference the payer will be returned. Mutually exclusive with `test_clock` and `lookup_keys`.
+ """
+ test_clock: NotRequired[str]
+ """
+ If provided, only cadences that specifically reference the provided test clock ID (via the
+ customer's test clock) will be returned.
+ Mutually exclusive with `payer`.
+ """
+
+
+class CadenceListParamsPayer(TypedDict):
+ customer: NotRequired[str]
+ """
+ The ID of the Customer object. If provided, only cadences that specifically reference the provided customer ID will be returned.
+ """
+ type: Literal["customer"]
+ """
+ A string identifying the type of the payer. Currently the only supported value is `customer`.
+ """
diff --git a/stripe/params/v2/billing/_cadence_retrieve_params.py b/stripe/params/v2/billing/_cadence_retrieve_params.py
new file mode 100644
index 000000000..8324c83d1
--- /dev/null
+++ b/stripe/params/v2/billing/_cadence_retrieve_params.py
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class CadenceRetrieveParams(TypedDict):
+ include: NotRequired[List[Literal["settings_data"]]]
+ """
+ Additional resource to include in the response.
+ """
diff --git a/stripe/params/v2/billing/_cadence_update_params.py b/stripe/params/v2/billing/_cadence_update_params.py
new file mode 100644
index 000000000..f2ccf3848
--- /dev/null
+++ b/stripe/params/v2/billing/_cadence_update_params.py
@@ -0,0 +1,69 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict, Optional
+from typing_extensions import NotRequired, TypedDict
+
+
+class CadenceUpdateParams(TypedDict):
+ lookup_key: NotRequired[str]
+ """
+ A lookup key used to retrieve cadences dynamically from a static string. Maximum length of 200 characters.
+ """
+ metadata: NotRequired[Dict[str, Optional[str]]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ payer: NotRequired["CadenceUpdateParamsPayer"]
+ """
+ The payer determines the entity financially responsible for the bill.
+ """
+ settings: NotRequired["CadenceUpdateParamsSettings"]
+ """
+ The settings associated with the cadence.
+ """
+
+
+class CadenceUpdateParamsPayer(TypedDict):
+ billing_profile: NotRequired[str]
+ """
+ The ID of the Billing Profile object which determines how a bill will be paid.
+ """
+
+
+class CadenceUpdateParamsSettings(TypedDict):
+ bill: NotRequired["CadenceUpdateParamsSettingsBill"]
+ """
+ Settings that configure bills generation, which includes calculating totals, tax, and presenting invoices. If null is provided, the current bill settings will be removed from the billing cadence.
+ """
+ collection: NotRequired["CadenceUpdateParamsSettingsCollection"]
+ """
+ Settings that configure and manage the behavior of collecting payments. If null is provided, the current collection settings will be removed from the billing cadence.
+ """
+
+
+class CadenceUpdateParamsSettingsBill(TypedDict):
+ id: str
+ """
+ The ID of the referenced settings object.
+ """
+ version: NotRequired[str]
+ """
+ An optional field to specify the version of Settings to use.
+ If not provided, this will always default to the `live_version` specified on the setting, any time the settings are used.
+ Using a specific version here will prevent the settings from updating, and is discouraged for cadences.
+ To clear a pinned version, set the version to null.
+ """
+
+
+class CadenceUpdateParamsSettingsCollection(TypedDict):
+ id: str
+ """
+ The ID of the referenced settings object.
+ """
+ version: NotRequired[str]
+ """
+ An optional field to specify the version of Settings to use.
+ If not provided, this will always default to the `live_version` specified on the setting, any time the settings are used.
+ Using a specific version here will prevent the settings from updating, and is discouraged for cadences.
+ To clear a pinned version, set the version to null.
+ """
diff --git a/stripe/params/v2/billing/_collection_setting_create_params.py b/stripe/params/v2/billing/_collection_setting_create_params.py
new file mode 100644
index 000000000..f7d19546a
--- /dev/null
+++ b/stripe/params/v2/billing/_collection_setting_create_params.py
@@ -0,0 +1,261 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Any, Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class CollectionSettingCreateParams(TypedDict):
+ collection_method: NotRequired[Literal["automatic", "send_invoice"]]
+ """
+ Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this
+ bill at the end of the period using the payment method attached to the payer profile. When sending an invoice,
+ Stripe will email your payer profile an invoice with payment instructions.
+ Defaults to automatic.
+ """
+ display_name: NotRequired[str]
+ """
+ An optional customer-facing display name for the CollectionSetting object.
+ Maximum length of 250 characters.
+ """
+ email_delivery: NotRequired["CollectionSettingCreateParamsEmailDelivery"]
+ """
+ Email delivery setting.
+ """
+ lookup_key: NotRequired[str]
+ """
+ A lookup key used to retrieve settings dynamically from a static string.
+ This may be up to 200 characters.
+ """
+ payment_method_configuration: NotRequired[str]
+ """
+ The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers.
+ """
+ payment_method_options: NotRequired[
+ "CollectionSettingCreateParamsPaymentMethodOptions"
+ ]
+ """
+ Payment Method specific configuration to be stored on the object.
+ """
+
+
+class CollectionSettingCreateParamsEmailDelivery(TypedDict):
+ payment_due: NotRequired[
+ "CollectionSettingCreateParamsEmailDeliveryPaymentDue"
+ ]
+ """
+ Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
+ """
+
+
+class CollectionSettingCreateParamsEmailDeliveryPaymentDue(TypedDict):
+ enabled: bool
+ """
+ If true an email for the invoice would be generated and sent out.
+ """
+ include_payment_link: bool
+ """
+ If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
+ """
+
+
+class CollectionSettingCreateParamsPaymentMethodOptions(TypedDict):
+ acss_debit: NotRequired[
+ "CollectionSettingCreateParamsPaymentMethodOptionsAcssDebit"
+ ]
+ """
+ This sub-hash contains details about the Canadian pre-authorized debit payment method options.
+ """
+ bancontact: NotRequired[
+ "CollectionSettingCreateParamsPaymentMethodOptionsBancontact"
+ ]
+ """
+ This sub-hash contains details about the Bancontact payment method.
+ """
+ card: NotRequired["CollectionSettingCreateParamsPaymentMethodOptionsCard"]
+ """
+ This sub-hash contains details about the Card payment method options.
+ """
+ customer_balance: NotRequired[
+ "CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalance"
+ ]
+ """
+ This sub-hash contains details about the Bank transfer payment method options.
+ """
+ konbini: NotRequired[Dict[str, "Any"]]
+ """
+ This sub-hash contains details about the Konbini payment method options.
+ """
+ sepa_debit: NotRequired[Dict[str, "Any"]]
+ """
+ This sub-hash contains details about the SEPA Direct Debit payment method options.
+ """
+ us_bank_account: NotRequired[
+ "CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccount"
+ ]
+ """
+ This sub-hash contains details about the ACH direct debit payment method options.
+ """
+
+
+class CollectionSettingCreateParamsPaymentMethodOptionsAcssDebit(TypedDict):
+ mandate_options: NotRequired[
+ "CollectionSettingCreateParamsPaymentMethodOptionsAcssDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation.
+ """
+ verification_method: NotRequired[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Verification method.
+ """
+
+
+class CollectionSettingCreateParamsPaymentMethodOptionsAcssDebitMandateOptions(
+ TypedDict,
+):
+ transaction_type: NotRequired[Literal["business", "personal"]]
+ """
+ Transaction type of the mandate.
+ """
+
+
+class CollectionSettingCreateParamsPaymentMethodOptionsBancontact(TypedDict):
+ preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+
+
+class CollectionSettingCreateParamsPaymentMethodOptionsCard(TypedDict):
+ mandate_options: NotRequired[
+ "CollectionSettingCreateParamsPaymentMethodOptionsCardMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate for cards issued in India.
+ """
+ network: NotRequired[str]
+ """
+ Selected network to process the payment on. Depends on the available networks of the card.
+ """
+ request_three_d_secure: NotRequired[
+ Literal["any", "automatic", "challenge"]
+ ]
+ """
+ An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers
+ for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication).
+ However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
+ Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ """
+
+
+class CollectionSettingCreateParamsPaymentMethodOptionsCardMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ The AmountType for the mandate. One of `fixed` or `maximum`.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate that is meant to be displayed to the customer.
+ """
+
+
+class CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalance(
+ TypedDict,
+):
+ bank_transfer: NotRequired[
+ "CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
+ ]
+ """
+ Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ """
+ funding_type: NotRequired[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`.
+ """
+
+
+class CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalanceBankTransfer(
+ TypedDict,
+):
+ eu_bank_transfer: NotRequired[
+ "CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
+ ]
+ """
+ Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`.
+ """
+ type: NotRequired[
+ Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ ]
+ """
+ The bank transfer type that can be used for funding.
+ """
+
+
+class CollectionSettingCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+ TypedDict,
+):
+ country: Literal["BE", "DE", "ES", "FR", "IE", "NL"]
+ """
+ The desired country code of the bank account information.
+ """
+
+
+class CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccount(
+ TypedDict
+):
+ financial_connections: "CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
+ """
+ Additional fields for Financial Connections Session creation.
+ """
+ verification_method: Literal["automatic", "instant", "microdeposits"]
+ """
+ Verification method.
+ """
+
+
+class CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
+ TypedDict,
+):
+ filters: NotRequired[
+ "CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
+ ]
+ """
+ Provide filters for the linked accounts that the customer can select for the payment method.
+ """
+ permissions: NotRequired[
+ List[
+ Literal["balances", "ownership", "payment_method", "transactions"]
+ ]
+ ]
+ """
+ The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included.
+ """
+ prefetch: NotRequired[
+ List[Literal["balances", "ownership", "transactions"]]
+ ]
+ """
+ List of data features that you would like to retrieve upon account creation.
+ """
+
+
+class CollectionSettingCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
+ TypedDict,
+):
+ account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
+ """
+ The account subcategories to use to filter for selectable accounts.
+ """
diff --git a/stripe/params/v2/billing/_collection_setting_list_params.py b/stripe/params/v2/billing/_collection_setting_list_params.py
new file mode 100644
index 000000000..abe1d361f
--- /dev/null
+++ b/stripe/params/v2/billing/_collection_setting_list_params.py
@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class CollectionSettingListParams(TypedDict):
+ limit: NotRequired[int]
+ """
+ Optionally set the maximum number of results per page. Defaults to 20.
+ """
+ lookup_keys: NotRequired[List[str]]
+ """
+ Only return the settings with these lookup_keys, if any exist.
+ You can specify up to 10 lookup_keys.
+ """
diff --git a/stripe/params/v2/billing/_collection_setting_retrieve_params.py b/stripe/params/v2/billing/_collection_setting_retrieve_params.py
new file mode 100644
index 000000000..37f15a024
--- /dev/null
+++ b/stripe/params/v2/billing/_collection_setting_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class CollectionSettingRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/billing/_collection_setting_update_params.py b/stripe/params/v2/billing/_collection_setting_update_params.py
new file mode 100644
index 000000000..5478565c5
--- /dev/null
+++ b/stripe/params/v2/billing/_collection_setting_update_params.py
@@ -0,0 +1,267 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Any, Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class CollectionSettingUpdateParams(TypedDict):
+ collection_method: NotRequired[Literal["automatic", "send_invoice"]]
+ """
+ Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this
+ bill at the end of the period using the payment method attached to the payer profile. When sending an invoice,
+ Stripe will email your payer profile an invoice with payment instructions.
+ """
+ display_name: NotRequired[str]
+ """
+ An optional customer-facing display name for the CollectionSetting object.
+ To remove the display name, set it to an empty string in the request.
+ Maximum length of 250 characters.
+ """
+ email_delivery: NotRequired["CollectionSettingUpdateParamsEmailDelivery"]
+ """
+ Email delivery settings.
+ """
+ live_version: NotRequired[str]
+ """
+ Optionally change the live version of the CollectionSetting. Billing Cadences and other objects that refer to this
+ CollectionSetting will use this version when no overrides are set. Providing `live_version = "latest"` will set the
+ CollectionSetting's `live_version` to its latest version.
+ """
+ lookup_key: NotRequired[str]
+ """
+ A lookup key used to retrieve settings dynamically from a static string.
+ This may be up to 200 characters.
+ """
+ payment_method_configuration: NotRequired[str]
+ """
+ The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers.
+ """
+ payment_method_options: NotRequired[
+ "CollectionSettingUpdateParamsPaymentMethodOptions"
+ ]
+ """
+ Payment Method specific configuration to be stored on the object.
+ """
+
+
+class CollectionSettingUpdateParamsEmailDelivery(TypedDict):
+ payment_due: NotRequired[
+ "CollectionSettingUpdateParamsEmailDeliveryPaymentDue"
+ ]
+ """
+ Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
+ """
+
+
+class CollectionSettingUpdateParamsEmailDeliveryPaymentDue(TypedDict):
+ enabled: bool
+ """
+ If true an email for the invoice would be generated and sent out.
+ """
+ include_payment_link: bool
+ """
+ If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
+ """
+
+
+class CollectionSettingUpdateParamsPaymentMethodOptions(TypedDict):
+ acss_debit: NotRequired[
+ "CollectionSettingUpdateParamsPaymentMethodOptionsAcssDebit"
+ ]
+ """
+ This sub-hash contains details about the Canadian pre-authorized debit payment method options.
+ """
+ bancontact: NotRequired[
+ "CollectionSettingUpdateParamsPaymentMethodOptionsBancontact"
+ ]
+ """
+ This sub-hash contains details about the Bancontact payment method.
+ """
+ card: NotRequired["CollectionSettingUpdateParamsPaymentMethodOptionsCard"]
+ """
+ This sub-hash contains details about the Card payment method options.
+ """
+ customer_balance: NotRequired[
+ "CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalance"
+ ]
+ """
+ This sub-hash contains details about the Bank transfer payment method options.
+ """
+ konbini: NotRequired[Dict[str, "Any"]]
+ """
+ This sub-hash contains details about the Konbini payment method options.
+ """
+ sepa_debit: NotRequired[Dict[str, "Any"]]
+ """
+ This sub-hash contains details about the SEPA Direct Debit payment method options.
+ """
+ us_bank_account: NotRequired[
+ "CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccount"
+ ]
+ """
+ This sub-hash contains details about the ACH direct debit payment method options.
+ """
+
+
+class CollectionSettingUpdateParamsPaymentMethodOptionsAcssDebit(TypedDict):
+ mandate_options: NotRequired[
+ "CollectionSettingUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions"
+ ]
+ """
+ Additional fields for Mandate creation.
+ """
+ verification_method: NotRequired[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Verification method.
+ """
+
+
+class CollectionSettingUpdateParamsPaymentMethodOptionsAcssDebitMandateOptions(
+ TypedDict,
+):
+ transaction_type: NotRequired[Literal["business", "personal"]]
+ """
+ Transaction type of the mandate.
+ """
+
+
+class CollectionSettingUpdateParamsPaymentMethodOptionsBancontact(TypedDict):
+ preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+
+
+class CollectionSettingUpdateParamsPaymentMethodOptionsCard(TypedDict):
+ mandate_options: NotRequired[
+ "CollectionSettingUpdateParamsPaymentMethodOptionsCardMandateOptions"
+ ]
+ """
+ Configuration options for setting up an eMandate for cards issued in India.
+ """
+ network: NotRequired[str]
+ """
+ Selected network to process the payment on. Depends on the available networks of the card.
+ """
+ request_three_d_secure: NotRequired[
+ Literal["any", "automatic", "challenge"]
+ ]
+ """
+ An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers
+ for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication).
+ However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
+ Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ """
+
+
+class CollectionSettingUpdateParamsPaymentMethodOptionsCardMandateOptions(
+ TypedDict,
+):
+ amount: NotRequired[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: NotRequired[Literal["fixed", "maximum"]]
+ """
+ The AmountType for the mandate. One of `fixed` or `maximum`.
+ """
+ description: NotRequired[str]
+ """
+ A description of the mandate that is meant to be displayed to the customer.
+ """
+
+
+class CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalance(
+ TypedDict,
+):
+ bank_transfer: NotRequired[
+ "CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer"
+ ]
+ """
+ Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ """
+ funding_type: NotRequired[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`.
+ """
+
+
+class CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransfer(
+ TypedDict,
+):
+ eu_bank_transfer: NotRequired[
+ "CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
+ ]
+ """
+ Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`.
+ """
+ type: NotRequired[
+ Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ ]
+ """
+ The bank transfer type that can be used for funding.
+ """
+
+
+class CollectionSettingUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
+ TypedDict,
+):
+ country: Literal["BE", "DE", "ES", "FR", "IE", "NL"]
+ """
+ The desired country code of the bank account information.
+ """
+
+
+class CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccount(
+ TypedDict
+):
+ financial_connections: "CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
+ """
+ Additional fields for Financial Connections Session creation.
+ """
+ verification_method: Literal["automatic", "instant", "microdeposits"]
+ """
+ Verification method.
+ """
+
+
+class CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
+ TypedDict,
+):
+ filters: NotRequired[
+ "CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
+ ]
+ """
+ Provide filters for the linked accounts that the customer can select for the payment method.
+ """
+ permissions: NotRequired[
+ List[
+ Literal["balances", "ownership", "payment_method", "transactions"]
+ ]
+ ]
+ """
+ The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included.
+ """
+ prefetch: NotRequired[
+ List[Literal["balances", "ownership", "transactions"]]
+ ]
+ """
+ List of data features that you would like to retrieve upon account creation.
+ """
+
+
+class CollectionSettingUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
+ TypedDict,
+):
+ account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
+ """
+ The account subcategories to use to filter for selectable accounts.
+ """
diff --git a/stripe/params/v2/billing/_profile_create_params.py b/stripe/params/v2/billing/_profile_create_params.py
new file mode 100644
index 000000000..a84b4f981
--- /dev/null
+++ b/stripe/params/v2/billing/_profile_create_params.py
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict
+from typing_extensions import NotRequired, TypedDict
+
+
+class ProfileCreateParams(TypedDict):
+ customer: str
+ """
+ The ID of the customer object.
+ """
+ default_payment_method: NotRequired[str]
+ """
+ The ID of the payment method object.
+ """
+ display_name: NotRequired[str]
+ """
+ A customer-facing name for the billing profile.
+ Maximum length of 250 characters.
+ """
+ lookup_key: NotRequired[str]
+ """
+ An internal key you can use to search for a particular billing profile. It must be unique among billing profiles for a given customer.
+ Maximum length of 200 characters.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ 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.
+ """
diff --git a/stripe/params/v2/billing/_profile_list_params.py b/stripe/params/v2/billing/_profile_list_params.py
new file mode 100644
index 000000000..56d9c6222
--- /dev/null
+++ b/stripe/params/v2/billing/_profile_list_params.py
@@ -0,0 +1,32 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class ProfileListParams(TypedDict):
+ customer: NotRequired[str]
+ """
+ Filter billing profiles by a customer. Mutually exclusive
+ with `lookup_keys` and `default_payment_method`.
+ """
+ default_payment_method: NotRequired[str]
+ """
+ Filter billing profiles by a default payment method. Mutually exclusive
+ with `customer` and `lookup_keys`.
+ """
+ limit: NotRequired[int]
+ """
+ Optionally set the maximum number of results per page. Defaults to 10.
+ """
+ lookup_keys: List[str]
+ """
+ Filter billing profiles by lookup keys. Mutually exclusive
+ with `customer` and `default_payment_method`.
+ You can specify up to 10 lookup_keys.
+ """
+ status: NotRequired[Literal["active", "inactive"]]
+ """
+ Filter billing profiles by status. Can be combined
+ with all other filters. If not provided, all billing profiles will be returned.
+ """
diff --git a/stripe/params/v2/billing/_profile_retrieve_params.py b/stripe/params/v2/billing/_profile_retrieve_params.py
new file mode 100644
index 000000000..2ad1762da
--- /dev/null
+++ b/stripe/params/v2/billing/_profile_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class ProfileRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/billing/_profile_update_params.py b/stripe/params/v2/billing/_profile_update_params.py
new file mode 100644
index 000000000..78be3cc81
--- /dev/null
+++ b/stripe/params/v2/billing/_profile_update_params.py
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict, Optional
+from typing_extensions import NotRequired, TypedDict
+
+
+class ProfileUpdateParams(TypedDict):
+ default_payment_method: NotRequired[str]
+ """
+ The ID of the payment method object.
+ """
+ display_name: NotRequired[str]
+ """
+ A customer-facing name for the billing profile.
+ Maximum length of 250 characters.
+ To remove the display_name from the object, set it to null in the request.
+ """
+ lookup_key: NotRequired[str]
+ """
+ An internal key you can use to search for a particular billing profile. It must be unique among billing profiles for a given customer.
+ Maximum length of 200 characters.
+ To remove the lookup_key from the object, set it to null in the request.
+ """
+ metadata: NotRequired[Dict[str, Optional[str]]]
+ """
+ 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.
+ """
diff --git a/stripe/params/v2/billing/bill_settings/__init__.py b/stripe/params/v2/billing/bill_settings/__init__.py
new file mode 100644
index 000000000..151415b0f
--- /dev/null
+++ b/stripe/params/v2/billing/bill_settings/__init__.py
@@ -0,0 +1,39 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.v2.billing.bill_settings._version_list_params import (
+ VersionListParams as VersionListParams,
+ )
+ from stripe.params.v2.billing.bill_settings._version_retrieve_params import (
+ VersionRetrieveParams as VersionRetrieveParams,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "VersionListParams": (
+ "stripe.params.v2.billing.bill_settings._version_list_params",
+ False,
+ ),
+ "VersionRetrieveParams": (
+ "stripe.params.v2.billing.bill_settings._version_retrieve_params",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/params/v2/billing/bill_settings/_version_list_params.py b/stripe/params/v2/billing/bill_settings/_version_list_params.py
new file mode 100644
index 000000000..9add19809
--- /dev/null
+++ b/stripe/params/v2/billing/bill_settings/_version_list_params.py
@@ -0,0 +1,10 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class VersionListParams(TypedDict):
+ limit: NotRequired[int]
+ """
+ Optionally set the maximum number of results per page. Defaults to 20.
+ """
diff --git a/stripe/params/v2/billing/bill_settings/_version_retrieve_params.py b/stripe/params/v2/billing/bill_settings/_version_retrieve_params.py
new file mode 100644
index 000000000..5c36a13fb
--- /dev/null
+++ b/stripe/params/v2/billing/bill_settings/_version_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class VersionRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/billing/collection_settings/__init__.py b/stripe/params/v2/billing/collection_settings/__init__.py
new file mode 100644
index 000000000..8aaf43392
--- /dev/null
+++ b/stripe/params/v2/billing/collection_settings/__init__.py
@@ -0,0 +1,39 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.v2.billing.collection_settings._version_list_params import (
+ VersionListParams as VersionListParams,
+ )
+ from stripe.params.v2.billing.collection_settings._version_retrieve_params import (
+ VersionRetrieveParams as VersionRetrieveParams,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "VersionListParams": (
+ "stripe.params.v2.billing.collection_settings._version_list_params",
+ False,
+ ),
+ "VersionRetrieveParams": (
+ "stripe.params.v2.billing.collection_settings._version_retrieve_params",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/params/v2/billing/collection_settings/_version_list_params.py b/stripe/params/v2/billing/collection_settings/_version_list_params.py
new file mode 100644
index 000000000..9add19809
--- /dev/null
+++ b/stripe/params/v2/billing/collection_settings/_version_list_params.py
@@ -0,0 +1,10 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class VersionListParams(TypedDict):
+ limit: NotRequired[int]
+ """
+ Optionally set the maximum number of results per page. Defaults to 20.
+ """
diff --git a/stripe/params/v2/billing/collection_settings/_version_retrieve_params.py b/stripe/params/v2/billing/collection_settings/_version_retrieve_params.py
new file mode 100644
index 000000000..5c36a13fb
--- /dev/null
+++ b/stripe/params/v2/billing/collection_settings/_version_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class VersionRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py
index 9888a38e7..da1ce577b 100644
--- a/stripe/params/v2/core/__init__.py
+++ b/stripe/params/v2/core/__init__.py
@@ -4,7 +4,7 @@
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
- from stripe.params.v2.core import accounts as accounts
+ from stripe.params.v2.core import accounts as accounts, vault as vault
from stripe.params.v2.core._account_close_params import (
AccountCloseParams as AccountCloseParams,
)
@@ -82,8 +82,29 @@
AccountCreateParamsConfigurationMerchantSupportAddress as AccountCreateParamsConfigurationMerchantSupportAddress,
AccountCreateParamsConfigurationRecipient as AccountCreateParamsConfigurationRecipient,
AccountCreateParamsConfigurationRecipientCapabilities as AccountCreateParamsConfigurationRecipientCapabilities,
+ AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts as AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts,
+ AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsLocal as AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsLocal,
+ AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsWire as AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsWire,
+ AccountCreateParamsConfigurationRecipientCapabilitiesCards as AccountCreateParamsConfigurationRecipientCapabilitiesCards,
AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance as AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance,
AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers as AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers,
+ AccountCreateParamsConfigurationStorer as AccountCreateParamsConfigurationStorer,
+ AccountCreateParamsConfigurationStorerCapabilities as AccountCreateParamsConfigurationStorerCapabilities,
+ AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddresses as AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddresses,
+ AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts as AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts,
+ AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies as AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies,
+ AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur as AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur,
+ AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp as AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp,
+ AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd as AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd,
+ AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfers as AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfers,
+ AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts as AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts,
+ AccountCreateParamsConfigurationStorerCapabilitiesOutboundPayments as AccountCreateParamsConfigurationStorerCapabilitiesOutboundPayments,
+ AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts as AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts,
+ AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards as AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards,
+ AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts as AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts,
+ AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfers as AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfers,
+ AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts as AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts,
+ AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts as AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts,
AccountCreateParamsDefaults as AccountCreateParamsDefaults,
AccountCreateParamsDefaultsProfile as AccountCreateParamsDefaultsProfile,
AccountCreateParamsDefaultsResponsibilities as AccountCreateParamsDefaultsResponsibilities,
@@ -95,6 +116,7 @@
AccountCreateParamsIdentityAttestationsRepresentativeDeclaration as AccountCreateParamsIdentityAttestationsRepresentativeDeclaration,
AccountCreateParamsIdentityAttestationsTermsOfService as AccountCreateParamsIdentityAttestationsTermsOfService,
AccountCreateParamsIdentityAttestationsTermsOfServiceAccount as AccountCreateParamsIdentityAttestationsTermsOfServiceAccount,
+ AccountCreateParamsIdentityAttestationsTermsOfServiceStorer as AccountCreateParamsIdentityAttestationsTermsOfServiceStorer,
AccountCreateParamsIdentityBusinessDetails as AccountCreateParamsIdentityBusinessDetails,
AccountCreateParamsIdentityBusinessDetailsAddress as AccountCreateParamsIdentityBusinessDetailsAddress,
AccountCreateParamsIdentityBusinessDetailsAnnualRevenue as AccountCreateParamsIdentityBusinessDetailsAnnualRevenue,
@@ -166,6 +188,7 @@
AccountTokenCreateParamsIdentityAttestationsRepresentativeDeclaration as AccountTokenCreateParamsIdentityAttestationsRepresentativeDeclaration,
AccountTokenCreateParamsIdentityAttestationsTermsOfService as AccountTokenCreateParamsIdentityAttestationsTermsOfService,
AccountTokenCreateParamsIdentityAttestationsTermsOfServiceAccount as AccountTokenCreateParamsIdentityAttestationsTermsOfServiceAccount,
+ AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer as AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer,
AccountTokenCreateParamsIdentityBusinessDetails as AccountTokenCreateParamsIdentityBusinessDetails,
AccountTokenCreateParamsIdentityBusinessDetailsAddress as AccountTokenCreateParamsIdentityBusinessDetailsAddress,
AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue as AccountTokenCreateParamsIdentityBusinessDetailsAnnualRevenue,
@@ -290,8 +313,29 @@
AccountUpdateParamsConfigurationMerchantSupportAddress as AccountUpdateParamsConfigurationMerchantSupportAddress,
AccountUpdateParamsConfigurationRecipient as AccountUpdateParamsConfigurationRecipient,
AccountUpdateParamsConfigurationRecipientCapabilities as AccountUpdateParamsConfigurationRecipientCapabilities,
+ AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts as AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts,
+ AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsLocal as AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsLocal,
+ AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsWire as AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsWire,
+ AccountUpdateParamsConfigurationRecipientCapabilitiesCards as AccountUpdateParamsConfigurationRecipientCapabilitiesCards,
AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance as AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance,
AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers as AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers,
+ AccountUpdateParamsConfigurationStorer as AccountUpdateParamsConfigurationStorer,
+ AccountUpdateParamsConfigurationStorerCapabilities as AccountUpdateParamsConfigurationStorerCapabilities,
+ AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddresses as AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddresses,
+ AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts,
+ AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies as AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies,
+ AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur as AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur,
+ AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp as AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp,
+ AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd as AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd,
+ AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfers as AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfers,
+ AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts,
+ AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPayments as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPayments,
+ AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts,
+ AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards,
+ AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts,
+ AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfers as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfers,
+ AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts,
+ AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts as AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts,
AccountUpdateParamsDefaults as AccountUpdateParamsDefaults,
AccountUpdateParamsDefaultsProfile as AccountUpdateParamsDefaultsProfile,
AccountUpdateParamsDefaultsResponsibilities as AccountUpdateParamsDefaultsResponsibilities,
@@ -390,6 +434,7 @@
# name -> (import_target, is_submodule)
_import_map = {
"accounts": ("stripe.params.v2.core.accounts", True),
+ "vault": ("stripe.params.v2.core.vault", True),
"AccountCloseParams": (
"stripe.params.v2.core._account_close_params",
False,
@@ -686,6 +731,22 @@
"stripe.params.v2.core._account_create_params",
False,
),
+ "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsLocal": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsWire": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationRecipientCapabilitiesCards": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
"AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance": (
"stripe.params.v2.core._account_create_params",
False,
@@ -694,6 +755,74 @@
"stripe.params.v2.core._account_create_params",
False,
),
+ "AccountCreateParamsConfigurationStorer": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilities": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddresses": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfers": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPayments": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfers": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
"AccountCreateParamsDefaults": (
"stripe.params.v2.core._account_create_params",
False,
@@ -738,6 +867,10 @@
"stripe.params.v2.core._account_create_params",
False,
),
+ "AccountCreateParamsIdentityAttestationsTermsOfServiceStorer": (
+ "stripe.params.v2.core._account_create_params",
+ False,
+ ),
"AccountCreateParamsIdentityBusinessDetails": (
"stripe.params.v2.core._account_create_params",
False,
@@ -987,6 +1120,10 @@
"stripe.params.v2.core._account_token_create_params",
False,
),
+ "AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer": (
+ "stripe.params.v2.core._account_token_create_params",
+ False,
+ ),
"AccountTokenCreateParamsIdentityBusinessDetails": (
"stripe.params.v2.core._account_token_create_params",
False,
@@ -1467,6 +1604,22 @@
"stripe.params.v2.core._account_update_params",
False,
),
+ "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsLocal": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsWire": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationRecipientCapabilitiesCards": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
"AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance": (
"stripe.params.v2.core._account_update_params",
False,
@@ -1475,6 +1628,74 @@
"stripe.params.v2.core._account_update_params",
False,
),
+ "AccountUpdateParamsConfigurationStorer": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilities": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddresses": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfers": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPayments": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfers": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts": (
+ "stripe.params.v2.core._account_update_params",
+ False,
+ ),
"AccountUpdateParamsDefaults": (
"stripe.params.v2.core._account_update_params",
False,
diff --git a/stripe/params/v2/core/_account_close_params.py b/stripe/params/v2/core/_account_close_params.py
index 9c52aff1c..d9c94dae4 100644
--- a/stripe/params/v2/core/_account_close_params.py
+++ b/stripe/params/v2/core/_account_close_params.py
@@ -6,7 +6,7 @@
class AccountCloseParams(TypedDict):
applied_configurations: NotRequired[
- List[Literal["customer", "merchant", "recipient"]]
+ List[Literal["customer", "merchant", "recipient", "storer"]]
]
"""
Configurations on the Account to be closed. All configurations on the Account must be passed in for this request to succeed.
diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py
index 79dbcabea..ee68b6c11 100644
--- a/stripe/params/v2/core/_account_create_params.py
+++ b/stripe/params/v2/core/_account_create_params.py
@@ -39,6 +39,7 @@ class AccountCreateParams(TypedDict):
"configuration.customer",
"configuration.merchant",
"configuration.recipient",
+ "configuration.storer",
"defaults",
"future_requirements",
"identity",
@@ -68,6 +69,10 @@ class AccountCreateParamsConfiguration(TypedDict):
"""
The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set.
"""
+ storer: NotRequired["AccountCreateParamsConfigurationStorer"]
+ """
+ The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
+ """
class AccountCreateParamsConfigurationCustomer(TypedDict):
@@ -106,6 +111,17 @@ class AccountCreateParamsConfigurationCustomerAutomaticIndirectTax(TypedDict):
"""
A recent IP address of the customer used for tax reporting and tax location inference.
"""
+ location_source: NotRequired[
+ Literal[
+ "identity_address",
+ "ip_address",
+ "payment_method",
+ "shipping_address",
+ ]
+ ]
+ """
+ The data source used to identify the customer's tax location - defaults to `identity_address`. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions. This behavior is now deprecated for new users.
+ """
class AccountCreateParamsConfigurationCustomerBilling(TypedDict):
@@ -1153,6 +1169,18 @@ class AccountCreateParamsConfigurationRecipient(TypedDict):
class AccountCreateParamsConfigurationRecipientCapabilities(TypedDict):
+ bank_accounts: NotRequired[
+ "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts"
+ ]
+ """
+ Capabilities that enable OutboundPayments to a bank account linked to this Account.
+ """
+ cards: NotRequired[
+ "AccountCreateParamsConfigurationRecipientCapabilitiesCards"
+ ]
+ """
+ Capabilities that enable OutboundPayments to a card linked to this Account.
+ """
stripe_balance: NotRequired[
"AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance"
]
@@ -1161,6 +1189,48 @@ class AccountCreateParamsConfigurationRecipientCapabilities(TypedDict):
"""
+class AccountCreateParamsConfigurationRecipientCapabilitiesBankAccounts(
+ TypedDict,
+):
+ local: NotRequired[
+ "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsLocal"
+ ]
+ """
+ Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
+ """
+ wire: NotRequired[
+ "AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsWire"
+ ]
+ """
+ Enables this Account to receive OutboundPayments to linked bank accounts over wire.
+ """
+
+
+class AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsLocal(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountCreateParamsConfigurationRecipientCapabilitiesBankAccountsWire(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountCreateParamsConfigurationRecipientCapabilitiesCards(TypedDict):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
class AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalance(
TypedDict,
):
@@ -1181,6 +1251,223 @@ class AccountCreateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTr
"""
+class AccountCreateParamsConfigurationStorer(TypedDict):
+ capabilities: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilities"
+ ]
+ """
+ Capabilities to request on the Storer Configuration.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilities(TypedDict):
+ financial_addresses: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddresses"
+ ]
+ """
+ Can provision a financial address to credit/debit a FinancialAccount.
+ """
+ holds_currencies: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies"
+ ]
+ """
+ Can hold storage-type funds on Stripe.
+ """
+ inbound_transfers: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfers"
+ ]
+ """
+ Can pull funds from an external source, owned by yourself, to a FinancialAccount.
+ """
+ outbound_payments: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPayments"
+ ]
+ """
+ Can send funds from a FinancialAccount to a destination owned by someone else.
+ """
+ outbound_transfers: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfers"
+ ]
+ """
+ Can send funds from a FinancialAccount to a destination owned by yourself.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddresses(
+ TypedDict,
+):
+ bank_accounts: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts"
+ ]
+ """
+ Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrencies(
+ TypedDict,
+):
+ eur: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur"
+ ]
+ """
+ Can hold storage-type funds on Stripe in EUR.
+ """
+ gbp: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp"
+ ]
+ """
+ Can hold storage-type funds on Stripe in GBP.
+ """
+ usd: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd"
+ ]
+ """
+ Can hold storage-type funds on Stripe in USD.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfers(
+ TypedDict,
+):
+ bank_accounts: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts"
+ ]
+ """
+ Can pull funds from an external bank account owned by yourself to a FinancialAccount.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesOutboundPayments(
+ TypedDict,
+):
+ bank_accounts: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts"
+ ]
+ """
+ Can send funds from a FinancialAccount to a bank account owned by someone else.
+ """
+ cards: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards"
+ ]
+ """
+ Can send funds from a FinancialAccount to a debit card owned by someone else.
+ """
+ financial_accounts: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts"
+ ]
+ """
+ Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfers(
+ TypedDict,
+):
+ bank_accounts: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts"
+ ]
+ """
+ Can send funds from a FinancialAccount to a bank account owned by yourself.
+ """
+ financial_accounts: NotRequired[
+ "AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts"
+ ]
+ """
+ Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountCreateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts(
+ TypedDict,
+):
+ requested: bool
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
class AccountCreateParamsDefaults(TypedDict):
currency: NotRequired[str]
"""
@@ -1457,6 +1744,12 @@ class AccountCreateParamsIdentityAttestationsTermsOfService(TypedDict):
"""
Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
"""
+ storer: NotRequired[
+ "AccountCreateParamsIdentityAttestationsTermsOfServiceStorer"
+ ]
+ """
+ Details on the Account's acceptance of Treasury-specific terms of service.
+ """
class AccountCreateParamsIdentityAttestationsTermsOfServiceAccount(TypedDict):
@@ -1474,6 +1767,21 @@ class AccountCreateParamsIdentityAttestationsTermsOfServiceAccount(TypedDict):
"""
+class AccountCreateParamsIdentityAttestationsTermsOfServiceStorer(TypedDict):
+ date: str
+ """
+ The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ ip: str
+ """
+ The IP address from which the Account's representative accepted the terms of service.
+ """
+ user_agent: NotRequired[str]
+ """
+ The user agent of the browser from which the Account's representative accepted the terms of service.
+ """
+
+
class AccountCreateParamsIdentityBusinessDetails(TypedDict):
address: NotRequired["AccountCreateParamsIdentityBusinessDetailsAddress"]
"""
diff --git a/stripe/params/v2/core/_account_link_create_params.py b/stripe/params/v2/core/_account_link_create_params.py
index f9446fe97..c7d15ffef 100644
--- a/stripe/params/v2/core/_account_link_create_params.py
+++ b/stripe/params/v2/core/_account_link_create_params.py
@@ -39,7 +39,9 @@ class AccountLinkCreateParamsUseCaseAccountOnboarding(TypedDict):
"""
Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow.
"""
- configurations: List[Literal["customer", "merchant", "recipient"]]
+ configurations: List[
+ Literal["customer", "merchant", "recipient", "storer"]
+ ]
"""
Open Enum. A v2/core/account can be configured to enable certain functionality. The configuration param targets the v2/core/account_link to collect information for the specified v2/core/account configuration/s.
"""
@@ -73,7 +75,9 @@ class AccountLinkCreateParamsUseCaseAccountUpdate(TypedDict):
"""
Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow.
"""
- configurations: List[Literal["customer", "merchant", "recipient"]]
+ configurations: List[
+ Literal["customer", "merchant", "recipient", "storer"]
+ ]
"""
Open Enum. A v2/account can be configured to enable certain functionality. The configuration param targets the v2/account_link to collect information for the specified v2/account configuration/s.
"""
diff --git a/stripe/params/v2/core/_account_list_params.py b/stripe/params/v2/core/_account_list_params.py
index 39ee29c71..c09a1326b 100644
--- a/stripe/params/v2/core/_account_list_params.py
+++ b/stripe/params/v2/core/_account_list_params.py
@@ -6,7 +6,7 @@
class AccountListParams(TypedDict):
applied_configurations: NotRequired[
- List[Literal["customer", "merchant", "recipient"]]
+ List[Literal["customer", "merchant", "recipient", "storer"]]
]
"""
Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
diff --git a/stripe/params/v2/core/_account_retrieve_params.py b/stripe/params/v2/core/_account_retrieve_params.py
index d04a55d50..69080103a 100644
--- a/stripe/params/v2/core/_account_retrieve_params.py
+++ b/stripe/params/v2/core/_account_retrieve_params.py
@@ -11,6 +11,7 @@ class AccountRetrieveParams(TypedDict):
"configuration.customer",
"configuration.merchant",
"configuration.recipient",
+ "configuration.storer",
"defaults",
"future_requirements",
"identity",
diff --git a/stripe/params/v2/core/_account_token_create_params.py b/stripe/params/v2/core/_account_token_create_params.py
index eeb12ed82..ba6f1fa34 100644
--- a/stripe/params/v2/core/_account_token_create_params.py
+++ b/stripe/params/v2/core/_account_token_create_params.py
@@ -133,6 +133,12 @@ class AccountTokenCreateParamsIdentityAttestationsTermsOfService(TypedDict):
"""
Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe.
"""
+ storer: NotRequired[
+ "AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer"
+ ]
+ """
+ Details on the Account's acceptance of Treasury-specific terms of service; IP, date, and User Agent are expanded by Stripe.
+ """
class AccountTokenCreateParamsIdentityAttestationsTermsOfServiceAccount(
@@ -144,6 +150,15 @@ class AccountTokenCreateParamsIdentityAttestationsTermsOfServiceAccount(
"""
+class AccountTokenCreateParamsIdentityAttestationsTermsOfServiceStorer(
+ TypedDict,
+):
+ shown_and_accepted: NotRequired[bool]
+ """
+ The boolean value indicating if the terms of service have been accepted.
+ """
+
+
class AccountTokenCreateParamsIdentityBusinessDetails(TypedDict):
address: NotRequired[
"AccountTokenCreateParamsIdentityBusinessDetailsAddress"
diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py
index 38c0ff060..691843166 100644
--- a/stripe/params/v2/core/_account_update_params.py
+++ b/stripe/params/v2/core/_account_update_params.py
@@ -39,6 +39,7 @@ class AccountUpdateParams(TypedDict):
"configuration.customer",
"configuration.merchant",
"configuration.recipient",
+ "configuration.storer",
"defaults",
"future_requirements",
"identity",
@@ -68,6 +69,10 @@ class AccountUpdateParamsConfiguration(TypedDict):
"""
The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set.
"""
+ storer: NotRequired["AccountUpdateParamsConfigurationStorer"]
+ """
+ The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
+ """
class AccountUpdateParamsConfigurationCustomer(TypedDict):
@@ -110,6 +115,17 @@ class AccountUpdateParamsConfigurationCustomerAutomaticIndirectTax(TypedDict):
"""
A recent IP address of the customer used for tax reporting and tax location inference.
"""
+ location_source: NotRequired[
+ Literal[
+ "identity_address",
+ "ip_address",
+ "payment_method",
+ "shipping_address",
+ ]
+ ]
+ """
+ Data source used to identify the customer account's tax location. Defaults to `identity_address`. Used for automatic indirect tax calculation.
+ """
validate_location: NotRequired[Literal["auto", "deferred", "immediately"]]
"""
A per-request flag that indicates when Stripe should validate the customer tax location - defaults to `auto`.
@@ -1170,9 +1186,25 @@ class AccountUpdateParamsConfigurationRecipient(TypedDict):
"""
Capabilities to request on the Recipient Configuration.
"""
+ default_outbound_destination: NotRequired[str]
+ """
+ The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details).
+ """
class AccountUpdateParamsConfigurationRecipientCapabilities(TypedDict):
+ bank_accounts: NotRequired[
+ "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts"
+ ]
+ """
+ Capabilities that enable OutboundPayments to a bank account linked to this Account.
+ """
+ cards: NotRequired[
+ "AccountUpdateParamsConfigurationRecipientCapabilitiesCards"
+ ]
+ """
+ Capability that enable OutboundPayments to a debit card linked to this Account.
+ """
stripe_balance: NotRequired[
"AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance"
]
@@ -1181,6 +1213,48 @@ class AccountUpdateParamsConfigurationRecipientCapabilities(TypedDict):
"""
+class AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccounts(
+ TypedDict,
+):
+ local: NotRequired[
+ "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsLocal"
+ ]
+ """
+ Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
+ """
+ wire: NotRequired[
+ "AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsWire"
+ ]
+ """
+ Enables this Account to receive OutboundPayments to linked bank accounts over wire.
+ """
+
+
+class AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsLocal(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountUpdateParamsConfigurationRecipientCapabilitiesBankAccountsWire(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountUpdateParamsConfigurationRecipientCapabilitiesCards(TypedDict):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
class AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalance(
TypedDict,
):
@@ -1201,6 +1275,227 @@ class AccountUpdateParamsConfigurationRecipientCapabilitiesStripeBalanceStripeTr
"""
+class AccountUpdateParamsConfigurationStorer(TypedDict):
+ applied: NotRequired[bool]
+ """
+ Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
+ """
+ capabilities: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilities"
+ ]
+ """
+ Capabilities to request on the Storer Configuration.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilities(TypedDict):
+ financial_addresses: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddresses"
+ ]
+ """
+ Can provision a financial address to credit/debit a FinancialAccount.
+ """
+ holds_currencies: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies"
+ ]
+ """
+ Can hold storage-type funds on Stripe.
+ """
+ inbound_transfers: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfers"
+ ]
+ """
+ Can pull funds from an external source, owned by yourself, to a FinancialAccount.
+ """
+ outbound_payments: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPayments"
+ ]
+ """
+ Can send funds from a FinancialAccount to a destination owned by someone else.
+ """
+ outbound_transfers: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfers"
+ ]
+ """
+ Can send funds from a FinancialAccount to a destination owned by yourself.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddresses(
+ TypedDict,
+):
+ bank_accounts: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts"
+ ]
+ """
+ Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesFinancialAddressesBankAccounts(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrencies(
+ TypedDict,
+):
+ eur: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur"
+ ]
+ """
+ Can hold storage-type funds on Stripe in EUR.
+ """
+ gbp: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp"
+ ]
+ """
+ Can hold storage-type funds on Stripe in GBP.
+ """
+ usd: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd"
+ ]
+ """
+ Can hold storage-type funds on Stripe in USD.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesEur(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesGbp(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesHoldsCurrenciesUsd(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfers(
+ TypedDict,
+):
+ bank_accounts: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts"
+ ]
+ """
+ Can pull funds from an external bank account owned by yourself to a FinancialAccount.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesInboundTransfersBankAccounts(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPayments(
+ TypedDict,
+):
+ bank_accounts: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts"
+ ]
+ """
+ Can send funds from a FinancialAccount to a bank account owned by someone else.
+ """
+ cards: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards"
+ ]
+ """
+ Can send funds from a FinancialAccount to a debit card owned by someone else.
+ """
+ financial_accounts: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts"
+ ]
+ """
+ Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsCards(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfers(
+ TypedDict,
+):
+ bank_accounts: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts"
+ ]
+ """
+ Can send funds from a FinancialAccount to a bank account owned by yourself.
+ """
+ financial_accounts: NotRequired[
+ "AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts"
+ ]
+ """
+ Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersBankAccounts(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
+class AccountUpdateParamsConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts(
+ TypedDict,
+):
+ requested: NotRequired[bool]
+ """
+ To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
+ """
+
+
class AccountUpdateParamsDefaults(TypedDict):
currency: NotRequired[str]
"""
diff --git a/stripe/params/v2/core/vault/__init__.py b/stripe/params/v2/core/vault/__init__.py
new file mode 100644
index 000000000..cb6115ae9
--- /dev/null
+++ b/stripe/params/v2/core/vault/__init__.py
@@ -0,0 +1,121 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.v2.core.vault._gb_bank_account_acknowledge_confirmation_of_payee_params import (
+ GbBankAccountAcknowledgeConfirmationOfPayeeParams as GbBankAccountAcknowledgeConfirmationOfPayeeParams,
+ )
+ from stripe.params.v2.core.vault._gb_bank_account_archive_params import (
+ GbBankAccountArchiveParams as GbBankAccountArchiveParams,
+ )
+ from stripe.params.v2.core.vault._gb_bank_account_create_params import (
+ GbBankAccountCreateParams as GbBankAccountCreateParams,
+ GbBankAccountCreateParamsConfirmationOfPayee as GbBankAccountCreateParamsConfirmationOfPayee,
+ )
+ from stripe.params.v2.core.vault._gb_bank_account_initiate_confirmation_of_payee_params import (
+ GbBankAccountInitiateConfirmationOfPayeeParams as GbBankAccountInitiateConfirmationOfPayeeParams,
+ )
+ from stripe.params.v2.core.vault._gb_bank_account_list_params import (
+ GbBankAccountListParams as GbBankAccountListParams,
+ )
+ from stripe.params.v2.core.vault._gb_bank_account_retrieve_params import (
+ GbBankAccountRetrieveParams as GbBankAccountRetrieveParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_archive_params import (
+ UsBankAccountArchiveParams as UsBankAccountArchiveParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_confirm_microdeposits_params import (
+ UsBankAccountConfirmMicrodepositsParams as UsBankAccountConfirmMicrodepositsParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_create_params import (
+ UsBankAccountCreateParams as UsBankAccountCreateParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_list_params import (
+ UsBankAccountListParams as UsBankAccountListParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_retrieve_params import (
+ UsBankAccountRetrieveParams as UsBankAccountRetrieveParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_send_microdeposits_params import (
+ UsBankAccountSendMicrodepositsParams as UsBankAccountSendMicrodepositsParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_update_params import (
+ UsBankAccountUpdateParams as UsBankAccountUpdateParams,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "GbBankAccountAcknowledgeConfirmationOfPayeeParams": (
+ "stripe.params.v2.core.vault._gb_bank_account_acknowledge_confirmation_of_payee_params",
+ False,
+ ),
+ "GbBankAccountArchiveParams": (
+ "stripe.params.v2.core.vault._gb_bank_account_archive_params",
+ False,
+ ),
+ "GbBankAccountCreateParams": (
+ "stripe.params.v2.core.vault._gb_bank_account_create_params",
+ False,
+ ),
+ "GbBankAccountCreateParamsConfirmationOfPayee": (
+ "stripe.params.v2.core.vault._gb_bank_account_create_params",
+ False,
+ ),
+ "GbBankAccountInitiateConfirmationOfPayeeParams": (
+ "stripe.params.v2.core.vault._gb_bank_account_initiate_confirmation_of_payee_params",
+ False,
+ ),
+ "GbBankAccountListParams": (
+ "stripe.params.v2.core.vault._gb_bank_account_list_params",
+ False,
+ ),
+ "GbBankAccountRetrieveParams": (
+ "stripe.params.v2.core.vault._gb_bank_account_retrieve_params",
+ False,
+ ),
+ "UsBankAccountArchiveParams": (
+ "stripe.params.v2.core.vault._us_bank_account_archive_params",
+ False,
+ ),
+ "UsBankAccountConfirmMicrodepositsParams": (
+ "stripe.params.v2.core.vault._us_bank_account_confirm_microdeposits_params",
+ False,
+ ),
+ "UsBankAccountCreateParams": (
+ "stripe.params.v2.core.vault._us_bank_account_create_params",
+ False,
+ ),
+ "UsBankAccountListParams": (
+ "stripe.params.v2.core.vault._us_bank_account_list_params",
+ False,
+ ),
+ "UsBankAccountRetrieveParams": (
+ "stripe.params.v2.core.vault._us_bank_account_retrieve_params",
+ False,
+ ),
+ "UsBankAccountSendMicrodepositsParams": (
+ "stripe.params.v2.core.vault._us_bank_account_send_microdeposits_params",
+ False,
+ ),
+ "UsBankAccountUpdateParams": (
+ "stripe.params.v2.core.vault._us_bank_account_update_params",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/params/v2/core/vault/_gb_bank_account_acknowledge_confirmation_of_payee_params.py b/stripe/params/v2/core/vault/_gb_bank_account_acknowledge_confirmation_of_payee_params.py
new file mode 100644
index 000000000..7db9a3f15
--- /dev/null
+++ b/stripe/params/v2/core/vault/_gb_bank_account_acknowledge_confirmation_of_payee_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class GbBankAccountAcknowledgeConfirmationOfPayeeParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/core/vault/_gb_bank_account_archive_params.py b/stripe/params/v2/core/vault/_gb_bank_account_archive_params.py
new file mode 100644
index 000000000..e9edefe83
--- /dev/null
+++ b/stripe/params/v2/core/vault/_gb_bank_account_archive_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class GbBankAccountArchiveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/core/vault/_gb_bank_account_create_params.py b/stripe/params/v2/core/vault/_gb_bank_account_create_params.py
new file mode 100644
index 000000000..9fc659bc2
--- /dev/null
+++ b/stripe/params/v2/core/vault/_gb_bank_account_create_params.py
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class GbBankAccountCreateParams(TypedDict):
+ account_number: str
+ """
+ The Account Number of the bank account.
+ """
+ bank_account_type: NotRequired[Literal["checking", "savings"]]
+ """
+ Closed Enum. The type of the bank account (checking or savings).
+ """
+ confirmation_of_payee: NotRequired[
+ "GbBankAccountCreateParamsConfirmationOfPayee"
+ ]
+ """
+ Whether or not to automatically perform Confirmation of Payee to verify the users information
+ against what was provided by the bank. Doing so is required for all bank accounts not owned
+ by you before making domestic UK OutboundPayments.
+ """
+ sort_code: str
+ """
+ The Sort Code of the bank account.
+ """
+
+
+class GbBankAccountCreateParamsConfirmationOfPayee(TypedDict):
+ business_type: NotRequired[Literal["business", "personal"]]
+ """
+ The business type to be checked against. Legal entity information will be used if unspecified.
+ Closed enum.
+ """
+ initiate: bool
+ """
+ User specifies whether Confirmation of Payee is automatically initiated when creating the bank account.
+ """
+ name: NotRequired[str]
+ """
+ The name to be checked against. Legal entity information will be used if unspecified.
+ """
diff --git a/stripe/params/v2/core/vault/_gb_bank_account_initiate_confirmation_of_payee_params.py b/stripe/params/v2/core/vault/_gb_bank_account_initiate_confirmation_of_payee_params.py
new file mode 100644
index 000000000..b717e626f
--- /dev/null
+++ b/stripe/params/v2/core/vault/_gb_bank_account_initiate_confirmation_of_payee_params.py
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class GbBankAccountInitiateConfirmationOfPayeeParams(TypedDict):
+ business_type: NotRequired[Literal["business", "personal"]]
+ """
+ The business type to be checked against. Legal entity information will be used if unspecified.
+ """
+ name: NotRequired[str]
+ """
+ The name of the user to be checked against. Legal entity information will be used if unspecified.
+ """
diff --git a/stripe/params/v2/core/vault/_gb_bank_account_list_params.py b/stripe/params/v2/core/vault/_gb_bank_account_list_params.py
new file mode 100644
index 000000000..9d7f61736
--- /dev/null
+++ b/stripe/params/v2/core/vault/_gb_bank_account_list_params.py
@@ -0,0 +1,10 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class GbBankAccountListParams(TypedDict):
+ limit: NotRequired[int]
+ """
+ Optionally set the maximum number of results per page. Defaults to 10.
+ """
diff --git a/stripe/params/v2/core/vault/_gb_bank_account_retrieve_params.py b/stripe/params/v2/core/vault/_gb_bank_account_retrieve_params.py
new file mode 100644
index 000000000..a3289ca98
--- /dev/null
+++ b/stripe/params/v2/core/vault/_gb_bank_account_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class GbBankAccountRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/core/vault/_us_bank_account_archive_params.py b/stripe/params/v2/core/vault/_us_bank_account_archive_params.py
new file mode 100644
index 000000000..d67268aca
--- /dev/null
+++ b/stripe/params/v2/core/vault/_us_bank_account_archive_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class UsBankAccountArchiveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/core/vault/_us_bank_account_confirm_microdeposits_params.py b/stripe/params/v2/core/vault/_us_bank_account_confirm_microdeposits_params.py
new file mode 100644
index 000000000..89622c350
--- /dev/null
+++ b/stripe/params/v2/core/vault/_us_bank_account_confirm_microdeposits_params.py
@@ -0,0 +1,15 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class UsBankAccountConfirmMicrodepositsParams(TypedDict):
+ amounts: NotRequired[List[int]]
+ """
+ Two amounts received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account.
+ """
+ descriptor_code: NotRequired[str]
+ """
+ Descriptor code received through Send Microdeposits must match the input to Confirm Microdeposits to verify US Bank Account.
+ """
diff --git a/stripe/params/v2/core/vault/_us_bank_account_create_params.py b/stripe/params/v2/core/vault/_us_bank_account_create_params.py
new file mode 100644
index 000000000..b319c3f32
--- /dev/null
+++ b/stripe/params/v2/core/vault/_us_bank_account_create_params.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class UsBankAccountCreateParams(TypedDict):
+ account_number: str
+ """
+ The account number of the bank account.
+ """
+ bank_account_type: NotRequired[Literal["checking", "savings"]]
+ """
+ Closed Enum. The type of the bank account (checking or savings).
+ """
+ fedwire_routing_number: NotRequired[str]
+ """
+ The fedwire routing number of the bank account. Note that certain banks have the same ACH and wire routing number.
+ """
+ routing_number: NotRequired[str]
+ """
+ The ACH routing number of the bank account. Note that certain banks have the same ACH and wire routing number.
+ """
diff --git a/stripe/params/v2/core/vault/_us_bank_account_list_params.py b/stripe/params/v2/core/vault/_us_bank_account_list_params.py
new file mode 100644
index 000000000..38a0aa68f
--- /dev/null
+++ b/stripe/params/v2/core/vault/_us_bank_account_list_params.py
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class UsBankAccountListParams(TypedDict):
+ limit: NotRequired[int]
+ """
+ Optionally set the maximum number of results per page. Defaults to 10.
+ """
+ verification_status: NotRequired[str]
+ """
+ Optionally filter by verification status. Mutually exclusive with `unverified`, `verified`, `awaiting_verification`, and `verification_failed`.
+ """
diff --git a/stripe/params/v2/core/vault/_us_bank_account_retrieve_params.py b/stripe/params/v2/core/vault/_us_bank_account_retrieve_params.py
new file mode 100644
index 000000000..05b62c9c4
--- /dev/null
+++ b/stripe/params/v2/core/vault/_us_bank_account_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class UsBankAccountRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/core/vault/_us_bank_account_send_microdeposits_params.py b/stripe/params/v2/core/vault/_us_bank_account_send_microdeposits_params.py
new file mode 100644
index 000000000..e16ba1f63
--- /dev/null
+++ b/stripe/params/v2/core/vault/_us_bank_account_send_microdeposits_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class UsBankAccountSendMicrodepositsParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/core/vault/_us_bank_account_update_params.py b/stripe/params/v2/core/vault/_us_bank_account_update_params.py
new file mode 100644
index 000000000..a75aa9eac
--- /dev/null
+++ b/stripe/params/v2/core/vault/_us_bank_account_update_params.py
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class UsBankAccountUpdateParams(TypedDict):
+ fedwire_routing_number: NotRequired[str]
+ """
+ The bank account's fedwire routing number can be provided for update it was were empty previously.
+ """
+ routing_number: NotRequired[str]
+ """
+ The bank account's ACH routing number can be provided for update if it was empty previously.
+ """
diff --git a/stripe/params/v2/money_management/__init__.py b/stripe/params/v2/money_management/__init__.py
new file mode 100644
index 000000000..dc9dc1c1e
--- /dev/null
+++ b/stripe/params/v2/money_management/__init__.py
@@ -0,0 +1,437 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.v2.money_management._adjustment_list_params import (
+ AdjustmentListParams as AdjustmentListParams,
+ )
+ from stripe.params.v2.money_management._adjustment_retrieve_params import (
+ AdjustmentRetrieveParams as AdjustmentRetrieveParams,
+ )
+ from stripe.params.v2.money_management._financial_account_close_params import (
+ FinancialAccountCloseParams as FinancialAccountCloseParams,
+ FinancialAccountCloseParamsForwardingSettings as FinancialAccountCloseParamsForwardingSettings,
+ )
+ from stripe.params.v2.money_management._financial_account_create_params import (
+ FinancialAccountCreateParams as FinancialAccountCreateParams,
+ FinancialAccountCreateParamsStorage as FinancialAccountCreateParamsStorage,
+ )
+ from stripe.params.v2.money_management._financial_account_list_params import (
+ FinancialAccountListParams as FinancialAccountListParams,
+ )
+ from stripe.params.v2.money_management._financial_account_retrieve_params import (
+ FinancialAccountRetrieveParams as FinancialAccountRetrieveParams,
+ )
+ from stripe.params.v2.money_management._financial_account_update_params import (
+ FinancialAccountUpdateParams as FinancialAccountUpdateParams,
+ )
+ from stripe.params.v2.money_management._financial_address_create_params import (
+ FinancialAddressCreateParams as FinancialAddressCreateParams,
+ )
+ from stripe.params.v2.money_management._financial_address_list_params import (
+ FinancialAddressListParams as FinancialAddressListParams,
+ )
+ from stripe.params.v2.money_management._financial_address_retrieve_params import (
+ FinancialAddressRetrieveParams as FinancialAddressRetrieveParams,
+ )
+ from stripe.params.v2.money_management._inbound_transfer_create_params import (
+ InboundTransferCreateParams as InboundTransferCreateParams,
+ InboundTransferCreateParamsAmount as InboundTransferCreateParamsAmount,
+ InboundTransferCreateParamsFrom as InboundTransferCreateParamsFrom,
+ InboundTransferCreateParamsTo as InboundTransferCreateParamsTo,
+ )
+ from stripe.params.v2.money_management._inbound_transfer_list_params import (
+ InboundTransferListParams as InboundTransferListParams,
+ )
+ from stripe.params.v2.money_management._inbound_transfer_retrieve_params import (
+ InboundTransferRetrieveParams as InboundTransferRetrieveParams,
+ )
+ from stripe.params.v2.money_management._outbound_payment_cancel_params import (
+ OutboundPaymentCancelParams as OutboundPaymentCancelParams,
+ )
+ from stripe.params.v2.money_management._outbound_payment_create_params import (
+ OutboundPaymentCreateParams as OutboundPaymentCreateParams,
+ OutboundPaymentCreateParamsAmount as OutboundPaymentCreateParamsAmount,
+ OutboundPaymentCreateParamsDeliveryOptions as OutboundPaymentCreateParamsDeliveryOptions,
+ OutboundPaymentCreateParamsFrom as OutboundPaymentCreateParamsFrom,
+ OutboundPaymentCreateParamsRecipientNotification as OutboundPaymentCreateParamsRecipientNotification,
+ OutboundPaymentCreateParamsTo as OutboundPaymentCreateParamsTo,
+ )
+ from stripe.params.v2.money_management._outbound_payment_list_params import (
+ OutboundPaymentListParams as OutboundPaymentListParams,
+ )
+ from stripe.params.v2.money_management._outbound_payment_quote_create_params import (
+ OutboundPaymentQuoteCreateParams as OutboundPaymentQuoteCreateParams,
+ OutboundPaymentQuoteCreateParamsAmount as OutboundPaymentQuoteCreateParamsAmount,
+ OutboundPaymentQuoteCreateParamsDeliveryOptions as OutboundPaymentQuoteCreateParamsDeliveryOptions,
+ OutboundPaymentQuoteCreateParamsFrom as OutboundPaymentQuoteCreateParamsFrom,
+ OutboundPaymentQuoteCreateParamsTo as OutboundPaymentQuoteCreateParamsTo,
+ )
+ from stripe.params.v2.money_management._outbound_payment_quote_retrieve_params import (
+ OutboundPaymentQuoteRetrieveParams as OutboundPaymentQuoteRetrieveParams,
+ )
+ from stripe.params.v2.money_management._outbound_payment_retrieve_params import (
+ OutboundPaymentRetrieveParams as OutboundPaymentRetrieveParams,
+ )
+ from stripe.params.v2.money_management._outbound_setup_intent_cancel_params import (
+ OutboundSetupIntentCancelParams as OutboundSetupIntentCancelParams,
+ )
+ from stripe.params.v2.money_management._outbound_setup_intent_create_params import (
+ OutboundSetupIntentCreateParams as OutboundSetupIntentCreateParams,
+ OutboundSetupIntentCreateParamsPayoutMethodData as OutboundSetupIntentCreateParamsPayoutMethodData,
+ OutboundSetupIntentCreateParamsPayoutMethodDataBankAccount as OutboundSetupIntentCreateParamsPayoutMethodDataBankAccount,
+ OutboundSetupIntentCreateParamsPayoutMethodDataCard as OutboundSetupIntentCreateParamsPayoutMethodDataCard,
+ )
+ from stripe.params.v2.money_management._outbound_setup_intent_list_params import (
+ OutboundSetupIntentListParams as OutboundSetupIntentListParams,
+ )
+ from stripe.params.v2.money_management._outbound_setup_intent_retrieve_params import (
+ OutboundSetupIntentRetrieveParams as OutboundSetupIntentRetrieveParams,
+ )
+ from stripe.params.v2.money_management._outbound_setup_intent_update_params import (
+ OutboundSetupIntentUpdateParams as OutboundSetupIntentUpdateParams,
+ OutboundSetupIntentUpdateParamsPayoutMethodData as OutboundSetupIntentUpdateParamsPayoutMethodData,
+ OutboundSetupIntentUpdateParamsPayoutMethodDataBankAccount as OutboundSetupIntentUpdateParamsPayoutMethodDataBankAccount,
+ OutboundSetupIntentUpdateParamsPayoutMethodDataCard as OutboundSetupIntentUpdateParamsPayoutMethodDataCard,
+ )
+ from stripe.params.v2.money_management._outbound_transfer_cancel_params import (
+ OutboundTransferCancelParams as OutboundTransferCancelParams,
+ )
+ from stripe.params.v2.money_management._outbound_transfer_create_params import (
+ OutboundTransferCreateParams as OutboundTransferCreateParams,
+ OutboundTransferCreateParamsAmount as OutboundTransferCreateParamsAmount,
+ OutboundTransferCreateParamsDeliveryOptions as OutboundTransferCreateParamsDeliveryOptions,
+ OutboundTransferCreateParamsFrom as OutboundTransferCreateParamsFrom,
+ OutboundTransferCreateParamsTo as OutboundTransferCreateParamsTo,
+ )
+ from stripe.params.v2.money_management._outbound_transfer_list_params import (
+ OutboundTransferListParams as OutboundTransferListParams,
+ )
+ from stripe.params.v2.money_management._outbound_transfer_retrieve_params import (
+ OutboundTransferRetrieveParams as OutboundTransferRetrieveParams,
+ )
+ from stripe.params.v2.money_management._payout_method_archive_params import (
+ PayoutMethodArchiveParams as PayoutMethodArchiveParams,
+ )
+ from stripe.params.v2.money_management._payout_method_list_params import (
+ PayoutMethodListParams as PayoutMethodListParams,
+ PayoutMethodListParamsUsageStatus as PayoutMethodListParamsUsageStatus,
+ )
+ from stripe.params.v2.money_management._payout_method_retrieve_params import (
+ PayoutMethodRetrieveParams as PayoutMethodRetrieveParams,
+ )
+ from stripe.params.v2.money_management._payout_method_unarchive_params import (
+ PayoutMethodUnarchiveParams as PayoutMethodUnarchiveParams,
+ )
+ from stripe.params.v2.money_management._payout_methods_bank_account_spec_retrieve_params import (
+ PayoutMethodsBankAccountSpecRetrieveParams as PayoutMethodsBankAccountSpecRetrieveParams,
+ )
+ from stripe.params.v2.money_management._received_credit_list_params import (
+ ReceivedCreditListParams as ReceivedCreditListParams,
+ )
+ from stripe.params.v2.money_management._received_credit_retrieve_params import (
+ ReceivedCreditRetrieveParams as ReceivedCreditRetrieveParams,
+ )
+ from stripe.params.v2.money_management._received_debit_list_params import (
+ ReceivedDebitListParams as ReceivedDebitListParams,
+ )
+ from stripe.params.v2.money_management._received_debit_retrieve_params import (
+ ReceivedDebitRetrieveParams as ReceivedDebitRetrieveParams,
+ )
+ from stripe.params.v2.money_management._transaction_entry_list_params import (
+ TransactionEntryListParams as TransactionEntryListParams,
+ )
+ from stripe.params.v2.money_management._transaction_entry_retrieve_params import (
+ TransactionEntryRetrieveParams as TransactionEntryRetrieveParams,
+ )
+ from stripe.params.v2.money_management._transaction_list_params import (
+ TransactionListParams as TransactionListParams,
+ )
+ from stripe.params.v2.money_management._transaction_retrieve_params import (
+ TransactionRetrieveParams as TransactionRetrieveParams,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "AdjustmentListParams": (
+ "stripe.params.v2.money_management._adjustment_list_params",
+ False,
+ ),
+ "AdjustmentRetrieveParams": (
+ "stripe.params.v2.money_management._adjustment_retrieve_params",
+ False,
+ ),
+ "FinancialAccountCloseParams": (
+ "stripe.params.v2.money_management._financial_account_close_params",
+ False,
+ ),
+ "FinancialAccountCloseParamsForwardingSettings": (
+ "stripe.params.v2.money_management._financial_account_close_params",
+ False,
+ ),
+ "FinancialAccountCreateParams": (
+ "stripe.params.v2.money_management._financial_account_create_params",
+ False,
+ ),
+ "FinancialAccountCreateParamsStorage": (
+ "stripe.params.v2.money_management._financial_account_create_params",
+ False,
+ ),
+ "FinancialAccountListParams": (
+ "stripe.params.v2.money_management._financial_account_list_params",
+ False,
+ ),
+ "FinancialAccountRetrieveParams": (
+ "stripe.params.v2.money_management._financial_account_retrieve_params",
+ False,
+ ),
+ "FinancialAccountUpdateParams": (
+ "stripe.params.v2.money_management._financial_account_update_params",
+ False,
+ ),
+ "FinancialAddressCreateParams": (
+ "stripe.params.v2.money_management._financial_address_create_params",
+ False,
+ ),
+ "FinancialAddressListParams": (
+ "stripe.params.v2.money_management._financial_address_list_params",
+ False,
+ ),
+ "FinancialAddressRetrieveParams": (
+ "stripe.params.v2.money_management._financial_address_retrieve_params",
+ False,
+ ),
+ "InboundTransferCreateParams": (
+ "stripe.params.v2.money_management._inbound_transfer_create_params",
+ False,
+ ),
+ "InboundTransferCreateParamsAmount": (
+ "stripe.params.v2.money_management._inbound_transfer_create_params",
+ False,
+ ),
+ "InboundTransferCreateParamsFrom": (
+ "stripe.params.v2.money_management._inbound_transfer_create_params",
+ False,
+ ),
+ "InboundTransferCreateParamsTo": (
+ "stripe.params.v2.money_management._inbound_transfer_create_params",
+ False,
+ ),
+ "InboundTransferListParams": (
+ "stripe.params.v2.money_management._inbound_transfer_list_params",
+ False,
+ ),
+ "InboundTransferRetrieveParams": (
+ "stripe.params.v2.money_management._inbound_transfer_retrieve_params",
+ False,
+ ),
+ "OutboundPaymentCancelParams": (
+ "stripe.params.v2.money_management._outbound_payment_cancel_params",
+ False,
+ ),
+ "OutboundPaymentCreateParams": (
+ "stripe.params.v2.money_management._outbound_payment_create_params",
+ False,
+ ),
+ "OutboundPaymentCreateParamsAmount": (
+ "stripe.params.v2.money_management._outbound_payment_create_params",
+ False,
+ ),
+ "OutboundPaymentCreateParamsDeliveryOptions": (
+ "stripe.params.v2.money_management._outbound_payment_create_params",
+ False,
+ ),
+ "OutboundPaymentCreateParamsFrom": (
+ "stripe.params.v2.money_management._outbound_payment_create_params",
+ False,
+ ),
+ "OutboundPaymentCreateParamsRecipientNotification": (
+ "stripe.params.v2.money_management._outbound_payment_create_params",
+ False,
+ ),
+ "OutboundPaymentCreateParamsTo": (
+ "stripe.params.v2.money_management._outbound_payment_create_params",
+ False,
+ ),
+ "OutboundPaymentListParams": (
+ "stripe.params.v2.money_management._outbound_payment_list_params",
+ False,
+ ),
+ "OutboundPaymentQuoteCreateParams": (
+ "stripe.params.v2.money_management._outbound_payment_quote_create_params",
+ False,
+ ),
+ "OutboundPaymentQuoteCreateParamsAmount": (
+ "stripe.params.v2.money_management._outbound_payment_quote_create_params",
+ False,
+ ),
+ "OutboundPaymentQuoteCreateParamsDeliveryOptions": (
+ "stripe.params.v2.money_management._outbound_payment_quote_create_params",
+ False,
+ ),
+ "OutboundPaymentQuoteCreateParamsFrom": (
+ "stripe.params.v2.money_management._outbound_payment_quote_create_params",
+ False,
+ ),
+ "OutboundPaymentQuoteCreateParamsTo": (
+ "stripe.params.v2.money_management._outbound_payment_quote_create_params",
+ False,
+ ),
+ "OutboundPaymentQuoteRetrieveParams": (
+ "stripe.params.v2.money_management._outbound_payment_quote_retrieve_params",
+ False,
+ ),
+ "OutboundPaymentRetrieveParams": (
+ "stripe.params.v2.money_management._outbound_payment_retrieve_params",
+ False,
+ ),
+ "OutboundSetupIntentCancelParams": (
+ "stripe.params.v2.money_management._outbound_setup_intent_cancel_params",
+ False,
+ ),
+ "OutboundSetupIntentCreateParams": (
+ "stripe.params.v2.money_management._outbound_setup_intent_create_params",
+ False,
+ ),
+ "OutboundSetupIntentCreateParamsPayoutMethodData": (
+ "stripe.params.v2.money_management._outbound_setup_intent_create_params",
+ False,
+ ),
+ "OutboundSetupIntentCreateParamsPayoutMethodDataBankAccount": (
+ "stripe.params.v2.money_management._outbound_setup_intent_create_params",
+ False,
+ ),
+ "OutboundSetupIntentCreateParamsPayoutMethodDataCard": (
+ "stripe.params.v2.money_management._outbound_setup_intent_create_params",
+ False,
+ ),
+ "OutboundSetupIntentListParams": (
+ "stripe.params.v2.money_management._outbound_setup_intent_list_params",
+ False,
+ ),
+ "OutboundSetupIntentRetrieveParams": (
+ "stripe.params.v2.money_management._outbound_setup_intent_retrieve_params",
+ False,
+ ),
+ "OutboundSetupIntentUpdateParams": (
+ "stripe.params.v2.money_management._outbound_setup_intent_update_params",
+ False,
+ ),
+ "OutboundSetupIntentUpdateParamsPayoutMethodData": (
+ "stripe.params.v2.money_management._outbound_setup_intent_update_params",
+ False,
+ ),
+ "OutboundSetupIntentUpdateParamsPayoutMethodDataBankAccount": (
+ "stripe.params.v2.money_management._outbound_setup_intent_update_params",
+ False,
+ ),
+ "OutboundSetupIntentUpdateParamsPayoutMethodDataCard": (
+ "stripe.params.v2.money_management._outbound_setup_intent_update_params",
+ False,
+ ),
+ "OutboundTransferCancelParams": (
+ "stripe.params.v2.money_management._outbound_transfer_cancel_params",
+ False,
+ ),
+ "OutboundTransferCreateParams": (
+ "stripe.params.v2.money_management._outbound_transfer_create_params",
+ False,
+ ),
+ "OutboundTransferCreateParamsAmount": (
+ "stripe.params.v2.money_management._outbound_transfer_create_params",
+ False,
+ ),
+ "OutboundTransferCreateParamsDeliveryOptions": (
+ "stripe.params.v2.money_management._outbound_transfer_create_params",
+ False,
+ ),
+ "OutboundTransferCreateParamsFrom": (
+ "stripe.params.v2.money_management._outbound_transfer_create_params",
+ False,
+ ),
+ "OutboundTransferCreateParamsTo": (
+ "stripe.params.v2.money_management._outbound_transfer_create_params",
+ False,
+ ),
+ "OutboundTransferListParams": (
+ "stripe.params.v2.money_management._outbound_transfer_list_params",
+ False,
+ ),
+ "OutboundTransferRetrieveParams": (
+ "stripe.params.v2.money_management._outbound_transfer_retrieve_params",
+ False,
+ ),
+ "PayoutMethodArchiveParams": (
+ "stripe.params.v2.money_management._payout_method_archive_params",
+ False,
+ ),
+ "PayoutMethodListParams": (
+ "stripe.params.v2.money_management._payout_method_list_params",
+ False,
+ ),
+ "PayoutMethodListParamsUsageStatus": (
+ "stripe.params.v2.money_management._payout_method_list_params",
+ False,
+ ),
+ "PayoutMethodRetrieveParams": (
+ "stripe.params.v2.money_management._payout_method_retrieve_params",
+ False,
+ ),
+ "PayoutMethodUnarchiveParams": (
+ "stripe.params.v2.money_management._payout_method_unarchive_params",
+ False,
+ ),
+ "PayoutMethodsBankAccountSpecRetrieveParams": (
+ "stripe.params.v2.money_management._payout_methods_bank_account_spec_retrieve_params",
+ False,
+ ),
+ "ReceivedCreditListParams": (
+ "stripe.params.v2.money_management._received_credit_list_params",
+ False,
+ ),
+ "ReceivedCreditRetrieveParams": (
+ "stripe.params.v2.money_management._received_credit_retrieve_params",
+ False,
+ ),
+ "ReceivedDebitListParams": (
+ "stripe.params.v2.money_management._received_debit_list_params",
+ False,
+ ),
+ "ReceivedDebitRetrieveParams": (
+ "stripe.params.v2.money_management._received_debit_retrieve_params",
+ False,
+ ),
+ "TransactionEntryListParams": (
+ "stripe.params.v2.money_management._transaction_entry_list_params",
+ False,
+ ),
+ "TransactionEntryRetrieveParams": (
+ "stripe.params.v2.money_management._transaction_entry_retrieve_params",
+ False,
+ ),
+ "TransactionListParams": (
+ "stripe.params.v2.money_management._transaction_list_params",
+ False,
+ ),
+ "TransactionRetrieveParams": (
+ "stripe.params.v2.money_management._transaction_retrieve_params",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/params/v2/money_management/_adjustment_list_params.py b/stripe/params/v2/money_management/_adjustment_list_params.py
new file mode 100644
index 000000000..1a7715c28
--- /dev/null
+++ b/stripe/params/v2/money_management/_adjustment_list_params.py
@@ -0,0 +1,39 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class AdjustmentListParams(TypedDict):
+ adjusted_flow: NotRequired[str]
+ """
+ Filter for Adjustments linked to a Flow.
+ """
+ created: NotRequired[str]
+ """
+ Filter for objects created at the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_gt: NotRequired[str]
+ """
+ Filter for objects created after the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_gte: NotRequired[str]
+ """
+ Filter for objects created on or after the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_lt: NotRequired[str]
+ """
+ Filter for objects created before the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_lte: NotRequired[str]
+ """
+ Filter for objects created on or before the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ limit: NotRequired[int]
+ """
+ The page limit.
+ """
diff --git a/stripe/params/v2/money_management/_adjustment_retrieve_params.py b/stripe/params/v2/money_management/_adjustment_retrieve_params.py
new file mode 100644
index 000000000..7c2480a4f
--- /dev/null
+++ b/stripe/params/v2/money_management/_adjustment_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class AdjustmentRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_financial_account_close_params.py b/stripe/params/v2/money_management/_financial_account_close_params.py
new file mode 100644
index 000000000..6f86592eb
--- /dev/null
+++ b/stripe/params/v2/money_management/_financial_account_close_params.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class FinancialAccountCloseParams(TypedDict):
+ forwarding_settings: NotRequired[
+ "FinancialAccountCloseParamsForwardingSettings"
+ ]
+ """
+ The addresses to forward any incoming transactions to.
+ """
+
+
+class FinancialAccountCloseParamsForwardingSettings(TypedDict):
+ payment_method: NotRequired[str]
+ """
+ The address to send forwarded payments to.
+ """
+ payout_method: NotRequired[str]
+ """
+ The address to send forwarded payouts to.
+ """
diff --git a/stripe/params/v2/money_management/_financial_account_create_params.py b/stripe/params/v2/money_management/_financial_account_create_params.py
new file mode 100644
index 000000000..0389cbe23
--- /dev/null
+++ b/stripe/params/v2/money_management/_financial_account_create_params.py
@@ -0,0 +1,30 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict, List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class FinancialAccountCreateParams(TypedDict):
+ display_name: NotRequired[str]
+ """
+ A descriptive name for the FinancialAccount, up to 50 characters long. This name will be used in the Stripe Dashboard and embedded components.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ Metadata associated with the FinancialAccount.
+ """
+ storage: NotRequired["FinancialAccountCreateParamsStorage"]
+ """
+ Parameters specific to creating `storage` type FinancialAccounts.
+ """
+ type: Literal["storage"]
+ """
+ The type of FinancialAccount to create.
+ """
+
+
+class FinancialAccountCreateParamsStorage(TypedDict):
+ holds_currencies: List[str]
+ """
+ The currencies that this FinancialAccount can hold.
+ """
diff --git a/stripe/params/v2/money_management/_financial_account_list_params.py b/stripe/params/v2/money_management/_financial_account_list_params.py
new file mode 100644
index 000000000..95949bc87
--- /dev/null
+++ b/stripe/params/v2/money_management/_financial_account_list_params.py
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class FinancialAccountListParams(TypedDict):
+ limit: NotRequired[int]
+ """
+ The page limit.
+ """
+ status: NotRequired[Literal["closed", "open", "pending"]]
+ """
+ The status of the FinancialAccount to filter by. By default, closed FinancialAccounts are not returned.
+ """
diff --git a/stripe/params/v2/money_management/_financial_account_retrieve_params.py b/stripe/params/v2/money_management/_financial_account_retrieve_params.py
new file mode 100644
index 000000000..40b1615fb
--- /dev/null
+++ b/stripe/params/v2/money_management/_financial_account_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class FinancialAccountRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_financial_account_update_params.py b/stripe/params/v2/money_management/_financial_account_update_params.py
new file mode 100644
index 000000000..80b9a02b2
--- /dev/null
+++ b/stripe/params/v2/money_management/_financial_account_update_params.py
@@ -0,0 +1,15 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict, Optional
+from typing_extensions import NotRequired, TypedDict
+
+
+class FinancialAccountUpdateParams(TypedDict):
+ display_name: NotRequired[str]
+ """
+ A descriptive name for the FinancialAccount, up to 50 characters long. This name will be used in the Stripe Dashboard and embedded components.
+ """
+ metadata: NotRequired[Dict[str, Optional[str]]]
+ """
+ Metadata associated with the FinancialAccount.
+ """
diff --git a/stripe/params/v2/money_management/_financial_address_create_params.py b/stripe/params/v2/money_management/_financial_address_create_params.py
new file mode 100644
index 000000000..fa39e9da2
--- /dev/null
+++ b/stripe/params/v2/money_management/_financial_address_create_params.py
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import Literal, TypedDict
+
+
+class FinancialAddressCreateParams(TypedDict):
+ financial_account: str
+ """
+ The ID of the FinancialAccount the new FinancialAddress should be associated with.
+ """
+ type: Literal["gb_bank_account", "us_bank_account"]
+ """
+ The type of FinancialAddress details to provision.
+ """
diff --git a/stripe/params/v2/money_management/_financial_address_list_params.py b/stripe/params/v2/money_management/_financial_address_list_params.py
new file mode 100644
index 000000000..c972f823a
--- /dev/null
+++ b/stripe/params/v2/money_management/_financial_address_list_params.py
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class FinancialAddressListParams(TypedDict):
+ financial_account: NotRequired[str]
+ """
+ The ID of the FinancialAccount for which FinancialAddresses are to be returned.
+ """
+ include: NotRequired[
+ List[
+ Literal[
+ "credentials.gb_bank_account.account_number",
+ "credentials.us_bank_account.account_number",
+ ]
+ ]
+ ]
+ """
+ Open Enum. A list of fields to reveal in the FinancialAddresses returned.
+ """
+ limit: NotRequired[int]
+ """
+ The page limit.
+ """
diff --git a/stripe/params/v2/money_management/_financial_address_retrieve_params.py b/stripe/params/v2/money_management/_financial_address_retrieve_params.py
new file mode 100644
index 000000000..614f61bbf
--- /dev/null
+++ b/stripe/params/v2/money_management/_financial_address_retrieve_params.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class FinancialAddressRetrieveParams(TypedDict):
+ include: NotRequired[
+ List[
+ Literal[
+ "credentials.gb_bank_account.account_number",
+ "credentials.us_bank_account.account_number",
+ ]
+ ]
+ ]
+ """
+ Open Enum. A list of fields to reveal in the FinancialAddresses returned.
+ """
diff --git a/stripe/params/v2/money_management/_inbound_transfer_create_params.py b/stripe/params/v2/money_management/_inbound_transfer_create_params.py
new file mode 100644
index 000000000..6d32f1730
--- /dev/null
+++ b/stripe/params/v2/money_management/_inbound_transfer_create_params.py
@@ -0,0 +1,57 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+_InboundTransferCreateParamsBase = TypedDict(
+ "InboundTransferCreateParams",
+ {"from": "InboundTransferCreateParamsFrom"},
+)
+
+
+class InboundTransferCreateParams(_InboundTransferCreateParamsBase):
+ amount: "InboundTransferCreateParamsAmount"
+ """
+ The amount, in specified currency, by which the FinancialAccount balance will increase due to the InboundTransfer.
+ """
+ description: NotRequired[str]
+ """
+ An optional, freeform description field intended to store metadata.
+ """
+ to: "InboundTransferCreateParamsTo"
+ """
+ Object containing details about where the funds will land.
+ """
+
+
+class InboundTransferCreateParamsAmount(TypedDict):
+ value: NotRequired[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+
+
+class InboundTransferCreateParamsFrom(TypedDict):
+ currency: NotRequired[str]
+ """
+ An optional currency field used to specify which currency is debited from the Payment Method.
+ Since many Payment Methods support only one currency, this field is optional.
+ """
+ payment_method: str
+ """
+ ID of the Payment Method using which IBT will be made.
+ """
+
+
+class InboundTransferCreateParamsTo(TypedDict):
+ currency: str
+ """
+ The currency in which funds will land in.
+ """
+ financial_account: str
+ """
+ The FinancialAccount that funds will land in.
+ """
diff --git a/stripe/params/v2/money_management/_inbound_transfer_list_params.py b/stripe/params/v2/money_management/_inbound_transfer_list_params.py
new file mode 100644
index 000000000..5f1cf063f
--- /dev/null
+++ b/stripe/params/v2/money_management/_inbound_transfer_list_params.py
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class InboundTransferListParams(TypedDict):
+ created: NotRequired[str]
+ """
+ Filter for objects created at the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_gt: NotRequired[str]
+ """
+ Filter for objects created after the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_gte: NotRequired[str]
+ """
+ Filter for objects created on or after the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_lt: NotRequired[str]
+ """
+ Filter for objects created before the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_lte: NotRequired[str]
+ """
+ Filter for objects created on or before the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ limit: NotRequired[int]
+ """
+ The page limit.
+ """
diff --git a/stripe/params/v2/money_management/_inbound_transfer_retrieve_params.py b/stripe/params/v2/money_management/_inbound_transfer_retrieve_params.py
new file mode 100644
index 000000000..541671578
--- /dev/null
+++ b/stripe/params/v2/money_management/_inbound_transfer_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class InboundTransferRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_outbound_payment_cancel_params.py b/stripe/params/v2/money_management/_outbound_payment_cancel_params.py
new file mode 100644
index 000000000..dda6b31b3
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_payment_cancel_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class OutboundPaymentCancelParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_outbound_payment_create_params.py b/stripe/params/v2/money_management/_outbound_payment_create_params.py
new file mode 100644
index 000000000..99202b6bb
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_payment_create_params.py
@@ -0,0 +1,100 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict
+from typing_extensions import Literal, NotRequired, TypedDict
+
+_OutboundPaymentCreateParamsBase = TypedDict(
+ "OutboundPaymentCreateParams",
+ {"from": "OutboundPaymentCreateParamsFrom"},
+)
+
+
+class OutboundPaymentCreateParams(_OutboundPaymentCreateParamsBase):
+ amount: "OutboundPaymentCreateParamsAmount"
+ """
+ The "presentment amount" to be sent to the recipient.
+ """
+ delivery_options: NotRequired["OutboundPaymentCreateParamsDeliveryOptions"]
+ """
+ Delivery options to be used to send the OutboundPayment.
+ """
+ description: NotRequired[str]
+ """
+ An arbitrary string attached to the OutboundPayment. Often useful for displaying to users.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ 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.
+ """
+ outbound_payment_quote: NotRequired[str]
+ """
+ The quote for this OutboundPayment. Only required for countries with regulatory mandates to display fee estimates before OutboundPayment creation.
+ """
+ recipient_notification: NotRequired[
+ "OutboundPaymentCreateParamsRecipientNotification"
+ ]
+ """
+ Details about the notification settings for the OutboundPayment recipient.
+ """
+ to: "OutboundPaymentCreateParamsTo"
+ """
+ To which payout method to send the OutboundPayment.
+ """
+
+
+class OutboundPaymentCreateParamsAmount(TypedDict):
+ value: NotRequired[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+
+
+class OutboundPaymentCreateParamsDeliveryOptions(TypedDict):
+ bank_account: NotRequired[Literal["automatic", "local", "wire"]]
+ """
+ Open Enum. Method for bank account.
+ """
+
+
+class OutboundPaymentCreateParamsFrom(TypedDict):
+ currency: str
+ """
+ Describes the FinancialAmount's currency drawn from.
+ """
+ financial_account: str
+ """
+ The FinancialAccount that funds were pulled from.
+ """
+
+
+class OutboundPaymentCreateParamsRecipientNotification(TypedDict):
+ setting: Literal["configured", "none"]
+ """
+ Closed Enum. Configuration option to enable or disable notifications to recipients.
+ Do not send notifications when setting is NONE. Default to account setting when setting is CONFIGURED or not set.
+ """
+
+
+class OutboundPaymentCreateParamsTo(TypedDict):
+ currency: NotRequired[str]
+ """
+ Describes the currency to send to the recipient.
+ If included, this currency must match a currency supported by the destination.
+ Can be omitted in the following cases:
+ - destination only supports one currency
+ - destination supports multiple currencies and one of the currencies matches the FA currency
+ - destination supports multiple currencies and one of the currencies matches the presentment currency
+ Note - when both FA currency and presentment currency are supported, we pick the FA currency to minimize FX.
+ """
+ payout_method: NotRequired[str]
+ """
+ The payout method which the OutboundPayment uses to send payout.
+ """
+ recipient: str
+ """
+ To which account the OutboundPayment is sent.
+ """
diff --git a/stripe/params/v2/money_management/_outbound_payment_list_params.py b/stripe/params/v2/money_management/_outbound_payment_list_params.py
new file mode 100644
index 000000000..88e278ef6
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_payment_list_params.py
@@ -0,0 +1,46 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class OutboundPaymentListParams(TypedDict):
+ created: NotRequired[str]
+ """
+ Filter for objects created at the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_gt: NotRequired[str]
+ """
+ Filter for objects created after the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_gte: NotRequired[str]
+ """
+ Filter for objects created on or after the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_lt: NotRequired[str]
+ """
+ Filter for objects created before the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_lte: NotRequired[str]
+ """
+ Filter for objects created on or before the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ limit: NotRequired[int]
+ """
+ The maximum number of results to return.
+ """
+ recipient: NotRequired[str]
+ """
+ Only return OutboundPayments sent to this recipient.
+ """
+ status: NotRequired[
+ List[Literal["canceled", "failed", "posted", "processing", "returned"]]
+ ]
+ """
+ Closed Enum. Only return OutboundPayments with this status.
+ """
diff --git a/stripe/params/v2/money_management/_outbound_payment_quote_create_params.py b/stripe/params/v2/money_management/_outbound_payment_quote_create_params.py
new file mode 100644
index 000000000..2164459e5
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_payment_quote_create_params.py
@@ -0,0 +1,75 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import Literal, NotRequired, TypedDict
+
+_OutboundPaymentQuoteCreateParamsBase = TypedDict(
+ "OutboundPaymentQuoteCreateParams",
+ {"from": "OutboundPaymentQuoteCreateParamsFrom"},
+)
+
+
+class OutboundPaymentQuoteCreateParams(_OutboundPaymentQuoteCreateParamsBase):
+ amount: "OutboundPaymentQuoteCreateParamsAmount"
+ """
+ The "presentment amount" to be sent to the recipient.
+ """
+ delivery_options: NotRequired[
+ "OutboundPaymentQuoteCreateParamsDeliveryOptions"
+ ]
+ """
+ Method to be used to send the OutboundPayment.
+ """
+ to: "OutboundPaymentQuoteCreateParamsTo"
+ """
+ Request details about the recipient of an OutboundPaymentQuote.
+ """
+
+
+class OutboundPaymentQuoteCreateParamsAmount(TypedDict):
+ value: NotRequired[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+
+
+class OutboundPaymentQuoteCreateParamsDeliveryOptions(TypedDict):
+ bank_account: NotRequired[Literal["automatic", "local", "wire"]]
+ """
+ Open Enum. Method for bank account.
+ """
+
+
+class OutboundPaymentQuoteCreateParamsFrom(TypedDict):
+ currency: str
+ """
+ Describes the FinancialAccount's currency drawn from.
+ """
+ financial_account: str
+ """
+ The FinancialAccount that funds were pulled from.
+ """
+
+
+class OutboundPaymentQuoteCreateParamsTo(TypedDict):
+ currency: NotRequired[str]
+ """
+ Describes the currency to send to the recipient.
+ If included, this currency must match a currency supported by the destination.
+ Can be omitted in the following cases:
+ - destination only supports one currency
+ - destination supports multiple currencies and one of the currencies matches the FA currency
+ - destination supports multiple currencies and one of the currencies matches the presentment currency
+ Note - when both FA currency and presentment currency are supported, we pick the FA currency to minimize FX.
+ """
+ payout_method: NotRequired[str]
+ """
+ The payout method which the OutboundPayment uses to send payout.
+ """
+ recipient: str
+ """
+ To which account the OutboundPayment is sent.
+ """
diff --git a/stripe/params/v2/money_management/_outbound_payment_quote_retrieve_params.py b/stripe/params/v2/money_management/_outbound_payment_quote_retrieve_params.py
new file mode 100644
index 000000000..766472a71
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_payment_quote_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class OutboundPaymentQuoteRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_outbound_payment_retrieve_params.py b/stripe/params/v2/money_management/_outbound_payment_retrieve_params.py
new file mode 100644
index 000000000..bb7d9ff1c
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_payment_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class OutboundPaymentRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_outbound_setup_intent_cancel_params.py b/stripe/params/v2/money_management/_outbound_setup_intent_cancel_params.py
new file mode 100644
index 000000000..14014f778
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_setup_intent_cancel_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class OutboundSetupIntentCancelParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_outbound_setup_intent_create_params.py b/stripe/params/v2/money_management/_outbound_setup_intent_create_params.py
new file mode 100644
index 000000000..f71e18773
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_setup_intent_create_params.py
@@ -0,0 +1,82 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class OutboundSetupIntentCreateParams(TypedDict):
+ payout_method: NotRequired[str]
+ """
+ If provided, the existing payout method resource to link to this setup intent.
+ Any payout_method_data provided is used to update information on this linked payout method resource.
+ """
+ payout_method_data: NotRequired[
+ "OutboundSetupIntentCreateParamsPayoutMethodData"
+ ]
+ """
+ If no payout_method provided, used to create the underlying credential that is set up for outbound money movement.
+ If a payout_method provided, used to update data on the credential linked to this setup intent.
+ """
+ usage_intent: NotRequired[Literal["payment", "transfer"]]
+ """
+ Specify which type of outbound money movement this credential should be set up for (payment | transfer).
+ If not provided, defaults to payment.
+ """
+
+
+class OutboundSetupIntentCreateParamsPayoutMethodData(TypedDict):
+ type: Literal["bank_account", "card", "crypto_wallet"]
+ """
+ Closed Enum. The type of payout method to be created.
+ """
+ bank_account: NotRequired[
+ "OutboundSetupIntentCreateParamsPayoutMethodDataBankAccount"
+ ]
+ """
+ The type specific details of the bank account payout method.
+ """
+ card: NotRequired["OutboundSetupIntentCreateParamsPayoutMethodDataCard"]
+ """
+ The type specific details of the card payout method.
+ """
+
+
+class OutboundSetupIntentCreateParamsPayoutMethodDataBankAccount(TypedDict):
+ account_number: str
+ """
+ The account number or IBAN of the bank account.
+ """
+ bank_account_type: NotRequired[Literal["checking", "savings"]]
+ """
+ Closed Enum. The type of the bank account (checking or savings).
+ """
+ branch_number: NotRequired[str]
+ """
+ The branch number of the bank account, if present.
+ """
+ country: str
+ """
+ The country code of the bank account.
+ """
+ routing_number: NotRequired[str]
+ """
+ The routing number of the bank account, if present.
+ """
+ swift_code: NotRequired[str]
+ """
+ The swift code of the bank account, if present.
+ """
+
+
+class OutboundSetupIntentCreateParamsPayoutMethodDataCard(TypedDict):
+ exp_month: str
+ """
+ The expiration month of the card.
+ """
+ exp_year: str
+ """
+ The expiration year of the card.
+ """
+ number: str
+ """
+ The card number.
+ """
diff --git a/stripe/params/v2/money_management/_outbound_setup_intent_list_params.py b/stripe/params/v2/money_management/_outbound_setup_intent_list_params.py
new file mode 100644
index 000000000..a33979a61
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_setup_intent_list_params.py
@@ -0,0 +1,10 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class OutboundSetupIntentListParams(TypedDict):
+ limit: NotRequired[int]
+ """
+ The page size.
+ """
diff --git a/stripe/params/v2/money_management/_outbound_setup_intent_retrieve_params.py b/stripe/params/v2/money_management/_outbound_setup_intent_retrieve_params.py
new file mode 100644
index 000000000..e3bb1a65f
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_setup_intent_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class OutboundSetupIntentRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py b/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py
new file mode 100644
index 000000000..ab465e10f
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_setup_intent_update_params.py
@@ -0,0 +1,76 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class OutboundSetupIntentUpdateParams(TypedDict):
+ payout_method: NotRequired[str]
+ """
+ If provided, the existing payout method resource to link to this outbound setup intent.
+ """
+ payout_method_data: NotRequired[
+ "OutboundSetupIntentUpdateParamsPayoutMethodData"
+ ]
+ """
+ If no payout_method provided, used to create the underlying credential that is set up for outbound money movement.
+ If a payout_method provided, used to update data on the credential linked to this setup intent.
+ """
+
+
+class OutboundSetupIntentUpdateParamsPayoutMethodData(TypedDict):
+ type: Literal["bank_account", "card", "crypto_wallet"]
+ """
+ Closed Enum. The type of payout method to be created/updated.
+ """
+ bank_account: NotRequired[
+ "OutboundSetupIntentUpdateParamsPayoutMethodDataBankAccount"
+ ]
+ """
+ The type specific details of the bank account payout method.
+ """
+ card: NotRequired["OutboundSetupIntentUpdateParamsPayoutMethodDataCard"]
+ """
+ The type specific details of the card payout method.
+ """
+
+
+class OutboundSetupIntentUpdateParamsPayoutMethodDataBankAccount(TypedDict):
+ account_number: str
+ """
+ The account number or IBAN of the bank account.
+ """
+ bank_account_type: NotRequired[Literal["checking", "savings"]]
+ """
+ Closed Enum. The type of the bank account (checking or savings).
+ """
+ branch_number: NotRequired[str]
+ """
+ The branch number of the bank account, if present.
+ """
+ country: str
+ """
+ The country code of the bank account.
+ """
+ routing_number: NotRequired[str]
+ """
+ The routing number of the bank account, if present.
+ """
+ swift_code: NotRequired[str]
+ """
+ The swift code of the bank account, if present.
+ """
+
+
+class OutboundSetupIntentUpdateParamsPayoutMethodDataCard(TypedDict):
+ exp_month: NotRequired[str]
+ """
+ The expiration month of the card.
+ """
+ exp_year: NotRequired[str]
+ """
+ The expiration year of the card.
+ """
+ number: NotRequired[str]
+ """
+ The card number. This can only be passed when creating a new credential on an outbound setup intent in the requires_payout_method state.
+ """
diff --git a/stripe/params/v2/money_management/_outbound_transfer_cancel_params.py b/stripe/params/v2/money_management/_outbound_transfer_cancel_params.py
new file mode 100644
index 000000000..746402c21
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_transfer_cancel_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class OutboundTransferCancelParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_outbound_transfer_create_params.py b/stripe/params/v2/money_management/_outbound_transfer_create_params.py
new file mode 100644
index 000000000..fef4e5eee
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_transfer_create_params.py
@@ -0,0 +1,80 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import Dict
+from typing_extensions import Literal, NotRequired, TypedDict
+
+_OutboundTransferCreateParamsBase = TypedDict(
+ "OutboundTransferCreateParams",
+ {"from": "OutboundTransferCreateParamsFrom"},
+)
+
+
+class OutboundTransferCreateParams(_OutboundTransferCreateParamsBase):
+ amount: "OutboundTransferCreateParamsAmount"
+ """
+ The "presentment amount" for the OutboundPayment.
+ """
+ delivery_options: NotRequired[
+ "OutboundTransferCreateParamsDeliveryOptions"
+ ]
+ """
+ Delivery options to be used to send the OutboundTransfer.
+ """
+ description: NotRequired[str]
+ """
+ An arbitrary string attached to the OutboundTransfer. Often useful for displaying to users.
+ """
+ metadata: NotRequired[Dict[str, str]]
+ """
+ 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.
+ """
+ to: "OutboundTransferCreateParamsTo"
+ """
+ To which payout method to send the OutboundTransfer.
+ """
+
+
+class OutboundTransferCreateParamsAmount(TypedDict):
+ value: NotRequired[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+
+
+class OutboundTransferCreateParamsDeliveryOptions(TypedDict):
+ bank_account: NotRequired[Literal["automatic", "local", "wire"]]
+ """
+ Open Enum. Method for bank account.
+ """
+
+
+class OutboundTransferCreateParamsFrom(TypedDict):
+ currency: str
+ """
+ Describes the FinancialAmount's currency drawn from.
+ """
+ financial_account: str
+ """
+ The FinancialAccount that funds were pulled from.
+ """
+
+
+class OutboundTransferCreateParamsTo(TypedDict):
+ currency: NotRequired[str]
+ """
+ Describes the currency to send to the recipient.
+ If included, this currency must match a currency supported by the destination.
+ Can be omitted in the following cases:
+ - destination only supports one currency
+ - destination supports multiple currencies and one of the currencies matches the FA currency
+ - destination supports multiple currencies and one of the currencies matches the presentment currency
+ Note - when both FA currency and presentment currency are supported, we pick the FA currency to minimize FX.
+ """
+ payout_method: str
+ """
+ The payout method which the OutboundTransfer uses to send payout.
+ """
diff --git a/stripe/params/v2/money_management/_outbound_transfer_list_params.py b/stripe/params/v2/money_management/_outbound_transfer_list_params.py
new file mode 100644
index 000000000..1111eb926
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_transfer_list_params.py
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class OutboundTransferListParams(TypedDict):
+ created: NotRequired[str]
+ """
+ Filter for objects created at the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_gt: NotRequired[str]
+ """
+ Filter for objects created after the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_gte: NotRequired[str]
+ """
+ Filter for objects created on or after the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_lt: NotRequired[str]
+ """
+ Filter for objects created before the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_lte: NotRequired[str]
+ """
+ Filter for objects created on or before the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ limit: NotRequired[int]
+ """
+ The maximum number of results to return.
+ """
+ status: NotRequired[
+ List[Literal["canceled", "failed", "posted", "processing", "returned"]]
+ ]
+ """
+ Closed Enum. Only return OutboundTransfers with this status.
+ """
diff --git a/stripe/params/v2/money_management/_outbound_transfer_retrieve_params.py b/stripe/params/v2/money_management/_outbound_transfer_retrieve_params.py
new file mode 100644
index 000000000..5bbd67e63
--- /dev/null
+++ b/stripe/params/v2/money_management/_outbound_transfer_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class OutboundTransferRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_payout_method_archive_params.py b/stripe/params/v2/money_management/_payout_method_archive_params.py
new file mode 100644
index 000000000..18c1af2a7
--- /dev/null
+++ b/stripe/params/v2/money_management/_payout_method_archive_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class PayoutMethodArchiveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_payout_method_list_params.py b/stripe/params/v2/money_management/_payout_method_list_params.py
new file mode 100644
index 000000000..13ebc5890
--- /dev/null
+++ b/stripe/params/v2/money_management/_payout_method_list_params.py
@@ -0,0 +1,30 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class PayoutMethodListParams(TypedDict):
+ limit: NotRequired[int]
+ """
+ The page size.
+ """
+ usage_status: NotRequired["PayoutMethodListParamsUsageStatus"]
+ """
+ Usage status filter.
+ """
+
+
+class PayoutMethodListParamsUsageStatus(TypedDict):
+ payments: NotRequired[
+ List[Literal["eligible", "invalid", "requires_action"]]
+ ]
+ """
+ List of payments status to filter by.
+ """
+ transfers: NotRequired[
+ List[Literal["eligible", "invalid", "requires_action"]]
+ ]
+ """
+ List of transfers status to filter by.
+ """
diff --git a/stripe/params/v2/money_management/_payout_method_retrieve_params.py b/stripe/params/v2/money_management/_payout_method_retrieve_params.py
new file mode 100644
index 000000000..27b86fb68
--- /dev/null
+++ b/stripe/params/v2/money_management/_payout_method_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class PayoutMethodRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_payout_method_unarchive_params.py b/stripe/params/v2/money_management/_payout_method_unarchive_params.py
new file mode 100644
index 000000000..8b9cca601
--- /dev/null
+++ b/stripe/params/v2/money_management/_payout_method_unarchive_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class PayoutMethodUnarchiveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_payout_methods_bank_account_spec_retrieve_params.py b/stripe/params/v2/money_management/_payout_methods_bank_account_spec_retrieve_params.py
new file mode 100644
index 000000000..c7f24039c
--- /dev/null
+++ b/stripe/params/v2/money_management/_payout_methods_bank_account_spec_retrieve_params.py
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class PayoutMethodsBankAccountSpecRetrieveParams(TypedDict):
+ countries: NotRequired[List[str]]
+ """
+ The countries to fetch the bank account spec for.
+ """
diff --git a/stripe/params/v2/money_management/_received_credit_list_params.py b/stripe/params/v2/money_management/_received_credit_list_params.py
new file mode 100644
index 000000000..dc189bfce
--- /dev/null
+++ b/stripe/params/v2/money_management/_received_credit_list_params.py
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class ReceivedCreditListParams(TypedDict):
+ created: NotRequired[str]
+ """
+ Filter for objects created at the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_gt: NotRequired[str]
+ """
+ Filter for objects created after the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_gte: NotRequired[str]
+ """
+ Filter for objects created on or after the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_lt: NotRequired[str]
+ """
+ Filter for objects created before the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ created_lte: NotRequired[str]
+ """
+ Filter for objects created on or before the specified timestamp.
+ Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
+ """
+ limit: NotRequired[int]
+ """
+ The page limit.
+ """
diff --git a/stripe/params/v2/money_management/_received_credit_retrieve_params.py b/stripe/params/v2/money_management/_received_credit_retrieve_params.py
new file mode 100644
index 000000000..cb73914a7
--- /dev/null
+++ b/stripe/params/v2/money_management/_received_credit_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class ReceivedCreditRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_received_debit_list_params.py b/stripe/params/v2/money_management/_received_debit_list_params.py
new file mode 100644
index 000000000..043e8e2b6
--- /dev/null
+++ b/stripe/params/v2/money_management/_received_debit_list_params.py
@@ -0,0 +1,10 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class ReceivedDebitListParams(TypedDict):
+ limit: NotRequired[int]
+ """
+ The page limit.
+ """
diff --git a/stripe/params/v2/money_management/_received_debit_retrieve_params.py b/stripe/params/v2/money_management/_received_debit_retrieve_params.py
new file mode 100644
index 000000000..bc6278957
--- /dev/null
+++ b/stripe/params/v2/money_management/_received_debit_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class ReceivedDebitRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_transaction_entry_list_params.py b/stripe/params/v2/money_management/_transaction_entry_list_params.py
new file mode 100644
index 000000000..4b1511b96
--- /dev/null
+++ b/stripe/params/v2/money_management/_transaction_entry_list_params.py
@@ -0,0 +1,34 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class TransactionEntryListParams(TypedDict):
+ created: NotRequired[str]
+ """
+ Filter for Transactions created at an exact time.
+ """
+ created_gt: NotRequired[str]
+ """
+ Filter for Transactions created after the specified timestamp.
+ """
+ created_gte: NotRequired[str]
+ """
+ Filter for Transactions created at or after the specified timestamp.
+ """
+ created_lt: NotRequired[str]
+ """
+ Filter for Transactions created before the specified timestamp.
+ """
+ created_lte: NotRequired[str]
+ """
+ Filter for Transactions created at or before the specified timestamp.
+ """
+ limit: NotRequired[int]
+ """
+ The page limit.
+ """
+ transaction: NotRequired[str]
+ """
+ Filter for TransactionEntries belonging to a Transaction.
+ """
diff --git a/stripe/params/v2/money_management/_transaction_entry_retrieve_params.py b/stripe/params/v2/money_management/_transaction_entry_retrieve_params.py
new file mode 100644
index 000000000..3a13c9d20
--- /dev/null
+++ b/stripe/params/v2/money_management/_transaction_entry_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class TransactionEntryRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/money_management/_transaction_list_params.py b/stripe/params/v2/money_management/_transaction_list_params.py
new file mode 100644
index 000000000..1391fcfc3
--- /dev/null
+++ b/stripe/params/v2/money_management/_transaction_list_params.py
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import NotRequired, TypedDict
+
+
+class TransactionListParams(TypedDict):
+ created: NotRequired[str]
+ """
+ Filter for Transactions created at an exact time.
+ """
+ created_gt: NotRequired[str]
+ """
+ Filter for Transactions created after the specified timestamp.
+ """
+ created_gte: NotRequired[str]
+ """
+ Filter for Transactions created at or after the specified timestamp.
+ """
+ created_lt: NotRequired[str]
+ """
+ Filter for Transactions created before the specified timestamp.
+ """
+ created_lte: NotRequired[str]
+ """
+ Filter for Transactions created at or before the specified timestamp.
+ """
+ financial_account: NotRequired[str]
+ """
+ Filter for Transactions belonging to a FinancialAccount.
+ """
+ flow: NotRequired[str]
+ """
+ Filter for Transactions corresponding to a Flow.
+ """
+ limit: NotRequired[int]
+ """
+ The page limit.
+ """
diff --git a/stripe/params/v2/money_management/_transaction_retrieve_params.py b/stripe/params/v2/money_management/_transaction_retrieve_params.py
new file mode 100644
index 000000000..e12e85e70
--- /dev/null
+++ b/stripe/params/v2/money_management/_transaction_retrieve_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class TransactionRetrieveParams(TypedDict):
+ pass
diff --git a/stripe/params/v2/test_helpers/__init__.py b/stripe/params/v2/test_helpers/__init__.py
new file mode 100644
index 000000000..9a48a10c7
--- /dev/null
+++ b/stripe/params/v2/test_helpers/__init__.py
@@ -0,0 +1,44 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.v2.test_helpers._financial_address_credit_params import (
+ FinancialAddressCreditParams as FinancialAddressCreditParams,
+ FinancialAddressCreditParamsAmount as FinancialAddressCreditParamsAmount,
+ )
+ from stripe.params.v2.test_helpers._financial_address_generate_microdeposits_params import (
+ FinancialAddressGenerateMicrodepositsParams as FinancialAddressGenerateMicrodepositsParams,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "FinancialAddressCreditParams": (
+ "stripe.params.v2.test_helpers._financial_address_credit_params",
+ False,
+ ),
+ "FinancialAddressCreditParamsAmount": (
+ "stripe.params.v2.test_helpers._financial_address_credit_params",
+ False,
+ ),
+ "FinancialAddressGenerateMicrodepositsParams": (
+ "stripe.params.v2.test_helpers._financial_address_generate_microdeposits_params",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/params/v2/test_helpers/_financial_address_credit_params.py b/stripe/params/v2/test_helpers/_financial_address_credit_params.py
new file mode 100644
index 000000000..b4e5823d8
--- /dev/null
+++ b/stripe/params/v2/test_helpers/_financial_address_credit_params.py
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import Literal, NotRequired, TypedDict
+
+
+class FinancialAddressCreditParams(TypedDict):
+ amount: "FinancialAddressCreditParamsAmount"
+ """
+ Object containing the amount value and currency to credit.
+ """
+ network: Literal["ach", "fps", "rtp", "wire"]
+ """
+ Open Enum. The network to use in simulating the funds flow. This will be the reflected in the resulting ReceivedCredit.
+ """
+ statement_descriptor: NotRequired[str]
+ """
+ String explaining funds flow. Use this field to populate the statement descriptor of the ReceivedCredit created as an eventual result of this simulation.
+ """
+
+
+class FinancialAddressCreditParamsAmount(TypedDict):
+ value: NotRequired[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+ currency: NotRequired[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
diff --git a/stripe/params/v2/test_helpers/_financial_address_generate_microdeposits_params.py b/stripe/params/v2/test_helpers/_financial_address_generate_microdeposits_params.py
new file mode 100644
index 000000000..192306c02
--- /dev/null
+++ b/stripe/params/v2/test_helpers/_financial_address_generate_microdeposits_params.py
@@ -0,0 +1,7 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing_extensions import TypedDict
+
+
+class FinancialAddressGenerateMicrodepositsParams(TypedDict):
+ pass
diff --git a/stripe/privacy/__init__.py b/stripe/privacy/__init__.py
new file mode 100644
index 000000000..c36aef32d
--- /dev/null
+++ b/stripe/privacy/__init__.py
@@ -0,0 +1,45 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.privacy._redaction_job import RedactionJob as RedactionJob
+ from stripe.privacy._redaction_job_service import (
+ RedactionJobService as RedactionJobService,
+ )
+ from stripe.privacy._redaction_job_validation_error import (
+ RedactionJobValidationError as RedactionJobValidationError,
+ )
+ from stripe.privacy._redaction_job_validation_error_service import (
+ RedactionJobValidationErrorService as RedactionJobValidationErrorService,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "RedactionJob": ("stripe.privacy._redaction_job", False),
+ "RedactionJobService": ("stripe.privacy._redaction_job_service", False),
+ "RedactionJobValidationError": (
+ "stripe.privacy._redaction_job_validation_error",
+ False,
+ ),
+ "RedactionJobValidationErrorService": (
+ "stripe.privacy._redaction_job_validation_error_service",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/privacy/_redaction_job.py b/stripe/privacy/_redaction_job.py
new file mode 100644
index 000000000..33ed842cb
--- /dev/null
+++ b/stripe/privacy/_redaction_job.py
@@ -0,0 +1,716 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._createable_api_resource import CreateableAPIResource
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._nested_resource_class_methods import nested_resource_class_methods
+from stripe._stripe_object import StripeObject
+from stripe._updateable_api_resource import UpdateableAPIResource
+from stripe._util import class_method_variant, sanitize_id
+from typing import ClassVar, List, Optional, cast, overload
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.privacy._redaction_job_cancel_params import (
+ RedactionJobCancelParams,
+ )
+ from stripe.params.privacy._redaction_job_create_params import (
+ RedactionJobCreateParams,
+ )
+ from stripe.params.privacy._redaction_job_list_params import (
+ RedactionJobListParams,
+ )
+ from stripe.params.privacy._redaction_job_list_validation_errors_params import (
+ RedactionJobListValidationErrorsParams,
+ )
+ from stripe.params.privacy._redaction_job_modify_params import (
+ RedactionJobModifyParams,
+ )
+ from stripe.params.privacy._redaction_job_retrieve_params import (
+ RedactionJobRetrieveParams,
+ )
+ from stripe.params.privacy._redaction_job_run_params import (
+ RedactionJobRunParams,
+ )
+ from stripe.params.privacy._redaction_job_validate_params import (
+ RedactionJobValidateParams,
+ )
+ from stripe.privacy._redaction_job_validation_error import (
+ RedactionJobValidationError,
+ )
+
+
+@nested_resource_class_methods("validation_error")
+class RedactionJob(
+ CreateableAPIResource["RedactionJob"],
+ ListableAPIResource["RedactionJob"],
+ UpdateableAPIResource["RedactionJob"],
+):
+ """
+ The Redaction Job object redacts Stripe objects. You can use it
+ to coordinate the removal of personal information from selected
+ objects, making them permanently inaccessible in the Stripe Dashboard
+ and API.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["privacy.redaction_job"]] = (
+ "privacy.redaction_job"
+ )
+
+ class Objects(StripeObject):
+ charges: Optional[List[str]]
+ """
+ Charge object identifiers usually starting with `ch_`
+ """
+ checkout_sessions: Optional[List[str]]
+ """
+ CheckoutSession object identifiers starting with `cs_`
+ """
+ customers: Optional[List[str]]
+ """
+ Customer object identifiers starting with `cus_`
+ """
+ identity_verification_sessions: Optional[List[str]]
+ """
+ Identity VerificationSessions object identifiers starting with `vs_`
+ """
+ invoices: Optional[List[str]]
+ """
+ Invoice object identifiers starting with `in_`
+ """
+ issuing_cardholders: Optional[List[str]]
+ """
+ Issuing Cardholder object identifiers starting with `ich_`
+ """
+ payment_intents: Optional[List[str]]
+ """
+ PaymentIntent object identifiers starting with `pi_`
+ """
+ radar_value_list_items: Optional[List[str]]
+ """
+ Fraud ValueListItem object identifiers starting with `rsli_`
+ """
+ setup_intents: Optional[List[str]]
+ """
+ SetupIntent object identifiers starting with `seti_`
+ """
+
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["privacy.redaction_job"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ objects: Optional[Objects]
+ """
+ The objects to redact in this job.
+ """
+ status: Literal[
+ "canceled",
+ "canceling",
+ "created",
+ "failed",
+ "ready",
+ "redacting",
+ "succeeded",
+ "validating",
+ ]
+ """
+ The status of the job.
+ """
+ validation_behavior: Optional[Literal["error", "fix"]]
+ """
+ Validation behavior determines how a job validates objects for redaction eligibility. Default is `error`.
+ """
+
+ @classmethod
+ def _cls_cancel(
+ cls, job: str, **params: Unpack["RedactionJobCancelParams"]
+ ) -> "RedactionJob":
+ """
+ You can cancel a redaction job when it's in one of these statuses: ready, failed.
+
+ Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
+ """
+ return cast(
+ "RedactionJob",
+ cls._static_request(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/cancel".format(
+ job=sanitize_id(job)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def cancel(
+ job: str, **params: Unpack["RedactionJobCancelParams"]
+ ) -> "RedactionJob":
+ """
+ You can cancel a redaction job when it's in one of these statuses: ready, failed.
+
+ Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
+ """
+ ...
+
+ @overload
+ def cancel(
+ self, **params: Unpack["RedactionJobCancelParams"]
+ ) -> "RedactionJob":
+ """
+ You can cancel a redaction job when it's in one of these statuses: ready, failed.
+
+ Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
+ """
+ ...
+
+ @class_method_variant("_cls_cancel")
+ def cancel( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["RedactionJobCancelParams"]
+ ) -> "RedactionJob":
+ """
+ You can cancel a redaction job when it's in one of these statuses: ready, failed.
+
+ Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
+ """
+ return cast(
+ "RedactionJob",
+ self._request(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/cancel".format(
+ job=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_cancel_async(
+ cls, job: str, **params: Unpack["RedactionJobCancelParams"]
+ ) -> "RedactionJob":
+ """
+ You can cancel a redaction job when it's in one of these statuses: ready, failed.
+
+ Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
+ """
+ return cast(
+ "RedactionJob",
+ await cls._static_request_async(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/cancel".format(
+ job=sanitize_id(job)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def cancel_async(
+ job: str, **params: Unpack["RedactionJobCancelParams"]
+ ) -> "RedactionJob":
+ """
+ You can cancel a redaction job when it's in one of these statuses: ready, failed.
+
+ Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
+ """
+ ...
+
+ @overload
+ async def cancel_async(
+ self, **params: Unpack["RedactionJobCancelParams"]
+ ) -> "RedactionJob":
+ """
+ You can cancel a redaction job when it's in one of these statuses: ready, failed.
+
+ Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
+ """
+ ...
+
+ @class_method_variant("_cls_cancel_async")
+ async def cancel_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["RedactionJobCancelParams"]
+ ) -> "RedactionJob":
+ """
+ You can cancel a redaction job when it's in one of these statuses: ready, failed.
+
+ Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
+ """
+ return cast(
+ "RedactionJob",
+ await self._request_async(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/cancel".format(
+ job=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def create(
+ cls, **params: Unpack["RedactionJobCreateParams"]
+ ) -> "RedactionJob":
+ """
+ Creates a redaction job. When a job is created, it will start to validate.
+ """
+ return cast(
+ "RedactionJob",
+ cls._static_request(
+ "post",
+ cls.class_url(),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def create_async(
+ cls, **params: Unpack["RedactionJobCreateParams"]
+ ) -> "RedactionJob":
+ """
+ Creates a redaction job. When a job is created, it will start to validate.
+ """
+ return cast(
+ "RedactionJob",
+ await cls._static_request_async(
+ "post",
+ cls.class_url(),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def list(
+ cls, **params: Unpack["RedactionJobListParams"]
+ ) -> ListObject["RedactionJob"]:
+ """
+ Returns a list of redaction jobs.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["RedactionJobListParams"]
+ ) -> ListObject["RedactionJob"]:
+ """
+ Returns a list of redaction jobs.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def modify(
+ cls, id: str, **params: Unpack["RedactionJobModifyParams"]
+ ) -> "RedactionJob":
+ """
+ Updates the properties of a redaction job without running or canceling the job.
+
+ If the job to update is in a failed status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.
+ """
+ url = "%s/%s" % (cls.class_url(), sanitize_id(id))
+ return cast(
+ "RedactionJob",
+ cls._static_request(
+ "post",
+ url,
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def modify_async(
+ cls, id: str, **params: Unpack["RedactionJobModifyParams"]
+ ) -> "RedactionJob":
+ """
+ Updates the properties of a redaction job without running or canceling the job.
+
+ If the job to update is in a failed status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.
+ """
+ url = "%s/%s" % (cls.class_url(), sanitize_id(id))
+ return cast(
+ "RedactionJob",
+ await cls._static_request_async(
+ "post",
+ url,
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["RedactionJobRetrieveParams"]
+ ) -> "RedactionJob":
+ """
+ Retrieves the details of a previously created redaction job.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["RedactionJobRetrieveParams"]
+ ) -> "RedactionJob":
+ """
+ Retrieves the details of a previously created redaction job.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ @classmethod
+ def _cls_run(
+ cls, job: str, **params: Unpack["RedactionJobRunParams"]
+ ) -> "RedactionJob":
+ """
+ Run a redaction job in a ready status.
+
+ When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
+
+ The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
+ """
+ return cast(
+ "RedactionJob",
+ cls._static_request(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/run".format(
+ job=sanitize_id(job)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def run(
+ job: str, **params: Unpack["RedactionJobRunParams"]
+ ) -> "RedactionJob":
+ """
+ Run a redaction job in a ready status.
+
+ When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
+
+ The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
+ """
+ ...
+
+ @overload
+ def run(self, **params: Unpack["RedactionJobRunParams"]) -> "RedactionJob":
+ """
+ Run a redaction job in a ready status.
+
+ When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
+
+ The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
+ """
+ ...
+
+ @class_method_variant("_cls_run")
+ def run( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["RedactionJobRunParams"]
+ ) -> "RedactionJob":
+ """
+ Run a redaction job in a ready status.
+
+ When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
+
+ The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
+ """
+ return cast(
+ "RedactionJob",
+ self._request(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/run".format(
+ job=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_run_async(
+ cls, job: str, **params: Unpack["RedactionJobRunParams"]
+ ) -> "RedactionJob":
+ """
+ Run a redaction job in a ready status.
+
+ When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
+
+ The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
+ """
+ return cast(
+ "RedactionJob",
+ await cls._static_request_async(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/run".format(
+ job=sanitize_id(job)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def run_async(
+ job: str, **params: Unpack["RedactionJobRunParams"]
+ ) -> "RedactionJob":
+ """
+ Run a redaction job in a ready status.
+
+ When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
+
+ The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
+ """
+ ...
+
+ @overload
+ async def run_async(
+ self, **params: Unpack["RedactionJobRunParams"]
+ ) -> "RedactionJob":
+ """
+ Run a redaction job in a ready status.
+
+ When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
+
+ The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
+ """
+ ...
+
+ @class_method_variant("_cls_run_async")
+ async def run_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["RedactionJobRunParams"]
+ ) -> "RedactionJob":
+ """
+ Run a redaction job in a ready status.
+
+ When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
+
+ The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
+ """
+ return cast(
+ "RedactionJob",
+ await self._request_async(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/run".format(
+ job=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def _cls_validate(
+ cls, job: str, **params: Unpack["RedactionJobValidateParams"]
+ ) -> "RedactionJob":
+ """
+ Validate a redaction job when it is in a failed status.
+
+ When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
+
+ The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
+ """
+ return cast(
+ "RedactionJob",
+ cls._static_request(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/validate".format(
+ job=sanitize_id(job)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def validate(
+ job: str, **params: Unpack["RedactionJobValidateParams"]
+ ) -> "RedactionJob":
+ """
+ Validate a redaction job when it is in a failed status.
+
+ When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
+
+ The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
+ """
+ ...
+
+ @overload
+ def validate(
+ self, **params: Unpack["RedactionJobValidateParams"]
+ ) -> "RedactionJob":
+ """
+ Validate a redaction job when it is in a failed status.
+
+ When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
+
+ The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
+ """
+ ...
+
+ @class_method_variant("_cls_validate")
+ def validate( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["RedactionJobValidateParams"]
+ ) -> "RedactionJob":
+ """
+ Validate a redaction job when it is in a failed status.
+
+ When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
+
+ The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
+ """
+ return cast(
+ "RedactionJob",
+ self._request(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/validate".format(
+ job=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_validate_async(
+ cls, job: str, **params: Unpack["RedactionJobValidateParams"]
+ ) -> "RedactionJob":
+ """
+ Validate a redaction job when it is in a failed status.
+
+ When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
+
+ The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
+ """
+ return cast(
+ "RedactionJob",
+ await cls._static_request_async(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/validate".format(
+ job=sanitize_id(job)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def validate_async(
+ job: str, **params: Unpack["RedactionJobValidateParams"]
+ ) -> "RedactionJob":
+ """
+ Validate a redaction job when it is in a failed status.
+
+ When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
+
+ The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
+ """
+ ...
+
+ @overload
+ async def validate_async(
+ self, **params: Unpack["RedactionJobValidateParams"]
+ ) -> "RedactionJob":
+ """
+ Validate a redaction job when it is in a failed status.
+
+ When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
+
+ The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
+ """
+ ...
+
+ @class_method_variant("_cls_validate_async")
+ async def validate_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["RedactionJobValidateParams"]
+ ) -> "RedactionJob":
+ """
+ Validate a redaction job when it is in a failed status.
+
+ When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
+
+ The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
+ """
+ return cast(
+ "RedactionJob",
+ await self._request_async(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/validate".format(
+ job=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def list_validation_errors(
+ cls,
+ job: str,
+ **params: Unpack["RedactionJobListValidationErrorsParams"],
+ ) -> ListObject["RedactionJobValidationError"]:
+ """
+ Returns a list of validation errors for the specified redaction job.
+ """
+ return cast(
+ ListObject["RedactionJobValidationError"],
+ cls._static_request(
+ "get",
+ "/v1/privacy/redaction_jobs/{job}/validation_errors".format(
+ job=sanitize_id(job)
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def list_validation_errors_async(
+ cls,
+ job: str,
+ **params: Unpack["RedactionJobListValidationErrorsParams"],
+ ) -> ListObject["RedactionJobValidationError"]:
+ """
+ Returns a list of validation errors for the specified redaction job.
+ """
+ return cast(
+ ListObject["RedactionJobValidationError"],
+ await cls._static_request_async(
+ "get",
+ "/v1/privacy/redaction_jobs/{job}/validation_errors".format(
+ job=sanitize_id(job)
+ ),
+ params=params,
+ ),
+ )
+
+ _inner_class_types = {"objects": Objects}
diff --git a/stripe/privacy/_redaction_job_service.py b/stripe/privacy/_redaction_job_service.py
new file mode 100644
index 000000000..561037fc0
--- /dev/null
+++ b/stripe/privacy/_redaction_job_service.py
@@ -0,0 +1,386 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.params.privacy._redaction_job_cancel_params import (
+ RedactionJobCancelParams,
+ )
+ from stripe.params.privacy._redaction_job_create_params import (
+ RedactionJobCreateParams,
+ )
+ from stripe.params.privacy._redaction_job_list_params import (
+ RedactionJobListParams,
+ )
+ from stripe.params.privacy._redaction_job_retrieve_params import (
+ RedactionJobRetrieveParams,
+ )
+ from stripe.params.privacy._redaction_job_run_params import (
+ RedactionJobRunParams,
+ )
+ from stripe.params.privacy._redaction_job_update_params import (
+ RedactionJobUpdateParams,
+ )
+ from stripe.params.privacy._redaction_job_validate_params import (
+ RedactionJobValidateParams,
+ )
+ from stripe.privacy._redaction_job import RedactionJob
+ from stripe.privacy._redaction_job_validation_error_service import (
+ RedactionJobValidationErrorService,
+ )
+
+_subservices = {
+ "validation_errors": [
+ "stripe.privacy._redaction_job_validation_error_service",
+ "RedactionJobValidationErrorService",
+ ],
+}
+
+
+class RedactionJobService(StripeService):
+ validation_errors: "RedactionJobValidationErrorService"
+
+ def __init__(self, requestor):
+ super().__init__(requestor)
+
+ def __getattr__(self, name):
+ try:
+ import_from, service = _subservices[name]
+ service_class = getattr(
+ import_module(import_from),
+ service,
+ )
+ setattr(
+ self,
+ name,
+ service_class(self._requestor),
+ )
+ return getattr(self, name)
+ except KeyError:
+ raise AttributeError()
+
+ def list(
+ self,
+ params: Optional["RedactionJobListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[RedactionJob]":
+ """
+ Returns a list of redaction jobs.
+ """
+ return cast(
+ "ListObject[RedactionJob]",
+ self._request(
+ "get",
+ "/v1/privacy/redaction_jobs",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["RedactionJobListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[RedactionJob]":
+ """
+ Returns a list of redaction jobs.
+ """
+ return cast(
+ "ListObject[RedactionJob]",
+ await self._request_async(
+ "get",
+ "/v1/privacy/redaction_jobs",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "RedactionJobCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "RedactionJob":
+ """
+ Creates a redaction job. When a job is created, it will start to validate.
+ """
+ return cast(
+ "RedactionJob",
+ self._request(
+ "post",
+ "/v1/privacy/redaction_jobs",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "RedactionJobCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "RedactionJob":
+ """
+ Creates a redaction job. When a job is created, it will start to validate.
+ """
+ return cast(
+ "RedactionJob",
+ await self._request_async(
+ "post",
+ "/v1/privacy/redaction_jobs",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ job: str,
+ params: Optional["RedactionJobRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "RedactionJob":
+ """
+ Retrieves the details of a previously created redaction job.
+ """
+ return cast(
+ "RedactionJob",
+ self._request(
+ "get",
+ "/v1/privacy/redaction_jobs/{job}".format(
+ job=sanitize_id(job)
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ job: str,
+ params: Optional["RedactionJobRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "RedactionJob":
+ """
+ Retrieves the details of a previously created redaction job.
+ """
+ return cast(
+ "RedactionJob",
+ await self._request_async(
+ "get",
+ "/v1/privacy/redaction_jobs/{job}".format(
+ job=sanitize_id(job)
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ job: str,
+ params: Optional["RedactionJobUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "RedactionJob":
+ """
+ Updates the properties of a redaction job without running or canceling the job.
+
+ If the job to update is in a failed status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.
+ """
+ return cast(
+ "RedactionJob",
+ self._request(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}".format(
+ job=sanitize_id(job)
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ job: str,
+ params: Optional["RedactionJobUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "RedactionJob":
+ """
+ Updates the properties of a redaction job without running or canceling the job.
+
+ If the job to update is in a failed status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.
+ """
+ return cast(
+ "RedactionJob",
+ await self._request_async(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}".format(
+ job=sanitize_id(job)
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def cancel(
+ self,
+ job: str,
+ params: Optional["RedactionJobCancelParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "RedactionJob":
+ """
+ You can cancel a redaction job when it's in one of these statuses: ready, failed.
+
+ Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
+ """
+ return cast(
+ "RedactionJob",
+ self._request(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/cancel".format(
+ job=sanitize_id(job),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def cancel_async(
+ self,
+ job: str,
+ params: Optional["RedactionJobCancelParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "RedactionJob":
+ """
+ You can cancel a redaction job when it's in one of these statuses: ready, failed.
+
+ Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
+ """
+ return cast(
+ "RedactionJob",
+ await self._request_async(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/cancel".format(
+ job=sanitize_id(job),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def run(
+ self,
+ job: str,
+ params: Optional["RedactionJobRunParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "RedactionJob":
+ """
+ Run a redaction job in a ready status.
+
+ When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
+
+ The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
+ """
+ return cast(
+ "RedactionJob",
+ self._request(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/run".format(
+ job=sanitize_id(job),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def run_async(
+ self,
+ job: str,
+ params: Optional["RedactionJobRunParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "RedactionJob":
+ """
+ Run a redaction job in a ready status.
+
+ When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
+
+ The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
+ """
+ return cast(
+ "RedactionJob",
+ await self._request_async(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/run".format(
+ job=sanitize_id(job),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def validate(
+ self,
+ job: str,
+ params: Optional["RedactionJobValidateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "RedactionJob":
+ """
+ Validate a redaction job when it is in a failed status.
+
+ When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
+
+ The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
+ """
+ return cast(
+ "RedactionJob",
+ self._request(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/validate".format(
+ job=sanitize_id(job),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def validate_async(
+ self,
+ job: str,
+ params: Optional["RedactionJobValidateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "RedactionJob":
+ """
+ Validate a redaction job when it is in a failed status.
+
+ When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
+
+ The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
+ """
+ return cast(
+ "RedactionJob",
+ await self._request_async(
+ "post",
+ "/v1/privacy/redaction_jobs/{job}/validate".format(
+ job=sanitize_id(job),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/privacy/_redaction_job_validation_error.py b/stripe/privacy/_redaction_job_validation_error.py
new file mode 100644
index 000000000..0c1193e3e
--- /dev/null
+++ b/stripe/privacy/_redaction_job_validation_error.py
@@ -0,0 +1,55 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal
+
+
+class RedactionJobValidationError(StripeObject):
+ """
+ The Redaction Job validation error object contains information about
+ errors that affect the ability to redact a specific object in a
+ redaction job.
+ """
+
+ OBJECT_NAME: ClassVar[
+ Literal["privacy.redaction_job_validation_error"]
+ ] = "privacy.redaction_job_validation_error"
+
+ class ErroringObject(StripeObject):
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ object_type: str
+ """
+ Erroring object type
+ """
+
+ code: Literal[
+ "invalid_cascading_source",
+ "invalid_file_purpose",
+ "invalid_state",
+ "locked_by_other_job",
+ "too_many_objects",
+ ]
+ """
+ A code indicating the reason for the error.
+ """
+ erroring_object: Optional[ErroringObject]
+ """
+ If the error is related to a specific object, this field includes the object's identifier and object type.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ message: str
+ """
+ A human-readable message providing more details about the error.
+ """
+ object: Literal["privacy.redaction_job_validation_error"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ _inner_class_types = {"erroring_object": ErroringObject}
diff --git a/stripe/privacy/_redaction_job_validation_error_service.py b/stripe/privacy/_redaction_job_validation_error_service.py
new file mode 100644
index 000000000..1914542cb
--- /dev/null
+++ b/stripe/privacy/_redaction_job_validation_error_service.py
@@ -0,0 +1,62 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.params.privacy._redaction_job_validation_error_list_params import (
+ RedactionJobValidationErrorListParams,
+ )
+ from stripe.privacy._redaction_job_validation_error import (
+ RedactionJobValidationError,
+ )
+
+
+class RedactionJobValidationErrorService(StripeService):
+ def list(
+ self,
+ job: str,
+ params: Optional["RedactionJobValidationErrorListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[RedactionJobValidationError]":
+ """
+ Returns a list of validation errors for the specified redaction job.
+ """
+ return cast(
+ "ListObject[RedactionJobValidationError]",
+ self._request(
+ "get",
+ "/v1/privacy/redaction_jobs/{job}/validation_errors".format(
+ job=sanitize_id(job),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ job: str,
+ params: Optional["RedactionJobValidationErrorListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[RedactionJobValidationError]":
+ """
+ Returns a list of validation errors for the specified redaction job.
+ """
+ return cast(
+ "ListObject[RedactionJobValidationError]",
+ await self._request_async(
+ "get",
+ "/v1/privacy/redaction_jobs/{job}/validation_errors".format(
+ job=sanitize_id(job),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/reserve/__init__.py b/stripe/reserve/__init__.py
new file mode 100644
index 000000000..46a5000a3
--- /dev/null
+++ b/stripe/reserve/__init__.py
@@ -0,0 +1,39 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.reserve._hold import Hold as Hold
+ from stripe.reserve._hold_service import HoldService as HoldService
+ from stripe.reserve._plan import Plan as Plan
+ from stripe.reserve._plan_service import PlanService as PlanService
+ from stripe.reserve._release import Release as Release
+ from stripe.reserve._release_service import (
+ ReleaseService as ReleaseService,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "Hold": ("stripe.reserve._hold", False),
+ "HoldService": ("stripe.reserve._hold_service", False),
+ "Plan": ("stripe.reserve._plan", False),
+ "PlanService": ("stripe.reserve._plan_service", False),
+ "Release": ("stripe.reserve._release", False),
+ "ReleaseService": ("stripe.reserve._release_service", False),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/reserve/_hold.py b/stripe/reserve/_hold.py
new file mode 100644
index 000000000..bb2a5ac67
--- /dev/null
+++ b/stripe/reserve/_hold.py
@@ -0,0 +1,152 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._expandable_field import ExpandableField
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, Optional
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._charge import Charge
+ from stripe.params.reserve._hold_list_params import HoldListParams
+ from stripe.params.reserve._hold_retrieve_params import HoldRetrieveParams
+ from stripe.reserve._plan import Plan
+
+
+class Hold(ListableAPIResource["Hold"]):
+ """
+ ReserveHolds are used to place a temporary ReserveHold on a merchant's funds.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["reserve.hold"]] = "reserve.hold"
+
+ class ReleaseSchedule(StripeObject):
+ release_after: Optional[int]
+ """
+ The time after which the ReserveHold is requested to be released.
+ """
+ scheduled_release: Optional[int]
+ """
+ The time at which the ReserveHold is scheduled to be released, automatically set to midnight UTC of the day after `release_after`.
+ """
+
+ amount: int
+ """
+ Amount reserved. A positive integer representing how much is reserved in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ """
+ amount_releasable: Optional[int]
+ """
+ Amount in cents that can be released from this ReserveHold
+ """
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ created_by: Literal["application", "stripe"]
+ """
+ Indicates which party created this ReserveHold.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ is_releasable: Optional[bool]
+ """
+ Whether there are any funds available to release on this ReserveHold. Note that if the ReserveHold is in the process of being released, this could be false, even though the funds haven't been fully released yet.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ object: Literal["reserve.hold"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ reason: Literal["charge", "standalone"]
+ """
+ The reason for the ReserveHold.
+ """
+ release_schedule: ReleaseSchedule
+ reserve_plan: Optional[ExpandableField["Plan"]]
+ """
+ The ReservePlan which produced this ReserveHold (i.e., resplan_123)
+ """
+ source_charge: Optional[ExpandableField["Charge"]]
+ """
+ The Charge which funded this ReserveHold (e.g., ch_123)
+ """
+ source_type: Literal["bank_account", "card", "fpx"]
+ """
+ Which source balance type this ReserveHold reserves funds from. One of `bank_account`, `card`, or `fpx`.
+ """
+
+ @classmethod
+ def list(cls, **params: Unpack["HoldListParams"]) -> ListObject["Hold"]:
+ """
+ Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["HoldListParams"]
+ ) -> ListObject["Hold"]:
+ """
+ Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["HoldRetrieveParams"]
+ ) -> "Hold":
+ """
+ Retrieve a ReserveHold.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["HoldRetrieveParams"]
+ ) -> "Hold":
+ """
+ Retrieve a ReserveHold.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ _inner_class_types = {"release_schedule": ReleaseSchedule}
diff --git a/stripe/reserve/_hold_service.py b/stripe/reserve/_hold_service.py
new file mode 100644
index 000000000..16de9bc3e
--- /dev/null
+++ b/stripe/reserve/_hold_service.py
@@ -0,0 +1,93 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.params.reserve._hold_list_params import HoldListParams
+ from stripe.params.reserve._hold_retrieve_params import HoldRetrieveParams
+ from stripe.reserve._hold import Hold
+
+
+class HoldService(StripeService):
+ def list(
+ self,
+ params: Optional["HoldListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Hold]":
+ """
+ Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.
+ """
+ return cast(
+ "ListObject[Hold]",
+ self._request(
+ "get",
+ "/v1/reserve/holds",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["HoldListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Hold]":
+ """
+ Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.
+ """
+ return cast(
+ "ListObject[Hold]",
+ await self._request_async(
+ "get",
+ "/v1/reserve/holds",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["HoldRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Hold":
+ """
+ Retrieve a ReserveHold.
+ """
+ return cast(
+ "Hold",
+ self._request(
+ "get",
+ "/v1/reserve/holds/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["HoldRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Hold":
+ """
+ Retrieve a ReserveHold.
+ """
+ return cast(
+ "Hold",
+ await self._request_async(
+ "get",
+ "/v1/reserve/holds/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/reserve/_plan.py b/stripe/reserve/_plan.py
new file mode 100644
index 000000000..fefe87453
--- /dev/null
+++ b/stripe/reserve/_plan.py
@@ -0,0 +1,111 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_resource import APIResource
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, Optional
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.reserve._plan_retrieve_params import PlanRetrieveParams
+
+
+class Plan(APIResource["Plan"]):
+ """
+ ReservePlans are used to automatically place holds on a merchant's funds until the plan expires. It takes a portion of each incoming Charge (including those resulting from a Transfer from a platform account).
+ """
+
+ OBJECT_NAME: ClassVar[Literal["reserve.plan"]] = "reserve.plan"
+
+ class FixedRelease(StripeObject):
+ release_after: int
+ """
+ The time after which all reserved funds are requested for release.
+ """
+ scheduled_release: int
+ """
+ The time at which reserved funds are scheduled for release, automatically set to midnight UTC of the day after `release_after`.
+ """
+
+ class RollingRelease(StripeObject):
+ days_after_charge: int
+ """
+ The number of days to reserve funds before releasing.
+ """
+ expires_on: Optional[int]
+ """
+ The time at which the ReservePlan expires.
+ """
+
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ created_by: Literal["application", "stripe"]
+ """
+ Indicates which party created this ReservePlan.
+ """
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). An unset currency indicates that the plan applies to all currencies.
+ """
+ disabled_at: Optional[int]
+ """
+ Time at which the ReservePlan was disabled.
+ """
+ fixed_release: Optional[FixedRelease]
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ object: Literal["reserve.plan"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ percent: int
+ """
+ The percent of each Charge to reserve.
+ """
+ rolling_release: Optional[RollingRelease]
+ status: Literal["active", "disabled", "expired"]
+ """
+ The current status of the ReservePlan. The ReservePlan only affects charges if it is `active`.
+ """
+ type: Literal["fixed_release", "rolling_release"]
+ """
+ The type of the ReservePlan.
+ """
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["PlanRetrieveParams"]
+ ) -> "Plan":
+ """
+ Retrieve a ReservePlan.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["PlanRetrieveParams"]
+ ) -> "Plan":
+ """
+ Retrieve a ReservePlan.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ _inner_class_types = {
+ "fixed_release": FixedRelease,
+ "rolling_release": RollingRelease,
+ }
diff --git a/stripe/reserve/_plan_service.py b/stripe/reserve/_plan_service.py
new file mode 100644
index 000000000..c33d93a51
--- /dev/null
+++ b/stripe/reserve/_plan_service.py
@@ -0,0 +1,53 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.reserve._plan_retrieve_params import PlanRetrieveParams
+ from stripe.reserve._plan import Plan
+
+
+class PlanService(StripeService):
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["PlanRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Plan":
+ """
+ Retrieve a ReservePlan.
+ """
+ return cast(
+ "Plan",
+ self._request(
+ "get",
+ "/v1/reserve/plans/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["PlanRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Plan":
+ """
+ Retrieve a ReservePlan.
+ """
+ return cast(
+ "Plan",
+ await self._request_async(
+ "get",
+ "/v1/reserve/plans/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/reserve/_release.py b/stripe/reserve/_release.py
new file mode 100644
index 000000000..e82474628
--- /dev/null
+++ b/stripe/reserve/_release.py
@@ -0,0 +1,159 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._expandable_field import ExpandableField
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, Optional
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._dispute import Dispute
+ from stripe._refund import Refund
+ from stripe.params.reserve._release_list_params import ReleaseListParams
+ from stripe.params.reserve._release_retrieve_params import (
+ ReleaseRetrieveParams,
+ )
+ from stripe.reserve._hold import Hold
+ from stripe.reserve._plan import Plan
+
+
+class Release(ListableAPIResource["Release"]):
+ """
+ ReserveReleases represent the release of funds from a ReserveHold.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["reserve.release"]] = "reserve.release"
+
+ class SourceTransaction(StripeObject):
+ dispute: Optional[ExpandableField["Dispute"]]
+ """
+ The ID of the dispute.
+ """
+ refund: Optional[ExpandableField["Refund"]]
+ """
+ The ID of the refund.
+ """
+ type: Literal["dispute", "refund"]
+ """
+ The type of source transaction.
+ """
+
+ amount: int
+ """
+ Amount released. A positive integer representing how much is released in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
+ """
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ created_by: Literal["application", "stripe"]
+ """
+ Indicates which party created this ReserveRelease.
+ """
+ currency: str
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ object: Literal["reserve.release"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ reason: Literal[
+ "bulk_hold_expiry",
+ "hold_released_early",
+ "hold_reversed",
+ "plan_disabled",
+ ]
+ """
+ The reason for the ReserveRelease, indicating why the funds were released.
+ """
+ released_at: int
+ """
+ The release timestamp of the funds.
+ """
+ reserve_hold: Optional[ExpandableField["Hold"]]
+ """
+ The ReserveHold this ReserveRelease is associated with.
+ """
+ reserve_plan: Optional[ExpandableField["Plan"]]
+ """
+ The ReservePlan ID this ReserveRelease is associated with. This field is only populated if a ReserveRelease is created by a ReservePlan disable operation, or from a scheduled ReservedHold expiry.
+ """
+ source_transaction: Optional[SourceTransaction]
+
+ @classmethod
+ def list(
+ cls, **params: Unpack["ReleaseListParams"]
+ ) -> ListObject["Release"]:
+ """
+ Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["ReleaseListParams"]
+ ) -> ListObject["Release"]:
+ """
+ Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["ReleaseRetrieveParams"]
+ ) -> "Release":
+ """
+ Retrieve a ReserveRelease.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["ReleaseRetrieveParams"]
+ ) -> "Release":
+ """
+ Retrieve a ReserveRelease.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ _inner_class_types = {"source_transaction": SourceTransaction}
diff --git a/stripe/reserve/_release_service.py b/stripe/reserve/_release_service.py
new file mode 100644
index 000000000..20f8a9c0f
--- /dev/null
+++ b/stripe/reserve/_release_service.py
@@ -0,0 +1,95 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.params.reserve._release_list_params import ReleaseListParams
+ from stripe.params.reserve._release_retrieve_params import (
+ ReleaseRetrieveParams,
+ )
+ from stripe.reserve._release import Release
+
+
+class ReleaseService(StripeService):
+ def list(
+ self,
+ params: Optional["ReleaseListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Release]":
+ """
+ Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
+ """
+ return cast(
+ "ListObject[Release]",
+ self._request(
+ "get",
+ "/v1/reserve/releases",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["ReleaseListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Release]":
+ """
+ Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
+ """
+ return cast(
+ "ListObject[Release]",
+ await self._request_async(
+ "get",
+ "/v1/reserve/releases",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["ReleaseRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Release":
+ """
+ Retrieve a ReserveRelease.
+ """
+ return cast(
+ "Release",
+ self._request(
+ "get",
+ "/v1/reserve/releases/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["ReleaseRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Release":
+ """
+ Retrieve a ReserveRelease.
+ """
+ return cast(
+ "Release",
+ await self._request_async(
+ "get",
+ "/v1/reserve/releases/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/tax/__init__.py b/stripe/tax/__init__.py
index 958da52fc..f820b52f4 100644
--- a/stripe/tax/__init__.py
+++ b/stripe/tax/__init__.py
@@ -18,6 +18,8 @@
from stripe.tax._calculation_service import (
CalculationService as CalculationService,
)
+ from stripe.tax._form import Form as Form
+ from stripe.tax._form_service import FormService as FormService
from stripe.tax._registration import Registration as Registration
from stripe.tax._registration_service import (
RegistrationService as RegistrationService,
@@ -46,6 +48,8 @@
False,
),
"CalculationService": ("stripe.tax._calculation_service", False),
+ "Form": ("stripe.tax._form", False),
+ "FormService": ("stripe.tax._form_service", False),
"Registration": ("stripe.tax._registration", False),
"RegistrationService": ("stripe.tax._registration_service", False),
"Settings": ("stripe.tax._settings", False),
diff --git a/stripe/tax/_form.py b/stripe/tax/_form.py
new file mode 100644
index 000000000..f00726af7
--- /dev/null
+++ b/stripe/tax/_form.py
@@ -0,0 +1,353 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._expandable_field import ExpandableField
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._stripe_object import StripeObject
+from stripe._util import class_method_variant, sanitize_id
+from typing import Any, ClassVar, List, Optional, cast, overload
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._account import Account
+ from stripe.params.tax._form_list_params import FormListParams
+ from stripe.params.tax._form_pdf_params import FormPdfParams
+ from stripe.params.tax._form_retrieve_params import FormRetrieveParams
+
+
+class Form(ListableAPIResource["Form"]):
+ """
+ Tax forms are legal documents which are delivered to one or more tax authorities for information reporting purposes.
+
+ Related guide: [US tax reporting for Connect platforms](https://stripe.com/docs/connect/tax-reporting)
+ """
+
+ OBJECT_NAME: ClassVar[Literal["tax.form"]] = "tax.form"
+
+ class AuSerr(StripeObject):
+ reporting_period_end_date: str
+ """
+ End date of the period represented by the information reported on the tax form.
+ """
+ reporting_period_start_date: str
+ """
+ Start date of the period represented by the information reported on the tax form.
+ """
+
+ class CaMrdp(StripeObject):
+ reporting_period_end_date: str
+ """
+ End date of the period represented by the information reported on the tax form.
+ """
+ reporting_period_start_date: str
+ """
+ Start date of the period represented by the information reported on the tax form.
+ """
+
+ class EuDac7(StripeObject):
+ reporting_period_end_date: str
+ """
+ End date of the period represented by the information reported on the tax form.
+ """
+ reporting_period_start_date: str
+ """
+ Start date of the period represented by the information reported on the tax form.
+ """
+
+ class FilingStatus(StripeObject):
+ class Jurisdiction(StripeObject):
+ country: str
+ """
+ Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
+ """
+ level: Literal["country", "state"]
+ """
+ Indicates the level of the jurisdiction where the form was filed.
+ """
+ state: Optional[str]
+ """
+ [ISO 3166-2 U.S. state code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix, if any. For example, "NY" for New York, United States. Null for non-U.S. forms.
+ """
+
+ effective_at: int
+ """
+ Time when the filing status was updated.
+ """
+ jurisdiction: Jurisdiction
+ value: Literal["accepted", "filed", "rejected"]
+ """
+ The current status of the filed form.
+ """
+ _inner_class_types = {"jurisdiction": Jurisdiction}
+
+ class GbMrdp(StripeObject):
+ reporting_period_end_date: str
+ """
+ End date of the period represented by the information reported on the tax form.
+ """
+ reporting_period_start_date: str
+ """
+ Start date of the period represented by the information reported on the tax form.
+ """
+
+ class NzMrdp(StripeObject):
+ reporting_period_end_date: str
+ """
+ End date of the period represented by the information reported on the tax form.
+ """
+ reporting_period_start_date: str
+ """
+ Start date of the period represented by the information reported on the tax form.
+ """
+
+ class Payee(StripeObject):
+ account: Optional[ExpandableField["Account"]]
+ """
+ The ID of the payee's Stripe account.
+ """
+ external_reference: Optional[str]
+ """
+ The external reference to this payee.
+ """
+ type: Literal["account", "external_reference"]
+ """
+ Either `account` or `external_reference`.
+ """
+
+ class Us1099K(StripeObject):
+ reporting_year: int
+ """
+ Year represented by the information reported on the tax form.
+ """
+
+ class Us1099Misc(StripeObject):
+ reporting_year: int
+ """
+ Year represented by the information reported on the tax form.
+ """
+
+ class Us1099Nec(StripeObject):
+ reporting_year: int
+ """
+ Year represented by the information reported on the tax form.
+ """
+
+ au_serr: Optional[AuSerr]
+ ca_mrdp: Optional[CaMrdp]
+ corrected_by: Optional[ExpandableField["Form"]]
+ """
+ The form that corrects this form, if any.
+ """
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ eu_dac7: Optional[EuDac7]
+ filing_statuses: List[FilingStatus]
+ """
+ A list of tax filing statuses. Note that a filing status will only be included if the form has been filed directly with the jurisdiction's tax authority.
+ """
+ gb_mrdp: Optional[GbMrdp]
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ nz_mrdp: Optional[NzMrdp]
+ object: Literal["tax.form"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ payee: Payee
+ type: Literal[
+ "au_serr",
+ "ca_mrdp",
+ "eu_dac7",
+ "gb_mrdp",
+ "nz_mrdp",
+ "us_1099_k",
+ "us_1099_misc",
+ "us_1099_nec",
+ ]
+ """
+ The type of the tax form. An additional hash is included on the tax form with a name matching this value. It contains additional information specific to the tax form type.
+ """
+ us_1099_k: Optional[Us1099K]
+ us_1099_misc: Optional[Us1099Misc]
+ us_1099_nec: Optional[Us1099Nec]
+
+ @classmethod
+ def list(cls, **params: Unpack["FormListParams"]) -> ListObject["Form"]:
+ """
+ Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["FormListParams"]
+ ) -> ListObject["Form"]:
+ """
+ Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def _cls_pdf(cls, id: str, **params: Unpack["FormPdfParams"]) -> Any:
+ """
+ Download the PDF for a tax form.
+ """
+ return cast(
+ Any,
+ cls._static_request_stream(
+ "get",
+ "/v1/tax/forms/{id}/pdf".format(id=sanitize_id(id)),
+ params=params,
+ base_address="files",
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def pdf(id: str, **params: Unpack["FormPdfParams"]) -> Any:
+ """
+ Download the PDF for a tax form.
+ """
+ ...
+
+ @overload
+ def pdf(self, **params: Unpack["FormPdfParams"]) -> Any:
+ """
+ Download the PDF for a tax form.
+ """
+ ...
+
+ @class_method_variant("_cls_pdf")
+ def pdf( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["FormPdfParams"]
+ ) -> Any:
+ """
+ Download the PDF for a tax form.
+ """
+ return cast(
+ Any,
+ self._request_stream(
+ "get",
+ "/v1/tax/forms/{id}/pdf".format(
+ id=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ base_address="files",
+ ),
+ )
+
+ @classmethod
+ async def _cls_pdf_async(
+ cls, id: str, **params: Unpack["FormPdfParams"]
+ ) -> Any:
+ """
+ Download the PDF for a tax form.
+ """
+ return cast(
+ Any,
+ await cls._static_request_stream_async(
+ "get",
+ "/v1/tax/forms/{id}/pdf".format(id=sanitize_id(id)),
+ params=params,
+ base_address="files",
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def pdf_async(id: str, **params: Unpack["FormPdfParams"]) -> Any:
+ """
+ Download the PDF for a tax form.
+ """
+ ...
+
+ @overload
+ async def pdf_async(self, **params: Unpack["FormPdfParams"]) -> Any:
+ """
+ Download the PDF for a tax form.
+ """
+ ...
+
+ @class_method_variant("_cls_pdf_async")
+ async def pdf_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["FormPdfParams"]
+ ) -> Any:
+ """
+ Download the PDF for a tax form.
+ """
+ return cast(
+ Any,
+ await self._request_stream_async(
+ "get",
+ "/v1/tax/forms/{id}/pdf".format(
+ id=sanitize_id(self.get("id"))
+ ),
+ params=params,
+ base_address="files",
+ ),
+ )
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["FormRetrieveParams"]
+ ) -> "Form":
+ """
+ Retrieves the details of a tax form that has previously been created. Supply the unique tax form ID that was returned from your previous request, and Stripe will return the corresponding tax form information.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["FormRetrieveParams"]
+ ) -> "Form":
+ """
+ Retrieves the details of a tax form that has previously been created. Supply the unique tax form ID that was returned from your previous request, and Stripe will return the corresponding tax form information.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ _inner_class_types = {
+ "au_serr": AuSerr,
+ "ca_mrdp": CaMrdp,
+ "eu_dac7": EuDac7,
+ "filing_statuses": FilingStatus,
+ "gb_mrdp": GbMrdp,
+ "nz_mrdp": NzMrdp,
+ "payee": Payee,
+ "us_1099_k": Us1099K,
+ "us_1099_misc": Us1099Misc,
+ "us_1099_nec": Us1099Nec,
+ }
diff --git a/stripe/tax/_form_service.py b/stripe/tax/_form_service.py
new file mode 100644
index 000000000..85633bc3c
--- /dev/null
+++ b/stripe/tax/_form_service.py
@@ -0,0 +1,135 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.params.tax._form_list_params import FormListParams
+ from stripe.params.tax._form_pdf_params import FormPdfParams
+ from stripe.params.tax._form_retrieve_params import FormRetrieveParams
+ from stripe.tax._form import Form
+ from typing import Any
+
+
+class FormService(StripeService):
+ def list(
+ self,
+ params: "FormListParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Form]":
+ """
+ Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.
+ """
+ return cast(
+ "ListObject[Form]",
+ self._request(
+ "get",
+ "/v1/tax/forms",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: "FormListParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Form]":
+ """
+ Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.
+ """
+ return cast(
+ "ListObject[Form]",
+ await self._request_async(
+ "get",
+ "/v1/tax/forms",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["FormRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Form":
+ """
+ Retrieves the details of a tax form that has previously been created. Supply the unique tax form ID that was returned from your previous request, and Stripe will return the corresponding tax form information.
+ """
+ return cast(
+ "Form",
+ self._request(
+ "get",
+ "/v1/tax/forms/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["FormRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Form":
+ """
+ Retrieves the details of a tax form that has previously been created. Supply the unique tax form ID that was returned from your previous request, and Stripe will return the corresponding tax form information.
+ """
+ return cast(
+ "Form",
+ await self._request_async(
+ "get",
+ "/v1/tax/forms/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def pdf(
+ self,
+ id: str,
+ params: Optional["FormPdfParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Any":
+ """
+ Download the PDF for a tax form.
+ """
+ return cast(
+ "Any",
+ self._request_stream(
+ "get",
+ "/v1/tax/forms/{id}/pdf".format(id=sanitize_id(id)),
+ base_address="files",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def pdf_async(
+ self,
+ id: str,
+ params: Optional["FormPdfParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Any":
+ """
+ Download the PDF for a tax form.
+ """
+ return cast(
+ "Any",
+ await self._request_stream_async(
+ "get",
+ "/v1/tax/forms/{id}/pdf".format(id=sanitize_id(id)),
+ base_address="files",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/terminal/__init__.py b/stripe/terminal/__init__.py
index ff00e303e..883a836bb 100644
--- a/stripe/terminal/__init__.py
+++ b/stripe/terminal/__init__.py
@@ -25,6 +25,12 @@
OnboardingLinkService as OnboardingLinkService,
)
from stripe.terminal._reader import Reader as Reader
+ from stripe.terminal._reader_collected_data import (
+ ReaderCollectedData as ReaderCollectedData,
+ )
+ from stripe.terminal._reader_collected_data_service import (
+ ReaderCollectedDataService as ReaderCollectedDataService,
+ )
from stripe.terminal._reader_service import ReaderService as ReaderService
# name -> (import_target, is_submodule)
@@ -44,6 +50,11 @@
False,
),
"Reader": ("stripe.terminal._reader", False),
+ "ReaderCollectedData": ("stripe.terminal._reader_collected_data", False),
+ "ReaderCollectedDataService": (
+ "stripe.terminal._reader_collected_data_service",
+ False,
+ ),
"ReaderService": ("stripe.terminal._reader_service", False),
}
if not TYPE_CHECKING:
diff --git a/stripe/terminal/_configuration.py b/stripe/terminal/_configuration.py
index d85a33815..c16a6fad0 100644
--- a/stripe/terminal/_configuration.py
+++ b/stripe/terminal/_configuration.py
@@ -63,6 +63,12 @@ class Offline(StripeObject):
Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
"""
+ class ReaderSecurity(StripeObject):
+ admin_menu_passcode: str
+ """
+ Passcode used to access a reader's admin menu.
+ """
+
class RebootWindow(StripeObject):
end_hour: int
"""
@@ -534,6 +540,7 @@ class PersonalPsk(StripeObject):
String representing the object's type. Objects of the same type share the same value.
"""
offline: Optional[Offline]
+ reader_security: Optional[ReaderSecurity]
reboot_window: Optional[RebootWindow]
stripe_s700: Optional[StripeS700]
tipping: Optional[Tipping]
@@ -770,6 +777,7 @@ async def retrieve_async(
"bbpos_wisepad3": BbposWisepad3,
"bbpos_wisepos_e": BbposWiseposE,
"offline": Offline,
+ "reader_security": ReaderSecurity,
"reboot_window": RebootWindow,
"stripe_s700": StripeS700,
"tipping": Tipping,
diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py
index 1f78be200..a4219c2c7 100644
--- a/stripe/terminal/_reader.py
+++ b/stripe/terminal/_reader.py
@@ -267,6 +267,10 @@ class Tipping(StripeObject):
"""
_inner_class_types = {"tipping": Tipping}
+ account: Optional[str]
+ """
+ Account the payment intent belongs to.
+ """
collect_config: Optional[CollectConfig]
"""
Represents a per-transaction override of a reader configuration
@@ -292,6 +296,10 @@ class ConfirmConfig(StripeObject):
If the customer doesn't abandon authenticating the payment, they're redirected to this URL after completion.
"""
+ account: Optional[str]
+ """
+ Account the payment intent belongs to.
+ """
confirm_config: Optional[ConfirmConfig]
"""
Represents a per-transaction override of a reader configuration
@@ -328,6 +336,10 @@ class Tipping(StripeObject):
"""
_inner_class_types = {"tipping": Tipping}
+ account: Optional[str]
+ """
+ Account the payment intent belongs to.
+ """
payment_intent: ExpandableField["PaymentIntent"]
"""
Most recent PaymentIntent processed by the reader.
@@ -366,6 +378,10 @@ class RefundPaymentConfig(StripeObject):
Enable customer-initiated cancellation when refunding this payment.
"""
+ account: Optional[str]
+ """
+ Account the payment intent belongs to.
+ """
amount: Optional[int]
"""
The amount being refunded.
diff --git a/stripe/terminal/_reader_collected_data.py b/stripe/terminal/_reader_collected_data.py
new file mode 100644
index 000000000..68d348e85
--- /dev/null
+++ b/stripe/terminal/_reader_collected_data.py
@@ -0,0 +1,80 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._api_resource import APIResource
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.terminal._reader_collected_data_retrieve_params import (
+ ReaderCollectedDataRetrieveParams,
+ )
+
+
+class ReaderCollectedData(APIResource["ReaderCollectedData"]):
+ """
+ Returns data collected by Terminal readers. This data is only stored for 24 hours.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["terminal.reader_collected_data"]] = (
+ "terminal.reader_collected_data"
+ )
+
+ class Magstripe(StripeObject):
+ data: Optional[str]
+ """
+ The raw magstripe data collected by the reader.
+ """
+
+ created: int
+ """
+ Time at which the object was created. Measured in seconds since the Unix epoch.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ magstripe: Optional[Magstripe]
+ """
+ The magstripe data collected by the reader.
+ """
+ object: Literal["terminal.reader_collected_data"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ type: Literal["magstripe"]
+ """
+ The type of data collected by the reader.
+ """
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["ReaderCollectedDataRetrieveParams"]
+ ) -> "ReaderCollectedData":
+ """
+ Retrieve data collected using Reader hardware.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["ReaderCollectedDataRetrieveParams"]
+ ) -> "ReaderCollectedData":
+ """
+ Retrieve data collected using Reader hardware.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ @classmethod
+ def class_url(cls):
+ return "/v1/terminal/reader_collected_data"
+
+ _inner_class_types = {"magstripe": Magstripe}
diff --git a/stripe/terminal/_reader_collected_data_service.py b/stripe/terminal/_reader_collected_data_service.py
new file mode 100644
index 000000000..188a014c3
--- /dev/null
+++ b/stripe/terminal/_reader_collected_data_service.py
@@ -0,0 +1,59 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.terminal._reader_collected_data_retrieve_params import (
+ ReaderCollectedDataRetrieveParams,
+ )
+ from stripe.terminal._reader_collected_data import ReaderCollectedData
+
+
+class ReaderCollectedDataService(StripeService):
+ def retrieve(
+ self,
+ reader_collected_data: str,
+ params: Optional["ReaderCollectedDataRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ReaderCollectedData":
+ """
+ Retrieve data collected using Reader hardware.
+ """
+ return cast(
+ "ReaderCollectedData",
+ self._request(
+ "get",
+ "/v1/terminal/reader_collected_data/{reader_collected_data}".format(
+ reader_collected_data=sanitize_id(reader_collected_data),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ reader_collected_data: str,
+ params: Optional["ReaderCollectedDataRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ReaderCollectedData":
+ """
+ Retrieve data collected using Reader hardware.
+ """
+ return cast(
+ "ReaderCollectedData",
+ await self._request_async(
+ "get",
+ "/v1/terminal/reader_collected_data/{reader_collected_data}".format(
+ reader_collected_data=sanitize_id(reader_collected_data),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/treasury/_financial_account.py b/stripe/treasury/_financial_account.py
index eebba859b..e7141ff82 100644
--- a/stripe/treasury/_financial_account.py
+++ b/stripe/treasury/_financial_account.py
@@ -158,6 +158,10 @@ class Closed(StripeObject):
"""
Time at which the object was created. Measured in seconds since the Unix epoch.
"""
+ display_name: Optional[str]
+ """
+ The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
+ """
features: Optional["FinancialAccountFeatures"]
"""
Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`.
diff --git a/stripe/treasury/_financial_account_features.py b/stripe/treasury/_financial_account_features.py
index b787ad43c..bf811f8eb 100644
--- a/stripe/treasury/_financial_account_features.py
+++ b/stripe/treasury/_financial_account_features.py
@@ -139,6 +139,10 @@ class StatusDetail(StripeObject):
The `platform_restrictions` that are restricting this Feature.
"""
+ bank: Optional[Literal["evolve", "fifth_third", "goldman_sachs"]]
+ """
+ Requested bank partner for this Financial Account
+ """
requested: bool
"""
Whether the FinancialAccount should have the Feature.
diff --git a/stripe/treasury/_outbound_transfer.py b/stripe/treasury/_outbound_transfer.py
index eb9808aab..3e281e539 100644
--- a/stripe/treasury/_outbound_transfer.py
+++ b/stripe/treasury/_outbound_transfer.py
@@ -151,6 +151,23 @@ class UsBankAccount(StripeObject):
"us_bank_account": UsBankAccount,
}
+ class NetworkDetails(StripeObject):
+ class Ach(StripeObject):
+ addenda: Optional[str]
+ """
+ ACH Addenda record
+ """
+
+ ach: Optional[Ach]
+ """
+ Details about an ACH transaction.
+ """
+ type: Literal["ach"]
+ """
+ The type of flow that originated the OutboundTransfer.
+ """
+ _inner_class_types = {"ach": Ach}
+
class ReturnedDetails(StripeObject):
code: Literal[
"account_closed",
@@ -268,6 +285,10 @@ class UsDomesticWire(StripeObject):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
"""
+ network_details: Optional[NetworkDetails]
+ """
+ Details about the network used for the OutboundTransfer.
+ """
object: Literal["treasury.outbound_transfer"]
"""
String representing the object's type. Objects of the same type share the same value.
@@ -981,6 +1002,7 @@ def test_helpers(self):
_inner_class_types = {
"destination_payment_method_details": DestinationPaymentMethodDetails,
+ "network_details": NetworkDetails,
"returned_details": ReturnedDetails,
"status_transitions": StatusTransitions,
"tracking_details": TrackingDetails,
diff --git a/stripe/treasury/_received_credit.py b/stripe/treasury/_received_credit.py
index f9ee3602b..193c7f0ff 100644
--- a/stripe/treasury/_received_credit.py
+++ b/stripe/treasury/_received_credit.py
@@ -194,6 +194,23 @@ class SourceFlowDetails(StripeObject):
"""
_inner_class_types = {"source_flow_details": SourceFlowDetails}
+ class NetworkDetails(StripeObject):
+ class Ach(StripeObject):
+ addenda: Optional[str]
+ """
+ ACH Addenda record
+ """
+
+ ach: Optional[Ach]
+ """
+ Details about an ACH transaction.
+ """
+ type: Literal["ach"]
+ """
+ The type of flow that originated the ReceivedCredit.
+ """
+ _inner_class_types = {"ach": Ach}
+
class ReversalDetails(StripeObject):
deadline: Optional[int]
"""
@@ -261,6 +278,10 @@ class ReversalDetails(StripeObject):
"""
The rails used to send the funds.
"""
+ network_details: Optional[NetworkDetails]
+ """
+ Details specific to the money movement rails.
+ """
object: Literal["treasury.received_credit"]
"""
String representing the object's type. Objects of the same type share the same value.
@@ -382,6 +403,7 @@ def test_helpers(self):
_inner_class_types = {
"initiating_payment_method_details": InitiatingPaymentMethodDetails,
"linked_flows": LinkedFlows,
+ "network_details": NetworkDetails,
"reversal_details": ReversalDetails,
}
diff --git a/stripe/treasury/_received_debit.py b/stripe/treasury/_received_debit.py
index 2a255b8c3..b3e2d75a7 100644
--- a/stripe/treasury/_received_debit.py
+++ b/stripe/treasury/_received_debit.py
@@ -141,6 +141,27 @@ class LinkedFlows(StripeObject):
"""
Set if the ReceivedDebit was created due to a [Payout](https://api.stripe.com#payouts) object.
"""
+ received_credit_capital_withholding: Optional[str]
+ """
+ The ReceivedCredit that Capital withheld from
+ """
+
+ class NetworkDetails(StripeObject):
+ class Ach(StripeObject):
+ addenda: Optional[str]
+ """
+ ACH Addenda record
+ """
+
+ ach: Optional[Ach]
+ """
+ Details about an ACH transaction.
+ """
+ type: Literal["ach"]
+ """
+ The type of flow that originated the ReceivedDebit.
+ """
+ _inner_class_types = {"ach": Ach}
class ReversalDetails(StripeObject):
deadline: Optional[int]
@@ -210,6 +231,10 @@ class ReversalDetails(StripeObject):
"""
The network used for the ReceivedDebit.
"""
+ network_details: Optional[NetworkDetails]
+ """
+ Details specific to the money movement rails.
+ """
object: Literal["treasury.received_debit"]
"""
String representing the object's type. Objects of the same type share the same value.
@@ -331,6 +356,7 @@ def test_helpers(self):
_inner_class_types = {
"initiating_payment_method_details": InitiatingPaymentMethodDetails,
"linked_flows": LinkedFlows,
+ "network_details": NetworkDetails,
"reversal_details": ReversalDetails,
}
diff --git a/stripe/v2/__init__.py b/stripe/v2/__init__.py
index 687530791..7db5e2fda 100644
--- a/stripe/v2/__init__.py
+++ b/stripe/v2/__init__.py
@@ -7,18 +7,47 @@
from importlib import import_module
if TYPE_CHECKING:
- from stripe.v2 import billing as billing, core as core
+ from stripe.v2 import (
+ billing as billing,
+ core as core,
+ money_management as money_management,
+ test_helpers as test_helpers,
+ )
from stripe.v2._billing_service import BillingService as BillingService
from stripe.v2._core_service import CoreService as CoreService
from stripe.v2._deleted_object import DeletedObject as DeletedObject
+ from stripe.v2._financial_address_credit_simulation import (
+ FinancialAddressCreditSimulation as FinancialAddressCreditSimulation,
+ )
+ from stripe.v2._financial_address_generated_microdeposits import (
+ FinancialAddressGeneratedMicrodeposits as FinancialAddressGeneratedMicrodeposits,
+ )
+ from stripe.v2._money_management_service import (
+ MoneyManagementService as MoneyManagementService,
+ )
+ from stripe.v2._test_helper_service import (
+ TestHelperService as TestHelperService,
+ )
# name -> (import_target, is_submodule)
_import_map = {
"billing": ("stripe.v2.billing", True),
"core": ("stripe.v2.core", True),
+ "money_management": ("stripe.v2.money_management", True),
+ "test_helpers": ("stripe.v2.test_helpers", True),
"BillingService": ("stripe.v2._billing_service", False),
"CoreService": ("stripe.v2._core_service", False),
"DeletedObject": ("stripe.v2._deleted_object", False),
+ "FinancialAddressCreditSimulation": (
+ "stripe.v2._financial_address_credit_simulation",
+ False,
+ ),
+ "FinancialAddressGeneratedMicrodeposits": (
+ "stripe.v2._financial_address_generated_microdeposits",
+ False,
+ ),
+ "MoneyManagementService": ("stripe.v2._money_management_service", False),
+ "TestHelperService": ("stripe.v2._test_helper_service", False),
}
if not TYPE_CHECKING:
diff --git a/stripe/v2/_billing_service.py b/stripe/v2/_billing_service.py
index 992329ca3..325b42430 100644
--- a/stripe/v2/_billing_service.py
+++ b/stripe/v2/_billing_service.py
@@ -5,6 +5,11 @@
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
+ from stripe.v2.billing._bill_setting_service import BillSettingService
+ from stripe.v2.billing._cadence_service import CadenceService
+ from stripe.v2.billing._collection_setting_service import (
+ CollectionSettingService,
+ )
from stripe.v2.billing._meter_event_adjustment_service import (
MeterEventAdjustmentService,
)
@@ -15,8 +20,18 @@
from stripe.v2.billing._meter_event_stream_service import (
MeterEventStreamService,
)
+ from stripe.v2.billing._profile_service import ProfileService
_subservices = {
+ "bill_settings": [
+ "stripe.v2.billing._bill_setting_service",
+ "BillSettingService",
+ ],
+ "cadences": ["stripe.v2.billing._cadence_service", "CadenceService"],
+ "collection_settings": [
+ "stripe.v2.billing._collection_setting_service",
+ "CollectionSettingService",
+ ],
"meter_events": [
"stripe.v2.billing._meter_event_service",
"MeterEventService",
@@ -33,14 +48,19 @@
"stripe.v2.billing._meter_event_stream_service",
"MeterEventStreamService",
],
+ "profiles": ["stripe.v2.billing._profile_service", "ProfileService"],
}
class BillingService(StripeService):
+ bill_settings: "BillSettingService"
+ cadences: "CadenceService"
+ collection_settings: "CollectionSettingService"
meter_events: "MeterEventService"
meter_event_adjustments: "MeterEventAdjustmentService"
meter_event_session: "MeterEventSessionService"
meter_event_stream: "MeterEventStreamService"
+ profiles: "ProfileService"
def __init__(self, requestor):
super().__init__(requestor)
diff --git a/stripe/v2/_core_service.py b/stripe/v2/_core_service.py
index 6d95f80e3..35a600637 100644
--- a/stripe/v2/_core_service.py
+++ b/stripe/v2/_core_service.py
@@ -12,6 +12,7 @@
EventDestinationService,
)
from stripe.v2.core._event_service import EventService
+ from stripe.v2.core._vault_service import VaultService
_subservices = {
"accounts": ["stripe.v2.core._account_service", "AccountService"],
@@ -28,6 +29,7 @@
"stripe.v2.core._event_destination_service",
"EventDestinationService",
],
+ "vault": ["stripe.v2.core._vault_service", "VaultService"],
}
@@ -37,6 +39,7 @@ class CoreService(StripeService):
account_tokens: "AccountTokenService"
events: "EventService"
event_destinations: "EventDestinationService"
+ vault: "VaultService"
def __init__(self, requestor):
super().__init__(requestor)
diff --git a/stripe/v2/_financial_address_credit_simulation.py b/stripe/v2/_financial_address_credit_simulation.py
new file mode 100644
index 000000000..be0a04dd7
--- /dev/null
+++ b/stripe/v2/_financial_address_credit_simulation.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar
+from typing_extensions import Literal
+
+
+class FinancialAddressCreditSimulation(StripeObject):
+ OBJECT_NAME: ClassVar[Literal["financial_address_credit_simulation"]] = (
+ "financial_address_credit_simulation"
+ )
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["financial_address_credit_simulation"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ status: str
+ """
+ The status of the request, signifying whether a simulated credit was initiated.
+ """
diff --git a/stripe/v2/_financial_address_generated_microdeposits.py b/stripe/v2/_financial_address_generated_microdeposits.py
new file mode 100644
index 000000000..ec75a062c
--- /dev/null
+++ b/stripe/v2/_financial_address_generated_microdeposits.py
@@ -0,0 +1,39 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, List, Optional
+from typing_extensions import Literal
+
+
+class FinancialAddressGeneratedMicrodeposits(StripeObject):
+ OBJECT_NAME: ClassVar[
+ Literal["financial_address_generated_microdeposits"]
+ ] = "financial_address_generated_microdeposits"
+
+ class Amount(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ amounts: List[Amount]
+ """
+ The amounts of the microdeposits that were generated.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["financial_address_generated_microdeposits"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ status: Literal["accepted"]
+ """
+ Closed Enum. The status of the request.
+ """
+ _inner_class_types = {"amounts": Amount}
diff --git a/stripe/v2/_money_management_service.py b/stripe/v2/_money_management_service.py
new file mode 100644
index 000000000..56c49f87a
--- /dev/null
+++ b/stripe/v2/_money_management_service.py
@@ -0,0 +1,144 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.v2.money_management._adjustment_service import (
+ AdjustmentService,
+ )
+ from stripe.v2.money_management._financial_account_service import (
+ FinancialAccountService,
+ )
+ from stripe.v2.money_management._financial_address_service import (
+ FinancialAddressService,
+ )
+ from stripe.v2.money_management._inbound_transfer_service import (
+ InboundTransferService,
+ )
+ from stripe.v2.money_management._outbound_payment_quote_service import (
+ OutboundPaymentQuoteService,
+ )
+ from stripe.v2.money_management._outbound_payment_service import (
+ OutboundPaymentService,
+ )
+ from stripe.v2.money_management._outbound_setup_intent_service import (
+ OutboundSetupIntentService,
+ )
+ from stripe.v2.money_management._outbound_transfer_service import (
+ OutboundTransferService,
+ )
+ from stripe.v2.money_management._payout_method_service import (
+ PayoutMethodService,
+ )
+ from stripe.v2.money_management._payout_methods_bank_account_spec_service import (
+ PayoutMethodsBankAccountSpecService,
+ )
+ from stripe.v2.money_management._received_credit_service import (
+ ReceivedCreditService,
+ )
+ from stripe.v2.money_management._received_debit_service import (
+ ReceivedDebitService,
+ )
+ from stripe.v2.money_management._transaction_entry_service import (
+ TransactionEntryService,
+ )
+ from stripe.v2.money_management._transaction_service import (
+ TransactionService,
+ )
+
+_subservices = {
+ "adjustments": [
+ "stripe.v2.money_management._adjustment_service",
+ "AdjustmentService",
+ ],
+ "financial_accounts": [
+ "stripe.v2.money_management._financial_account_service",
+ "FinancialAccountService",
+ ],
+ "financial_addresses": [
+ "stripe.v2.money_management._financial_address_service",
+ "FinancialAddressService",
+ ],
+ "inbound_transfers": [
+ "stripe.v2.money_management._inbound_transfer_service",
+ "InboundTransferService",
+ ],
+ "outbound_payments": [
+ "stripe.v2.money_management._outbound_payment_service",
+ "OutboundPaymentService",
+ ],
+ "outbound_payment_quotes": [
+ "stripe.v2.money_management._outbound_payment_quote_service",
+ "OutboundPaymentQuoteService",
+ ],
+ "outbound_setup_intents": [
+ "stripe.v2.money_management._outbound_setup_intent_service",
+ "OutboundSetupIntentService",
+ ],
+ "outbound_transfers": [
+ "stripe.v2.money_management._outbound_transfer_service",
+ "OutboundTransferService",
+ ],
+ "payout_methods": [
+ "stripe.v2.money_management._payout_method_service",
+ "PayoutMethodService",
+ ],
+ "payout_methods_bank_account_spec": [
+ "stripe.v2.money_management._payout_methods_bank_account_spec_service",
+ "PayoutMethodsBankAccountSpecService",
+ ],
+ "received_credits": [
+ "stripe.v2.money_management._received_credit_service",
+ "ReceivedCreditService",
+ ],
+ "received_debits": [
+ "stripe.v2.money_management._received_debit_service",
+ "ReceivedDebitService",
+ ],
+ "transactions": [
+ "stripe.v2.money_management._transaction_service",
+ "TransactionService",
+ ],
+ "transaction_entries": [
+ "stripe.v2.money_management._transaction_entry_service",
+ "TransactionEntryService",
+ ],
+}
+
+
+class MoneyManagementService(StripeService):
+ adjustments: "AdjustmentService"
+ financial_accounts: "FinancialAccountService"
+ financial_addresses: "FinancialAddressService"
+ inbound_transfers: "InboundTransferService"
+ outbound_payments: "OutboundPaymentService"
+ outbound_payment_quotes: "OutboundPaymentQuoteService"
+ outbound_setup_intents: "OutboundSetupIntentService"
+ outbound_transfers: "OutboundTransferService"
+ payout_methods: "PayoutMethodService"
+ payout_methods_bank_account_spec: "PayoutMethodsBankAccountSpecService"
+ received_credits: "ReceivedCreditService"
+ received_debits: "ReceivedDebitService"
+ transactions: "TransactionService"
+ transaction_entries: "TransactionEntryService"
+
+ def __init__(self, requestor):
+ super().__init__(requestor)
+
+ def __getattr__(self, name):
+ try:
+ import_from, service = _subservices[name]
+ service_class = getattr(
+ import_module(import_from),
+ service,
+ )
+ setattr(
+ self,
+ name,
+ service_class(self._requestor),
+ )
+ return getattr(self, name)
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/v2/_test_helper_service.py b/stripe/v2/_test_helper_service.py
new file mode 100644
index 000000000..c4109b399
--- /dev/null
+++ b/stripe/v2/_test_helper_service.py
@@ -0,0 +1,40 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.v2.test_helpers._financial_address_service import (
+ FinancialAddressService,
+ )
+
+_subservices = {
+ "financial_addresses": [
+ "stripe.v2.test_helpers._financial_address_service",
+ "FinancialAddressService",
+ ],
+}
+
+
+class TestHelperService(StripeService):
+ financial_addresses: "FinancialAddressService"
+
+ def __init__(self, requestor):
+ super().__init__(requestor)
+
+ def __getattr__(self, name):
+ try:
+ import_from, service = _subservices[name]
+ service_class = getattr(
+ import_module(import_from),
+ service,
+ )
+ setattr(
+ self,
+ name,
+ service_class(self._requestor),
+ )
+ return getattr(self, name)
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/v2/billing/__init__.py b/stripe/v2/billing/__init__.py
index 7488a07fe..cd33cf800 100644
--- a/stripe/v2/billing/__init__.py
+++ b/stripe/v2/billing/__init__.py
@@ -4,6 +4,30 @@
from typing_extensions import TYPE_CHECKING
if TYPE_CHECKING:
+ from stripe.v2.billing import (
+ bill_settings as bill_settings,
+ collection_settings as collection_settings,
+ )
+ from stripe.v2.billing._bill_setting import BillSetting as BillSetting
+ from stripe.v2.billing._bill_setting_service import (
+ BillSettingService as BillSettingService,
+ )
+ from stripe.v2.billing._bill_setting_version import (
+ BillSettingVersion as BillSettingVersion,
+ )
+ from stripe.v2.billing._cadence import Cadence as Cadence
+ from stripe.v2.billing._cadence_service import (
+ CadenceService as CadenceService,
+ )
+ from stripe.v2.billing._collection_setting import (
+ CollectionSetting as CollectionSetting,
+ )
+ from stripe.v2.billing._collection_setting_service import (
+ CollectionSettingService as CollectionSettingService,
+ )
+ from stripe.v2.billing._collection_setting_version import (
+ CollectionSettingVersion as CollectionSettingVersion,
+ )
from stripe.v2.billing._meter_event import MeterEvent as MeterEvent
from stripe.v2.billing._meter_event_adjustment import (
MeterEventAdjustment as MeterEventAdjustment,
@@ -23,9 +47,29 @@
from stripe.v2.billing._meter_event_stream_service import (
MeterEventStreamService as MeterEventStreamService,
)
+ from stripe.v2.billing._profile import Profile as Profile
+ from stripe.v2.billing._profile_service import (
+ ProfileService as ProfileService,
+ )
# name -> (import_target, is_submodule)
_import_map = {
+ "bill_settings": ("stripe.v2.billing.bill_settings", True),
+ "collection_settings": ("stripe.v2.billing.collection_settings", True),
+ "BillSetting": ("stripe.v2.billing._bill_setting", False),
+ "BillSettingService": ("stripe.v2.billing._bill_setting_service", False),
+ "BillSettingVersion": ("stripe.v2.billing._bill_setting_version", False),
+ "Cadence": ("stripe.v2.billing._cadence", False),
+ "CadenceService": ("stripe.v2.billing._cadence_service", False),
+ "CollectionSetting": ("stripe.v2.billing._collection_setting", False),
+ "CollectionSettingService": (
+ "stripe.v2.billing._collection_setting_service",
+ False,
+ ),
+ "CollectionSettingVersion": (
+ "stripe.v2.billing._collection_setting_version",
+ False,
+ ),
"MeterEvent": ("stripe.v2.billing._meter_event", False),
"MeterEventAdjustment": (
"stripe.v2.billing._meter_event_adjustment",
@@ -45,6 +89,8 @@
"stripe.v2.billing._meter_event_stream_service",
False,
),
+ "Profile": ("stripe.v2.billing._profile", False),
+ "ProfileService": ("stripe.v2.billing._profile_service", False),
}
if not TYPE_CHECKING:
diff --git a/stripe/v2/billing/_bill_setting.py b/stripe/v2/billing/_bill_setting.py
new file mode 100644
index 000000000..c48dda04e
--- /dev/null
+++ b/stripe/v2/billing/_bill_setting.py
@@ -0,0 +1,95 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal
+
+
+class BillSetting(StripeObject):
+ """
+ BillSetting is responsible for settings which dictate generating bills, which include settings for calculating totals on bills, tax on bill items, as well as how to generate and present invoices.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.billing.bill_setting"]] = (
+ "v2.billing.bill_setting"
+ )
+
+ class Calculation(StripeObject):
+ class Tax(StripeObject):
+ type: Literal["automatic", "manual"]
+ """
+ Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
+ """
+
+ tax: Optional[Tax]
+ """
+ Settings for calculating tax.
+ """
+ _inner_class_types = {"tax": Tax}
+
+ class Invoice(StripeObject):
+ class TimeUntilDue(StripeObject):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ The interval unit for the time until due.
+ """
+ interval_count: int
+ """
+ The number of interval units. For example, if interval=day and interval_count=30,
+ the invoice will be due in 30 days.
+ """
+
+ time_until_due: Optional[TimeUntilDue]
+ """
+ The amount of time until the invoice will be overdue for payment.
+ """
+ _inner_class_types = {"time_until_due": TimeUntilDue}
+
+ calculation: Optional[Calculation]
+ """
+ Settings related to calculating a bill.
+ """
+ created: str
+ """
+ Timestamp of when the object was created.
+ """
+ display_name: Optional[str]
+ """
+ An optional field for adding a display name for the BillSetting object.
+ """
+ id: str
+ """
+ The ID of the BillSetting object.
+ """
+ invoice: Optional[Invoice]
+ """
+ Settings related to invoice behavior.
+ """
+ invoice_rendering_template: Optional[str]
+ """
+ The ID of the invoice rendering template to be used when generating invoices.
+ """
+ latest_version: str
+ """
+ The latest version of the current settings object. This will be
+ Updated every time an attribute of the settings is updated.
+ """
+ live_version: str
+ """
+ The current live version of the settings object. This can be different from
+ latest_version if settings are updated without setting live_version='latest'.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ lookup_key: Optional[str]
+ """
+ A lookup key used to retrieve settings dynamically from a static string.
+ This may be up to 200 characters.
+ """
+ object: Literal["v2.billing.bill_setting"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ _inner_class_types = {"calculation": Calculation, "invoice": Invoice}
diff --git a/stripe/v2/billing/_bill_setting_service.py b/stripe/v2/billing/_bill_setting_service.py
new file mode 100644
index 000000000..7fc004ae3
--- /dev/null
+++ b/stripe/v2/billing/_bill_setting_service.py
@@ -0,0 +1,211 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.billing._bill_setting_create_params import (
+ BillSettingCreateParams,
+ )
+ from stripe.params.v2.billing._bill_setting_list_params import (
+ BillSettingListParams,
+ )
+ from stripe.params.v2.billing._bill_setting_retrieve_params import (
+ BillSettingRetrieveParams,
+ )
+ from stripe.params.v2.billing._bill_setting_update_params import (
+ BillSettingUpdateParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.billing._bill_setting import BillSetting
+ from stripe.v2.billing.bill_settings._version_service import VersionService
+
+_subservices = {
+ "versions": [
+ "stripe.v2.billing.bill_settings._version_service",
+ "VersionService",
+ ],
+}
+
+
+class BillSettingService(StripeService):
+ versions: "VersionService"
+
+ def __init__(self, requestor):
+ super().__init__(requestor)
+
+ def __getattr__(self, name):
+ try:
+ import_from, service = _subservices[name]
+ service_class = getattr(
+ import_module(import_from),
+ service,
+ )
+ setattr(
+ self,
+ name,
+ service_class(self._requestor),
+ )
+ return getattr(self, name)
+ except KeyError:
+ raise AttributeError()
+
+ def list(
+ self,
+ params: Optional["BillSettingListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[BillSetting]":
+ """
+ List all BillSetting objects.
+ """
+ return cast(
+ "ListObject[BillSetting]",
+ self._request(
+ "get",
+ "/v2/billing/bill_settings",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["BillSettingListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[BillSetting]":
+ """
+ List all BillSetting objects.
+ """
+ return cast(
+ "ListObject[BillSetting]",
+ await self._request_async(
+ "get",
+ "/v2/billing/bill_settings",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: Optional["BillSettingCreateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "BillSetting":
+ """
+ Create a BillSetting object.
+ """
+ return cast(
+ "BillSetting",
+ self._request(
+ "post",
+ "/v2/billing/bill_settings",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: Optional["BillSettingCreateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "BillSetting":
+ """
+ Create a BillSetting object.
+ """
+ return cast(
+ "BillSetting",
+ await self._request_async(
+ "post",
+ "/v2/billing/bill_settings",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["BillSettingRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "BillSetting":
+ """
+ Retrieve a BillSetting object by ID.
+ """
+ return cast(
+ "BillSetting",
+ self._request(
+ "get",
+ "/v2/billing/bill_settings/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["BillSettingRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "BillSetting":
+ """
+ Retrieve a BillSetting object by ID.
+ """
+ return cast(
+ "BillSetting",
+ await self._request_async(
+ "get",
+ "/v2/billing/bill_settings/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ id: str,
+ params: Optional["BillSettingUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "BillSetting":
+ """
+ Update fields on an existing BillSetting object.
+ """
+ return cast(
+ "BillSetting",
+ self._request(
+ "post",
+ "/v2/billing/bill_settings/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ id: str,
+ params: Optional["BillSettingUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "BillSetting":
+ """
+ Update fields on an existing BillSetting object.
+ """
+ return cast(
+ "BillSetting",
+ await self._request_async(
+ "post",
+ "/v2/billing/bill_settings/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/billing/_bill_setting_version.py b/stripe/v2/billing/_bill_setting_version.py
new file mode 100644
index 000000000..ef8161b21
--- /dev/null
+++ b/stripe/v2/billing/_bill_setting_version.py
@@ -0,0 +1,72 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal
+
+
+class BillSettingVersion(StripeObject):
+ OBJECT_NAME: ClassVar[Literal["v2.billing.bill_setting_version"]] = (
+ "v2.billing.bill_setting_version"
+ )
+
+ class Calculation(StripeObject):
+ class Tax(StripeObject):
+ type: Literal["automatic", "manual"]
+ """
+ Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
+ """
+
+ tax: Optional[Tax]
+ """
+ Settings for calculating tax.
+ """
+ _inner_class_types = {"tax": Tax}
+
+ class Invoice(StripeObject):
+ class TimeUntilDue(StripeObject):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ The interval unit for the time until due.
+ """
+ interval_count: int
+ """
+ The number of interval units. For example, if interval=day and interval_count=30,
+ the invoice will be due in 30 days.
+ """
+
+ time_until_due: Optional[TimeUntilDue]
+ """
+ The amount of time until the invoice will be overdue for payment.
+ """
+ _inner_class_types = {"time_until_due": TimeUntilDue}
+
+ calculation: Optional[Calculation]
+ """
+ Settings related to calculating a bill.
+ """
+ created: str
+ """
+ Timestamp of when the object was created.
+ """
+ id: str
+ """
+ The ID of the BillSettingVersion object.
+ """
+ invoice: Optional[Invoice]
+ """
+ Settings related to invoice behavior.
+ """
+ invoice_rendering_template: Optional[str]
+ """
+ The ID of the invoice rendering template to be used when generating invoices.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.billing.bill_setting_version"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ _inner_class_types = {"calculation": Calculation, "invoice": Invoice}
diff --git a/stripe/v2/billing/_cadence.py b/stripe/v2/billing/_cadence.py
new file mode 100644
index 000000000..a3b49e83c
--- /dev/null
+++ b/stripe/v2/billing/_cadence.py
@@ -0,0 +1,563 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, List, Optional
+from typing_extensions import Literal, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from typing import Any
+
+
+class Cadence(StripeObject):
+ OBJECT_NAME: ClassVar[Literal["v2.billing.cadence"]] = "v2.billing.cadence"
+
+ class BillingCycle(StripeObject):
+ class Day(StripeObject):
+ class Time(StripeObject):
+ hour: int
+ """
+ The hour at which the billing cycle ends.
+ This must be an integer between 0 and 23, inclusive.
+ 0 represents midnight, and 23 represents 11 PM.
+ """
+ minute: int
+ """
+ The minute at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+ second: Optional[int]
+ """
+ The second at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+
+ time: Time
+ """
+ The time at which the billing cycle ends.
+ """
+ _inner_class_types = {"time": Time}
+
+ class Month(StripeObject):
+ class Time(StripeObject):
+ hour: int
+ """
+ The hour at which the billing cycle ends.
+ This must be an integer between 0 and 23, inclusive.
+ 0 represents midnight, and 23 represents 11 PM.
+ """
+ minute: int
+ """
+ The minute at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+ second: Optional[int]
+ """
+ The second at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+
+ day_of_month: int
+ """
+ The day to anchor the billing on for a type="month" billing cycle from 1-31.
+ If this number is greater than the number of days in the month being billed,
+ this will anchor to the last day of the month.
+ """
+ month_of_year: Optional[int]
+ """
+ The month to anchor the billing on for a type="month" billing cycle from
+ 1-12. Occurrences are calculated from the month anchor.
+ """
+ time: Time
+ """
+ The time at which the billing cycle ends.
+ """
+ _inner_class_types = {"time": Time}
+
+ class Week(StripeObject):
+ class Time(StripeObject):
+ hour: int
+ """
+ The hour at which the billing cycle ends.
+ This must be an integer between 0 and 23, inclusive.
+ 0 represents midnight, and 23 represents 11 PM.
+ """
+ minute: int
+ """
+ The minute at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+ second: Optional[int]
+ """
+ The second at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+
+ day_of_week: int
+ """
+ The day of the week to bill the type=week billing cycle on.
+ Numbered from 1-7 for Monday to Sunday respectively, based on the ISO-8601 week day numbering.
+ """
+ time: Time
+ """
+ The time at which the billing cycle ends.
+ """
+ _inner_class_types = {"time": Time}
+
+ class Year(StripeObject):
+ class Time(StripeObject):
+ hour: int
+ """
+ The hour at which the billing cycle ends.
+ This must be an integer between 0 and 23, inclusive.
+ 0 represents midnight, and 23 represents 11 PM.
+ """
+ minute: int
+ """
+ The minute at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+ second: Optional[int]
+ """
+ The second at which the billing cycle ends.
+ Must be an integer between 0 and 59, inclusive.
+ """
+
+ day_of_month: int
+ """
+ The day to anchor the billing on for a type="month" billing cycle from 1-31.
+ If this number is greater than the number of days in the month being billed,
+ this will anchor to the last day of the month.
+ """
+ month_of_year: int
+ """
+ The month to bill on from 1-12. If not provided, this will default to the month the cadence was created.
+ """
+ time: Time
+ """
+ The time at which the billing cycle ends.
+ """
+ _inner_class_types = {"time": Time}
+
+ day: Optional[Day]
+ """
+ Specific configuration for determining billing dates when type=day.
+ """
+ interval_count: int
+ """
+ The number of intervals (specified in the interval attribute) between cadence billings. For example, type=month and interval_count=3 bills every 3 months.
+ """
+ month: Optional[Month]
+ """
+ Specific configuration for determining billing dates when type=month.
+ """
+ type: Literal["day", "month", "week", "year"]
+ """
+ The frequency at which a cadence bills.
+ """
+ week: Optional[Week]
+ """
+ Specific configuration for determining billing dates when type=week.
+ """
+ year: Optional[Year]
+ """
+ Specific configuration for determining billing dates when type=year.
+ """
+ _inner_class_types = {
+ "day": Day,
+ "month": Month,
+ "week": Week,
+ "year": Year,
+ }
+
+ class Payer(StripeObject):
+ billing_profile: str
+ """
+ The ID of the Billing Profile object which determines how a bill will be paid.
+ """
+ customer: Optional[str]
+ """
+ The ID of the Customer object.
+ """
+ type: Literal["customer"]
+ """
+ A string identifying the type of the payer. Currently the only supported value is `customer`.
+ """
+
+ class Settings(StripeObject):
+ class Bill(StripeObject):
+ id: str
+ """
+ The ID of the referenced settings object.
+ """
+ version: Optional[str]
+ """
+ Returns the Settings Version when the cadence is pinned to a specific version.
+ """
+
+ class Collection(StripeObject):
+ id: str
+ """
+ The ID of the referenced settings object.
+ """
+ version: Optional[str]
+ """
+ Returns the Settings Version when the cadence is pinned to a specific version.
+ """
+
+ bill: Optional[Bill]
+ """
+ Settings that configure bills generation, which includes calculating totals, tax, and presenting invoices.
+ """
+ collection: Optional[Collection]
+ """
+ Settings that configure and manage the behavior of collecting payments.
+ """
+ _inner_class_types = {"bill": Bill, "collection": Collection}
+
+ class SettingsData(StripeObject):
+ class Bill(StripeObject):
+ class Calculation(StripeObject):
+ class Tax(StripeObject):
+ type: Literal["automatic", "manual"]
+ """
+ Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
+ """
+
+ tax: Optional[Tax]
+ """
+ Settings for calculating tax.
+ """
+ _inner_class_types = {"tax": Tax}
+
+ class Invoice(StripeObject):
+ class TimeUntilDue(StripeObject):
+ interval: Literal["day", "month", "week", "year"]
+ """
+ The interval unit for the time until due.
+ """
+ interval_count: int
+ """
+ The number of interval units. For example, if interval=day and interval_count=30,
+ the invoice will be due in 30 days.
+ """
+
+ time_until_due: Optional[TimeUntilDue]
+ """
+ The amount of time until the invoice will be overdue for payment.
+ """
+ _inner_class_types = {"time_until_due": TimeUntilDue}
+
+ calculation: Calculation
+ """
+ Settings related to calculating a bill.
+ """
+ invoice: Invoice
+ """
+ Settings related to invoice behavior.
+ """
+ invoice_rendering_template: Optional[str]
+ """
+ The ID of the invoice rendering template to be used when generating invoices.
+ """
+ _inner_class_types = {
+ "calculation": Calculation,
+ "invoice": Invoice,
+ }
+
+ class Collection(StripeObject):
+ class EmailDelivery(StripeObject):
+ class PaymentDue(StripeObject):
+ enabled: bool
+ """
+ If true an email for the invoice would be generated and sent out.
+ """
+ include_payment_link: bool
+ """
+ If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
+ """
+
+ payment_due: Optional[PaymentDue]
+ """
+ Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
+ """
+ _inner_class_types = {"payment_due": PaymentDue}
+
+ class PaymentMethodOptions(StripeObject):
+ class AcssDebit(StripeObject):
+ class MandateOptions(StripeObject):
+ transaction_type: Optional[
+ Literal["business", "personal"]
+ ]
+ """
+ Transaction type of the mandate.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ """
+ Additional fields for Mandate creation.
+ """
+ verification_method: Optional[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Verification method.
+ """
+ _inner_class_types = {"mandate_options": MandateOptions}
+
+ class Bancontact(StripeObject):
+ preferred_language: Optional[
+ Literal["de", "en", "fr", "nl"]
+ ]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+
+ class Card(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ The AmountType for the mandate. One of `fixed` or `maximum`.
+ """
+ description: Optional[str]
+ """
+ A description of the mandate that is meant to be displayed to the customer.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ """
+ Configuration options for setting up an eMandate for cards issued in India.
+ """
+ network: Optional[str]
+ """
+ Selected network to process the payment on. Depends on the available networks of the card.
+ """
+ request_three_d_secure: Optional[
+ Literal["any", "automatic", "challenge"]
+ ]
+ """
+ An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers
+ for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication).
+ However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
+ Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ """
+ _inner_class_types = {"mandate_options": MandateOptions}
+
+ class CustomerBalance(StripeObject):
+ class BankTransfer(StripeObject):
+ class EuBankTransfer(StripeObject):
+ country: Literal[
+ "BE", "DE", "ES", "FR", "IE", "NL"
+ ]
+ """
+ The desired country code of the bank account information.
+ """
+
+ eu_bank_transfer: Optional[EuBankTransfer]
+ """
+ Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`.
+ """
+ type: Optional[
+ Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ ]
+ """
+ The bank transfer type that can be used for funding.
+ """
+ _inner_class_types = {
+ "eu_bank_transfer": EuBankTransfer,
+ }
+
+ bank_transfer: Optional[BankTransfer]
+ """
+ Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ """
+ funding_type: Optional[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`.
+ """
+ _inner_class_types = {"bank_transfer": BankTransfer}
+
+ class UsBankAccount(StripeObject):
+ class FinancialConnections(StripeObject):
+ class Filters(StripeObject):
+ account_subcategories: List[
+ Literal["checking", "savings"]
+ ]
+ """
+ The account subcategories to use to filter for selectable accounts.
+ """
+
+ filters: Optional[Filters]
+ """
+ Provide filters for the linked accounts that the customer can select for the payment method.
+ """
+ permissions: List[
+ Literal[
+ "balances",
+ "ownership",
+ "payment_method",
+ "transactions",
+ ]
+ ]
+ """
+ The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included.
+ """
+ prefetch: List[
+ Literal["balances", "ownership", "transactions"]
+ ]
+ """
+ List of data features that you would like to retrieve upon account creation.
+ """
+ _inner_class_types = {"filters": Filters}
+
+ financial_connections: FinancialConnections
+ """
+ Additional fields for Financial Connections Session creation.
+ """
+ verification_method: Literal[
+ "automatic", "instant", "microdeposits"
+ ]
+ """
+ Verification method.
+ """
+ _inner_class_types = {
+ "financial_connections": FinancialConnections,
+ }
+
+ acss_debit: Optional[AcssDebit]
+ """
+ This sub-hash contains details about the Canadian pre-authorized debit payment method options.
+ """
+ bancontact: Optional[Bancontact]
+ """
+ This sub-hash contains details about the Bancontact payment method.
+ """
+ card: Optional[Card]
+ """
+ This sub-hash contains details about the Card payment method options.
+ """
+ customer_balance: Optional[CustomerBalance]
+ """
+ This sub-hash contains details about the Bank transfer payment method options.
+ """
+ konbini: Optional[Dict[str, "Any"]]
+ """
+ This sub-hash contains details about the Konbini payment method options.
+ """
+ sepa_debit: Optional[Dict[str, "Any"]]
+ """
+ This sub-hash contains details about the SEPA Direct Debit payment method options.
+ """
+ us_bank_account: Optional[UsBankAccount]
+ """
+ This sub-hash contains details about the ACH direct debit payment method options.
+ """
+ _inner_class_types = {
+ "acss_debit": AcssDebit,
+ "bancontact": Bancontact,
+ "card": Card,
+ "customer_balance": CustomerBalance,
+ "us_bank_account": UsBankAccount,
+ }
+
+ collection_method: Literal["automatic", "send_invoice"]
+ """
+ Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this
+ bill at the end of the period using the payment method attached to the payer profile. When sending an invoice,
+ Stripe will email your payer profile an invoice with payment instructions.
+ Defaults to automatic.
+ """
+ email_delivery: EmailDelivery
+ """
+ Email delivery settings.
+ """
+ payment_method_configuration: str
+ """
+ The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers.
+ """
+ payment_method_options: PaymentMethodOptions
+ """
+ Payment Method specific configuration stored on the object.
+ """
+ _inner_class_types = {
+ "email_delivery": EmailDelivery,
+ "payment_method_options": PaymentMethodOptions,
+ }
+
+ bill: Bill
+ """
+ Expanded bill settings data with actual configuration values.
+ """
+ collection: Collection
+ """
+ Expanded collection settings data with actual configuration values.
+ """
+ _inner_class_types = {"bill": Bill, "collection": Collection}
+
+ billing_cycle: BillingCycle
+ """
+ The billing cycle is the object that defines future billing cycle dates.
+ """
+ created: str
+ """
+ Timestamp of when the object was created.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ lookup_key: Optional[str]
+ """
+ A lookup key used to retrieve cadences dynamically from a static string. Maximum length of 200 characters.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Set of [key-value pairs](https://docs.stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
+ next_billing_date: Optional[str]
+ """
+ The date that the billing cadence will next bill. Null if the cadence is not active.
+ """
+ object: Literal["v2.billing.cadence"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ payer: Payer
+ """
+ The payer determines the entity financially responsible for the bill.
+ """
+ settings: Optional[Settings]
+ """
+ The settings associated with the cadence.
+ """
+ settings_data: Optional[SettingsData]
+ """
+ Settings data that contains expanded billing settings configuration with actual values.
+ """
+ status: Literal["active", "canceled"]
+ """
+ The current status of the cadence.
+ """
+ test_clock: Optional[str]
+ """
+ The ID of the Test Clock.
+ """
+ _inner_class_types = {
+ "billing_cycle": BillingCycle,
+ "payer": Payer,
+ "settings": Settings,
+ "settings_data": SettingsData,
+ }
diff --git a/stripe/v2/billing/_cadence_service.py b/stripe/v2/billing/_cadence_service.py
new file mode 100644
index 000000000..51b8d56e2
--- /dev/null
+++ b/stripe/v2/billing/_cadence_service.py
@@ -0,0 +1,222 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.billing._cadence_cancel_params import (
+ CadenceCancelParams,
+ )
+ from stripe.params.v2.billing._cadence_create_params import (
+ CadenceCreateParams,
+ )
+ from stripe.params.v2.billing._cadence_list_params import CadenceListParams
+ from stripe.params.v2.billing._cadence_retrieve_params import (
+ CadenceRetrieveParams,
+ )
+ from stripe.params.v2.billing._cadence_update_params import (
+ CadenceUpdateParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.billing._cadence import Cadence
+
+
+class CadenceService(StripeService):
+ def list(
+ self,
+ params: Optional["CadenceListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Cadence]":
+ """
+ List Billing Cadences.
+ """
+ return cast(
+ "ListObject[Cadence]",
+ self._request(
+ "get",
+ "/v2/billing/cadences",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["CadenceListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Cadence]":
+ """
+ List Billing Cadences.
+ """
+ return cast(
+ "ListObject[Cadence]",
+ await self._request_async(
+ "get",
+ "/v2/billing/cadences",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "CadenceCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Cadence":
+ """
+ Create a Billing Cadence object.
+ """
+ return cast(
+ "Cadence",
+ self._request(
+ "post",
+ "/v2/billing/cadences",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "CadenceCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Cadence":
+ """
+ Create a Billing Cadence object.
+ """
+ return cast(
+ "Cadence",
+ await self._request_async(
+ "post",
+ "/v2/billing/cadences",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["CadenceRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Cadence":
+ """
+ Retrieve a Billing Cadence object.
+ """
+ return cast(
+ "Cadence",
+ self._request(
+ "get",
+ "/v2/billing/cadences/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["CadenceRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Cadence":
+ """
+ Retrieve a Billing Cadence object.
+ """
+ return cast(
+ "Cadence",
+ await self._request_async(
+ "get",
+ "/v2/billing/cadences/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ id: str,
+ params: Optional["CadenceUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Cadence":
+ """
+ Update a Billing Cadence object.
+ """
+ return cast(
+ "Cadence",
+ self._request(
+ "post",
+ "/v2/billing/cadences/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ id: str,
+ params: Optional["CadenceUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Cadence":
+ """
+ Update a Billing Cadence object.
+ """
+ return cast(
+ "Cadence",
+ await self._request_async(
+ "post",
+ "/v2/billing/cadences/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def cancel(
+ self,
+ id: str,
+ params: Optional["CadenceCancelParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Cadence":
+ """
+ Cancel the Billing Cadence.
+ """
+ return cast(
+ "Cadence",
+ self._request(
+ "post",
+ "/v2/billing/cadences/{id}/cancel".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def cancel_async(
+ self,
+ id: str,
+ params: Optional["CadenceCancelParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Cadence":
+ """
+ Cancel the Billing Cadence.
+ """
+ return cast(
+ "Cadence",
+ await self._request_async(
+ "post",
+ "/v2/billing/cadences/{id}/cancel".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/billing/_collection_setting.py b/stripe/v2/billing/_collection_setting.py
new file mode 100644
index 000000000..dba839329
--- /dev/null
+++ b/stripe/v2/billing/_collection_setting.py
@@ -0,0 +1,271 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, List, Optional
+from typing_extensions import Literal, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from typing import Any
+
+
+class CollectionSetting(StripeObject):
+ """
+ Settings that configure and manage the behavior of collecting payments.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.billing.collection_setting"]] = (
+ "v2.billing.collection_setting"
+ )
+
+ class EmailDelivery(StripeObject):
+ class PaymentDue(StripeObject):
+ enabled: bool
+ """
+ If true an email for the invoice would be generated and sent out.
+ """
+ include_payment_link: bool
+ """
+ If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
+ """
+
+ payment_due: Optional[PaymentDue]
+ """
+ Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
+ """
+ _inner_class_types = {"payment_due": PaymentDue}
+
+ class PaymentMethodOptions(StripeObject):
+ class AcssDebit(StripeObject):
+ class MandateOptions(StripeObject):
+ transaction_type: Optional[Literal["business", "personal"]]
+ """
+ Transaction type of the mandate.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ """
+ Additional fields for Mandate creation.
+ """
+ verification_method: Optional[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Verification method.
+ """
+ _inner_class_types = {"mandate_options": MandateOptions}
+
+ class Bancontact(StripeObject):
+ preferred_language: Optional[Literal["de", "en", "fr", "nl"]]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+
+ class Card(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ The AmountType for the mandate. One of `fixed` or `maximum`.
+ """
+ description: Optional[str]
+ """
+ A description of the mandate that is meant to be displayed to the customer.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ """
+ Configuration options for setting up an eMandate for cards issued in India.
+ """
+ network: Optional[str]
+ """
+ Selected network to process the payment on. Depends on the available networks of the card.
+ """
+ request_three_d_secure: Optional[
+ Literal["any", "automatic", "challenge"]
+ ]
+ """
+ An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers
+ for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication).
+ However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
+ Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ """
+ _inner_class_types = {"mandate_options": MandateOptions}
+
+ class CustomerBalance(StripeObject):
+ class BankTransfer(StripeObject):
+ class EuBankTransfer(StripeObject):
+ country: Literal["BE", "DE", "ES", "FR", "IE", "NL"]
+ """
+ The desired country code of the bank account information.
+ """
+
+ eu_bank_transfer: Optional[EuBankTransfer]
+ """
+ Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`.
+ """
+ type: Optional[
+ Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ ]
+ """
+ The bank transfer type that can be used for funding.
+ """
+ _inner_class_types = {"eu_bank_transfer": EuBankTransfer}
+
+ bank_transfer: Optional[BankTransfer]
+ """
+ Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ """
+ funding_type: Optional[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`.
+ """
+ _inner_class_types = {"bank_transfer": BankTransfer}
+
+ class UsBankAccount(StripeObject):
+ class FinancialConnections(StripeObject):
+ class Filters(StripeObject):
+ account_subcategories: List[Literal["checking", "savings"]]
+ """
+ The account subcategories to use to filter for selectable accounts.
+ """
+
+ filters: Optional[Filters]
+ """
+ Provide filters for the linked accounts that the customer can select for the payment method.
+ """
+ permissions: List[
+ Literal[
+ "balances",
+ "ownership",
+ "payment_method",
+ "transactions",
+ ]
+ ]
+ """
+ The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included.
+ """
+ prefetch: List[
+ Literal["balances", "ownership", "transactions"]
+ ]
+ """
+ List of data features that you would like to retrieve upon account creation.
+ """
+ _inner_class_types = {"filters": Filters}
+
+ financial_connections: FinancialConnections
+ """
+ Additional fields for Financial Connections Session creation.
+ """
+ verification_method: Literal[
+ "automatic", "instant", "microdeposits"
+ ]
+ """
+ Verification method.
+ """
+ _inner_class_types = {
+ "financial_connections": FinancialConnections
+ }
+
+ acss_debit: Optional[AcssDebit]
+ """
+ This sub-hash contains details about the Canadian pre-authorized debit payment method options.
+ """
+ bancontact: Optional[Bancontact]
+ """
+ This sub-hash contains details about the Bancontact payment method.
+ """
+ card: Optional[Card]
+ """
+ This sub-hash contains details about the Card payment method options.
+ """
+ customer_balance: Optional[CustomerBalance]
+ """
+ This sub-hash contains details about the Bank transfer payment method options.
+ """
+ konbini: Optional[Dict[str, "Any"]]
+ """
+ This sub-hash contains details about the Konbini payment method options.
+ """
+ sepa_debit: Optional[Dict[str, "Any"]]
+ """
+ This sub-hash contains details about the SEPA Direct Debit payment method options.
+ """
+ us_bank_account: Optional[UsBankAccount]
+ """
+ This sub-hash contains details about the ACH direct debit payment method options.
+ """
+ _inner_class_types = {
+ "acss_debit": AcssDebit,
+ "bancontact": Bancontact,
+ "card": Card,
+ "customer_balance": CustomerBalance,
+ "us_bank_account": UsBankAccount,
+ }
+
+ collection_method: Optional[Literal["automatic", "send_invoice"]]
+ """
+ Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this
+ bill at the end of the period using the payment method attached to the payer profile. When sending an invoice,
+ Stripe will email your payer profile an invoice with payment instructions.
+ Defaults to automatic.
+ """
+ created: str
+ """
+ Timestamp of when the object was created.
+ """
+ display_name: Optional[str]
+ """
+ An optional field for adding a display name for the CollectionSetting object.
+ """
+ email_delivery: Optional[EmailDelivery]
+ """
+ Email delivery settings.
+ """
+ id: str
+ """
+ The ID of the CollectionSetting.
+ """
+ latest_version: str
+ """
+ The latest version of the current settings object. This will be
+ Updated every time an attribute of the settings is updated.
+ """
+ live_version: str
+ """
+ The current live version of the settings object. This can be different from
+ latest_version if settings are updated without setting live_version='latest'.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ lookup_key: Optional[str]
+ """
+ A lookup key used to retrieve settings dynamically from a static string.
+ This may be up to 200 characters.
+ """
+ object: Literal["v2.billing.collection_setting"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ payment_method_configuration: Optional[str]
+ """
+ The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers.
+ """
+ payment_method_options: Optional[PaymentMethodOptions]
+ """
+ Payment Method specific configuration stored on the object.
+ """
+ _inner_class_types = {
+ "email_delivery": EmailDelivery,
+ "payment_method_options": PaymentMethodOptions,
+ }
diff --git a/stripe/v2/billing/_collection_setting_service.py b/stripe/v2/billing/_collection_setting_service.py
new file mode 100644
index 000000000..96ff1556a
--- /dev/null
+++ b/stripe/v2/billing/_collection_setting_service.py
@@ -0,0 +1,221 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.billing._collection_setting_create_params import (
+ CollectionSettingCreateParams,
+ )
+ from stripe.params.v2.billing._collection_setting_list_params import (
+ CollectionSettingListParams,
+ )
+ from stripe.params.v2.billing._collection_setting_retrieve_params import (
+ CollectionSettingRetrieveParams,
+ )
+ from stripe.params.v2.billing._collection_setting_update_params import (
+ CollectionSettingUpdateParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.billing._collection_setting import CollectionSetting
+ from stripe.v2.billing.collection_settings._version_service import (
+ VersionService,
+ )
+
+_subservices = {
+ "versions": [
+ "stripe.v2.billing.collection_settings._version_service",
+ "VersionService",
+ ],
+}
+
+
+class CollectionSettingService(StripeService):
+ versions: "VersionService"
+
+ def __init__(self, requestor):
+ super().__init__(requestor)
+
+ def __getattr__(self, name):
+ try:
+ import_from, service = _subservices[name]
+ service_class = getattr(
+ import_module(import_from),
+ service,
+ )
+ setattr(
+ self,
+ name,
+ service_class(self._requestor),
+ )
+ return getattr(self, name)
+ except KeyError:
+ raise AttributeError()
+
+ def list(
+ self,
+ params: Optional["CollectionSettingListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[CollectionSetting]":
+ """
+ List all CollectionSetting objects.
+ """
+ return cast(
+ "ListObject[CollectionSetting]",
+ self._request(
+ "get",
+ "/v2/billing/collection_settings",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["CollectionSettingListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[CollectionSetting]":
+ """
+ List all CollectionSetting objects.
+ """
+ return cast(
+ "ListObject[CollectionSetting]",
+ await self._request_async(
+ "get",
+ "/v2/billing/collection_settings",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: Optional["CollectionSettingCreateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "CollectionSetting":
+ """
+ Create a CollectionSetting object.
+ """
+ return cast(
+ "CollectionSetting",
+ self._request(
+ "post",
+ "/v2/billing/collection_settings",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: Optional["CollectionSettingCreateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "CollectionSetting":
+ """
+ Create a CollectionSetting object.
+ """
+ return cast(
+ "CollectionSetting",
+ await self._request_async(
+ "post",
+ "/v2/billing/collection_settings",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["CollectionSettingRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "CollectionSetting":
+ """
+ Retrieve a CollectionSetting by ID.
+ """
+ return cast(
+ "CollectionSetting",
+ self._request(
+ "get",
+ "/v2/billing/collection_settings/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["CollectionSettingRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "CollectionSetting":
+ """
+ Retrieve a CollectionSetting by ID.
+ """
+ return cast(
+ "CollectionSetting",
+ await self._request_async(
+ "get",
+ "/v2/billing/collection_settings/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ id: str,
+ params: Optional["CollectionSettingUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "CollectionSetting":
+ """
+ Update fields on an existing CollectionSetting.
+ """
+ return cast(
+ "CollectionSetting",
+ self._request(
+ "post",
+ "/v2/billing/collection_settings/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ id: str,
+ params: Optional["CollectionSettingUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "CollectionSetting":
+ """
+ Update fields on an existing CollectionSetting.
+ """
+ return cast(
+ "CollectionSetting",
+ await self._request_async(
+ "post",
+ "/v2/billing/collection_settings/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/billing/_collection_setting_version.py b/stripe/v2/billing/_collection_setting_version.py
new file mode 100644
index 000000000..0827e5e2a
--- /dev/null
+++ b/stripe/v2/billing/_collection_setting_version.py
@@ -0,0 +1,248 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, List, Optional
+from typing_extensions import Literal, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from typing import Any
+
+
+class CollectionSettingVersion(StripeObject):
+ OBJECT_NAME: ClassVar[Literal["v2.billing.collection_setting_version"]] = (
+ "v2.billing.collection_setting_version"
+ )
+
+ class EmailDelivery(StripeObject):
+ class PaymentDue(StripeObject):
+ enabled: bool
+ """
+ If true an email for the invoice would be generated and sent out.
+ """
+ include_payment_link: bool
+ """
+ If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
+ """
+
+ payment_due: Optional[PaymentDue]
+ """
+ Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
+ """
+ _inner_class_types = {"payment_due": PaymentDue}
+
+ class PaymentMethodOptions(StripeObject):
+ class AcssDebit(StripeObject):
+ class MandateOptions(StripeObject):
+ transaction_type: Optional[Literal["business", "personal"]]
+ """
+ Transaction type of the mandate.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ """
+ Additional fields for Mandate creation.
+ """
+ verification_method: Optional[
+ Literal["automatic", "instant", "microdeposits"]
+ ]
+ """
+ Verification method.
+ """
+ _inner_class_types = {"mandate_options": MandateOptions}
+
+ class Bancontact(StripeObject):
+ preferred_language: Optional[Literal["de", "en", "fr", "nl"]]
+ """
+ Preferred language of the Bancontact authorization page that the customer is redirected to.
+ """
+
+ class Card(StripeObject):
+ class MandateOptions(StripeObject):
+ amount: Optional[int]
+ """
+ Amount to be charged for future payments.
+ """
+ amount_type: Optional[Literal["fixed", "maximum"]]
+ """
+ The AmountType for the mandate. One of `fixed` or `maximum`.
+ """
+ description: Optional[str]
+ """
+ A description of the mandate that is meant to be displayed to the customer.
+ """
+
+ mandate_options: Optional[MandateOptions]
+ """
+ Configuration options for setting up an eMandate for cards issued in India.
+ """
+ network: Optional[str]
+ """
+ Selected network to process the payment on. Depends on the available networks of the card.
+ """
+ request_three_d_secure: Optional[
+ Literal["any", "automatic", "challenge"]
+ ]
+ """
+ An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers
+ for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication).
+ However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option.
+ Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
+ """
+ _inner_class_types = {"mandate_options": MandateOptions}
+
+ class CustomerBalance(StripeObject):
+ class BankTransfer(StripeObject):
+ class EuBankTransfer(StripeObject):
+ country: Literal["BE", "DE", "ES", "FR", "IE", "NL"]
+ """
+ The desired country code of the bank account information.
+ """
+
+ eu_bank_transfer: Optional[EuBankTransfer]
+ """
+ Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`.
+ """
+ type: Optional[
+ Literal[
+ "eu_bank_transfer",
+ "gb_bank_transfer",
+ "jp_bank_transfer",
+ "mx_bank_transfer",
+ "us_bank_transfer",
+ ]
+ ]
+ """
+ The bank transfer type that can be used for funding.
+ """
+ _inner_class_types = {"eu_bank_transfer": EuBankTransfer}
+
+ bank_transfer: Optional[BankTransfer]
+ """
+ Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
+ """
+ funding_type: Optional[Literal["bank_transfer"]]
+ """
+ The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`.
+ """
+ _inner_class_types = {"bank_transfer": BankTransfer}
+
+ class UsBankAccount(StripeObject):
+ class FinancialConnections(StripeObject):
+ class Filters(StripeObject):
+ account_subcategories: List[Literal["checking", "savings"]]
+ """
+ The account subcategories to use to filter for selectable accounts.
+ """
+
+ filters: Optional[Filters]
+ """
+ Provide filters for the linked accounts that the customer can select for the payment method.
+ """
+ permissions: List[
+ Literal[
+ "balances",
+ "ownership",
+ "payment_method",
+ "transactions",
+ ]
+ ]
+ """
+ The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included.
+ """
+ prefetch: List[
+ Literal["balances", "ownership", "transactions"]
+ ]
+ """
+ List of data features that you would like to retrieve upon account creation.
+ """
+ _inner_class_types = {"filters": Filters}
+
+ financial_connections: FinancialConnections
+ """
+ Additional fields for Financial Connections Session creation.
+ """
+ verification_method: Literal[
+ "automatic", "instant", "microdeposits"
+ ]
+ """
+ Verification method.
+ """
+ _inner_class_types = {
+ "financial_connections": FinancialConnections
+ }
+
+ acss_debit: Optional[AcssDebit]
+ """
+ This sub-hash contains details about the Canadian pre-authorized debit payment method options.
+ """
+ bancontact: Optional[Bancontact]
+ """
+ This sub-hash contains details about the Bancontact payment method.
+ """
+ card: Optional[Card]
+ """
+ This sub-hash contains details about the Card payment method options.
+ """
+ customer_balance: Optional[CustomerBalance]
+ """
+ This sub-hash contains details about the Bank transfer payment method options.
+ """
+ konbini: Optional[Dict[str, "Any"]]
+ """
+ This sub-hash contains details about the Konbini payment method options.
+ """
+ sepa_debit: Optional[Dict[str, "Any"]]
+ """
+ This sub-hash contains details about the SEPA Direct Debit payment method options.
+ """
+ us_bank_account: Optional[UsBankAccount]
+ """
+ This sub-hash contains details about the ACH direct debit payment method options.
+ """
+ _inner_class_types = {
+ "acss_debit": AcssDebit,
+ "bancontact": Bancontact,
+ "card": Card,
+ "customer_balance": CustomerBalance,
+ "us_bank_account": UsBankAccount,
+ }
+
+ collection_method: Optional[Literal["automatic", "send_invoice"]]
+ """
+ Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this
+ bill at the end of the period using the payment method attached to the payer profile. When sending an invoice,
+ Stripe will email your payer profile an invoice with payment instructions.
+ Defaults to automatic.
+ """
+ created: str
+ """
+ Timestamp of when the object was created.
+ """
+ email_delivery: Optional[EmailDelivery]
+ """
+ Email delivery settings.
+ """
+ id: str
+ """
+ The ID of the CollectionSettingVersion object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.billing.collection_setting_version"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ payment_method_configuration: Optional[str]
+ """
+ The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers.
+ """
+ payment_method_options: Optional[PaymentMethodOptions]
+ """
+ Payment Method specific configuration stored on the object.
+ """
+ _inner_class_types = {
+ "email_delivery": EmailDelivery,
+ "payment_method_options": PaymentMethodOptions,
+ }
diff --git a/stripe/v2/billing/_profile.py b/stripe/v2/billing/_profile.py
new file mode 100644
index 000000000..372070130
--- /dev/null
+++ b/stripe/v2/billing/_profile.py
@@ -0,0 +1,51 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, Optional
+from typing_extensions import Literal
+
+
+class Profile(StripeObject):
+ OBJECT_NAME: ClassVar[Literal["v2.billing.profile"]] = "v2.billing.profile"
+ created: str
+ """
+ Timestamp of when the object was created.
+ """
+ customer: Optional[str]
+ """
+ The ID of the customer object.
+ """
+ default_payment_method: Optional[str]
+ """
+ The ID of the payment method object.
+ """
+ display_name: Optional[str]
+ """
+ A customer-facing name for the billing profile.
+ Maximum length of 250 characters.
+ """
+ id: str
+ """
+ The ID of the billing profile object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ lookup_key: Optional[str]
+ """
+ An internal key you can use to search for a particular billing profile.
+ Maximum length of 200 characters.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ 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.
+ """
+ object: Literal["v2.billing.profile"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ status: Literal["active", "inactive"]
+ """
+ The current status of the billing profile.
+ """
diff --git a/stripe/v2/billing/_profile_service.py b/stripe/v2/billing/_profile_service.py
new file mode 100644
index 000000000..bb75385f5
--- /dev/null
+++ b/stripe/v2/billing/_profile_service.py
@@ -0,0 +1,179 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.billing._profile_create_params import (
+ ProfileCreateParams,
+ )
+ from stripe.params.v2.billing._profile_list_params import ProfileListParams
+ from stripe.params.v2.billing._profile_retrieve_params import (
+ ProfileRetrieveParams,
+ )
+ from stripe.params.v2.billing._profile_update_params import (
+ ProfileUpdateParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.billing._profile import Profile
+
+
+class ProfileService(StripeService):
+ def list(
+ self,
+ params: "ProfileListParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Profile]":
+ """
+ List Billing Profiles.
+ """
+ return cast(
+ "ListObject[Profile]",
+ self._request(
+ "get",
+ "/v2/billing/profiles",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: "ProfileListParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Profile]":
+ """
+ List Billing Profiles.
+ """
+ return cast(
+ "ListObject[Profile]",
+ await self._request_async(
+ "get",
+ "/v2/billing/profiles",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "ProfileCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Profile":
+ """
+ Create a BillingProfile object.
+ """
+ return cast(
+ "Profile",
+ self._request(
+ "post",
+ "/v2/billing/profiles",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "ProfileCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "Profile":
+ """
+ Create a BillingProfile object.
+ """
+ return cast(
+ "Profile",
+ await self._request_async(
+ "post",
+ "/v2/billing/profiles",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["ProfileRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Profile":
+ """
+ Retrieve a BillingProfile object.
+ """
+ return cast(
+ "Profile",
+ self._request(
+ "get",
+ "/v2/billing/profiles/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["ProfileRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Profile":
+ """
+ Retrieve a BillingProfile object.
+ """
+ return cast(
+ "Profile",
+ await self._request_async(
+ "get",
+ "/v2/billing/profiles/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ id: str,
+ params: Optional["ProfileUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Profile":
+ """
+ Update a BillingProfile object.
+ """
+ return cast(
+ "Profile",
+ self._request(
+ "post",
+ "/v2/billing/profiles/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ id: str,
+ params: Optional["ProfileUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Profile":
+ """
+ Update a BillingProfile object.
+ """
+ return cast(
+ "Profile",
+ await self._request_async(
+ "post",
+ "/v2/billing/profiles/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/billing/bill_settings/__init__.py b/stripe/v2/billing/bill_settings/__init__.py
new file mode 100644
index 000000000..24d224dd0
--- /dev/null
+++ b/stripe/v2/billing/bill_settings/__init__.py
@@ -0,0 +1,32 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.v2.billing.bill_settings._version_service import (
+ VersionService as VersionService,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "VersionService": (
+ "stripe.v2.billing.bill_settings._version_service",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/v2/billing/bill_settings/_version_service.py b/stripe/v2/billing/bill_settings/_version_service.py
new file mode 100644
index 000000000..7b3cf7c99
--- /dev/null
+++ b/stripe/v2/billing/bill_settings/_version_service.py
@@ -0,0 +1,111 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.billing.bill_settings._version_list_params import (
+ VersionListParams,
+ )
+ from stripe.params.v2.billing.bill_settings._version_retrieve_params import (
+ VersionRetrieveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.billing._bill_setting_version import BillSettingVersion
+
+
+class VersionService(StripeService):
+ def list(
+ self,
+ bill_setting_id: str,
+ params: Optional["VersionListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[BillSettingVersion]":
+ """
+ List all BillSettingVersions by BillSetting ID.
+ """
+ return cast(
+ "ListObject[BillSettingVersion]",
+ self._request(
+ "get",
+ "/v2/billing/bill_settings/{bill_setting_id}/versions".format(
+ bill_setting_id=sanitize_id(bill_setting_id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ bill_setting_id: str,
+ params: Optional["VersionListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[BillSettingVersion]":
+ """
+ List all BillSettingVersions by BillSetting ID.
+ """
+ return cast(
+ "ListObject[BillSettingVersion]",
+ await self._request_async(
+ "get",
+ "/v2/billing/bill_settings/{bill_setting_id}/versions".format(
+ bill_setting_id=sanitize_id(bill_setting_id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ bill_setting_id: str,
+ id: str,
+ params: Optional["VersionRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "BillSettingVersion":
+ """
+ Retrieve a BillSettingVersion by ID.
+ """
+ return cast(
+ "BillSettingVersion",
+ self._request(
+ "get",
+ "/v2/billing/bill_settings/{bill_setting_id}/versions/{id}".format(
+ bill_setting_id=sanitize_id(bill_setting_id),
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ bill_setting_id: str,
+ id: str,
+ params: Optional["VersionRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "BillSettingVersion":
+ """
+ Retrieve a BillSettingVersion by ID.
+ """
+ return cast(
+ "BillSettingVersion",
+ await self._request_async(
+ "get",
+ "/v2/billing/bill_settings/{bill_setting_id}/versions/{id}".format(
+ bill_setting_id=sanitize_id(bill_setting_id),
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/billing/collection_settings/__init__.py b/stripe/v2/billing/collection_settings/__init__.py
new file mode 100644
index 000000000..2584978d6
--- /dev/null
+++ b/stripe/v2/billing/collection_settings/__init__.py
@@ -0,0 +1,32 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.v2.billing.collection_settings._version_service import (
+ VersionService as VersionService,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "VersionService": (
+ "stripe.v2.billing.collection_settings._version_service",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/v2/billing/collection_settings/_version_service.py b/stripe/v2/billing/collection_settings/_version_service.py
new file mode 100644
index 000000000..c18f96932
--- /dev/null
+++ b/stripe/v2/billing/collection_settings/_version_service.py
@@ -0,0 +1,113 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.billing.collection_settings._version_list_params import (
+ VersionListParams,
+ )
+ from stripe.params.v2.billing.collection_settings._version_retrieve_params import (
+ VersionRetrieveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.billing._collection_setting_version import (
+ CollectionSettingVersion,
+ )
+
+
+class VersionService(StripeService):
+ def list(
+ self,
+ collection_setting_id: str,
+ params: Optional["VersionListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[CollectionSettingVersion]":
+ """
+ List all CollectionSettingVersions by CollectionSetting ID.
+ """
+ return cast(
+ "ListObject[CollectionSettingVersion]",
+ self._request(
+ "get",
+ "/v2/billing/collection_settings/{collection_setting_id}/versions".format(
+ collection_setting_id=sanitize_id(collection_setting_id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ collection_setting_id: str,
+ params: Optional["VersionListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[CollectionSettingVersion]":
+ """
+ List all CollectionSettingVersions by CollectionSetting ID.
+ """
+ return cast(
+ "ListObject[CollectionSettingVersion]",
+ await self._request_async(
+ "get",
+ "/v2/billing/collection_settings/{collection_setting_id}/versions".format(
+ collection_setting_id=sanitize_id(collection_setting_id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ collection_setting_id: str,
+ id: str,
+ params: Optional["VersionRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "CollectionSettingVersion":
+ """
+ Retrieve a CollectionSetting Version by ID.
+ """
+ return cast(
+ "CollectionSettingVersion",
+ self._request(
+ "get",
+ "/v2/billing/collection_settings/{collection_setting_id}/versions/{id}".format(
+ collection_setting_id=sanitize_id(collection_setting_id),
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ collection_setting_id: str,
+ id: str,
+ params: Optional["VersionRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "CollectionSettingVersion":
+ """
+ Retrieve a CollectionSetting Version by ID.
+ """
+ return cast(
+ "CollectionSettingVersion",
+ await self._request_async(
+ "get",
+ "/v2/billing/collection_settings/{collection_setting_id}/versions/{id}".format(
+ collection_setting_id=sanitize_id(collection_setting_id),
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/core/__init__.py b/stripe/v2/core/__init__.py
index 8ff2aeb1e..3ca3fb1cf 100644
--- a/stripe/v2/core/__init__.py
+++ b/stripe/v2/core/__init__.py
@@ -12,7 +12,7 @@
from importlib import import_module
if TYPE_CHECKING:
- from stripe.v2.core import accounts as accounts
+ from stripe.v2.core import accounts as accounts, vault as vault
from stripe.v2.core._account import Account as Account
from stripe.v2.core._account_link import AccountLink as AccountLink
from stripe.v2.core._account_link_service import (
@@ -37,10 +37,12 @@
EventDestinationService as EventDestinationService,
)
from stripe.v2.core._event_service import EventService as EventService
+ from stripe.v2.core._vault_service import VaultService as VaultService
# name -> (import_target, is_submodule)
_import_map = {
"accounts": ("stripe.v2.core.accounts", True),
+ "vault": ("stripe.v2.core.vault", True),
"Account": ("stripe.v2.core._account", False),
"AccountLink": ("stripe.v2.core._account_link", False),
"AccountLinkService": ("stripe.v2.core._account_link_service", False),
@@ -56,6 +58,7 @@
False,
),
"EventService": ("stripe.v2.core._event_service", False),
+ "VaultService": ("stripe.v2.core._vault_service", False),
}
if not TYPE_CHECKING:
diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py
index 868740f3d..0dacbe7fb 100644
--- a/stripe/v2/core/_account.py
+++ b/stripe/v2/core/_account.py
@@ -2178,6 +2178,120 @@ class Address(StripeObject):
class Recipient(StripeObject):
class Capabilities(StripeObject):
+ class BankAccounts(StripeObject):
+ class Local(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe",
+ "no_resolution",
+ "provide_info",
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ class Wire(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe",
+ "no_resolution",
+ "provide_info",
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ local: Optional[Local]
+ """
+ Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
+ """
+ wire: Optional[Wire]
+ """
+ Enables this Account to receive OutboundPayments to linked bank accounts over wire.
+ """
+ _inner_class_types = {"local": Local, "wire": Wire}
+
+ class Cards(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe", "no_resolution", "provide_info"
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
class StripeBalance(StripeObject):
class Payouts(StripeObject):
class StatusDetail(StripeObject):
@@ -2214,7 +2328,340 @@ class StatusDetail(StripeObject):
"""
_inner_class_types = {"status_details": StatusDetail}
- class StripeTransfers(StripeObject):
+ class StripeTransfers(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe",
+ "no_resolution",
+ "provide_info",
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ payouts: Optional[Payouts]
+ """
+ Enables this Account to complete payouts from their Stripe Balance (/v1/balance).
+ """
+ stripe_transfers: Optional[StripeTransfers]
+ """
+ Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance).
+ """
+ _inner_class_types = {
+ "payouts": Payouts,
+ "stripe_transfers": StripeTransfers,
+ }
+
+ bank_accounts: Optional[BankAccounts]
+ """
+ Capabilities that enable OutboundPayments to a bank account linked to this Account.
+ """
+ cards: Optional[Cards]
+ """
+ Enables this Account to receive OutboundPayments to a linked debit card.
+ """
+ stripe_balance: Optional[StripeBalance]
+ """
+ Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
+ """
+ _inner_class_types = {
+ "bank_accounts": BankAccounts,
+ "cards": Cards,
+ "stripe_balance": StripeBalance,
+ }
+
+ class DefaultOutboundDestination(StripeObject):
+ id: str
+ """
+ The payout method ID of the default outbound destination.
+ """
+ type: Literal[
+ "al_bank_account",
+ "am_bank_account",
+ "at_bank_account",
+ "au_bank_account",
+ "ba_bank_account",
+ "be_bank_account",
+ "bg_bank_account",
+ "bj_bank_account",
+ "bn_bank_account",
+ "bs_bank_account",
+ "bw_bank_account",
+ "card",
+ "ca_bank_account",
+ "ch_bank_account",
+ "ci_bank_account",
+ "crypto_wallet",
+ "cy_bank_account",
+ "cz_bank_account",
+ "de_bank_account",
+ "dk_bank_account",
+ "dz_bank_account",
+ "ec_bank_account",
+ "ee_bank_account",
+ "es_bank_account",
+ "et_bank_account",
+ "fi_bank_account",
+ "fr_bank_account",
+ "gb_bank_account",
+ "gr_bank_account",
+ "gy_bank_account",
+ "hr_bank_account",
+ "hu_bank_account",
+ "id_bank_account",
+ "ie_bank_account",
+ "il_bank_account",
+ "in_bank_account",
+ "is_bank_account",
+ "it_bank_account",
+ "jm_bank_account",
+ "jo_bank_account",
+ "ke_bank_account",
+ "kw_bank_account",
+ "li_bank_account",
+ "lk_bank_account",
+ "lt_bank_account",
+ "lu_bank_account",
+ "lv_bank_account",
+ "ma_bank_account",
+ "mn_bank_account",
+ "mt_bank_account",
+ "mu_bank_account",
+ "mx_bank_account",
+ "na_bank_account",
+ "nl_bank_account",
+ "no_bank_account",
+ "nz_bank_account",
+ "om_bank_account",
+ "pa_bank_account",
+ "ph_bank_account",
+ "pl_bank_account",
+ "pt_bank_account",
+ "ro_bank_account",
+ "rs_bank_account",
+ "se_bank_account",
+ "sg_bank_account",
+ "si_bank_account",
+ "sk_bank_account",
+ "sn_bank_account",
+ "sv_bank_account",
+ "tn_bank_account",
+ "tr_bank_account",
+ "tz_bank_account",
+ "us_bank_account",
+ "za_bank_account",
+ ]
+ """
+ Closed Enum. The payout method type of the default outbound destination.
+ """
+
+ applied: bool
+ """
+ Indicates whether the recipient configuration is active. You can deactivate or reactivate the recipient configuration by updating this property. Deactivating the configuration by setting this value to false unrequest all capabilities within the configuration. It will not delete any of the configuration's other properties.
+ """
+ capabilities: Optional[Capabilities]
+ """
+ Capabilities that have been requested on the Recipient Configuration.
+ """
+ default_outbound_destination: Optional[DefaultOutboundDestination]
+ """
+ The payout method to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through the dashboard or APIs.
+ """
+ _inner_class_types = {
+ "capabilities": Capabilities,
+ "default_outbound_destination": DefaultOutboundDestination,
+ }
+
+ class Storer(StripeObject):
+ class Capabilities(StripeObject):
+ class FinancialAddresses(StripeObject):
+ class BankAccounts(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe",
+ "no_resolution",
+ "provide_info",
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ bank_accounts: Optional[BankAccounts]
+ """
+ Can provision a bank-account like financial address (VBAN) to credit/debit a FinancialAccount.
+ """
+ _inner_class_types = {"bank_accounts": BankAccounts}
+
+ class HoldsCurrencies(StripeObject):
+ class Eur(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe",
+ "no_resolution",
+ "provide_info",
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ class Gbp(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe",
+ "no_resolution",
+ "provide_info",
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ class Usd(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe",
+ "no_resolution",
+ "provide_info",
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ eur: Optional[Eur]
+ """
+ Can hold storage-type funds on Stripe in EUR.
+ """
+ gbp: Optional[Gbp]
+ """
+ Can hold storage-type funds on Stripe in GBP.
+ """
+ usd: Optional[Usd]
+ """
+ Can hold storage-type funds on Stripe in USD.
+ """
+ _inner_class_types = {"eur": Eur, "gbp": Gbp, "usd": Usd}
+
+ class InboundTransfers(StripeObject):
+ class BankAccounts(StripeObject):
class StatusDetail(StripeObject):
code: Literal[
"determining_status",
@@ -2249,32 +2696,255 @@ class StatusDetail(StripeObject):
"""
_inner_class_types = {"status_details": StatusDetail}
- payouts: Optional[Payouts]
+ bank_accounts: Optional[BankAccounts]
"""
- Enables this Account to complete payouts from their Stripe Balance (/v1/balance).
+ Can pull funds into a FinancialAccount from an external bank account owned by the user.
"""
- stripe_transfers: Optional[StripeTransfers]
+ _inner_class_types = {"bank_accounts": BankAccounts}
+
+ class OutboundPayments(StripeObject):
+ class BankAccounts(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe",
+ "no_resolution",
+ "provide_info",
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ class Cards(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe",
+ "no_resolution",
+ "provide_info",
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ class FinancialAccounts(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe",
+ "no_resolution",
+ "provide_info",
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ bank_accounts: Optional[BankAccounts]
"""
- Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance).
+ Can send funds from a FinancialAccount to a bank account owned by a different entity.
+ """
+ cards: Optional[Cards]
+ """
+ Can send funds from a FinancialAccount to a debit card owned by a different entity.
+ """
+ financial_accounts: Optional[FinancialAccounts]
+ """
+ Can send funds from a FinancialAccount to a FinancialAccount owned by a different entity.
"""
_inner_class_types = {
- "payouts": Payouts,
- "stripe_transfers": StripeTransfers,
+ "bank_accounts": BankAccounts,
+ "cards": Cards,
+ "financial_accounts": FinancialAccounts,
}
- stripe_balance: Optional[StripeBalance]
+ class OutboundTransfers(StripeObject):
+ class BankAccounts(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe",
+ "no_resolution",
+ "provide_info",
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ class FinancialAccounts(StripeObject):
+ class StatusDetail(StripeObject):
+ code: Literal[
+ "determining_status",
+ "requirements_past_due",
+ "requirements_pending_verification",
+ "restricted_other",
+ "unsupported_business",
+ "unsupported_country",
+ "unsupported_entity_type",
+ ]
+ """
+ Machine-readable code explaining the reason for the Capability to be in its current status.
+ """
+ resolution: Literal[
+ "contact_stripe",
+ "no_resolution",
+ "provide_info",
+ ]
+ """
+ Machine-readable code explaining how to make the Capability active.
+ """
+
+ status: Literal[
+ "active", "pending", "restricted", "unsupported"
+ ]
+ """
+ The status of the Capability.
+ """
+ status_details: List[StatusDetail]
+ """
+ Additional details about the capability's status. This value is empty when `status` is `active`.
+ """
+ _inner_class_types = {"status_details": StatusDetail}
+
+ bank_accounts: Optional[BankAccounts]
+ """
+ Can send funds from a FinancialAccount to a bank account belonging to the same user.
+ """
+ financial_accounts: Optional[FinancialAccounts]
+ """
+ Can send funds from a FinancialAccount to another FinancialAccount belonging to the same user.
+ """
+ _inner_class_types = {
+ "bank_accounts": BankAccounts,
+ "financial_accounts": FinancialAccounts,
+ }
+
+ financial_addresses: Optional[FinancialAddresses]
"""
- Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
+ Can provision a financial address to credit/debit a FinancialAccount.
"""
- _inner_class_types = {"stripe_balance": StripeBalance}
+ holds_currencies: Optional[HoldsCurrencies]
+ """
+ Can hold storage-type funds on Stripe.
+ """
+ inbound_transfers: Optional[InboundTransfers]
+ """
+ Hash containing capabilities related to InboundTransfers.
+ """
+ outbound_payments: Optional[OutboundPayments]
+ """
+ Hash containing capabilities related to [OutboundPayments](https://docs.stripe.com/api/treasury/outbound_payments?api-version=preview).
+ """
+ outbound_transfers: Optional[OutboundTransfers]
+ """
+ Hash containing capabilities related to [OutboundTransfers](https://docs.stripe.com/api/treasury/outbound_transfers?api-version=preview).
+ """
+ _inner_class_types = {
+ "financial_addresses": FinancialAddresses,
+ "holds_currencies": HoldsCurrencies,
+ "inbound_transfers": InboundTransfers,
+ "outbound_payments": OutboundPayments,
+ "outbound_transfers": OutboundTransfers,
+ }
applied: bool
"""
- Indicates whether the recipient configuration is active. You can deactivate or reactivate the recipient configuration by updating this property. Deactivating the configuration by setting this value to false unrequest all capabilities within the configuration. It will not delete any of the configuration's other properties.
+ Indicates whether the storer configuration is active. You cannot deactivate (or reactivate) the storer configuration by updating this property.
"""
capabilities: Optional[Capabilities]
"""
- Capabilities that have been requested on the Recipient Configuration.
+ Capabilities that have been requested on the Storer Configuration.
"""
_inner_class_types = {"capabilities": Capabilities}
@@ -2290,10 +2960,15 @@ class StatusDetail(StripeObject):
"""
The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set.
"""
+ storer: Optional[Storer]
+ """
+ The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
+ """
_inner_class_types = {
"customer": Customer,
"merchant": Merchant,
"recipient": Recipient,
+ "storer": Storer,
}
class Defaults(StripeObject):
@@ -2581,10 +3256,15 @@ class Deadline(StripeObject):
"cartes_bancaires_payments",
"cashapp_payments",
"eps_payments",
+ "financial_addresses.bank_accounts",
"fpx_payments",
"gb_bank_transfer_payments",
"grabpay_payments",
+ "holds_currencies.eur",
+ "holds_currencies.gbp",
+ "holds_currencies.usd",
"ideal_payments",
+ "inbound_transfers.financial_accounts",
"jcb_payments",
"jp_bank_transfer_payments",
"kakao_pay_payments",
@@ -2596,6 +3276,11 @@ class Deadline(StripeObject):
"multibanco_payments",
"mx_bank_transfer_payments",
"naver_pay_payments",
+ "outbound_payments.bank_accounts",
+ "outbound_payments.cards",
+ "outbound_payments.financial_accounts",
+ "outbound_transfers.bank_accounts",
+ "outbound_transfers.financial_accounts",
"oxxo_payments",
"p24_payments",
"payco_payments",
@@ -2616,7 +3301,9 @@ class Deadline(StripeObject):
"""
The name of the Capability which will be restricted.
"""
- configuration: Literal["customer", "merchant", "recipient"]
+ configuration: Literal[
+ "customer", "merchant", "recipient", "storer"
+ ]
"""
The configuration which specifies the Capability which will be restricted.
"""
@@ -2810,11 +3497,29 @@ class Account(StripeObject):
The user agent of the browser from which the Account's representative accepted the terms of service.
"""
+ class Storer(StripeObject):
+ date: Optional[str]
+ """
+ The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ ip: Optional[str]
+ """
+ The IP address from which the Account's representative accepted the terms of service.
+ """
+ user_agent: Optional[str]
+ """
+ The user agent of the browser from which the Account's representative accepted the terms of service.
+ """
+
account: Optional[Account]
"""
Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
"""
- _inner_class_types = {"account": Account}
+ storer: Optional[Storer]
+ """
+ Details on the Account's acceptance of Treasury-specific terms of service.
+ """
+ _inner_class_types = {"account": Account, "storer": Storer}
directorship_declaration: Optional[DirectorshipDeclaration]
"""
@@ -4100,10 +4805,15 @@ class Deadline(StripeObject):
"cartes_bancaires_payments",
"cashapp_payments",
"eps_payments",
+ "financial_addresses.bank_accounts",
"fpx_payments",
"gb_bank_transfer_payments",
"grabpay_payments",
+ "holds_currencies.eur",
+ "holds_currencies.gbp",
+ "holds_currencies.usd",
"ideal_payments",
+ "inbound_transfers.financial_accounts",
"jcb_payments",
"jp_bank_transfer_payments",
"kakao_pay_payments",
@@ -4115,6 +4825,11 @@ class Deadline(StripeObject):
"multibanco_payments",
"mx_bank_transfer_payments",
"naver_pay_payments",
+ "outbound_payments.bank_accounts",
+ "outbound_payments.cards",
+ "outbound_payments.financial_accounts",
+ "outbound_transfers.bank_accounts",
+ "outbound_transfers.financial_accounts",
"oxxo_payments",
"p24_payments",
"payco_payments",
@@ -4135,7 +4850,9 @@ class Deadline(StripeObject):
"""
The name of the Capability which will be restricted.
"""
- configuration: Literal["customer", "merchant", "recipient"]
+ configuration: Literal[
+ "customer", "merchant", "recipient", "storer"
+ ]
"""
The configuration which specifies the Capability which will be restricted.
"""
@@ -4243,7 +4960,9 @@ class MinimumDeadline(StripeObject):
"""
_inner_class_types = {"entries": Entry, "summary": Summary}
- applied_configurations: List[Literal["customer", "merchant", "recipient"]]
+ applied_configurations: List[
+ Literal["customer", "merchant", "recipient", "storer"]
+ ]
"""
The configurations that have been applied to this account.
"""
diff --git a/stripe/v2/core/_account_link.py b/stripe/v2/core/_account_link.py
index 65f715e0e..c0d2a2e0e 100644
--- a/stripe/v2/core/_account_link.py
+++ b/stripe/v2/core/_account_link.py
@@ -30,7 +30,9 @@ class CollectionOptions(StripeObject):
"""
Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow.
"""
- configurations: List[Literal["customer", "merchant", "recipient"]]
+ configurations: List[
+ Literal["customer", "merchant", "recipient", "storer"]
+ ]
"""
Open Enum. A v2/core/account can be configured to enable certain functionality. The configuration param targets the v2/core/account_link to collect information for the specified v2/core/account configuration/s.
"""
@@ -59,7 +61,9 @@ class CollectionOptions(StripeObject):
"""
Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow.
"""
- configurations: List[Literal["customer", "merchant", "recipient"]]
+ configurations: List[
+ Literal["customer", "merchant", "recipient", "storer"]
+ ]
"""
Open Enum. A v2/account can be configured to enable certain functionality. The configuration param targets the v2/account_link to collect information for the specified v2/account configuration/s.
"""
diff --git a/stripe/v2/core/_vault_service.py b/stripe/v2/core/_vault_service.py
new file mode 100644
index 000000000..5bb8b0cd8
--- /dev/null
+++ b/stripe/v2/core/_vault_service.py
@@ -0,0 +1,48 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.v2.core.vault._gb_bank_account_service import (
+ GbBankAccountService,
+ )
+ from stripe.v2.core.vault._us_bank_account_service import (
+ UsBankAccountService,
+ )
+
+_subservices = {
+ "gb_bank_accounts": [
+ "stripe.v2.core.vault._gb_bank_account_service",
+ "GbBankAccountService",
+ ],
+ "us_bank_accounts": [
+ "stripe.v2.core.vault._us_bank_account_service",
+ "UsBankAccountService",
+ ],
+}
+
+
+class VaultService(StripeService):
+ gb_bank_accounts: "GbBankAccountService"
+ us_bank_accounts: "UsBankAccountService"
+
+ def __init__(self, requestor):
+ super().__init__(requestor)
+
+ def __getattr__(self, name):
+ try:
+ import_from, service = _subservices[name]
+ service_class = getattr(
+ import_module(import_from),
+ service,
+ )
+ setattr(
+ self,
+ name,
+ service_class(self._requestor),
+ )
+ return getattr(self, name)
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/v2/core/vault/__init__.py b/stripe/v2/core/vault/__init__.py
new file mode 100644
index 000000000..63de1389d
--- /dev/null
+++ b/stripe/v2/core/vault/__init__.py
@@ -0,0 +1,47 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.v2.core.vault._gb_bank_account import (
+ GbBankAccount as GbBankAccount,
+ )
+ from stripe.v2.core.vault._gb_bank_account_service import (
+ GbBankAccountService as GbBankAccountService,
+ )
+ from stripe.v2.core.vault._us_bank_account import (
+ UsBankAccount as UsBankAccount,
+ )
+ from stripe.v2.core.vault._us_bank_account_service import (
+ UsBankAccountService as UsBankAccountService,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "GbBankAccount": ("stripe.v2.core.vault._gb_bank_account", False),
+ "GbBankAccountService": (
+ "stripe.v2.core.vault._gb_bank_account_service",
+ False,
+ ),
+ "UsBankAccount": ("stripe.v2.core.vault._us_bank_account", False),
+ "UsBankAccountService": (
+ "stripe.v2.core.vault._us_bank_account_service",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/v2/core/vault/_gb_bank_account.py b/stripe/v2/core/vault/_gb_bank_account.py
new file mode 100644
index 000000000..5a6c4a81b
--- /dev/null
+++ b/stripe/v2/core/vault/_gb_bank_account.py
@@ -0,0 +1,117 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal
+
+
+class GbBankAccount(StripeObject):
+ """
+ Use the GBBankAccounts API to create and manage GB bank account objects
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.core.vault.gb_bank_account"]] = (
+ "v2.core.vault.gb_bank_account"
+ )
+
+ class ConfirmationOfPayee(StripeObject):
+ class Result(StripeObject):
+ class Matched(StripeObject):
+ business_type: Optional[Literal["business", "personal"]]
+ """
+ The business type given by the bank for this account, in case of a MATCH or PARTIAL_MATCH.
+ Closed enum.
+ """
+ name: Optional[str]
+ """
+ The name given by the bank for this account, in case of a MATCH or PARTIAL_MATCH.
+ """
+
+ class Provided(StripeObject):
+ business_type: Literal["business", "personal"]
+ """
+ The provided or Legal Entity business type to match against the CoP service. Closed enum.
+ """
+ name: str
+ """
+ The provided or Legal Entity name to match against the CoP service.
+ """
+
+ created: str
+ """
+ When the CoP result was created.
+ """
+ match_result: Literal[
+ "match", "mismatch", "partial_match", "unavailable"
+ ]
+ """
+ Whether or not the information of the bank account matches what you have provided. Closed enum.
+ """
+ matched: Matched
+ """
+ The fields that CoP service matched against. Only has value if MATCH or PARTIAL_MATCH, empty otherwise.
+ """
+ message: str
+ """
+ Human-readable message describing the match result.
+ """
+ provided: Provided
+ """
+ The fields that are matched against what the network has on file.
+ """
+ _inner_class_types = {"matched": Matched, "provided": Provided}
+
+ result: Result
+ """
+ The result of the Confirmation of Payee check, once the check has been initiated. Closed enum.
+ """
+ status: Literal["awaiting_acknowledgement", "confirmed", "uninitiated"]
+ """
+ The current state of Confirmation of Payee on this bank account. Closed enum.
+ """
+ _inner_class_types = {"result": Result}
+
+ archived: bool
+ """
+ Whether this bank account object was archived. Bank account objects can be archived through
+ the /archive API, and they will not be automatically archived by Stripe. Archived bank account objects
+ cannot be used as outbound destinations and will not appear in the outbound destination list.
+ """
+ bank_account_type: Literal["checking", "savings"]
+ """
+ Closed Enum. The type of the bank account (checking or savings).
+ """
+ bank_name: str
+ """
+ The name of the bank.
+ """
+ confirmation_of_payee: ConfirmationOfPayee
+ """
+ Information around the status of Confirmation of Payee matching done on this bank account.
+ Confirmation of Payee is a name matching service that must be done before making OutboundPayments in the UK.
+ """
+ created: str
+ """
+ Creation time.
+ """
+ id: str
+ """
+ The ID of the GBBankAccount object.
+ """
+ last4: str
+ """
+ The last 4 digits of the account number or IBAN.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.core.vault.gb_bank_account"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ sort_code: str
+ """
+ The Sort Code of the bank account.
+ """
+ _inner_class_types = {"confirmation_of_payee": ConfirmationOfPayee}
diff --git a/stripe/v2/core/vault/_gb_bank_account_service.py b/stripe/v2/core/vault/_gb_bank_account_service.py
new file mode 100644
index 000000000..2ebaf2ff7
--- /dev/null
+++ b/stripe/v2/core/vault/_gb_bank_account_service.py
@@ -0,0 +1,305 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.core.vault._gb_bank_account_acknowledge_confirmation_of_payee_params import (
+ GbBankAccountAcknowledgeConfirmationOfPayeeParams,
+ )
+ from stripe.params.v2.core.vault._gb_bank_account_archive_params import (
+ GbBankAccountArchiveParams,
+ )
+ from stripe.params.v2.core.vault._gb_bank_account_create_params import (
+ GbBankAccountCreateParams,
+ )
+ from stripe.params.v2.core.vault._gb_bank_account_initiate_confirmation_of_payee_params import (
+ GbBankAccountInitiateConfirmationOfPayeeParams,
+ )
+ from stripe.params.v2.core.vault._gb_bank_account_list_params import (
+ GbBankAccountListParams,
+ )
+ from stripe.params.v2.core.vault._gb_bank_account_retrieve_params import (
+ GbBankAccountRetrieveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.core.vault._gb_bank_account import GbBankAccount
+
+
+class GbBankAccountService(StripeService):
+ def list(
+ self,
+ params: Optional["GbBankAccountListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[GbBankAccount]":
+ """
+ List objects that can be used as destinations for outbound money movement via OutboundPayment.
+ """
+ return cast(
+ "ListObject[GbBankAccount]",
+ self._request(
+ "get",
+ "/v2/core/vault/gb_bank_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["GbBankAccountListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[GbBankAccount]":
+ """
+ List objects that can be used as destinations for outbound money movement via OutboundPayment.
+ """
+ return cast(
+ "ListObject[GbBankAccount]",
+ await self._request_async(
+ "get",
+ "/v2/core/vault/gb_bank_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "GbBankAccountCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "GbBankAccount":
+ """
+ Create a GB bank account.
+ """
+ return cast(
+ "GbBankAccount",
+ self._request(
+ "post",
+ "/v2/core/vault/gb_bank_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "GbBankAccountCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "GbBankAccount":
+ """
+ Create a GB bank account.
+ """
+ return cast(
+ "GbBankAccount",
+ await self._request_async(
+ "post",
+ "/v2/core/vault/gb_bank_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["GbBankAccountRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "GbBankAccount":
+ """
+ Retrieve a GB bank account.
+ """
+ return cast(
+ "GbBankAccount",
+ self._request(
+ "get",
+ "/v2/core/vault/gb_bank_accounts/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["GbBankAccountRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "GbBankAccount":
+ """
+ Retrieve a GB bank account.
+ """
+ return cast(
+ "GbBankAccount",
+ await self._request_async(
+ "get",
+ "/v2/core/vault/gb_bank_accounts/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def acknowledge_confirmation_of_payee(
+ self,
+ id: str,
+ params: Optional[
+ "GbBankAccountAcknowledgeConfirmationOfPayeeParams"
+ ] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "GbBankAccount":
+ """
+ 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.
+ """
+ return cast(
+ "GbBankAccount",
+ self._request(
+ "post",
+ "/v2/core/vault/gb_bank_accounts/{id}/acknowledge_confirmation_of_payee".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def acknowledge_confirmation_of_payee_async(
+ self,
+ id: str,
+ params: Optional[
+ "GbBankAccountAcknowledgeConfirmationOfPayeeParams"
+ ] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "GbBankAccount":
+ """
+ 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.
+ """
+ return cast(
+ "GbBankAccount",
+ await self._request_async(
+ "post",
+ "/v2/core/vault/gb_bank_accounts/{id}/acknowledge_confirmation_of_payee".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def archive(
+ self,
+ id: str,
+ params: Optional["GbBankAccountArchiveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "GbBankAccount":
+ """
+ Archive a GBBankAccount object. Archived GBBankAccount objects cannot be used as outbound destinations
+ and will not appear in the outbound destination list.
+ """
+ return cast(
+ "GbBankAccount",
+ self._request(
+ "post",
+ "/v2/core/vault/gb_bank_accounts/{id}/archive".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def archive_async(
+ self,
+ id: str,
+ params: Optional["GbBankAccountArchiveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "GbBankAccount":
+ """
+ Archive a GBBankAccount object. Archived GBBankAccount objects cannot be used as outbound destinations
+ and will not appear in the outbound destination list.
+ """
+ return cast(
+ "GbBankAccount",
+ await self._request_async(
+ "post",
+ "/v2/core/vault/gb_bank_accounts/{id}/archive".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def initiate_confirmation_of_payee(
+ self,
+ id: str,
+ params: Optional[
+ "GbBankAccountInitiateConfirmationOfPayeeParams"
+ ] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "GbBankAccount":
+ """
+ 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.
+ """
+ return cast(
+ "GbBankAccount",
+ self._request(
+ "post",
+ "/v2/core/vault/gb_bank_accounts/{id}/initiate_confirmation_of_payee".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def initiate_confirmation_of_payee_async(
+ self,
+ id: str,
+ params: Optional[
+ "GbBankAccountInitiateConfirmationOfPayeeParams"
+ ] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "GbBankAccount":
+ """
+ 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.
+ """
+ return cast(
+ "GbBankAccount",
+ await self._request_async(
+ "post",
+ "/v2/core/vault/gb_bank_accounts/{id}/initiate_confirmation_of_payee".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/core/vault/_us_bank_account.py b/stripe/v2/core/vault/_us_bank_account.py
new file mode 100644
index 000000000..711c6f7ac
--- /dev/null
+++ b/stripe/v2/core/vault/_us_bank_account.py
@@ -0,0 +1,99 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal
+
+
+class UsBankAccount(StripeObject):
+ """
+ Use the USBankAccounts API to create and manage US bank accounts objects that you can use to receive funds. Note that these are not interchangeable with v1 Tokens.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.core.vault.us_bank_account"]] = (
+ "v2.core.vault.us_bank_account"
+ )
+
+ class Verification(StripeObject):
+ class MicrodepositVerificationDetails(StripeObject):
+ expires: str
+ """
+ Time when microdeposits will expire and have to be re-sent.
+ """
+ microdeposit_type: Literal["amounts", "descriptor_code"]
+ """
+ Microdeposit type can be amounts or descriptor_type.
+ """
+ sent: str
+ """
+ Time when microdeposits were sent.
+ """
+
+ microdeposit_verification_details: Optional[
+ MicrodepositVerificationDetails
+ ]
+ """
+ The microdeposit verification details if the status is awaiting verification.
+ """
+ status: Literal[
+ "awaiting_verification",
+ "unverified",
+ "verification_failed",
+ "verified",
+ ]
+ """
+ The bank account verification status.
+ """
+ _inner_class_types = {
+ "microdeposit_verification_details": MicrodepositVerificationDetails,
+ }
+
+ archived: bool
+ """
+ Whether this USBankAccount object was archived.
+ """
+ bank_account_type: Literal["checking", "savings"]
+ """
+ Closed Enum. The type of bank account (checking or savings).
+ """
+ bank_name: str
+ """
+ The name of the bank this bank account belongs to. This field is populated automatically by Stripe based on the routing number.
+ """
+ created: str
+ """
+ Creation time of the object.
+ """
+ fedwire_routing_number: Optional[str]
+ """
+ The fedwire routing number of the bank account.
+ """
+ financial_connections_account: Optional[str]
+ """
+ The ID of the Financial Connections Account used to create the bank account.
+ """
+ id: str
+ """
+ The ID of the USBankAccount object.
+ """
+ last4: str
+ """
+ The last 4 digits of the account number.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.core.vault.us_bank_account"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ routing_number: Optional[str]
+ """
+ The ACH routing number of the bank account.
+ """
+ verification: Verification
+ """
+ The bank account verification details.
+ """
+ _inner_class_types = {"verification": Verification}
diff --git a/stripe/v2/core/vault/_us_bank_account_service.py b/stripe/v2/core/vault/_us_bank_account_service.py
new file mode 100644
index 000000000..3674515a6
--- /dev/null
+++ b/stripe/v2/core/vault/_us_bank_account_service.py
@@ -0,0 +1,334 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.core.vault._us_bank_account_archive_params import (
+ UsBankAccountArchiveParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_confirm_microdeposits_params import (
+ UsBankAccountConfirmMicrodepositsParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_create_params import (
+ UsBankAccountCreateParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_list_params import (
+ UsBankAccountListParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_retrieve_params import (
+ UsBankAccountRetrieveParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_send_microdeposits_params import (
+ UsBankAccountSendMicrodepositsParams,
+ )
+ from stripe.params.v2.core.vault._us_bank_account_update_params import (
+ UsBankAccountUpdateParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.core.vault._us_bank_account import UsBankAccount
+
+
+class UsBankAccountService(StripeService):
+ def list(
+ self,
+ params: Optional["UsBankAccountListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[UsBankAccount]":
+ """
+ List USBankAccount objects. Optionally filter by verification status.
+ """
+ return cast(
+ "ListObject[UsBankAccount]",
+ self._request(
+ "get",
+ "/v2/core/vault/us_bank_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["UsBankAccountListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[UsBankAccount]":
+ """
+ List USBankAccount objects. Optionally filter by verification status.
+ """
+ return cast(
+ "ListObject[UsBankAccount]",
+ await self._request_async(
+ "get",
+ "/v2/core/vault/us_bank_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "UsBankAccountCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "UsBankAccount":
+ """
+ Create a USBankAccount object.
+ """
+ return cast(
+ "UsBankAccount",
+ self._request(
+ "post",
+ "/v2/core/vault/us_bank_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "UsBankAccountCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "UsBankAccount":
+ """
+ Create a USBankAccount object.
+ """
+ return cast(
+ "UsBankAccount",
+ await self._request_async(
+ "post",
+ "/v2/core/vault/us_bank_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["UsBankAccountRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "UsBankAccount":
+ """
+ Retrieve a USBankAccount object.
+ """
+ return cast(
+ "UsBankAccount",
+ self._request(
+ "get",
+ "/v2/core/vault/us_bank_accounts/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["UsBankAccountRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "UsBankAccount":
+ """
+ Retrieve a USBankAccount object.
+ """
+ return cast(
+ "UsBankAccount",
+ await self._request_async(
+ "get",
+ "/v2/core/vault/us_bank_accounts/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ id: str,
+ params: Optional["UsBankAccountUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "UsBankAccount":
+ """
+ Update a USBankAccount object. This is limited to supplying a previously empty routing_number field.
+ """
+ return cast(
+ "UsBankAccount",
+ self._request(
+ "post",
+ "/v2/core/vault/us_bank_accounts/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ id: str,
+ params: Optional["UsBankAccountUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "UsBankAccount":
+ """
+ Update a USBankAccount object. This is limited to supplying a previously empty routing_number field.
+ """
+ return cast(
+ "UsBankAccount",
+ await self._request_async(
+ "post",
+ "/v2/core/vault/us_bank_accounts/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def archive(
+ self,
+ id: str,
+ params: Optional["UsBankAccountArchiveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "UsBankAccount":
+ """
+ Archive a USBankAccount object. USBankAccount objects will not be automatically archived by Stripe.
+ Archived USBankAccount objects cannot be used as outbound destinations
+ and will not appear in the outbound destination list.
+ """
+ return cast(
+ "UsBankAccount",
+ self._request(
+ "post",
+ "/v2/core/vault/us_bank_accounts/{id}/archive".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def archive_async(
+ self,
+ id: str,
+ params: Optional["UsBankAccountArchiveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "UsBankAccount":
+ """
+ Archive a USBankAccount object. USBankAccount objects will not be automatically archived by Stripe.
+ Archived USBankAccount objects cannot be used as outbound destinations
+ and will not appear in the outbound destination list.
+ """
+ return cast(
+ "UsBankAccount",
+ await self._request_async(
+ "post",
+ "/v2/core/vault/us_bank_accounts/{id}/archive".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def confirm_microdeposits(
+ self,
+ id: str,
+ params: Optional["UsBankAccountConfirmMicrodepositsParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "UsBankAccount":
+ """
+ Confirm microdeposits amounts or descriptor code that you have received from the Send Microdeposits request. Once you correctly confirm this, this US Bank Account will be verified and eligible to transfer funds with.
+ """
+ return cast(
+ "UsBankAccount",
+ self._request(
+ "post",
+ "/v2/core/vault/us_bank_accounts/{id}/confirm_microdeposits".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def confirm_microdeposits_async(
+ self,
+ id: str,
+ params: Optional["UsBankAccountConfirmMicrodepositsParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "UsBankAccount":
+ """
+ Confirm microdeposits amounts or descriptor code that you have received from the Send Microdeposits request. Once you correctly confirm this, this US Bank Account will be verified and eligible to transfer funds with.
+ """
+ return cast(
+ "UsBankAccount",
+ await self._request_async(
+ "post",
+ "/v2/core/vault/us_bank_accounts/{id}/confirm_microdeposits".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def send_microdeposits(
+ self,
+ id: str,
+ params: Optional["UsBankAccountSendMicrodepositsParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "UsBankAccount":
+ """
+ Send microdeposits in order to verify your US Bank Account so it is eligible to transfer funds. This will start the verification process and you must Confirm Microdeposits to successfully verify your US Bank Account.
+ """
+ return cast(
+ "UsBankAccount",
+ self._request(
+ "post",
+ "/v2/core/vault/us_bank_accounts/{id}/send_microdeposits".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def send_microdeposits_async(
+ self,
+ id: str,
+ params: Optional["UsBankAccountSendMicrodepositsParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "UsBankAccount":
+ """
+ Send microdeposits in order to verify your US Bank Account so it is eligible to transfer funds. This will start the verification process and you must Confirm Microdeposits to successfully verify your US Bank Account.
+ """
+ return cast(
+ "UsBankAccount",
+ await self._request_async(
+ "post",
+ "/v2/core/vault/us_bank_accounts/{id}/send_microdeposits".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/__init__.py b/stripe/v2/money_management/__init__.py
new file mode 100644
index 000000000..a6b188bae
--- /dev/null
+++ b/stripe/v2/money_management/__init__.py
@@ -0,0 +1,198 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.v2.money_management._adjustment import Adjustment as Adjustment
+ from stripe.v2.money_management._adjustment_service import (
+ AdjustmentService as AdjustmentService,
+ )
+ from stripe.v2.money_management._financial_account import (
+ FinancialAccount as FinancialAccount,
+ )
+ from stripe.v2.money_management._financial_account_service import (
+ FinancialAccountService as FinancialAccountService,
+ )
+ from stripe.v2.money_management._financial_address import (
+ FinancialAddress as FinancialAddress,
+ )
+ from stripe.v2.money_management._financial_address_service import (
+ FinancialAddressService as FinancialAddressService,
+ )
+ from stripe.v2.money_management._inbound_transfer import (
+ InboundTransfer as InboundTransfer,
+ )
+ from stripe.v2.money_management._inbound_transfer_service import (
+ InboundTransferService as InboundTransferService,
+ )
+ from stripe.v2.money_management._outbound_payment import (
+ OutboundPayment as OutboundPayment,
+ )
+ from stripe.v2.money_management._outbound_payment_quote import (
+ OutboundPaymentQuote as OutboundPaymentQuote,
+ )
+ from stripe.v2.money_management._outbound_payment_quote_service import (
+ OutboundPaymentQuoteService as OutboundPaymentQuoteService,
+ )
+ from stripe.v2.money_management._outbound_payment_service import (
+ OutboundPaymentService as OutboundPaymentService,
+ )
+ from stripe.v2.money_management._outbound_setup_intent import (
+ OutboundSetupIntent as OutboundSetupIntent,
+ )
+ from stripe.v2.money_management._outbound_setup_intent_service import (
+ OutboundSetupIntentService as OutboundSetupIntentService,
+ )
+ from stripe.v2.money_management._outbound_transfer import (
+ OutboundTransfer as OutboundTransfer,
+ )
+ from stripe.v2.money_management._outbound_transfer_service import (
+ OutboundTransferService as OutboundTransferService,
+ )
+ from stripe.v2.money_management._payout_method import (
+ PayoutMethod as PayoutMethod,
+ )
+ from stripe.v2.money_management._payout_method_service import (
+ PayoutMethodService as PayoutMethodService,
+ )
+ from stripe.v2.money_management._payout_methods_bank_account_spec import (
+ PayoutMethodsBankAccountSpec as PayoutMethodsBankAccountSpec,
+ )
+ from stripe.v2.money_management._payout_methods_bank_account_spec_service import (
+ PayoutMethodsBankAccountSpecService as PayoutMethodsBankAccountSpecService,
+ )
+ from stripe.v2.money_management._received_credit import (
+ ReceivedCredit as ReceivedCredit,
+ )
+ from stripe.v2.money_management._received_credit_service import (
+ ReceivedCreditService as ReceivedCreditService,
+ )
+ from stripe.v2.money_management._received_debit import (
+ ReceivedDebit as ReceivedDebit,
+ )
+ from stripe.v2.money_management._received_debit_service import (
+ ReceivedDebitService as ReceivedDebitService,
+ )
+ from stripe.v2.money_management._transaction import (
+ Transaction as Transaction,
+ )
+ from stripe.v2.money_management._transaction_entry import (
+ TransactionEntry as TransactionEntry,
+ )
+ from stripe.v2.money_management._transaction_entry_service import (
+ TransactionEntryService as TransactionEntryService,
+ )
+ from stripe.v2.money_management._transaction_service import (
+ TransactionService as TransactionService,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "Adjustment": ("stripe.v2.money_management._adjustment", False),
+ "AdjustmentService": (
+ "stripe.v2.money_management._adjustment_service",
+ False,
+ ),
+ "FinancialAccount": (
+ "stripe.v2.money_management._financial_account",
+ False,
+ ),
+ "FinancialAccountService": (
+ "stripe.v2.money_management._financial_account_service",
+ False,
+ ),
+ "FinancialAddress": (
+ "stripe.v2.money_management._financial_address",
+ False,
+ ),
+ "FinancialAddressService": (
+ "stripe.v2.money_management._financial_address_service",
+ False,
+ ),
+ "InboundTransfer": ("stripe.v2.money_management._inbound_transfer", False),
+ "InboundTransferService": (
+ "stripe.v2.money_management._inbound_transfer_service",
+ False,
+ ),
+ "OutboundPayment": ("stripe.v2.money_management._outbound_payment", False),
+ "OutboundPaymentQuote": (
+ "stripe.v2.money_management._outbound_payment_quote",
+ False,
+ ),
+ "OutboundPaymentQuoteService": (
+ "stripe.v2.money_management._outbound_payment_quote_service",
+ False,
+ ),
+ "OutboundPaymentService": (
+ "stripe.v2.money_management._outbound_payment_service",
+ False,
+ ),
+ "OutboundSetupIntent": (
+ "stripe.v2.money_management._outbound_setup_intent",
+ False,
+ ),
+ "OutboundSetupIntentService": (
+ "stripe.v2.money_management._outbound_setup_intent_service",
+ False,
+ ),
+ "OutboundTransfer": (
+ "stripe.v2.money_management._outbound_transfer",
+ False,
+ ),
+ "OutboundTransferService": (
+ "stripe.v2.money_management._outbound_transfer_service",
+ False,
+ ),
+ "PayoutMethod": ("stripe.v2.money_management._payout_method", False),
+ "PayoutMethodService": (
+ "stripe.v2.money_management._payout_method_service",
+ False,
+ ),
+ "PayoutMethodsBankAccountSpec": (
+ "stripe.v2.money_management._payout_methods_bank_account_spec",
+ False,
+ ),
+ "PayoutMethodsBankAccountSpecService": (
+ "stripe.v2.money_management._payout_methods_bank_account_spec_service",
+ False,
+ ),
+ "ReceivedCredit": ("stripe.v2.money_management._received_credit", False),
+ "ReceivedCreditService": (
+ "stripe.v2.money_management._received_credit_service",
+ False,
+ ),
+ "ReceivedDebit": ("stripe.v2.money_management._received_debit", False),
+ "ReceivedDebitService": (
+ "stripe.v2.money_management._received_debit_service",
+ False,
+ ),
+ "Transaction": ("stripe.v2.money_management._transaction", False),
+ "TransactionEntry": (
+ "stripe.v2.money_management._transaction_entry",
+ False,
+ ),
+ "TransactionEntryService": (
+ "stripe.v2.money_management._transaction_entry_service",
+ False,
+ ),
+ "TransactionService": (
+ "stripe.v2.money_management._transaction_service",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/v2/money_management/_adjustment.py b/stripe/v2/money_management/_adjustment.py
new file mode 100644
index 000000000..eef2371e3
--- /dev/null
+++ b/stripe/v2/money_management/_adjustment.py
@@ -0,0 +1,102 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal
+
+
+class Adjustment(StripeObject):
+ """
+ Adjustments represent Stripe-initiated credits or debits to a user balance. They might be used to amend balances due to technical or operational error.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.money_management.adjustment"]] = (
+ "v2.money_management.adjustment"
+ )
+
+ class AdjustedFlow(StripeObject):
+ adjustment: Optional[str]
+ """
+ If applicable, the ID of the Adjustment linked to this Adjustment.
+ """
+ inbound_transfer: Optional[str]
+ """
+ If applicable, the ID of the InboundTransfer linked to this Adjustment.
+ """
+ outbound_payment: Optional[str]
+ """
+ If applicable, the ID of the OutboundPayment linked to this Adjustment.
+ """
+ outbound_transfer: Optional[str]
+ """
+ If applicable, the ID of the OutboundTransfer linked to this Adjustment.
+ """
+ received_credit: Optional[str]
+ """
+ If applicable, the ID of the ReceivedCredit linked to this Adjustment.
+ """
+ received_debit: Optional[str]
+ """
+ If applicable, the ID of the ReceivedDebit linked to this Adjustment.
+ """
+ type: Literal[
+ "adjustment",
+ "balance_exchange",
+ "inbound_payment",
+ "inbound_transfer",
+ "outbound_payment",
+ "outbound_transfer",
+ "received_credit",
+ "received_debit",
+ ]
+ """
+ Closed Enum. If applicable, the type of flow linked to this Adjustment. The field matching this value will contain the ID of the flow.
+ """
+
+ class Amount(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ adjusted_flow: Optional[AdjustedFlow]
+ """
+ If applicable, contains information about the original flow linked to this Adjustment.
+ """
+ amount: Amount
+ """
+ The amount of the Adjustment.
+ """
+ created: str
+ """
+ Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ description: Optional[str]
+ """
+ Description of the Adjustment and what it was used for.
+ """
+ financial_account: str
+ """
+ The FinancialAccount that this adjustment is for.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.money_management.adjustment"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ receipt_url: Optional[str]
+ """
+ A link to the Stripe-hosted receipt that is provided when money movement is considered regulated under Stripe's money transmission licenses. The receipt link remains active for 60 days from the Adjustment creation date. After this period, the link will expire and the receipt url value will be null.
+ """
+ _inner_class_types = {"adjusted_flow": AdjustedFlow, "amount": Amount}
diff --git a/stripe/v2/money_management/_adjustment_service.py b/stripe/v2/money_management/_adjustment_service.py
new file mode 100644
index 000000000..fcaa012a8
--- /dev/null
+++ b/stripe/v2/money_management/_adjustment_service.py
@@ -0,0 +1,101 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._adjustment_list_params import (
+ AdjustmentListParams,
+ )
+ from stripe.params.v2.money_management._adjustment_retrieve_params import (
+ AdjustmentRetrieveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.money_management._adjustment import Adjustment
+
+
+class AdjustmentService(StripeService):
+ def list(
+ self,
+ params: Optional["AdjustmentListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Adjustment]":
+ """
+ Returns a list of Adjustments that match the provided filters.
+ """
+ return cast(
+ "ListObject[Adjustment]",
+ self._request(
+ "get",
+ "/v2/money_management/adjustments",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["AdjustmentListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Adjustment]":
+ """
+ Returns a list of Adjustments that match the provided filters.
+ """
+ return cast(
+ "ListObject[Adjustment]",
+ await self._request_async(
+ "get",
+ "/v2/money_management/adjustments",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["AdjustmentRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Adjustment":
+ """
+ Retrieves the details of an Adjustment by ID.
+ """
+ return cast(
+ "Adjustment",
+ self._request(
+ "get",
+ "/v2/money_management/adjustments/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["AdjustmentRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Adjustment":
+ """
+ Retrieves the details of an Adjustment by ID.
+ """
+ return cast(
+ "Adjustment",
+ await self._request_async(
+ "get",
+ "/v2/money_management/adjustments/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_financial_account.py b/stripe/v2/money_management/_financial_account.py
new file mode 100644
index 000000000..b2361c056
--- /dev/null
+++ b/stripe/v2/money_management/_financial_account.py
@@ -0,0 +1,157 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, List, Optional
+from typing_extensions import Literal
+
+
+class FinancialAccount(StripeObject):
+ """
+ A FinancialAccount represents a balance and can be used as the source or destination for the money management (`/v2/money_management`) APIs.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.money_management.financial_account"]] = (
+ "v2.money_management.financial_account"
+ )
+
+ class Balance(StripeObject):
+ class Available(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class InboundPending(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class OutboundPending(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ available: Dict[str, Available]
+ """
+ Balance that can be used for money movement.
+ """
+ inbound_pending: Dict[str, InboundPending]
+ """
+ Balance of inbound funds that will later transition to the `available` balance.
+ """
+ outbound_pending: Dict[str, OutboundPending]
+ """
+ Balance of funds that are being used for a pending outbound money movement.
+ """
+ _inner_class_types = {
+ "available": Available,
+ "inbound_pending": InboundPending,
+ "outbound_pending": OutboundPending,
+ }
+ _inner_class_dicts = [
+ "available",
+ "inbound_pending",
+ "outbound_pending",
+ ]
+
+ class Other(StripeObject):
+ type: str
+ """
+ The type of the FinancialAccount, represented as a string. Upgrade your API version to see the type reflected in `financial_account.type`.
+ """
+
+ class StatusDetails(StripeObject):
+ class Closed(StripeObject):
+ class ForwardingSettings(StripeObject):
+ payment_method: Optional[str]
+ """
+ The address to send forwarded payments to.
+ """
+ payout_method: Optional[str]
+ """
+ The address to send forwarded payouts to.
+ """
+
+ forwarding_settings: Optional[ForwardingSettings]
+ reason: Literal["account_closed", "closed_by_platform", "other"]
+ _inner_class_types = {"forwarding_settings": ForwardingSettings}
+
+ closed: Optional[Closed]
+ _inner_class_types = {"closed": Closed}
+
+ class Storage(StripeObject):
+ holds_currencies: List[str]
+ """
+ The currencies that this FinancialAccount can hold.
+ """
+
+ balance: Balance
+ """
+ Multi-currency balance of this FinancialAccount, split by availability state. Each balance is represented as a hash where the key is the three-letter ISO currency code, in lowercase, and the value is the amount for that currency.
+ """
+ country: str
+ """
+ Open Enum. Two-letter country code that represents the country where the LegalEntity associated with the FinancialAccount is based in.
+ """
+ created: str
+ """
+ Time at which the object was created.
+ """
+ display_name: Optional[str]
+ """
+ A descriptive name for the FinancialAccount, up to 50 characters long. This name will be used in the Stripe Dashboard and embedded components.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ Metadata associated with the FinancialAccount.
+ """
+ object: Literal["v2.money_management.financial_account"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ other: Optional[Other]
+ """
+ If this is a `other` FinancialAccount, this hash indicates what the actual type is. Upgrade your API version to see it reflected in `type`.
+ """
+ status: Literal["closed", "open", "pending"]
+ """
+ Closed Enum. An enum representing the status of the FinancialAccount. This indicates whether or not the FinancialAccount can be used for any money movement flows.
+ """
+ status_details: Optional[StatusDetails]
+ storage: Optional[Storage]
+ """
+ If this is a `storage` FinancialAccount, this hash includes details specific to `storage` FinancialAccounts.
+ """
+ type: Literal["other", "storage"]
+ """
+ Type of the FinancialAccount. An additional hash is included on the FinancialAccount with a name matching this value.
+ It contains additional information specific to the FinancialAccount type.
+ """
+ _inner_class_types = {
+ "balance": Balance,
+ "other": Other,
+ "status_details": StatusDetails,
+ "storage": Storage,
+ }
diff --git a/stripe/v2/money_management/_financial_account_service.py b/stripe/v2/money_management/_financial_account_service.py
new file mode 100644
index 000000000..c5a114c64
--- /dev/null
+++ b/stripe/v2/money_management/_financial_account_service.py
@@ -0,0 +1,236 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._financial_account_close_params import (
+ FinancialAccountCloseParams,
+ )
+ from stripe.params.v2.money_management._financial_account_create_params import (
+ FinancialAccountCreateParams,
+ )
+ from stripe.params.v2.money_management._financial_account_list_params import (
+ FinancialAccountListParams,
+ )
+ from stripe.params.v2.money_management._financial_account_retrieve_params import (
+ FinancialAccountRetrieveParams,
+ )
+ from stripe.params.v2.money_management._financial_account_update_params import (
+ FinancialAccountUpdateParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.money_management._financial_account import FinancialAccount
+
+
+class FinancialAccountService(StripeService):
+ def list(
+ self,
+ params: Optional["FinancialAccountListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FinancialAccount]":
+ """
+ Lists FinancialAccounts in this compartment.
+ """
+ return cast(
+ "ListObject[FinancialAccount]",
+ self._request(
+ "get",
+ "/v2/money_management/financial_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["FinancialAccountListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FinancialAccount]":
+ """
+ Lists FinancialAccounts in this compartment.
+ """
+ return cast(
+ "ListObject[FinancialAccount]",
+ await self._request_async(
+ "get",
+ "/v2/money_management/financial_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "FinancialAccountCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAccount":
+ """
+ Creates a new FinancialAccount.
+ """
+ return cast(
+ "FinancialAccount",
+ self._request(
+ "post",
+ "/v2/money_management/financial_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "FinancialAccountCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAccount":
+ """
+ Creates a new FinancialAccount.
+ """
+ return cast(
+ "FinancialAccount",
+ await self._request_async(
+ "post",
+ "/v2/money_management/financial_accounts",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["FinancialAccountRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAccount":
+ """
+ Retrieves the details of an existing FinancialAccount.
+ """
+ return cast(
+ "FinancialAccount",
+ self._request(
+ "get",
+ "/v2/money_management/financial_accounts/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["FinancialAccountRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAccount":
+ """
+ Retrieves the details of an existing FinancialAccount.
+ """
+ return cast(
+ "FinancialAccount",
+ await self._request_async(
+ "get",
+ "/v2/money_management/financial_accounts/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ id: str,
+ params: Optional["FinancialAccountUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAccount":
+ """
+ Updates an existing FinancialAccount.
+ """
+ return cast(
+ "FinancialAccount",
+ self._request(
+ "post",
+ "/v2/money_management/financial_accounts/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ id: str,
+ params: Optional["FinancialAccountUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAccount":
+ """
+ Updates an existing FinancialAccount.
+ """
+ return cast(
+ "FinancialAccount",
+ await self._request_async(
+ "post",
+ "/v2/money_management/financial_accounts/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def close(
+ self,
+ id: str,
+ params: Optional["FinancialAccountCloseParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAccount":
+ """
+ Closes a FinancialAccount with or without forwarding settings.
+ """
+ return cast(
+ "FinancialAccount",
+ self._request(
+ "post",
+ "/v2/money_management/financial_accounts/{id}/close".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def close_async(
+ self,
+ id: str,
+ params: Optional["FinancialAccountCloseParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAccount":
+ """
+ Closes a FinancialAccount with or without forwarding settings.
+ """
+ return cast(
+ "FinancialAccount",
+ await self._request_async(
+ "post",
+ "/v2/money_management/financial_accounts/{id}/close".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_financial_address.py b/stripe/v2/money_management/_financial_address.py
new file mode 100644
index 000000000..541f21e1f
--- /dev/null
+++ b/stripe/v2/money_management/_financial_address.py
@@ -0,0 +1,147 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal
+
+
+class FinancialAddress(StripeObject):
+ """
+ A FinancialAddress contains information needed to transfer money to a Financial Account. A Financial Account can have more than one Financial Address.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.money_management.financial_address"]] = (
+ "v2.money_management.financial_address"
+ )
+
+ class Credentials(StripeObject):
+ class GbBankAccount(StripeObject):
+ account_holder_name: str
+ """
+ The account holder name to be used during bank transference.
+ """
+ account_number: Optional[str]
+ """
+ The account number of the UK Bank Account.
+ """
+ last4: str
+ """
+ The last four digits of the UK Bank Account number. This will always be returned.
+ To view the full account number when retrieving or listing FinancialAddresses, use the `include` request parameter.
+ """
+ sort_code: str
+ """
+ The sort code of the UK Bank Account.
+ """
+
+ class SepaBankAccount(StripeObject):
+ account_holder_name: str
+ """
+ The account holder name to be used during bank transfers.
+ """
+ bank_name: str
+ """
+ The name of the Bank.
+ """
+ bic: str
+ """
+ The BIC of the SEPA Bank Account.
+ """
+ country: str
+ """
+ The originating country of the SEPA Bank account.
+ """
+ iban: str
+ """
+ The IBAN of the SEPA Bank Account.
+ """
+ last4: str
+ """
+ The last four digits of the SEPA Bank Account number. This will always be returned.
+ To view the full account number when retrieving or listing FinancialAddresses, use the `include` request parameter.
+ """
+
+ class UsBankAccount(StripeObject):
+ account_number: Optional[str]
+ """
+ The account number of the US Bank Account.
+ """
+ bank_name: Optional[str]
+ """
+ The name of the Bank.
+ """
+ last4: str
+ """
+ The last four digits of the US Bank Account number. This will always be returned.
+ To view the full account number when retrieving or listing FinancialAddresses, use the `include` request parameter.
+ """
+ routing_number: str
+ """
+ The routing number of the US Bank Account.
+ """
+ swift_code: Optional[str]
+ """
+ The swift code of the bank or financial institution.
+ """
+
+ gb_bank_account: Optional[GbBankAccount]
+ """
+ The credentials of the UK Bank Account for the FinancialAddress. This contains unique banking details such as the sort code, account number, etc. of a UK bank account.
+ """
+ sepa_bank_account: Optional[SepaBankAccount]
+ """
+ The credentials of the SEPA Bank Account for the FinancialAddress. This contains unique banking details such as the IBAN, BIC, etc. of a SEPA bank account.
+ """
+ type: Literal["gb_bank_account", "us_bank_account"]
+ """
+ Open Enum. The type of Credentials that are provisioned for the FinancialAddress.
+ """
+ us_bank_account: Optional[UsBankAccount]
+ """
+ The credentials of the US Bank Account for the FinancialAddress. This contains unique banking details such as the routing number, account number, etc. of a US bank account.
+ """
+ _inner_class_types = {
+ "gb_bank_account": GbBankAccount,
+ "sepa_bank_account": SepaBankAccount,
+ "us_bank_account": UsBankAccount,
+ }
+
+ created: str
+ """
+ The creation timestamp of the FinancialAddress.
+ """
+ credentials: Optional[Credentials]
+ """
+ Object indicates the type of credentials that have been allocated and attached to the FinancialAddress.
+ It contains all necessary banking details with which to perform money movements with the FinancialAddress.
+ This field is only available for FinancialAddresses with an active status.
+ """
+ currency: str
+ """
+ Open Enum. The currency the FinancialAddress supports.
+ """
+ financial_account: str
+ """
+ A ID of the FinancialAccount this FinancialAddress corresponds to.
+ """
+ id: str
+ """
+ The ID of a FinancialAddress.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.money_management.financial_address"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ settlement_currency: Optional[str]
+ """
+ Open Enum. The currency the FinancialAddress settles into the FinancialAccount.
+ """
+ status: Literal["active", "archived", "failed", "pending"]
+ """
+ Closed Enum. An enum representing the status of the FinancialAddress. This indicates whether or not the FinancialAddress can be used for any money movement flows.
+ """
+ _inner_class_types = {"credentials": Credentials}
diff --git a/stripe/v2/money_management/_financial_address_service.py b/stripe/v2/money_management/_financial_address_service.py
new file mode 100644
index 000000000..649160957
--- /dev/null
+++ b/stripe/v2/money_management/_financial_address_service.py
@@ -0,0 +1,142 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._financial_address_create_params import (
+ FinancialAddressCreateParams,
+ )
+ from stripe.params.v2.money_management._financial_address_list_params import (
+ FinancialAddressListParams,
+ )
+ from stripe.params.v2.money_management._financial_address_retrieve_params import (
+ FinancialAddressRetrieveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.money_management._financial_address import FinancialAddress
+
+
+class FinancialAddressService(StripeService):
+ def list(
+ self,
+ params: Optional["FinancialAddressListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FinancialAddress]":
+ """
+ List all FinancialAddresses for a FinancialAccount.
+ """
+ return cast(
+ "ListObject[FinancialAddress]",
+ self._request(
+ "get",
+ "/v2/money_management/financial_addresses",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["FinancialAddressListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FinancialAddress]":
+ """
+ List all FinancialAddresses for a FinancialAccount.
+ """
+ return cast(
+ "ListObject[FinancialAddress]",
+ await self._request_async(
+ "get",
+ "/v2/money_management/financial_addresses",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "FinancialAddressCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAddress":
+ """
+ Create a new FinancialAddress for a FinancialAccount.
+ """
+ return cast(
+ "FinancialAddress",
+ self._request(
+ "post",
+ "/v2/money_management/financial_addresses",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "FinancialAddressCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAddress":
+ """
+ Create a new FinancialAddress for a FinancialAccount.
+ """
+ return cast(
+ "FinancialAddress",
+ await self._request_async(
+ "post",
+ "/v2/money_management/financial_addresses",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["FinancialAddressRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAddress":
+ """
+ Retrieve a FinancialAddress. By default, the FinancialAddress will be returned in its unexpanded state, revealing only the last 4 digits of the account number.
+ """
+ return cast(
+ "FinancialAddress",
+ self._request(
+ "get",
+ "/v2/money_management/financial_addresses/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["FinancialAddressRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAddress":
+ """
+ Retrieve a FinancialAddress. By default, the FinancialAddress will be returned in its unexpanded state, revealing only the last 4 digits of the account number.
+ """
+ return cast(
+ "FinancialAddress",
+ await self._request_async(
+ "get",
+ "/v2/money_management/financial_addresses/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_inbound_transfer.py b/stripe/v2/money_management/_inbound_transfer.py
new file mode 100644
index 000000000..46f80f32e
--- /dev/null
+++ b/stripe/v2/money_management/_inbound_transfer.py
@@ -0,0 +1,208 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, List, Optional
+from typing_extensions import Literal, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from typing import Any
+
+
+class InboundTransfer(StripeObject):
+ """
+ An InboundTransfer object, representing a money movement from a
+ user owned PaymentMethod to a FinancialAccount belonging to the same user.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.money_management.inbound_transfer"]] = (
+ "v2.money_management.inbound_transfer"
+ )
+
+ class Amount(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class From(StripeObject):
+ class Debited(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class PaymentMethod(StripeObject):
+ type: str
+ """
+ The type of object this destination represents. For a us bank account, we expect us_bank_account.
+ """
+ us_bank_account: Optional[str]
+ """
+ The destination US bank account identifier. eg "usba_***".
+ """
+
+ debited: Debited
+ """
+ The amount in specified currency that was debited from the Payment Method.
+ """
+ payment_method: PaymentMethod
+ """
+ The Payment Method object used to create the InboundTransfer.
+ """
+ _inner_class_types = {
+ "debited": Debited,
+ "payment_method": PaymentMethod,
+ }
+
+ class To(StripeObject):
+ class Credited(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ credited: Credited
+ """
+ The amount by which the FinancialAccount balance is credited.
+ """
+ financial_account: str
+ """
+ The FinancialAccount that funds will land in.
+ """
+ _inner_class_types = {"credited": Credited}
+
+ class TransferHistory(StripeObject):
+ class BankDebitFailed(StripeObject):
+ failure_reason: Literal[
+ "bank_account_closed",
+ "bank_account_not_found",
+ "bank_debit_could_not_be_processed",
+ "bank_debit_not_authorized",
+ "insufficient_funds",
+ ]
+ """
+ Open Enum. The return reason for the failed InboundTransfer.
+ """
+
+ class BankDebitReturned(StripeObject):
+ return_reason: Literal[
+ "bank_account_closed",
+ "bank_account_not_found",
+ "bank_debit_could_not_be_processed",
+ "bank_debit_not_authorized",
+ "insufficient_funds",
+ ]
+ """
+ Open Enum. The return reason for the returned InboundTransfer.
+ """
+
+ bank_debit_failed: Optional[BankDebitFailed]
+ """
+ The history entry for a failed InboundTransfer.
+ """
+ bank_debit_processing: Optional[Dict[str, "Any"]]
+ """
+ The history entry for a processing InboundTransfer.
+ """
+ bank_debit_queued: Optional[Dict[str, "Any"]]
+ """
+ The history entry for a queued InboundTransfer.
+ """
+ bank_debit_returned: Optional[BankDebitReturned]
+ """
+ The history entry for a returned InboundTransfer.
+ """
+ bank_debit_succeeded: Optional[Dict[str, "Any"]]
+ """
+ The history entry for a succeeded InboundTransfer.
+ """
+ created: str
+ """
+ Creation time of the HistoryEntry in RFC 3339 format and UTC.
+ """
+ effective_at: str
+ """
+ Effective at time of the HistoryEntry in RFC 3339 format and UTC.
+ """
+ id: str
+ """
+ A unique ID for the HistoryEntry.
+ """
+ level: Literal["canonical", "debug"]
+ """
+ Open Enum. The Level of the HistoryEntry.
+ """
+ type: Literal[
+ "bank_debit_failed",
+ "bank_debit_processing",
+ "bank_debit_queued",
+ "bank_debit_returned",
+ "bank_debit_succeeded",
+ ]
+ """
+ Open Enum. The type of the HistoryEntry.
+ """
+ _inner_class_types = {
+ "bank_debit_failed": BankDebitFailed,
+ "bank_debit_returned": BankDebitReturned,
+ }
+
+ amount: Amount
+ """
+ The amount in specified currency that will land in the FinancialAccount balance.
+ """
+ created: str
+ """
+ Creation time of the InboundTransfer. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ description: str
+ """
+ A freeform text field provided by user, containing metadata.
+ """
+ from_: From
+ """
+ A nested object containing information about the origin of the InboundTransfer.
+ """
+ id: str
+ """
+ Unique identifier for the InboundTransfer.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.money_management.inbound_transfer"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ receipt_url: Optional[str]
+ """
+ A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
+ """
+ to: To
+ """
+ A nested object containing information about the destination of the InboundTransfer.
+ """
+ transfer_history: List[TransferHistory]
+ """
+ A list of history objects, representing changes in the state of the InboundTransfer.
+ """
+ _inner_class_types = {
+ "amount": Amount,
+ "from": From,
+ "to": To,
+ "transfer_history": TransferHistory,
+ }
+ _field_remappings = {"from_": "from"}
diff --git a/stripe/v2/money_management/_inbound_transfer_service.py b/stripe/v2/money_management/_inbound_transfer_service.py
new file mode 100644
index 000000000..2c76f1231
--- /dev/null
+++ b/stripe/v2/money_management/_inbound_transfer_service.py
@@ -0,0 +1,142 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._inbound_transfer_create_params import (
+ InboundTransferCreateParams,
+ )
+ from stripe.params.v2.money_management._inbound_transfer_list_params import (
+ InboundTransferListParams,
+ )
+ from stripe.params.v2.money_management._inbound_transfer_retrieve_params import (
+ InboundTransferRetrieveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.money_management._inbound_transfer import InboundTransfer
+
+
+class InboundTransferService(StripeService):
+ def list(
+ self,
+ params: Optional["InboundTransferListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[InboundTransfer]":
+ """
+ Retrieves a list of InboundTransfers.
+ """
+ return cast(
+ "ListObject[InboundTransfer]",
+ self._request(
+ "get",
+ "/v2/money_management/inbound_transfers",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["InboundTransferListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[InboundTransfer]":
+ """
+ Retrieves a list of InboundTransfers.
+ """
+ return cast(
+ "ListObject[InboundTransfer]",
+ await self._request_async(
+ "get",
+ "/v2/money_management/inbound_transfers",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "InboundTransferCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "InboundTransfer":
+ """
+ InboundTransfers APIs are used to create, retrieve or list InboundTransfers.
+ """
+ return cast(
+ "InboundTransfer",
+ self._request(
+ "post",
+ "/v2/money_management/inbound_transfers",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "InboundTransferCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "InboundTransfer":
+ """
+ InboundTransfers APIs are used to create, retrieve or list InboundTransfers.
+ """
+ return cast(
+ "InboundTransfer",
+ await self._request_async(
+ "post",
+ "/v2/money_management/inbound_transfers",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["InboundTransferRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "InboundTransfer":
+ """
+ Retrieve an InboundTransfer by ID.
+ """
+ return cast(
+ "InboundTransfer",
+ self._request(
+ "get",
+ "/v2/money_management/inbound_transfers/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["InboundTransferRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "InboundTransfer":
+ """
+ Retrieve an InboundTransfer by ID.
+ """
+ return cast(
+ "InboundTransfer",
+ await self._request_async(
+ "get",
+ "/v2/money_management/inbound_transfers/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_outbound_payment.py b/stripe/v2/money_management/_outbound_payment.py
new file mode 100644
index 000000000..9d3699ac4
--- /dev/null
+++ b/stripe/v2/money_management/_outbound_payment.py
@@ -0,0 +1,258 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, Optional
+from typing_extensions import Literal
+
+
+class OutboundPayment(StripeObject):
+ """
+ OutboundPayment represents a single money movement from one FinancialAccount you own to a payout method someone else owns.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.money_management.outbound_payment"]] = (
+ "v2.money_management.outbound_payment"
+ )
+
+ class Amount(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class DeliveryOptions(StripeObject):
+ bank_account: Optional[Literal["automatic", "local", "wire"]]
+ """
+ Open Enum. Method for bank account.
+ """
+
+ class From(StripeObject):
+ class Debited(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ debited: Debited
+ """
+ The monetary amount debited from the sender, only set on responses.
+ """
+ financial_account: str
+ """
+ The FinancialAccount that funds were pulled from.
+ """
+ _inner_class_types = {"debited": Debited}
+
+ class RecipientNotification(StripeObject):
+ setting: Literal["configured", "none"]
+ """
+ Closed Enum. Configuration option to enable or disable notifications to recipients.
+ Do not send notifications when setting is NONE. Default to account setting when setting is CONFIGURED or not set.
+ """
+
+ class StatusDetails(StripeObject):
+ class Failed(StripeObject):
+ reason: Literal[
+ "payout_method_declined",
+ "payout_method_does_not_exist",
+ "payout_method_expired",
+ "payout_method_unsupported",
+ "payout_method_usage_frequency_limit_exceeded",
+ "unknown_failure",
+ ]
+ """
+ Open Enum. The `failed` status reason.
+ """
+
+ class Returned(StripeObject):
+ reason: Literal[
+ "payout_method_canceled_by_customer",
+ "payout_method_closed",
+ "payout_method_currency_unsupported",
+ "payout_method_does_not_exist",
+ "payout_method_holder_address_incorrect",
+ "payout_method_holder_details_incorrect",
+ "payout_method_holder_name_incorrect",
+ "payout_method_invalid_account_number",
+ "payout_method_restricted",
+ "recalled",
+ "unknown_failure",
+ ]
+ """
+ Open Enum. The `returned` status reason.
+ """
+
+ failed: Optional[Failed]
+ """
+ The `failed` status reason.
+ """
+ returned: Optional[Returned]
+ """
+ The `returned` status reason.
+ """
+ _inner_class_types = {"failed": Failed, "returned": Returned}
+
+ class StatusTransitions(StripeObject):
+ canceled_at: Optional[str]
+ """
+ Timestamp describing when an OutboundPayment changed status to `canceled`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ failed_at: Optional[str]
+ """
+ Timestamp describing when an OutboundPayment changed status to `failed`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ posted_at: Optional[str]
+ """
+ Timestamp describing when an OutboundPayment changed status to `posted`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ returned_at: Optional[str]
+ """
+ Timestamp describing when an OutboundPayment changed status to `returned`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+
+ class To(StripeObject):
+ class Credited(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ credited: Credited
+ """
+ The monetary amount being credited to the destination.
+ """
+ payout_method: str
+ """
+ The payout method which the OutboundPayment uses to send payout.
+ """
+ recipient: str
+ """
+ To which account the OutboundPayment is sent.
+ """
+ _inner_class_types = {"credited": Credited}
+
+ class TraceId(StripeObject):
+ status: Literal["pending", "supported", "unsupported"]
+ """
+ Possible values are `pending`, `supported`, and `unsupported`. Initially set to `pending`, it changes to
+ `supported` when the recipient bank provides a trace ID, or `unsupported` if the recipient bank doesn't support it.
+ Note that this status may not align with the OutboundPayment or OutboundTransfer status and can remain `pending`
+ even after the payment or transfer is posted.
+ """
+ value: Optional[str]
+ """
+ The trace ID value if `trace_id.status` is `supported`, otherwise empty.
+ """
+
+ amount: Amount
+ """
+ The "presentment amount" for the OutboundPayment.
+ """
+ cancelable: bool
+ """
+ Returns true if the OutboundPayment can be canceled, and false otherwise.
+ """
+ created: str
+ """
+ Time at which the OutboundPayment was created.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ delivery_options: Optional[DeliveryOptions]
+ """
+ Delivery options to be used to send the OutboundPayment.
+ """
+ description: Optional[str]
+ """
+ An arbitrary string attached to the OutboundPayment. Often useful for displaying to users.
+ """
+ expected_arrival_date: Optional[str]
+ """
+ The date when funds are expected to arrive in the payout method. This field is not set if the payout method is in a `failed`, `canceled`, or `returned` state.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ from_: From
+ """
+ The FinancialAccount that funds were pulled from.
+ """
+ id: str
+ """
+ Unique identifier for the OutboundPayment.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ 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.
+ """
+ object: Literal["v2.money_management.outbound_payment"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ outbound_payment_quote: Optional[str]
+ """
+ The quote for this OutboundPayment. Only required for countries with regulatory mandates to display fee estimates before OutboundPayment creation.
+ """
+ receipt_url: Optional[str]
+ """
+ A link to the Stripe-hosted receipt for this OutboundPayment. The receipt link remains active for 60 days from the OutboundPayment creation date. After this period, the link will expire and the receipt url value will be null.
+ """
+ recipient_notification: RecipientNotification
+ """
+ Details about the OutboundPayment notification settings for recipient.
+ """
+ statement_descriptor: str
+ """
+ The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer). It will default to `STRIPE` if not set on the account settings.
+ """
+ status: Literal["canceled", "failed", "posted", "processing", "returned"]
+ """
+ Closed Enum. Current status of the OutboundPayment: `processing`, `failed`, `posted`, `returned`, `canceled`.
+ An OutboundPayment is `processing` if it has been created and is processing.
+ The status changes to `posted` once the OutboundPayment has been "confirmed" and funds have left the account, or to `failed` or `canceled`.
+ If an OutboundPayment fails to arrive at its payout method, its status will change to `returned`.
+ """
+ status_details: Optional[StatusDetails]
+ """
+ Status details for an OutboundPayment in a `failed` or `returned` state.
+ """
+ status_transitions: Optional[StatusTransitions]
+ """
+ Hash containing timestamps of when the object transitioned to a particular status.
+ """
+ to: To
+ """
+ To which payout method the OutboundPayment was sent.
+ """
+ trace_id: TraceId
+ """
+ A unique identifier that can be used to track this OutboundPayment with recipient bank. Banks might call this a “reference number” or something similar.
+ """
+ _inner_class_types = {
+ "amount": Amount,
+ "delivery_options": DeliveryOptions,
+ "from": From,
+ "recipient_notification": RecipientNotification,
+ "status_details": StatusDetails,
+ "status_transitions": StatusTransitions,
+ "to": To,
+ "trace_id": TraceId,
+ }
+ _field_remappings = {"from_": "from"}
diff --git a/stripe/v2/money_management/_outbound_payment_quote.py b/stripe/v2/money_management/_outbound_payment_quote.py
new file mode 100644
index 000000000..7e02c1e8a
--- /dev/null
+++ b/stripe/v2/money_management/_outbound_payment_quote.py
@@ -0,0 +1,185 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, List, Optional
+from typing_extensions import Literal
+
+
+class OutboundPaymentQuote(StripeObject):
+ """
+ OutboundPaymentQuote represents a quote that provides fee and amount estimates for OutboundPayment.
+ """
+
+ OBJECT_NAME: ClassVar[
+ Literal["v2.money_management.outbound_payment_quote"]
+ ] = "v2.money_management.outbound_payment_quote"
+
+ class Amount(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class DeliveryOptions(StripeObject):
+ bank_account: Optional[Literal["automatic", "local", "wire"]]
+ """
+ Open Enum. Method for bank account.
+ """
+
+ class EstimatedFee(StripeObject):
+ class Amount(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ amount: Amount
+ """
+ The fee amount for corresponding fee type.
+ """
+ type: Literal[
+ "cross_border_payout_fee",
+ "foreign_exchange_fee",
+ "instant_payout_fee",
+ "standard_payout_fee",
+ "wire_payout_fee",
+ ]
+ """
+ The fee type.
+ """
+ _inner_class_types = {"amount": Amount}
+
+ class From(StripeObject):
+ class Debited(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ debited: Debited
+ """
+ The monetary amount debited from the sender, only set on responses.
+ """
+ financial_account: str
+ """
+ The FinancialAccount that funds were pulled from.
+ """
+ _inner_class_types = {"debited": Debited}
+
+ class FxQuote(StripeObject):
+ class Rates(StripeObject):
+ exchange_rate: str
+ """
+ The exchange rate going from_currency -> to_currency.
+ """
+
+ lock_duration: Literal["five_minutes", "none"]
+ """
+ The duration the exchange rate lock remains valid from creation time. Allowed value is five_minutes or none.
+ """
+ lock_expires_at: Optional[str]
+ """
+ Time at which the rate lock will expire, measured in seconds since the Unix epoch. Null when rate locking is not supported.
+ """
+ lock_status: Literal["active", "expired", "none"]
+ """
+ Lock status of the quote. Transitions from active to expired once past the lock_expires_at timestamp. Value can be active, expired or none.
+ """
+ rates: Dict[str, Rates]
+ """
+ Key pair: from currency Value: exchange rate going from_currency -> to_currency.
+ """
+ to_currency: str
+ """
+ The currency that the transaction is exchanging to.
+ """
+ _inner_class_types = {"rates": Rates}
+ _inner_class_dicts = ["rates"]
+
+ class To(StripeObject):
+ class Credited(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ credited: Credited
+ """
+ The monetary amount being credited to the destination.
+ """
+ payout_method: str
+ """
+ The payout method which the OutboundPayment uses to send payout.
+ """
+ recipient: str
+ """
+ To which account the OutboundPayment is sent.
+ """
+ _inner_class_types = {"credited": Credited}
+
+ amount: Amount
+ """
+ The "presentment amount" for the OutboundPaymentQuote.
+ """
+ created: str
+ """
+ Time at which the OutboundPaymentQuote was created.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ delivery_options: Optional[DeliveryOptions]
+ """
+ Delivery options to be used to send the OutboundPayment.
+ """
+ estimated_fees: List[EstimatedFee]
+ """
+ The estimated fees for the OutboundPaymentQuote.
+ """
+ from_: From
+ """
+ Details about the sender of an OutboundPaymentQuote.
+ """
+ fx_quote: FxQuote
+ """
+ The underlying FXQuote details for the OutboundPaymentQuote.
+ """
+ id: str
+ """
+ Unique identifier for the OutboundPaymentQuote.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.money_management.outbound_payment_quote"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ to: To
+ """
+ Details about the recipient of an OutboundPaymentQuote.
+ """
+ _inner_class_types = {
+ "amount": Amount,
+ "delivery_options": DeliveryOptions,
+ "estimated_fees": EstimatedFee,
+ "from": From,
+ "fx_quote": FxQuote,
+ "to": To,
+ }
+ _field_remappings = {"from_": "from"}
diff --git a/stripe/v2/money_management/_outbound_payment_quote_service.py b/stripe/v2/money_management/_outbound_payment_quote_service.py
new file mode 100644
index 000000000..8a54acb33
--- /dev/null
+++ b/stripe/v2/money_management/_outbound_payment_quote_service.py
@@ -0,0 +1,102 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._outbound_payment_quote_create_params import (
+ OutboundPaymentQuoteCreateParams,
+ )
+ from stripe.params.v2.money_management._outbound_payment_quote_retrieve_params import (
+ OutboundPaymentQuoteRetrieveParams,
+ )
+ from stripe.v2.money_management._outbound_payment_quote import (
+ OutboundPaymentQuote,
+ )
+
+
+class OutboundPaymentQuoteService(StripeService):
+ def create(
+ self,
+ params: "OutboundPaymentQuoteCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundPaymentQuote":
+ """
+ Creates an OutboundPaymentQuote usable in an OutboundPayment.
+ """
+ return cast(
+ "OutboundPaymentQuote",
+ self._request(
+ "post",
+ "/v2/money_management/outbound_payment_quotes",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "OutboundPaymentQuoteCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundPaymentQuote":
+ """
+ Creates an OutboundPaymentQuote usable in an OutboundPayment.
+ """
+ return cast(
+ "OutboundPaymentQuote",
+ await self._request_async(
+ "post",
+ "/v2/money_management/outbound_payment_quotes",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["OutboundPaymentQuoteRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundPaymentQuote":
+ """
+ Retrieves the details of an existing OutboundPaymentQuote by passing the unique OutboundPaymentQuote ID.
+ """
+ return cast(
+ "OutboundPaymentQuote",
+ self._request(
+ "get",
+ "/v2/money_management/outbound_payment_quotes/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["OutboundPaymentQuoteRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundPaymentQuote":
+ """
+ Retrieves the details of an existing OutboundPaymentQuote by passing the unique OutboundPaymentQuote ID.
+ """
+ return cast(
+ "OutboundPaymentQuote",
+ await self._request_async(
+ "get",
+ "/v2/money_management/outbound_payment_quotes/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_outbound_payment_service.py b/stripe/v2/money_management/_outbound_payment_service.py
new file mode 100644
index 000000000..c26cf0169
--- /dev/null
+++ b/stripe/v2/money_management/_outbound_payment_service.py
@@ -0,0 +1,189 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._outbound_payment_cancel_params import (
+ OutboundPaymentCancelParams,
+ )
+ from stripe.params.v2.money_management._outbound_payment_create_params import (
+ OutboundPaymentCreateParams,
+ )
+ from stripe.params.v2.money_management._outbound_payment_list_params import (
+ OutboundPaymentListParams,
+ )
+ from stripe.params.v2.money_management._outbound_payment_retrieve_params import (
+ OutboundPaymentRetrieveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.money_management._outbound_payment import OutboundPayment
+
+
+class OutboundPaymentService(StripeService):
+ def list(
+ self,
+ params: Optional["OutboundPaymentListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[OutboundPayment]":
+ """
+ Returns a list of OutboundPayments that match the provided filters.
+ """
+ return cast(
+ "ListObject[OutboundPayment]",
+ self._request(
+ "get",
+ "/v2/money_management/outbound_payments",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["OutboundPaymentListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[OutboundPayment]":
+ """
+ Returns a list of OutboundPayments that match the provided filters.
+ """
+ return cast(
+ "ListObject[OutboundPayment]",
+ await self._request_async(
+ "get",
+ "/v2/money_management/outbound_payments",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "OutboundPaymentCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundPayment":
+ """
+ Creates an OutboundPayment.
+ """
+ return cast(
+ "OutboundPayment",
+ self._request(
+ "post",
+ "/v2/money_management/outbound_payments",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "OutboundPaymentCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundPayment":
+ """
+ Creates an OutboundPayment.
+ """
+ return cast(
+ "OutboundPayment",
+ await self._request_async(
+ "post",
+ "/v2/money_management/outbound_payments",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["OutboundPaymentRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundPayment":
+ """
+ Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment create or list response.
+ """
+ return cast(
+ "OutboundPayment",
+ self._request(
+ "get",
+ "/v2/money_management/outbound_payments/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["OutboundPaymentRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundPayment":
+ """
+ Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment create or list response.
+ """
+ return cast(
+ "OutboundPayment",
+ await self._request_async(
+ "get",
+ "/v2/money_management/outbound_payments/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def cancel(
+ self,
+ id: str,
+ params: Optional["OutboundPaymentCancelParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundPayment":
+ """
+ Cancels an OutboundPayment. Only processing OutboundPayments can be canceled.
+ """
+ return cast(
+ "OutboundPayment",
+ self._request(
+ "post",
+ "/v2/money_management/outbound_payments/{id}/cancel".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def cancel_async(
+ self,
+ id: str,
+ params: Optional["OutboundPaymentCancelParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundPayment":
+ """
+ Cancels an OutboundPayment. Only processing OutboundPayments can be canceled.
+ """
+ return cast(
+ "OutboundPayment",
+ await self._request_async(
+ "post",
+ "/v2/money_management/outbound_payments/{id}/cancel".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_outbound_setup_intent.py b/stripe/v2/money_management/_outbound_setup_intent.py
new file mode 100644
index 000000000..eb661a3f6
--- /dev/null
+++ b/stripe/v2/money_management/_outbound_setup_intent.py
@@ -0,0 +1,77 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.v2.money_management._payout_method import PayoutMethod
+
+
+class OutboundSetupIntent(StripeObject):
+ """
+ Use the OutboundSetupIntent API to create and setup usable payout methods.
+ """
+
+ OBJECT_NAME: ClassVar[
+ Literal["v2.money_management.outbound_setup_intent"]
+ ] = "v2.money_management.outbound_setup_intent"
+
+ class NextAction(StripeObject):
+ class ConfirmationOfPayee(StripeObject):
+ object: str
+ """
+ The type of the credential.
+ """
+ status: Literal[
+ "awaiting_acknowledgement", "confirmed", "uninitiated"
+ ]
+ """
+ The Confirmation of Payee status.
+ """
+
+ confirmation_of_payee: Optional[ConfirmationOfPayee]
+ """
+ Confirmation of Payee details.
+ """
+ type: Literal["confirmation_of_payee"]
+ """
+ The type of next action.
+ """
+ _inner_class_types = {"confirmation_of_payee": ConfirmationOfPayee}
+
+ created: str
+ """
+ Created timestamp.
+ """
+ id: str
+ """
+ ID of the outbound setup intent.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ next_action: Optional[NextAction]
+ """
+ Specifies which actions needs to be taken next to continue setup of the credential.
+ """
+ object: Literal["v2.money_management.outbound_setup_intent"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ payout_method: "PayoutMethod"
+ """
+ Use the PayoutMethods API to list and interact with PayoutMethod objects.
+ """
+ status: Literal[
+ "canceled", "requires_action", "requires_payout_method", "succeeded"
+ ]
+ """
+ Closed Enum. Status of the outbound setup intent.
+ """
+ usage_intent: Literal["payment", "transfer"]
+ """
+ The intended money movement flow this payout method should be set up for, specified in params.
+ """
+ _inner_class_types = {"next_action": NextAction}
diff --git a/stripe/v2/money_management/_outbound_setup_intent_service.py b/stripe/v2/money_management/_outbound_setup_intent_service.py
new file mode 100644
index 000000000..45564cd30
--- /dev/null
+++ b/stripe/v2/money_management/_outbound_setup_intent_service.py
@@ -0,0 +1,238 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._outbound_setup_intent_cancel_params import (
+ OutboundSetupIntentCancelParams,
+ )
+ from stripe.params.v2.money_management._outbound_setup_intent_create_params import (
+ OutboundSetupIntentCreateParams,
+ )
+ from stripe.params.v2.money_management._outbound_setup_intent_list_params import (
+ OutboundSetupIntentListParams,
+ )
+ from stripe.params.v2.money_management._outbound_setup_intent_retrieve_params import (
+ OutboundSetupIntentRetrieveParams,
+ )
+ from stripe.params.v2.money_management._outbound_setup_intent_update_params import (
+ OutboundSetupIntentUpdateParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.money_management._outbound_setup_intent import (
+ OutboundSetupIntent,
+ )
+
+
+class OutboundSetupIntentService(StripeService):
+ def list(
+ self,
+ params: Optional["OutboundSetupIntentListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[OutboundSetupIntent]":
+ """
+ List the OutboundSetupIntent objects.
+ """
+ return cast(
+ "ListObject[OutboundSetupIntent]",
+ self._request(
+ "get",
+ "/v2/money_management/outbound_setup_intents",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["OutboundSetupIntentListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[OutboundSetupIntent]":
+ """
+ List the OutboundSetupIntent objects.
+ """
+ return cast(
+ "ListObject[OutboundSetupIntent]",
+ await self._request_async(
+ "get",
+ "/v2/money_management/outbound_setup_intents",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: Optional["OutboundSetupIntentCreateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundSetupIntent":
+ """
+ Create an OutboundSetupIntent object.
+ """
+ return cast(
+ "OutboundSetupIntent",
+ self._request(
+ "post",
+ "/v2/money_management/outbound_setup_intents",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: Optional["OutboundSetupIntentCreateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundSetupIntent":
+ """
+ Create an OutboundSetupIntent object.
+ """
+ return cast(
+ "OutboundSetupIntent",
+ await self._request_async(
+ "post",
+ "/v2/money_management/outbound_setup_intents",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["OutboundSetupIntentRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundSetupIntent":
+ """
+ Retrieve an OutboundSetupIntent object.
+ """
+ return cast(
+ "OutboundSetupIntent",
+ self._request(
+ "get",
+ "/v2/money_management/outbound_setup_intents/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["OutboundSetupIntentRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundSetupIntent":
+ """
+ Retrieve an OutboundSetupIntent object.
+ """
+ return cast(
+ "OutboundSetupIntent",
+ await self._request_async(
+ "get",
+ "/v2/money_management/outbound_setup_intents/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ id: str,
+ params: Optional["OutboundSetupIntentUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundSetupIntent":
+ """
+ Update an OutboundSetupIntent object.
+ """
+ return cast(
+ "OutboundSetupIntent",
+ self._request(
+ "post",
+ "/v2/money_management/outbound_setup_intents/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ id: str,
+ params: Optional["OutboundSetupIntentUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundSetupIntent":
+ """
+ Update an OutboundSetupIntent object.
+ """
+ return cast(
+ "OutboundSetupIntent",
+ await self._request_async(
+ "post",
+ "/v2/money_management/outbound_setup_intents/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def cancel(
+ self,
+ id: str,
+ params: Optional["OutboundSetupIntentCancelParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundSetupIntent":
+ """
+ Cancel an OutboundSetupIntent object.
+ """
+ return cast(
+ "OutboundSetupIntent",
+ self._request(
+ "post",
+ "/v2/money_management/outbound_setup_intents/{id}/cancel".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def cancel_async(
+ self,
+ id: str,
+ params: Optional["OutboundSetupIntentCancelParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundSetupIntent":
+ """
+ Cancel an OutboundSetupIntent object.
+ """
+ return cast(
+ "OutboundSetupIntent",
+ await self._request_async(
+ "post",
+ "/v2/money_management/outbound_setup_intents/{id}/cancel".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_outbound_transfer.py b/stripe/v2/money_management/_outbound_transfer.py
new file mode 100644
index 000000000..abf0ad957
--- /dev/null
+++ b/stripe/v2/money_management/_outbound_transfer.py
@@ -0,0 +1,238 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, Optional
+from typing_extensions import Literal
+
+
+class OutboundTransfer(StripeObject):
+ """
+ OutboundTransfer represents a single money movement from one FinancialAccount you own to a payout method you also own.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.money_management.outbound_transfer"]] = (
+ "v2.money_management.outbound_transfer"
+ )
+
+ class Amount(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class DeliveryOptions(StripeObject):
+ bank_account: Optional[Literal["automatic", "local", "wire"]]
+ """
+ Open Enum. Method for bank account.
+ """
+
+ class From(StripeObject):
+ class Debited(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ debited: Debited
+ """
+ The monetary amount debited from the sender, only set on responses.
+ """
+ financial_account: str
+ """
+ The FinancialAccount that funds were pulled from.
+ """
+ _inner_class_types = {"debited": Debited}
+
+ class StatusDetails(StripeObject):
+ class Failed(StripeObject):
+ reason: Literal[
+ "payout_method_declined",
+ "payout_method_does_not_exist",
+ "payout_method_expired",
+ "payout_method_unsupported",
+ "payout_method_usage_frequency_limit_exceeded",
+ "unknown_failure",
+ ]
+ """
+ Open Enum. The `failed` status reason.
+ """
+
+ class Returned(StripeObject):
+ reason: Literal[
+ "payout_method_canceled_by_customer",
+ "payout_method_closed",
+ "payout_method_currency_unsupported",
+ "payout_method_does_not_exist",
+ "payout_method_holder_address_incorrect",
+ "payout_method_holder_details_incorrect",
+ "payout_method_holder_name_incorrect",
+ "payout_method_invalid_account_number",
+ "payout_method_restricted",
+ "recalled",
+ "unknown_failure",
+ ]
+ """
+ Open Enum. The `returned` status reason.
+ """
+
+ failed: Optional[Failed]
+ """
+ The `failed` status reason.
+ """
+ returned: Optional[Returned]
+ """
+ The `returned` status reason.
+ """
+ _inner_class_types = {"failed": Failed, "returned": Returned}
+
+ class StatusTransitions(StripeObject):
+ canceled_at: Optional[str]
+ """
+ Timestamp describing when an OutboundTransfer changed status to `canceled`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ failed_at: Optional[str]
+ """
+ Timestamp describing when an OutboundTransfer changed status to `failed`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ posted_at: Optional[str]
+ """
+ Timestamp describing when an OutboundTransfer changed status to `posted`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ returned_at: Optional[str]
+ """
+ Timestamp describing when an OutboundTransfer changed status to `returned`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+
+ class To(StripeObject):
+ class Credited(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ credited: Credited
+ """
+ The monetary amount being credited to the destination.
+ """
+ payout_method: str
+ """
+ The payout method which the OutboundTransfer uses to send payout.
+ """
+ _inner_class_types = {"credited": Credited}
+
+ class TraceId(StripeObject):
+ status: Literal["pending", "supported", "unsupported"]
+ """
+ Possible values are `pending`, `supported`, and `unsupported`. Initially set to `pending`, it changes to
+ `supported` when the recipient bank provides a trace ID, or `unsupported` if the recipient bank doesn't support it.
+ Note that this status may not align with the OutboundPayment or OutboundTransfer status and can remain `pending`
+ even after the payment or transfer is posted.
+ """
+ value: Optional[str]
+ """
+ The trace ID value if `trace_id.status` is `supported`, otherwise empty.
+ """
+
+ amount: Amount
+ """
+ The "presentment amount" for the OutboundTransfer.
+ """
+ cancelable: bool
+ """
+ Returns true if the OutboundTransfer can be canceled, and false otherwise.
+ """
+ created: str
+ """
+ Time at which the OutboundTransfer was created.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ delivery_options: Optional[DeliveryOptions]
+ """
+ Delivery options to be used to send the OutboundTransfer.
+ """
+ description: Optional[str]
+ """
+ An arbitrary string attached to the OutboundTransfer. Often useful for displaying to users.
+ """
+ expected_arrival_date: Optional[str]
+ """
+ The date when funds are expected to arrive in the payout method. This field is not set if the payout method is in a `failed`, `canceled`, or `returned` state.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ from_: From
+ """
+ The FinancialAccount that funds were pulled from.
+ """
+ id: str
+ """
+ Unique identifier for the OutboundTransfer.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ metadata: Optional[Dict[str, str]]
+ """
+ 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.
+ """
+ object: Literal["v2.money_management.outbound_transfer"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ receipt_url: Optional[str]
+ """
+ A link to the Stripe-hosted receipt for this OutboundTransfer. The receipt link remains active for 60 days from the OutboundTransfer creation date. After this period, the link will expire and the receipt url value will be null.
+ """
+ statement_descriptor: str
+ """
+ The description that appears on the receiving end for an OutboundTransfer (for example, bank statement for external bank transfer). It will default to `STRIPE` if not set on the account settings.
+ """
+ status: Literal["canceled", "failed", "posted", "processing", "returned"]
+ """
+ Closed Enum. Current status of the OutboundTransfer: `processing`, `failed`, `posted`, `returned`, `canceled`.
+ An OutboundTransfer is `processing` if it has been created and is processing.
+ The status changes to `posted` once the OutboundTransfer has been "confirmed" and funds have left the account, or to `failed` or `canceled`.
+ If an OutboundTransfer fails to arrive at its payout method, its status will change to `returned`.
+ """
+ status_details: Optional[StatusDetails]
+ """
+ Status details for an OutboundTransfer in a `failed` or `returned` state.
+ """
+ status_transitions: Optional[StatusTransitions]
+ """
+ Hash containing timestamps of when the object transitioned to a particular status.
+ """
+ to: To
+ """
+ To which payout method the OutboundTransfer was sent.
+ """
+ trace_id: TraceId
+ """
+ A unique identifier that can be used to track this OutboundTransfer with recipient bank. Banks might call this a “reference number” or something similar.
+ """
+ _inner_class_types = {
+ "amount": Amount,
+ "delivery_options": DeliveryOptions,
+ "from": From,
+ "status_details": StatusDetails,
+ "status_transitions": StatusTransitions,
+ "to": To,
+ "trace_id": TraceId,
+ }
+ _field_remappings = {"from_": "from"}
diff --git a/stripe/v2/money_management/_outbound_transfer_service.py b/stripe/v2/money_management/_outbound_transfer_service.py
new file mode 100644
index 000000000..fe0a702ff
--- /dev/null
+++ b/stripe/v2/money_management/_outbound_transfer_service.py
@@ -0,0 +1,189 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._outbound_transfer_cancel_params import (
+ OutboundTransferCancelParams,
+ )
+ from stripe.params.v2.money_management._outbound_transfer_create_params import (
+ OutboundTransferCreateParams,
+ )
+ from stripe.params.v2.money_management._outbound_transfer_list_params import (
+ OutboundTransferListParams,
+ )
+ from stripe.params.v2.money_management._outbound_transfer_retrieve_params import (
+ OutboundTransferRetrieveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.money_management._outbound_transfer import OutboundTransfer
+
+
+class OutboundTransferService(StripeService):
+ def list(
+ self,
+ params: Optional["OutboundTransferListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[OutboundTransfer]":
+ """
+ Returns a list of OutboundTransfers that match the provided filters.
+ """
+ return cast(
+ "ListObject[OutboundTransfer]",
+ self._request(
+ "get",
+ "/v2/money_management/outbound_transfers",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["OutboundTransferListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[OutboundTransfer]":
+ """
+ Returns a list of OutboundTransfers that match the provided filters.
+ """
+ return cast(
+ "ListObject[OutboundTransfer]",
+ await self._request_async(
+ "get",
+ "/v2/money_management/outbound_transfers",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "OutboundTransferCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundTransfer":
+ """
+ Creates an OutboundTransfer.
+ """
+ return cast(
+ "OutboundTransfer",
+ self._request(
+ "post",
+ "/v2/money_management/outbound_transfers",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "OutboundTransferCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundTransfer":
+ """
+ Creates an OutboundTransfer.
+ """
+ return cast(
+ "OutboundTransfer",
+ await self._request_async(
+ "post",
+ "/v2/money_management/outbound_transfers",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["OutboundTransferRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundTransfer":
+ """
+ Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundPayment create or list response.
+ """
+ return cast(
+ "OutboundTransfer",
+ self._request(
+ "get",
+ "/v2/money_management/outbound_transfers/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["OutboundTransferRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundTransfer":
+ """
+ Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundPayment create or list response.
+ """
+ return cast(
+ "OutboundTransfer",
+ await self._request_async(
+ "get",
+ "/v2/money_management/outbound_transfers/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def cancel(
+ self,
+ id: str,
+ params: Optional["OutboundTransferCancelParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundTransfer":
+ """
+ Cancels an OutboundTransfer. Only processing OutboundTransfers can be canceled.
+ """
+ return cast(
+ "OutboundTransfer",
+ self._request(
+ "post",
+ "/v2/money_management/outbound_transfers/{id}/cancel".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def cancel_async(
+ self,
+ id: str,
+ params: Optional["OutboundTransferCancelParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "OutboundTransfer":
+ """
+ Cancels an OutboundTransfer. Only processing OutboundTransfers can be canceled.
+ """
+ return cast(
+ "OutboundTransfer",
+ await self._request_async(
+ "post",
+ "/v2/money_management/outbound_transfers/{id}/cancel".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_payout_method.py b/stripe/v2/money_management/_payout_method.py
new file mode 100644
index 000000000..1ae47d035
--- /dev/null
+++ b/stripe/v2/money_management/_payout_method.py
@@ -0,0 +1,131 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, List, Optional
+from typing_extensions import Literal
+
+
+class PayoutMethod(StripeObject):
+ """
+ Use the PayoutMethods API to list and interact with PayoutMethod objects.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.money_management.payout_method"]] = (
+ "v2.money_management.payout_method"
+ )
+
+ class BankAccount(StripeObject):
+ archived: bool
+ """
+ Whether this PayoutMethodBankAccount object was archived. PayoutMethodBankAccount objects can be archived through
+ the /archive API, and they will not be automatically archived by Stripe. Archived PayoutMethodBankAccount objects
+ cannot be used as payout methods and will not appear in the payout method list.
+ """
+ bank_account_type: Literal["checking", "savings"]
+ """
+ The type of bank account (checking or savings).
+ """
+ bank_name: str
+ """
+ The name of the bank this bank account is in. This field is populated automatically by Stripe.
+ """
+ country: str
+ """
+ The country code of the bank account.
+ """
+ enabled_delivery_options: List[str]
+ """
+ List of enabled flows for this bank account (wire or local).
+ """
+ financial_connections_account: Optional[str]
+ """
+ The ID of the Financial Connections Account used to create the bank account.
+ """
+ last4: str
+ """
+ The last 4 digits of the account number.
+ """
+ routing_number: Optional[str]
+ """
+ The routing number of the bank account, if present.
+ """
+ supported_currencies: List[str]
+ """
+ The list of currencies supported by this bank account.
+ """
+
+ class Card(StripeObject):
+ archived: bool
+ """
+ Whether the PayoutMethodCard object was archived. PayoutMethodCard objects can be archived through
+ the /archive API, and they will not be automatically archived by Stripe. Archived PayoutMethodCard objects
+ cannot be used as payout methods and will not appear in the payout method list.
+ """
+ exp_month: str
+ """
+ The month the card expires.
+ """
+ exp_year: str
+ """
+ The year the card expires.
+ """
+ last4: str
+ """
+ The last 4 digits of the card number.
+ """
+
+ class UsageStatus(StripeObject):
+ payments: Literal["eligible", "invalid", "requires_action"]
+ """
+ Payments status - used when sending OutboundPayments (sending funds to recipients).
+ """
+ transfers: Literal["eligible", "invalid", "requires_action"]
+ """
+ Transfers status - used when making an OutboundTransfer (sending funds to yourself).
+ """
+
+ available_payout_speeds: List[Literal["instant", "standard"]]
+ """
+ A set of available payout speeds for this payout method.
+ """
+ bank_account: Optional[BankAccount]
+ """
+ The PayoutMethodBankAccount object details.
+ """
+ card: Optional[Card]
+ """
+ The PayoutMethodCard object details.
+ """
+ created: str
+ """
+ Created timestamp.
+ """
+ id: str
+ """
+ ID of the PayoutMethod object.
+ """
+ latest_outbound_setup_intent: Optional[str]
+ """
+ ID of the underlying active OutboundSetupIntent object, if any.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.money_management.payout_method"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ type: Literal["bank_account", "card", "crypto_wallet"]
+ """
+ Closed Enum. The type of payout method.
+ """
+ usage_status: UsageStatus
+ """
+ Indicates whether the payout method has met the necessary requirements for outbound money movement.
+ """
+ _inner_class_types = {
+ "bank_account": BankAccount,
+ "card": Card,
+ "usage_status": UsageStatus,
+ }
diff --git a/stripe/v2/money_management/_payout_method_service.py b/stripe/v2/money_management/_payout_method_service.py
new file mode 100644
index 000000000..520c20a82
--- /dev/null
+++ b/stripe/v2/money_management/_payout_method_service.py
@@ -0,0 +1,197 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._payout_method_archive_params import (
+ PayoutMethodArchiveParams,
+ )
+ from stripe.params.v2.money_management._payout_method_list_params import (
+ PayoutMethodListParams,
+ )
+ from stripe.params.v2.money_management._payout_method_retrieve_params import (
+ PayoutMethodRetrieveParams,
+ )
+ from stripe.params.v2.money_management._payout_method_unarchive_params import (
+ PayoutMethodUnarchiveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.money_management._payout_method import PayoutMethod
+
+
+class PayoutMethodService(StripeService):
+ def list(
+ self,
+ params: Optional["PayoutMethodListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[PayoutMethod]":
+ """
+ List objects that adhere to the PayoutMethod interface.
+ """
+ return cast(
+ "ListObject[PayoutMethod]",
+ self._request(
+ "get",
+ "/v2/money_management/payout_methods",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["PayoutMethodListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[PayoutMethod]":
+ """
+ List objects that adhere to the PayoutMethod interface.
+ """
+ return cast(
+ "ListObject[PayoutMethod]",
+ await self._request_async(
+ "get",
+ "/v2/money_management/payout_methods",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["PayoutMethodRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "PayoutMethod":
+ """
+ Retrieve a PayoutMethod object.
+ """
+ return cast(
+ "PayoutMethod",
+ self._request(
+ "get",
+ "/v2/money_management/payout_methods/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["PayoutMethodRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "PayoutMethod":
+ """
+ Retrieve a PayoutMethod object.
+ """
+ return cast(
+ "PayoutMethod",
+ await self._request_async(
+ "get",
+ "/v2/money_management/payout_methods/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def archive(
+ self,
+ id: str,
+ params: Optional["PayoutMethodArchiveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "PayoutMethod":
+ """
+ Archive a PayoutMethod object. Archived objects cannot be used as payout methods
+ and will not appear in the payout method list.
+ """
+ return cast(
+ "PayoutMethod",
+ self._request(
+ "post",
+ "/v2/money_management/payout_methods/{id}/archive".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def archive_async(
+ self,
+ id: str,
+ params: Optional["PayoutMethodArchiveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "PayoutMethod":
+ """
+ Archive a PayoutMethod object. Archived objects cannot be used as payout methods
+ and will not appear in the payout method list.
+ """
+ return cast(
+ "PayoutMethod",
+ await self._request_async(
+ "post",
+ "/v2/money_management/payout_methods/{id}/archive".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def unarchive(
+ self,
+ id: str,
+ params: Optional["PayoutMethodUnarchiveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "PayoutMethod":
+ """
+ Unarchive an PayoutMethod object.
+ """
+ return cast(
+ "PayoutMethod",
+ self._request(
+ "post",
+ "/v2/money_management/payout_methods/{id}/unarchive".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def unarchive_async(
+ self,
+ id: str,
+ params: Optional["PayoutMethodUnarchiveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "PayoutMethod":
+ """
+ Unarchive an PayoutMethod object.
+ """
+ return cast(
+ "PayoutMethod",
+ await self._request_async(
+ "post",
+ "/v2/money_management/payout_methods/{id}/unarchive".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_payout_methods_bank_account_spec.py b/stripe/v2/money_management/_payout_methods_bank_account_spec.py
new file mode 100644
index 000000000..1042f9223
--- /dev/null
+++ b/stripe/v2/money_management/_payout_methods_bank_account_spec.py
@@ -0,0 +1,77 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Dict, List
+from typing_extensions import Literal
+
+
+class PayoutMethodsBankAccountSpec(StripeObject):
+ """
+ The PayoutMethodsBankAccountSpec object.
+ """
+
+ OBJECT_NAME: ClassVar[
+ Literal["v2.money_management.payout_methods_bank_account_spec"]
+ ] = "v2.money_management.payout_methods_bank_account_spec"
+
+ class Countries(StripeObject):
+ class Field(StripeObject):
+ class LocalNameHuman(StripeObject):
+ content: str
+ """
+ The default content of the localizable string.
+ """
+ localization_key: str
+ """
+ A unique key representing the instance of this localizable string.
+ """
+
+ local_name: str
+ """
+ The local name of the field.
+ """
+ local_name_human: LocalNameHuman
+ """
+ The human readable local name of the field.
+ """
+ max_length: int
+ """
+ The maximum length of the field.
+ """
+ min_length: int
+ """
+ THe minimum length of the field.
+ """
+ placeholder: str
+ """
+ The placeholder value of the field.
+ """
+ stripe_name: str
+ """
+ The stripe name of the field.
+ """
+ validation_regex: str
+ """
+ The validation regex of the field.
+ """
+ _inner_class_types = {"local_name_human": LocalNameHuman}
+
+ fields: List[Field]
+ """
+ The list of fields for a country, along with associated information.
+ """
+ _inner_class_types = {"fields": Field}
+
+ countries: Dict[str, Countries]
+ """
+ The list of specs by country.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.money_management.payout_methods_bank_account_spec"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ _inner_class_types = {"countries": Countries}
diff --git a/stripe/v2/money_management/_payout_methods_bank_account_spec_service.py b/stripe/v2/money_management/_payout_methods_bank_account_spec_service.py
new file mode 100644
index 000000000..bf85f5d04
--- /dev/null
+++ b/stripe/v2/money_management/_payout_methods_bank_account_spec_service.py
@@ -0,0 +1,58 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._payout_methods_bank_account_spec_retrieve_params import (
+ PayoutMethodsBankAccountSpecRetrieveParams,
+ )
+ from stripe.v2.money_management._payout_methods_bank_account_spec import (
+ PayoutMethodsBankAccountSpec,
+ )
+
+
+class PayoutMethodsBankAccountSpecService(StripeService):
+ def retrieve(
+ self,
+ params: Optional["PayoutMethodsBankAccountSpecRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "PayoutMethodsBankAccountSpec":
+ """
+ Fetch the specifications for a set of countries to know which
+ credential fields are required, the validations for each fields, and how to translate these
+ country-specific fields to the generic fields in the PayoutMethodBankAccount type.
+ """
+ return cast(
+ "PayoutMethodsBankAccountSpec",
+ self._request(
+ "get",
+ "/v2/money_management/payout_methods_bank_account_spec",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ params: Optional["PayoutMethodsBankAccountSpecRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "PayoutMethodsBankAccountSpec":
+ """
+ Fetch the specifications for a set of countries to know which
+ credential fields are required, the validations for each fields, and how to translate these
+ country-specific fields to the generic fields in the PayoutMethodBankAccount type.
+ """
+ return cast(
+ "PayoutMethodsBankAccountSpec",
+ await self._request_async(
+ "get",
+ "/v2/money_management/payout_methods_bank_account_spec",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_received_credit.py b/stripe/v2/money_management/_received_credit.py
new file mode 100644
index 000000000..62cfd6511
--- /dev/null
+++ b/stripe/v2/money_management/_received_credit.py
@@ -0,0 +1,262 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal
+
+
+class ReceivedCredit(StripeObject):
+ """
+ Use ReceivedCredits API to retrieve information on when, where, and how funds are sent into your FinancialAccount.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.money_management.received_credit"]] = (
+ "v2.money_management.received_credit"
+ )
+
+ class Amount(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class BalanceTransfer(StripeObject):
+ from_account: Optional[str]
+ """
+ The ID of the account that owns the source object originated the ReceivedCredit.
+ """
+ outbound_payment: Optional[str]
+ """
+ The ID of the outbound payment object that originated the ReceivedCredit.
+ """
+ outbound_transfer: Optional[str]
+ """
+ The ID of the outbound transfer object that originated the ReceivedCredit.
+ """
+ payout_v1: Optional[str]
+ """
+ The ID of the payout object that originated the ReceivedCredit.
+ """
+ transfer: Optional[str]
+ """
+ The ID of the v1 transfer object that originated the ReceivedCredit.
+ """
+ type: Literal[
+ "outbound_payment", "outbound_transfer", "transfer", "payout_v1"
+ ]
+ """
+ Open Enum. The type of Stripe Money Movement that originated the ReceivedCredit.
+ """
+
+ class BankTransfer(StripeObject):
+ class GbBankAccount(StripeObject):
+ account_holder_name: Optional[str]
+ """
+ The bank name the transfer was received from.
+ """
+ bank_name: Optional[str]
+ """
+ The bank name the transfer was received from.
+ """
+ last4: Optional[str]
+ """
+ The last 4 digits of the account number that originated the transfer.
+ """
+ network: Literal["fps"]
+ """
+ Open Enum. The money transmission network used to send funds for this ReceivedCredit.
+ """
+ sort_code: Optional[str]
+ """
+ The sort code of the account that originated the transfer.
+ """
+
+ class SepaBankAccount(StripeObject):
+ account_holder_name: Optional[str]
+ """
+ The account holder name of the bank account the transfer was received from.
+ """
+ bank_name: Optional[str]
+ """
+ The bank name the transfer was received from.
+ """
+ bic: Optional[str]
+ """
+ The BIC of the SEPA account.
+ """
+ country: Optional[str]
+ """
+ The origination country of the bank transfer.
+ """
+ iban: Optional[str]
+ """
+ The IBAN that originated the transfer.
+ """
+ network: Literal["sepa_credit_transfer"]
+ """
+ The money transmission network used to send funds for this ReceivedCredit.
+ """
+
+ class UsBankAccount(StripeObject):
+ bank_name: Optional[str]
+ """
+ The bank name the transfer was received from.
+ """
+ last4: Optional[str]
+ """
+ The last 4 digits of the account number that originated the transfer.
+ """
+ network: Literal["ach", "rtp", "us_domestic_wire"]
+ """
+ Open Enum. The money transmission network used to send funds for this ReceivedCredit.
+ """
+ routing_number: Optional[str]
+ """
+ The routing number of the account that originated the transfer.
+ """
+
+ financial_address: str
+ """
+ Financial Address on which funds for ReceivedCredit were received.
+ """
+ gb_bank_account: Optional[GbBankAccount]
+ """
+ Hash containing the transaction bank details. Present if `origin_type` field value is `gb_bank_account`.
+ """
+ origin_type: Literal[
+ "gb_bank_account", "sepa_bank_account", "us_bank_account"
+ ]
+ """
+ Open Enum. Indicates the origin of source from which external funds originated from.
+ """
+ sepa_bank_account: Optional[SepaBankAccount]
+ """
+ Hash containing the transaction bank details. Present if `origin_type` field value is `sepa_bank_account`.
+ """
+ statement_descriptor: Optional[str]
+ """
+ Freeform string set by originator of the external ReceivedCredit.
+ """
+ us_bank_account: Optional[UsBankAccount]
+ """
+ Hash containing the transaction bank details. Present if `origin_type` field value is `us_bank_account`.
+ """
+ _inner_class_types = {
+ "gb_bank_account": GbBankAccount,
+ "sepa_bank_account": SepaBankAccount,
+ "us_bank_account": UsBankAccount,
+ }
+
+ class StatusDetails(StripeObject):
+ class Failed(StripeObject):
+ reason: Literal[
+ "capability_inactive",
+ "currency_unsupported_on_financial_address",
+ "financial_address_inactive",
+ "stripe_rejected",
+ ]
+ """
+ Open Enum. The `failed` status reason.
+ """
+
+ class Returned(StripeObject):
+ reason: Literal["originator_initiated_reversal"]
+ """
+ Open Enum. The `returned` status reason.
+ """
+
+ failed: Optional[Failed]
+ """
+ Hash that provides additional information regarding the reason behind a `failed` ReceivedCredit status. It is only present when the ReceivedCredit status is `failed`.
+ """
+ returned: Optional[Returned]
+ """
+ Hash that provides additional information regarding the reason behind a `returned` ReceivedCredit status. It is only present when the ReceivedCredit status is `returned`.
+ """
+ _inner_class_types = {"failed": Failed, "returned": Returned}
+
+ class StatusTransitions(StripeObject):
+ failed_at: Optional[str]
+ """
+ Timestamp describing when the ReceivedCredit was marked as `failed`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ returned_at: Optional[str]
+ """
+ Timestamp describing when the ReceivedCredit changed status to `returned`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ succeeded_at: Optional[str]
+ """
+ Timestamp describing when the ReceivedCredit was marked as `succeeded`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+
+ amount: Amount
+ """
+ The amount and currency of the ReceivedCredit.
+ """
+ balance_transfer: Optional[BalanceTransfer]
+ """
+ This object stores details about the originating Stripe transaction that resulted in the ReceivedCredit. Present if `type` field value is `balance_transfer`.
+ """
+ bank_transfer: Optional[BankTransfer]
+ """
+ This object stores details about the originating banking transaction that resulted in the ReceivedCredit. Present if `type` field value is `bank_transfer`.
+ """
+ created: str
+ """
+ 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.
+ """
+ description: Optional[str]
+ """
+ Freeform string set by originator of the ReceivedCredit.
+ """
+ financial_account: str
+ """
+ Financial Account ID on which funds for ReceivedCredit were received.
+ """
+ id: str
+ """
+ Unique identifier for the ReceivedCredit.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.money_management.received_credit"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ receipt_url: Optional[str]
+ """
+ A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
+ """
+ status: Literal["failed", "pending", "returned", "succeeded"]
+ """
+ Open Enum. The status of the ReceivedCredit.
+ """
+ status_details: Optional[StatusDetails]
+ """
+ This hash contains detailed information that elaborates on the specific status of the ReceivedCredit. e.g the reason behind a failure if the status is marked as `failed`.
+ """
+ status_transitions: Optional[StatusTransitions]
+ """
+ Hash containing timestamps of when the object transitioned to a particular status.
+ """
+ type: Literal["balance_transfer", "bank_transfer", "external_credit"]
+ """
+ Open Enum. The type of flow that caused the ReceivedCredit.
+ """
+ _inner_class_types = {
+ "amount": Amount,
+ "balance_transfer": BalanceTransfer,
+ "bank_transfer": BankTransfer,
+ "status_details": StatusDetails,
+ "status_transitions": StatusTransitions,
+ }
diff --git a/stripe/v2/money_management/_received_credit_service.py b/stripe/v2/money_management/_received_credit_service.py
new file mode 100644
index 000000000..b3c8e1bca
--- /dev/null
+++ b/stripe/v2/money_management/_received_credit_service.py
@@ -0,0 +1,101 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._received_credit_list_params import (
+ ReceivedCreditListParams,
+ )
+ from stripe.params.v2.money_management._received_credit_retrieve_params import (
+ ReceivedCreditRetrieveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.money_management._received_credit import ReceivedCredit
+
+
+class ReceivedCreditService(StripeService):
+ def list(
+ self,
+ params: Optional["ReceivedCreditListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[ReceivedCredit]":
+ """
+ Retrieves a list of ReceivedCredits.
+ """
+ return cast(
+ "ListObject[ReceivedCredit]",
+ self._request(
+ "get",
+ "/v2/money_management/received_credits",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["ReceivedCreditListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[ReceivedCredit]":
+ """
+ Retrieves a list of ReceivedCredits.
+ """
+ return cast(
+ "ListObject[ReceivedCredit]",
+ await self._request_async(
+ "get",
+ "/v2/money_management/received_credits",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["ReceivedCreditRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ReceivedCredit":
+ """
+ Retrieve a ReceivedCredit by ID.
+ """
+ return cast(
+ "ReceivedCredit",
+ self._request(
+ "get",
+ "/v2/money_management/received_credits/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["ReceivedCreditRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ReceivedCredit":
+ """
+ Retrieve a ReceivedCredit by ID.
+ """
+ return cast(
+ "ReceivedCredit",
+ await self._request_async(
+ "get",
+ "/v2/money_management/received_credits/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_received_debit.py b/stripe/v2/money_management/_received_debit.py
new file mode 100644
index 000000000..b8b7caee6
--- /dev/null
+++ b/stripe/v2/money_management/_received_debit.py
@@ -0,0 +1,153 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal
+
+
+class ReceivedDebit(StripeObject):
+ """
+ ReceivedDebit resource
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.money_management.received_debit"]] = (
+ "v2.money_management.received_debit"
+ )
+
+ class Amount(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class BankTransfer(StripeObject):
+ class UsBankAccount(StripeObject):
+ bank_name: Optional[str]
+ """
+ The name of the bank the debit originated from.
+ """
+ network: Literal["ach"]
+ """
+ Open Enum. The bank network the debit was originated on.
+ """
+ routing_number: Optional[str]
+ """
+ The routing number of the bank that originated the debit.
+ """
+
+ financial_address: str
+ """
+ The Financial Address that was debited.
+ """
+ payment_method_type: Literal["us_bank_account"]
+ """
+ Open Enum. The type of the payment method used to originate the debit.
+ """
+ statement_descriptor: Optional[str]
+ """
+ The statement descriptor set by the originator of the debit.
+ """
+ us_bank_account: UsBankAccount
+ """
+ The payment method used to originate the debit.
+ """
+ _inner_class_types = {"us_bank_account": UsBankAccount}
+
+ class StatusDetails(StripeObject):
+ class Failed(StripeObject):
+ reason: Literal[
+ "financial_address_inactive",
+ "insufficient_funds",
+ "stripe_rejected",
+ ]
+ """
+ Open Enum. The reason for the failure of the ReceivedDebit.
+ """
+
+ failed: Failed
+ """
+ Information that elaborates on the `failed` status of a ReceivedDebit.
+ It is only present when the ReceivedDebit status is `failed`.
+ """
+ _inner_class_types = {"failed": Failed}
+
+ class StatusTransitions(StripeObject):
+ canceled_at: Optional[str]
+ """
+ The time when the ReceivedDebit was marked as `canceled`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`.
+ """
+ failed_at: Optional[str]
+ """
+ The time when the ReceivedDebit was marked as `failed`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`.
+ """
+ succeeded_at: Optional[str]
+ """
+ The time when the ReceivedDebit was marked as `succeeded`.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`.
+ """
+
+ amount: Amount
+ """
+ Amount and currency of the ReceivedDebit.
+ """
+ bank_transfer: Optional[BankTransfer]
+ """
+ This object stores details about the originating banking transaction that resulted in the ReceivedDebit. Present if `type` field value is `bank_transfer`.
+ """
+ created: str
+ """
+ The time at which the ReceivedDebit was created.
+ Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`.
+ """
+ description: Optional[str]
+ """
+ Freeform string sent by the originator of the ReceivedDebit.
+ """
+ financial_account: str
+ """
+ Financial Account on which funds for ReceivedDebit were debited.
+ """
+ id: str
+ """
+ Unique identifier for the ReceivedDebit.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.money_management.received_debit"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ receipt_url: Optional[str]
+ """
+ A link to the Stripe-hosted receipt for this ReceivedDebit.
+ """
+ status: Literal["canceled", "failed", "pending", "returned", "succeeded"]
+ """
+ Open Enum. The status of the ReceivedDebit.
+ """
+ status_details: Optional[StatusDetails]
+ """
+ Detailed information about the status of the ReceivedDebit.
+ """
+ status_transitions: Optional[StatusTransitions]
+ """
+ The time at which the ReceivedDebit transitioned to a particular status.
+ """
+ type: Literal["bank_transfer", "external_debit"]
+ """
+ Open enum, the type of the received debit.
+ """
+ _inner_class_types = {
+ "amount": Amount,
+ "bank_transfer": BankTransfer,
+ "status_details": StatusDetails,
+ "status_transitions": StatusTransitions,
+ }
diff --git a/stripe/v2/money_management/_received_debit_service.py b/stripe/v2/money_management/_received_debit_service.py
new file mode 100644
index 000000000..15a73c603
--- /dev/null
+++ b/stripe/v2/money_management/_received_debit_service.py
@@ -0,0 +1,101 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._received_debit_list_params import (
+ ReceivedDebitListParams,
+ )
+ from stripe.params.v2.money_management._received_debit_retrieve_params import (
+ ReceivedDebitRetrieveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.money_management._received_debit import ReceivedDebit
+
+
+class ReceivedDebitService(StripeService):
+ def list(
+ self,
+ params: Optional["ReceivedDebitListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[ReceivedDebit]":
+ """
+ Retrieves a list of ReceivedDebits, given the selected filters.
+ """
+ return cast(
+ "ListObject[ReceivedDebit]",
+ self._request(
+ "get",
+ "/v2/money_management/received_debits",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["ReceivedDebitListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[ReceivedDebit]":
+ """
+ Retrieves a list of ReceivedDebits, given the selected filters.
+ """
+ return cast(
+ "ListObject[ReceivedDebit]",
+ await self._request_async(
+ "get",
+ "/v2/money_management/received_debits",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["ReceivedDebitRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ReceivedDebit":
+ """
+ Retrieves a single ReceivedDebit by ID.
+ """
+ return cast(
+ "ReceivedDebit",
+ self._request(
+ "get",
+ "/v2/money_management/received_debits/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["ReceivedDebitRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ReceivedDebit":
+ """
+ Retrieves a single ReceivedDebit by ID.
+ """
+ return cast(
+ "ReceivedDebit",
+ await self._request_async(
+ "get",
+ "/v2/money_management/received_debits/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_transaction.py b/stripe/v2/money_management/_transaction.py
new file mode 100644
index 000000000..a66224280
--- /dev/null
+++ b/stripe/v2/money_management/_transaction.py
@@ -0,0 +1,197 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal
+
+
+class Transaction(StripeObject):
+ """
+ Use Transactions to view changes to your FinancialAccount balance over time. Every flow that moves money, such as OutboundPayments or ReceivedCredits, will have one or more Transactions that describes how the flow impacted your balance. Note that while the FinancialAccount balance will always be up to date, be aware that Transactions and TransactionEntries are created shortly after to reflect changes.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.money_management.transaction"]] = (
+ "v2.money_management.transaction"
+ )
+
+ class Amount(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class BalanceImpact(StripeObject):
+ class Available(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class InboundPending(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class OutboundPending(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ available: Available
+ """
+ Impact to the available balance.
+ """
+ inbound_pending: InboundPending
+ """
+ Impact to the inbound_pending balance.
+ """
+ outbound_pending: OutboundPending
+ """
+ Impact to the outbound_pending balance.
+ """
+ _inner_class_types = {
+ "available": Available,
+ "inbound_pending": InboundPending,
+ "outbound_pending": OutboundPending,
+ }
+
+ class Flow(StripeObject):
+ adjustment: Optional[str]
+ """
+ If applicable, the ID of the Adjustment that created this Transaction.
+ """
+ currency_conversion: Optional[str]
+ """
+ In the future, this will be the ID of the currency conversion that created this Transaction. For now, this field is always null.
+ """
+ fee_transaction: Optional[str]
+ """
+ If applicable, the ID of the FeeTransaction that created this Transaction.
+ """
+ inbound_transfer: Optional[str]
+ """
+ If applicable, the ID of the InboundTransfer that created this Transaction.
+ """
+ outbound_payment: Optional[str]
+ """
+ If applicable, the ID of the OutboundPayment that created this Transaction.
+ """
+ outbound_transfer: Optional[str]
+ """
+ If applicable, the ID of the OutboundTransfer that created this Transaction.
+ """
+ received_credit: Optional[str]
+ """
+ If applicable, the ID of the ReceivedCredit that created this Transaction.
+ """
+ received_debit: Optional[str]
+ """
+ If applicable, the ID of the ReceivedDebit that created this Transaction.
+ """
+ type: Literal[
+ "adjustment",
+ "currency_conversion",
+ "fee_transaction",
+ "inbound_transfer",
+ "outbound_payment",
+ "outbound_transfer",
+ "received_credit",
+ "received_debit",
+ ]
+ """
+ Open Enum. Type of the flow that created the Transaction. The field matching this value will contain the ID of the flow.
+ """
+
+ class StatusTransitions(StripeObject):
+ posted_at: Optional[str]
+ """
+ The time at which the Transaction became posted. Only present if status == posted.
+ """
+ void_at: Optional[str]
+ """
+ The time at which the Transaction became void. Only present if status == void.
+ """
+
+ amount: Amount
+ """
+ The amount of the Transaction.
+ """
+ balance_impact: BalanceImpact
+ """
+ The delta to the FinancialAccount's balance. The balance_impact for the Transaction is equal to sum of its
+ TransactionEntries that have `effective_at`s in the past.
+ """
+ category: Literal[
+ "adjustment",
+ "currency_conversion",
+ "inbound_transfer",
+ "outbound_payment",
+ "outbound_transfer",
+ "received_credit",
+ "received_debit",
+ "return",
+ "stripe_fee",
+ ]
+ """
+ Open Enum. A descriptive category used to classify the Transaction.
+ """
+ created: str
+ """
+ Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
+ """
+ financial_account: str
+ """
+ Indicates the FinancialAccount affected by this Transaction.
+ """
+ flow: Flow
+ """
+ Details about the Flow object that created the Transaction.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.money_management.transaction"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ status: Literal["pending", "posted", "void"]
+ """
+ Closed Enum. Current status of the Transaction.
+ A Transaction is `pending` if either `balance_impact.inbound_pending` or `balance_impact.outbound_pending` is non-zero.
+ A Transaction is `posted` if only `balance_impact.available` is non-zero.
+ A Transaction is `void` if there is no balance impact.
+ `posted` and `void` are terminal states, and no additional entries will be added to the Transaction.
+ """
+ status_transitions: StatusTransitions
+ """
+ Timestamps for when the Transaction transitioned to a particular status.
+ """
+ _inner_class_types = {
+ "amount": Amount,
+ "balance_impact": BalanceImpact,
+ "flow": Flow,
+ "status_transitions": StatusTransitions,
+ }
diff --git a/stripe/v2/money_management/_transaction_entry.py b/stripe/v2/money_management/_transaction_entry.py
new file mode 100644
index 000000000..c3b3bee2d
--- /dev/null
+++ b/stripe/v2/money_management/_transaction_entry.py
@@ -0,0 +1,173 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_object import StripeObject
+from typing import ClassVar, Optional
+from typing_extensions import Literal
+
+
+class TransactionEntry(StripeObject):
+ """
+ TransactionEntries represent individual money movements across different states within a Transaction.
+ """
+
+ OBJECT_NAME: ClassVar[Literal["v2.money_management.transaction_entry"]] = (
+ "v2.money_management.transaction_entry"
+ )
+
+ class BalanceImpact(StripeObject):
+ class Available(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class InboundPending(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ class OutboundPending(StripeObject):
+ currency: Optional[str]
+ """
+ Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
+ """
+ value: Optional[int]
+ """
+ A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
+ """
+
+ available: Available
+ """
+ Impact to the available balance.
+ """
+ inbound_pending: InboundPending
+ """
+ Impact to the inbound_pending balance.
+ """
+ outbound_pending: OutboundPending
+ """
+ Impact to the outbound_pending balance.
+ """
+ _inner_class_types = {
+ "available": Available,
+ "inbound_pending": InboundPending,
+ "outbound_pending": OutboundPending,
+ }
+
+ class TransactionDetails(StripeObject):
+ class Flow(StripeObject):
+ adjustment: Optional[str]
+ """
+ If applicable, the ID of the Adjustment that created this Transaction.
+ """
+ currency_conversion: Optional[str]
+ """
+ In the future, this will be the ID of the currency conversion that created this Transaction. For now, this field is always null.
+ """
+ fee_transaction: Optional[str]
+ """
+ If applicable, the ID of the FeeTransaction that created this Transaction.
+ """
+ inbound_transfer: Optional[str]
+ """
+ If applicable, the ID of the InboundTransfer that created this Transaction.
+ """
+ outbound_payment: Optional[str]
+ """
+ If applicable, the ID of the OutboundPayment that created this Transaction.
+ """
+ outbound_transfer: Optional[str]
+ """
+ If applicable, the ID of the OutboundTransfer that created this Transaction.
+ """
+ received_credit: Optional[str]
+ """
+ If applicable, the ID of the ReceivedCredit that created this Transaction.
+ """
+ received_debit: Optional[str]
+ """
+ If applicable, the ID of the ReceivedDebit that created this Transaction.
+ """
+ type: Literal[
+ "adjustment",
+ "currency_conversion",
+ "fee_transaction",
+ "inbound_transfer",
+ "outbound_payment",
+ "outbound_transfer",
+ "received_credit",
+ "received_debit",
+ ]
+ """
+ Open Enum. Type of the flow that created the Transaction. The field matching this value will contain the ID of the flow.
+ """
+
+ category: Literal[
+ "adjustment",
+ "currency_conversion",
+ "inbound_transfer",
+ "outbound_payment",
+ "outbound_transfer",
+ "received_credit",
+ "received_debit",
+ "return",
+ "stripe_fee",
+ ]
+ """
+ Closed Enum for now, and will be turned into an Open Enum soon. A descriptive category used to classify the Transaction.
+ """
+ financial_account: str
+ """
+ Indicates the FinancialAccount affected by this Transaction.
+ """
+ flow: Flow
+ """
+ Details about the Flow object that created the Transaction.
+ """
+ _inner_class_types = {"flow": Flow}
+
+ balance_impact: BalanceImpact
+ """
+ The delta to the FinancialAccount's balance.
+ """
+ created: str
+ """
+ Time at which the object was created.
+ """
+ effective_at: str
+ """
+ Time at which the entry impacted (or will impact if it's in the future) the FinancialAccount balance.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
+ """
+ object: Literal["v2.money_management.transaction_entry"]
+ """
+ String representing the object's type. Objects of the same type share the same value of the object field.
+ """
+ transaction: str
+ """
+ The Transaction that this TransactionEntry belongs to.
+ """
+ transaction_details: TransactionDetails
+ """
+ Details copied from the transaction that this TransactionEntry belongs to.
+ """
+ _inner_class_types = {
+ "balance_impact": BalanceImpact,
+ "transaction_details": TransactionDetails,
+ }
diff --git a/stripe/v2/money_management/_transaction_entry_service.py b/stripe/v2/money_management/_transaction_entry_service.py
new file mode 100644
index 000000000..5222a8a21
--- /dev/null
+++ b/stripe/v2/money_management/_transaction_entry_service.py
@@ -0,0 +1,101 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._transaction_entry_list_params import (
+ TransactionEntryListParams,
+ )
+ from stripe.params.v2.money_management._transaction_entry_retrieve_params import (
+ TransactionEntryRetrieveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.money_management._transaction_entry import TransactionEntry
+
+
+class TransactionEntryService(StripeService):
+ def list(
+ self,
+ params: Optional["TransactionEntryListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[TransactionEntry]":
+ """
+ Returns a list of TransactionEntries that match the provided filters.
+ """
+ return cast(
+ "ListObject[TransactionEntry]",
+ self._request(
+ "get",
+ "/v2/money_management/transaction_entries",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["TransactionEntryListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[TransactionEntry]":
+ """
+ Returns a list of TransactionEntries that match the provided filters.
+ """
+ return cast(
+ "ListObject[TransactionEntry]",
+ await self._request_async(
+ "get",
+ "/v2/money_management/transaction_entries",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["TransactionEntryRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "TransactionEntry":
+ """
+ Retrieves the details of a TransactionEntry by ID.
+ """
+ return cast(
+ "TransactionEntry",
+ self._request(
+ "get",
+ "/v2/money_management/transaction_entries/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["TransactionEntryRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "TransactionEntry":
+ """
+ Retrieves the details of a TransactionEntry by ID.
+ """
+ return cast(
+ "TransactionEntry",
+ await self._request_async(
+ "get",
+ "/v2/money_management/transaction_entries/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/money_management/_transaction_service.py b/stripe/v2/money_management/_transaction_service.py
new file mode 100644
index 000000000..24db288e4
--- /dev/null
+++ b/stripe/v2/money_management/_transaction_service.py
@@ -0,0 +1,101 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.money_management._transaction_list_params import (
+ TransactionListParams,
+ )
+ from stripe.params.v2.money_management._transaction_retrieve_params import (
+ TransactionRetrieveParams,
+ )
+ from stripe.v2._list_object import ListObject
+ from stripe.v2.money_management._transaction import Transaction
+
+
+class TransactionService(StripeService):
+ def list(
+ self,
+ params: Optional["TransactionListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Transaction]":
+ """
+ Returns a list of Transactions that match the provided filters.
+ """
+ return cast(
+ "ListObject[Transaction]",
+ self._request(
+ "get",
+ "/v2/money_management/transactions",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["TransactionListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[Transaction]":
+ """
+ Returns a list of Transactions that match the provided filters.
+ """
+ return cast(
+ "ListObject[Transaction]",
+ await self._request_async(
+ "get",
+ "/v2/money_management/transactions",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["TransactionRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Transaction":
+ """
+ Retrieves the details of a Transaction by ID.
+ """
+ return cast(
+ "Transaction",
+ self._request(
+ "get",
+ "/v2/money_management/transactions/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["TransactionRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "Transaction":
+ """
+ Retrieves the details of a Transaction by ID.
+ """
+ return cast(
+ "Transaction",
+ await self._request_async(
+ "get",
+ "/v2/money_management/transactions/{id}".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/v2/test_helpers/__init__.py b/stripe/v2/test_helpers/__init__.py
new file mode 100644
index 000000000..85fdb347a
--- /dev/null
+++ b/stripe/v2/test_helpers/__init__.py
@@ -0,0 +1,32 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from importlib import import_module
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.v2.test_helpers._financial_address_service import (
+ FinancialAddressService as FinancialAddressService,
+ )
+
+# name -> (import_target, is_submodule)
+_import_map = {
+ "FinancialAddressService": (
+ "stripe.v2.test_helpers._financial_address_service",
+ False,
+ ),
+}
+if not TYPE_CHECKING:
+
+ def __getattr__(name):
+ try:
+ target, is_submodule = _import_map[name]
+ module = import_module(target)
+ if is_submodule:
+ return module
+
+ return getattr(
+ module,
+ name,
+ )
+ except KeyError:
+ raise AttributeError()
diff --git a/stripe/v2/test_helpers/_financial_address_service.py b/stripe/v2/test_helpers/_financial_address_service.py
new file mode 100644
index 000000000..a10633a89
--- /dev/null
+++ b/stripe/v2/test_helpers/_financial_address_service.py
@@ -0,0 +1,111 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._request_options import RequestOptions
+ from stripe.params.v2.test_helpers._financial_address_credit_params import (
+ FinancialAddressCreditParams,
+ )
+ from stripe.params.v2.test_helpers._financial_address_generate_microdeposits_params import (
+ FinancialAddressGenerateMicrodepositsParams,
+ )
+ from stripe.v2._financial_address_credit_simulation import (
+ FinancialAddressCreditSimulation,
+ )
+ from stripe.v2._financial_address_generated_microdeposits import (
+ FinancialAddressGeneratedMicrodeposits,
+ )
+
+
+class FinancialAddressService(StripeService):
+ def credit(
+ self,
+ id: str,
+ params: "FinancialAddressCreditParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAddressCreditSimulation":
+ """
+ Simulate crediting a FinancialAddress in a Sandbox environment. This can be used to add virtual funds and increase your balance for testing.
+ """
+ return cast(
+ "FinancialAddressCreditSimulation",
+ self._request(
+ "post",
+ "/v2/test_helpers/financial_addresses/{id}/credit".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def credit_async(
+ self,
+ id: str,
+ params: "FinancialAddressCreditParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAddressCreditSimulation":
+ """
+ Simulate crediting a FinancialAddress in a Sandbox environment. This can be used to add virtual funds and increase your balance for testing.
+ """
+ return cast(
+ "FinancialAddressCreditSimulation",
+ await self._request_async(
+ "post",
+ "/v2/test_helpers/financial_addresses/{id}/credit".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def generate_microdeposits(
+ self,
+ id: str,
+ params: Optional["FinancialAddressGenerateMicrodepositsParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAddressGeneratedMicrodeposits":
+ """
+ Generates microdeposits for a FinancialAddress in a Sandbox environment.
+ """
+ return cast(
+ "FinancialAddressGeneratedMicrodeposits",
+ self._request(
+ "post",
+ "/v2/test_helpers/financial_addresses/{id}/generate_microdeposits".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def generate_microdeposits_async(
+ self,
+ id: str,
+ params: Optional["FinancialAddressGenerateMicrodepositsParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FinancialAddressGeneratedMicrodeposits":
+ """
+ Generates microdeposits for a FinancialAddress in a Sandbox environment.
+ """
+ return cast(
+ "FinancialAddressGeneratedMicrodeposits",
+ await self._request_async(
+ "post",
+ "/v2/test_helpers/financial_addresses/{id}/generate_microdeposits".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/tests/test_api_requestor.py b/tests/test_api_requestor.py
index d2b2fd997..d56ffc7f5 100644
--- a/tests/test_api_requestor.py
+++ b/tests/test_api_requestor.py
@@ -671,6 +671,30 @@ def test_sets_default_http_client(self, mocker):
# the newly created client is reused
assert stripe.default_http_client == new_default_client
+ def test_add_beta_version(self):
+ stripe.api_version = "2024-02-26"
+ stripe.add_beta_version("feature_beta", "v3")
+ assert stripe.api_version == "2024-02-26; feature_beta=v3"
+
+ # Same version should be ignored
+ stripe.add_beta_version("feature_beta", "v3")
+ assert stripe.api_version == "2024-02-26; feature_beta=v3"
+
+ # Higher version should replace lower
+ stripe.add_beta_version("feature_beta", "v4")
+ assert stripe.api_version == "2024-02-26; feature_beta=v4"
+
+ # Lower version should be ignored
+ stripe.add_beta_version("feature_beta", "v2")
+ assert stripe.api_version == "2024-02-26; feature_beta=v4"
+
+ # Adding a new name should append
+ stripe.add_beta_version("another_feature_beta", "v2")
+ assert (
+ stripe.api_version
+ == "2024-02-26; feature_beta=v4; another_feature_beta=v2"
+ )
+
def test_uses_app_info(self, requestor, http_client_mock):
try:
old = stripe.app_info
@@ -951,7 +975,6 @@ def test_extract_error_from_stream_request_for_response(
),
rcode=400,
)
-
with pytest.raises(stripe.oauth_error.InvalidGrantError):
requestor.request_stream(
"get", self.v1_path, {}, base_address="api"
diff --git a/tests/test_event_notification_handler.py b/tests/test_event_notification_handler.py
new file mode 100644
index 000000000..568abec09
--- /dev/null
+++ b/tests/test_event_notification_handler.py
@@ -0,0 +1,555 @@
+import json
+import pytest
+from typing import Optional
+from unittest.mock import Mock
+
+from stripe import StripeClient
+from stripe._event_notification_handler import (
+ StripeEventNotificationHandler,
+ UnhandledNotificationDetails,
+)
+from stripe._stripe_context import StripeContext
+from stripe.events._v1_billing_meter_error_report_triggered_event import (
+ V1BillingMeterErrorReportTriggeredEventNotification,
+)
+from stripe.events._v2_core_account_created_event import (
+ V2CoreAccountCreatedEventNotification,
+)
+from stripe.v2.core._event import EventNotification, UnknownEventNotification
+from tests.http_client_mock import HTTPClientMock
+from tests.test_webhook import DUMMY_WEBHOOK_SECRET, generate_header
+
+
+class TestEventNotificationHandler:
+ @pytest.fixture(scope="function")
+ def stripe_client(self, http_client_mock: HTTPClientMock) -> StripeClient:
+ return StripeClient(
+ api_key="sk_test_1234",
+ stripe_context=StripeContext.parse("original_context_123"),
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ @pytest.fixture(scope="function")
+ def fallback_callback(self) -> Mock:
+ """Mock handler for unhandled events"""
+ return Mock()
+
+ @pytest.fixture(scope="function")
+ def event_handler(
+ self, stripe_client: StripeClient, fallback_callback: Mock
+ ) -> StripeEventNotificationHandler:
+ return StripeEventNotificationHandler(
+ client=stripe_client,
+ webhook_secret=DUMMY_WEBHOOK_SECRET,
+ fallback_callback=fallback_callback,
+ )
+
+ @pytest.fixture(scope="function")
+ def v1_billing_meter_payload(self) -> str:
+ """A payload for v1.billing.meter.error_report_triggered event"""
+ return json.dumps(
+ {
+ "id": "evt_123",
+ "object": "v2.core.event",
+ "type": "v1.billing.meter.error_report_triggered",
+ "livemode": False,
+ "created": "2022-02-15T00:27:45.330Z",
+ "context": "event_context_456",
+ "related_object": {
+ "id": "mtr_123",
+ "type": "billing.meter",
+ "url": "/v1/billing/meters/mtr_123",
+ },
+ }
+ )
+
+ @pytest.fixture(scope="function")
+ def v2_account_created_payload(self) -> str:
+ """A payload for v2.core.account.created event with None context"""
+ return json.dumps(
+ {
+ "id": "evt_789",
+ "object": "v2.core.event",
+ "type": "v2.core.account.created",
+ "livemode": False,
+ "created": "2022-02-15T00:27:45.330Z",
+ "context": None,
+ "related_object": {
+ "id": "acct_abc",
+ "type": "account",
+ "url": "/v2/core/accounts/acct_abc",
+ },
+ }
+ )
+
+ @pytest.fixture(scope="function")
+ def unknown_event_payload(self) -> str:
+ """A payload for an unknown event type (llama.created)"""
+ return json.dumps(
+ {
+ "id": "evt_unknown",
+ "object": "v2.core.event",
+ "type": "llama.created",
+ "livemode": False,
+ "created": "2022-02-15T00:27:45.330Z",
+ "context": "event_context_unknown",
+ "related_object": {
+ "id": "llama_123",
+ "type": "llama",
+ "url": "/v1/llamas/llama_123",
+ },
+ }
+ )
+
+ def test_routes_event_to_registered_handler(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ v1_billing_meter_payload: str,
+ fallback_callback: Mock,
+ ) -> None:
+ """Test that a registered event type is routed to the correct handler"""
+ handler = Mock()
+ event_handler.on_v1_billing_meter_error_report_triggered(handler)
+
+ sig_header = generate_header(payload=v1_billing_meter_payload)
+ event_handler.handle(v1_billing_meter_payload, sig_header)
+
+ handler.assert_called_once()
+
+ call_args = handler.call_args[0]
+ assert isinstance(
+ call_args[0], V1BillingMeterErrorReportTriggeredEventNotification
+ )
+
+ fallback_callback.assert_not_called()
+
+ def test_routes_different_events_to_correct_handlers(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ v1_billing_meter_payload: str,
+ v2_account_created_payload: str,
+ fallback_callback: Mock,
+ ) -> None:
+ """Test that different event types route to their respective handlers"""
+ billing_handler = Mock()
+ account_handler = Mock()
+
+ event_handler.on_v1_billing_meter_error_report_triggered(
+ billing_handler
+ )
+ event_handler.on_v2_core_account_created(account_handler)
+
+ sig_header1 = generate_header(payload=v1_billing_meter_payload)
+ event_handler.handle(v1_billing_meter_payload, sig_header1)
+
+ sig_header2 = generate_header(payload=v2_account_created_payload)
+ event_handler.handle(v2_account_created_payload, sig_header2)
+
+ billing_handler.assert_called_once()
+ account_handler.assert_called_once()
+
+ assert isinstance(
+ billing_handler.call_args[0][0],
+ V1BillingMeterErrorReportTriggeredEventNotification,
+ )
+ assert isinstance(
+ account_handler.call_args[0][0],
+ V2CoreAccountCreatedEventNotification,
+ )
+
+ fallback_callback.assert_not_called()
+
+ def test_handler_receives_correct_runtime_type(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ v1_billing_meter_payload: str,
+ ) -> None:
+ """Test that handlers receive the correctly typed event notification"""
+ received_event: Optional[EventNotification] = None
+ received_client: Optional[StripeClient] = None
+
+ def handler(
+ event: V1BillingMeterErrorReportTriggeredEventNotification,
+ client: StripeClient,
+ ) -> None:
+ nonlocal received_event, received_client
+ received_event = event
+ received_client = client
+
+ event_handler.on_v1_billing_meter_error_report_triggered(handler)
+
+ sig_header = generate_header(payload=v1_billing_meter_payload)
+ event_handler.handle(v1_billing_meter_payload, sig_header)
+
+ assert isinstance(
+ received_event, V1BillingMeterErrorReportTriggeredEventNotification
+ )
+ assert received_event.type == "v1.billing.meter.error_report_triggered"
+ assert received_event.id == "evt_123"
+ assert received_event.related_object.id == "mtr_123"
+ assert isinstance(received_client, StripeClient)
+
+ def test_cannot_register_handler_after_handling(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ v1_billing_meter_payload: str,
+ ) -> None:
+ """Test that registering handlers after handle() raises RuntimeError"""
+ handler = Mock()
+ event_handler.on_v1_billing_meter_error_report_triggered(handler)
+
+ sig_header = generate_header(payload=v1_billing_meter_payload)
+ event_handler.handle(v1_billing_meter_payload, sig_header)
+
+ with pytest.raises(
+ RuntimeError,
+ match="Cannot register new event handlers after .handle\\(\\) has been called",
+ ):
+ event_handler.on_v2_core_account_created(Mock())
+
+ def test_cannot_register_duplicate_handler(
+ self, event_handler: StripeEventNotificationHandler
+ ) -> None:
+ """Test that registering the same event type twice raises ValueError"""
+ handler1 = Mock()
+ handler2 = Mock()
+
+ event_handler.on_v1_billing_meter_error_report_triggered(handler1)
+
+ with pytest.raises(
+ ValueError,
+ match='Handler for event type "v1.billing.meter.error_report_triggered" already registered',
+ ):
+ event_handler.on_v1_billing_meter_error_report_triggered(handler2)
+
+ def test_handler_uses_event_stripe_context(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ v1_billing_meter_payload: str,
+ stripe_client: StripeClient,
+ ) -> None:
+ """Test that the handler receives a client with stripe_context from the event"""
+ received_context: Optional[StripeContext | str] = None
+
+ def handler(
+ event: V1BillingMeterErrorReportTriggeredEventNotification,
+ client: StripeClient,
+ ) -> None:
+ nonlocal received_context
+ received_context = client._requestor._options.stripe_context
+
+ event_handler.on_v1_billing_meter_error_report_triggered(handler)
+
+ assert (
+ str(stripe_client._requestor._options.stripe_context)
+ == "original_context_123"
+ )
+
+ sig_header = generate_header(payload=v1_billing_meter_payload)
+ event_handler.handle(v1_billing_meter_payload, sig_header)
+
+ assert str(received_context) == "event_context_456"
+
+ def test_stripe_context_restored_after_handler_success(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ v1_billing_meter_payload: str,
+ stripe_client: StripeClient,
+ ) -> None:
+ """Test that the original stripe_context is restored after successful handler execution"""
+
+ def handler(
+ event: V1BillingMeterErrorReportTriggeredEventNotification,
+ client: StripeClient,
+ ) -> None:
+ assert (
+ str(client._requestor._options.stripe_context)
+ == "event_context_456"
+ )
+
+ event_handler.on_v1_billing_meter_error_report_triggered(handler)
+
+ assert (
+ str(stripe_client._requestor._options.stripe_context)
+ == "original_context_123"
+ )
+
+ sig_header = generate_header(payload=v1_billing_meter_payload)
+ event_handler.handle(v1_billing_meter_payload, sig_header)
+
+ assert (
+ str(stripe_client._requestor._options.stripe_context)
+ == "original_context_123"
+ )
+
+ def test_stripe_context_restored_after_handler_error(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ v1_billing_meter_payload: str,
+ stripe_client: StripeClient,
+ ) -> None:
+ """Test that the original stripe_context is restored even when handler raises an exception"""
+
+ def handler(
+ event: V1BillingMeterErrorReportTriggeredEventNotification,
+ client: StripeClient,
+ ) -> None:
+ assert (
+ str(client._requestor._options.stripe_context)
+ == "event_context_456"
+ )
+ raise RuntimeError("Handler error!")
+
+ event_handler.on_v1_billing_meter_error_report_triggered(handler)
+
+ assert (
+ str(stripe_client._requestor._options.stripe_context)
+ == "original_context_123"
+ )
+
+ sig_header = generate_header(payload=v1_billing_meter_payload)
+
+ with pytest.raises(RuntimeError, match="Handler error!"):
+ event_handler.handle(v1_billing_meter_payload, sig_header)
+
+ assert (
+ str(stripe_client._requestor._options.stripe_context)
+ == "original_context_123"
+ )
+
+ def test_stripe_context_set_to_none_when_event_has_no_context(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ v2_account_created_payload: str,
+ stripe_client: StripeClient,
+ ) -> None:
+ """Test that stripe_context is set to None when event context is None"""
+ received_context: Optional[StripeContext | str] = None
+
+ def handler(
+ event: V2CoreAccountCreatedEventNotification, client: StripeClient
+ ) -> None:
+ nonlocal received_context
+ received_context = client._requestor._options.stripe_context
+
+ event_handler.on_v2_core_account_created(handler)
+
+ # Verify we're working with StripeContext instances
+ assert isinstance(
+ stripe_client._requestor._options.stripe_context, StripeContext
+ )
+ assert (
+ str(stripe_client._requestor._options.stripe_context)
+ == "original_context_123"
+ )
+
+ sig_header = generate_header(payload=v2_account_created_payload)
+ event_handler.handle(v2_account_created_payload, sig_header)
+
+ assert received_context is None
+
+ assert (
+ str(stripe_client._requestor._options.stripe_context)
+ == "original_context_123"
+ )
+
+ def test_unknown_event_routes_to_on_unhandled(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ unknown_event_payload: str,
+ fallback_callback: Mock,
+ ) -> None:
+ """Test that events without SDK types route to on_unhandled handler"""
+ sig_header = generate_header(payload=unknown_event_payload)
+
+ event_handler.handle(unknown_event_payload, sig_header)
+
+ fallback_callback.assert_called_once()
+
+ call_args = fallback_callback.call_args[0]
+ event_notif = call_args[0]
+ client = call_args[1]
+ info = call_args[2]
+
+ assert isinstance(event_notif, UnknownEventNotification)
+ assert event_notif.type == "llama.created"
+ assert isinstance(client, StripeClient)
+ assert isinstance(info, UnhandledNotificationDetails)
+ assert info.is_known_event_type is False
+
+ def test_known_unregistered_event_routes_to_on_unhandled(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ v1_billing_meter_payload: str,
+ fallback_callback: Mock,
+ ) -> None:
+ """Test that known event types without a registered handler route to on_unhandled"""
+ sig_header = generate_header(payload=v1_billing_meter_payload)
+
+ event_handler.handle(v1_billing_meter_payload, sig_header)
+
+ fallback_callback.assert_called_once()
+
+ call_args = fallback_callback.call_args[0]
+ event_notif = call_args[0]
+ client = call_args[1]
+ info = call_args[2]
+
+ assert isinstance(
+ event_notif, V1BillingMeterErrorReportTriggeredEventNotification
+ )
+ assert event_notif.type == "v1.billing.meter.error_report_triggered"
+ assert isinstance(client, StripeClient)
+ assert isinstance(info, UnhandledNotificationDetails)
+ assert info.is_known_event_type is True
+
+ def test_registered_event_does_not_call_on_unhandled(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ v1_billing_meter_payload: str,
+ fallback_callback: Mock,
+ ) -> None:
+ """Test that registered events don't trigger on_unhandled"""
+ handler = Mock()
+ event_handler.on_v1_billing_meter_error_report_triggered(handler)
+
+ sig_header = generate_header(payload=v1_billing_meter_payload)
+ event_handler.handle(v1_billing_meter_payload, sig_header)
+
+ handler.assert_called_once()
+ fallback_callback.assert_not_called()
+
+ def test_handler_client_retains_configuration(
+ self,
+ http_client_mock: HTTPClientMock,
+ fallback_callback: Mock,
+ v1_billing_meter_payload: str,
+ ) -> None:
+ """Test that the client passed to handlers retains all configuration except stripe_context"""
+ api_key = "sk_test_custom_key"
+ original_context = "original_context_xyz"
+
+ client = StripeClient(
+ api_key=api_key,
+ stripe_context=StripeContext.parse(original_context),
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ notif_handler = StripeEventNotificationHandler(
+ client=client,
+ webhook_secret=DUMMY_WEBHOOK_SECRET,
+ fallback_callback=fallback_callback,
+ )
+
+ received_api_key: Optional[str] = None
+ received_context: Optional[StripeContext | str] = None
+
+ def handler(
+ event: V1BillingMeterErrorReportTriggeredEventNotification,
+ client: StripeClient,
+ ) -> None:
+ nonlocal received_api_key, received_context
+ received_api_key = client._requestor.api_key
+ received_context = client._requestor._options.stripe_context
+
+ notif_handler.on_v1_billing_meter_error_report_triggered(handler)
+
+ sig_header = generate_header(payload=v1_billing_meter_payload)
+ notif_handler.handle(v1_billing_meter_payload, sig_header)
+
+ assert received_api_key == api_key
+ assert str(received_context) == "event_context_456"
+ assert (
+ str(client._requestor._options.stripe_context) == original_context
+ )
+
+ def test_on_unhandled_receives_correct_info_for_unknown(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ unknown_event_payload: str,
+ fallback_callback: Mock,
+ ) -> None:
+ """Test that on_unhandled receives correct UnhandledNotificationDetails for unknown events"""
+ sig_header = generate_header(payload=unknown_event_payload)
+
+ event_handler.handle(unknown_event_payload, sig_header)
+
+ fallback_callback.assert_called_once()
+ info = fallback_callback.call_args[0][2]
+
+ assert isinstance(info, UnhandledNotificationDetails)
+ assert info.is_known_event_type is False
+
+ def test_on_unhandled_receives_correct_info_for_known_unregistered(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ v1_billing_meter_payload: str,
+ fallback_callback: Mock,
+ ) -> None:
+ """Test that on_unhandled receives correct UnhandledNotificationDetails for known unregistered events"""
+ sig_header = generate_header(payload=v1_billing_meter_payload)
+
+ event_handler.handle(v1_billing_meter_payload, sig_header)
+
+ fallback_callback.assert_called_once()
+ info = fallback_callback.call_args[0][2]
+
+ assert isinstance(info, UnhandledNotificationDetails)
+ assert info.is_known_event_type is True
+
+ def test_validates_webhook_signature(
+ self,
+ event_handler: StripeEventNotificationHandler,
+ v1_billing_meter_payload: str,
+ ) -> None:
+ """Test that invalid webhook signatures are rejected"""
+ from stripe._error import SignatureVerificationError
+
+ with pytest.raises(SignatureVerificationError):
+ event_handler.handle(v1_billing_meter_payload, "invalid_signature")
+
+ def test_registered_event_types_empty(
+ self, event_handler: StripeEventNotificationHandler
+ ) -> None:
+ """Test that registered_event_types returns empty list when no handlers are registered"""
+ assert event_handler.registered_event_types == []
+
+ def test_registered_event_types_single(
+ self, event_handler: StripeEventNotificationHandler
+ ) -> None:
+ """Test that registered_event_types returns a single event type"""
+ handler = Mock()
+ event_handler.on_v1_billing_meter_error_report_triggered(handler)
+
+ assert event_handler.registered_event_types == [
+ "v1.billing.meter.error_report_triggered"
+ ]
+
+ def test_registered_event_types_multiple_alphabetized(
+ self, event_handler: StripeEventNotificationHandler
+ ) -> None:
+ """Test that registered_event_types returns multiple event types in alphabetical order"""
+ handler = Mock()
+
+ # Register in non-alphabetical order
+ event_handler.on_v2_core_account_updated(handler)
+ event_handler.on_v1_billing_meter_error_report_triggered(handler)
+ event_handler.on_v2_core_account_created(handler)
+
+ expected = [
+ "v1.billing.meter.error_report_triggered",
+ "v2.core.account.created",
+ "v2.core.account.updated",
+ ]
+
+ assert event_handler.registered_event_types == expected
+
+ def test_can_call_wrapped_functions(
+ self, event_handler: StripeEventNotificationHandler
+ ):
+ @event_handler.on_v1_billing_meter_error_report_triggered # type: ignore
+ def rand_int(notif, client):
+ """cool docstring"""
+ return 4
+
+ assert rand_int(None, None) == 4 # type: ignore
diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py
index 5f8d6fe14..aa5f1c3e3 100644
--- a/tests/test_generated_examples.py
+++ b/tests/test_generated_examples.py
@@ -24313,6 +24313,103 @@ async def test_quotes_post_2_service_async(
post_data="metadata[order_id]=6735",
)
+ def test_quotes_preview_invoices_lines_get_service_non_namespaced(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v1/quotes/qt_xyz/preview_invoices/in_xyz/lines",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.quotes.list_preview_invoice_lines(
+ "qt_xyz",
+ "in_xyz",
+ )
+ http_client_mock.assert_requested(
+ "get",
+ path="/v1/quotes/qt_xyz/preview_invoices/in_xyz/lines",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_quotes_preview_invoices_lines_get(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ stripe.Quote.list_preview_invoice_lines(
+ "qt_xyz",
+ "in_xyz",
+ )
+ http_client_mock.assert_requested(
+ "get",
+ path="/v1/quotes/qt_xyz/preview_invoices/in_xyz/lines",
+ query_string="",
+ )
+
+ def test_quotes_preview_invoices_lines_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v1/quotes/qt_xyz/preview_invoices/in_xyz/lines",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v1.quotes.list_preview_invoice_lines(
+ "qt_xyz",
+ "in_xyz",
+ )
+ http_client_mock.assert_requested(
+ "get",
+ path="/v1/quotes/qt_xyz/preview_invoices/in_xyz/lines",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ @pytest.mark.anyio
+ async def test_quotes_preview_invoices_lines_get_async(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ await stripe.Quote.list_preview_invoice_lines_async(
+ "qt_xyz",
+ "in_xyz",
+ )
+ http_client_mock.assert_requested(
+ "get",
+ path="/v1/quotes/qt_xyz/preview_invoices/in_xyz/lines",
+ query_string="",
+ )
+
+ @pytest.mark.anyio
+ async def test_quotes_preview_invoices_lines_get_service_async(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v1/quotes/qt_xyz/preview_invoices/in_xyz/lines",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ await client.v1.quotes.list_preview_invoice_lines_async(
+ "qt_xyz",
+ "in_xyz",
+ )
+ http_client_mock.assert_requested(
+ "get",
+ path="/v1/quotes/qt_xyz/preview_invoices/in_xyz/lines",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
def test_radar_early_fraud_warnings_get_service_non_namespaced(
self, http_client_mock: HTTPClientMock
) -> None:
@@ -30397,6 +30494,86 @@ async def test_tax_codes_get_2_service_async(
api_base="https://api.stripe.com",
)
+ def test_tax_forms_pdf_get_service_non_namespaced(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v1/tax/forms/form_xxxxxxxxxxxxx/pdf",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.tax.forms.pdf("form_xxxxxxxxxxxxx")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v1/tax/forms/form_xxxxxxxxxxxxx/pdf",
+ query_string="",
+ api_base="https://files.stripe.com",
+ )
+
+ def test_tax_forms_pdf_get(self, http_client_mock: HTTPClientMock) -> None:
+ stripe.tax.Form.pdf("form_xxxxxxxxxxxxx")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v1/tax/forms/form_xxxxxxxxxxxxx/pdf",
+ query_string="",
+ )
+
+ def test_tax_forms_pdf_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v1/tax/forms/form_xxxxxxxxxxxxx/pdf",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v1.tax.forms.pdf("form_xxxxxxxxxxxxx")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v1/tax/forms/form_xxxxxxxxxxxxx/pdf",
+ query_string="",
+ api_base="https://files.stripe.com",
+ )
+
+ @pytest.mark.anyio
+ async def test_tax_forms_pdf_get_async(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ await stripe.tax.Form.pdf_async("form_xxxxxxxxxxxxx")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v1/tax/forms/form_xxxxxxxxxxxxx/pdf",
+ query_string="",
+ )
+
+ @pytest.mark.anyio
+ async def test_tax_forms_pdf_get_service_async(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v1/tax/forms/form_xxxxxxxxxxxxx/pdf",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ await client.v1.tax.forms.pdf_async("form_xxxxxxxxxxxxx")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v1/tax/forms/form_xxxxxxxxxxxxx/pdf",
+ query_string="",
+ api_base="https://files.stripe.com",
+ )
+
def test_tax_ids_delete_service_non_namespaced(
self, http_client_mock: HTTPClientMock
) -> None:
@@ -43465,686 +43642,2844 @@ async def test_webhook_endpoints_post_2_service_async(
post_data="url=https%3A%2F%2Fexample.com%2Fnew_endpoint",
)
- def test_v2_billing_meter_event_post_service(
+ def test_v2_billing_bill_setting_get_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
- "post",
- "/v2/billing/meter_events",
+ "get",
+ "/v2/billing/bill_settings",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.billing.meter_events.create(
- {
- "event_name": "event_name",
- "payload": {"key": "payload"},
- }
- )
+ client.v2.billing.bill_settings.list()
http_client_mock.assert_requested(
- "post",
- path="/v2/billing/meter_events",
+ "get",
+ path="/v2/billing/bill_settings",
query_string="",
api_base="https://api.stripe.com",
- post_data='{"event_name":"event_name","payload":{"key":"payload"}}',
- is_json=True,
)
- def test_v2_billing_meter_event_adjustment_post_service(
+ def test_v2_billing_bill_setting_post_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"post",
- "/v2/billing/meter_event_adjustments",
+ "/v2/billing/bill_settings",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.billing.meter_event_adjustments.create(
- {
- "cancel": {"identifier": "identifier"},
- "event_name": "event_name",
- "type": "cancel",
- }
- )
+ client.v2.billing.bill_settings.create()
http_client_mock.assert_requested(
"post",
- path="/v2/billing/meter_event_adjustments",
+ path="/v2/billing/bill_settings",
query_string="",
api_base="https://api.stripe.com",
- post_data='{"cancel":{"identifier":"identifier"},"event_name":"event_name","type":"cancel"}',
+ post_data="{}",
is_json=True,
)
- def test_v2_billing_meter_event_session_post_service(
+ def test_v2_billing_bill_setting_get_2_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
- "post",
- "/v2/billing/meter_event_session",
+ "get",
+ "/v2/billing/bill_settings/id_123",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.billing.meter_event_session.create()
+ client.v2.billing.bill_settings.retrieve("id_123")
http_client_mock.assert_requested(
- "post",
- path="/v2/billing/meter_event_session",
+ "get",
+ path="/v2/billing/bill_settings/id_123",
query_string="",
api_base="https://api.stripe.com",
- post_data="{}",
- is_json=True,
)
- def test_v2_billing_meter_event_stream_post_service(
+ def test_v2_billing_bill_setting_post_2_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"post",
- "/v2/billing/meter_event_stream",
+ "/v2/billing/bill_settings/id_123",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.billing.meter_event_stream.create(
- {
- "events": [
- {
- "event_name": "event_name",
- "identifier": "identifier",
- "payload": {"key": "payload"},
- "timestamp": "1970-01-01T15:18:46.294Z",
- },
- ],
- }
- )
+ client.v2.billing.bill_settings.update("id_123")
http_client_mock.assert_requested(
"post",
- path="/v2/billing/meter_event_stream",
+ path="/v2/billing/bill_settings/id_123",
query_string="",
- api_base="https://meter-events.stripe.com",
- post_data='{"events":[{"event_name":"event_name","identifier":"identifier","payload":{"key":"payload"},"timestamp":"1970-01-01T15:18:46.294Z"}]}',
+ api_base="https://api.stripe.com",
+ post_data="{}",
is_json=True,
)
- def test_v2_core_account_get_service(
+ def test_v2_billing_bill_settings_version_get_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"get",
- "/v2/core/accounts",
+ "/v2/billing/bill_settings/bill_setting_id_123/versions",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.accounts.list()
+ client.v2.billing.bill_settings.versions.list("bill_setting_id_123")
http_client_mock.assert_requested(
"get",
- path="/v2/core/accounts",
+ path="/v2/billing/bill_settings/bill_setting_id_123/versions",
query_string="",
api_base="https://api.stripe.com",
)
- def test_v2_core_account_post_service(
+ def test_v2_billing_bill_settings_version_get_2_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
- "post",
- "/v2/core/accounts",
+ "get",
+ "/v2/billing/bill_settings/bill_setting_id_123/versions/id_123",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.accounts.create()
+ client.v2.billing.bill_settings.versions.retrieve(
+ "bill_setting_id_123",
+ "id_123",
+ )
http_client_mock.assert_requested(
- "post",
- path="/v2/core/accounts",
+ "get",
+ path="/v2/billing/bill_settings/bill_setting_id_123/versions/id_123",
query_string="",
api_base="https://api.stripe.com",
- post_data="{}",
- is_json=True,
)
- def test_v2_core_account_get_2_service(
+ def test_v2_billing_cadence_get_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"get",
- "/v2/core/accounts/id_123",
+ "/v2/billing/cadences",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.accounts.retrieve("id_123")
+ client.v2.billing.cadences.list()
http_client_mock.assert_requested(
"get",
- path="/v2/core/accounts/id_123",
+ path="/v2/billing/cadences",
query_string="",
api_base="https://api.stripe.com",
)
- def test_v2_core_account_post_2_service(
+ def test_v2_billing_cadence_post_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"post",
- "/v2/core/accounts/id_123",
+ "/v2/billing/cadences",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.accounts.update("id_123")
+ client.v2.billing.cadences.create(
+ {
+ "billing_cycle": {
+ "interval_count": 797691627,
+ "type": "week",
+ "day": {
+ "time": {
+ "hour": 3208676,
+ "minute": 1074026988,
+ "second": 906279820,
+ },
+ },
+ "month": {
+ "day_of_month": 1361669285,
+ "month_of_year": 82933018,
+ "time": {
+ "hour": 3208676,
+ "minute": 1074026988,
+ "second": 906279820,
+ },
+ },
+ "week": {
+ "day_of_week": 43636807,
+ "time": {
+ "hour": 3208676,
+ "minute": 1074026988,
+ "second": 906279820,
+ },
+ },
+ "year": {
+ "day_of_month": 1361669285,
+ "month_of_year": 82933018,
+ "time": {
+ "hour": 3208676,
+ "minute": 1074026988,
+ "second": 906279820,
+ },
+ },
+ },
+ "payer": {"billing_profile": "billing_profile"},
+ }
+ )
http_client_mock.assert_requested(
"post",
- path="/v2/core/accounts/id_123",
+ path="/v2/billing/cadences",
query_string="",
api_base="https://api.stripe.com",
- post_data="{}",
+ post_data='{"billing_cycle":{"interval_count":797691627,"type":"week","day":{"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"month":{"day_of_month":1361669285,"month_of_year":82933018,"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"week":{"day_of_week":43636807,"time":{"hour":3208676,"minute":1074026988,"second":906279820}},"year":{"day_of_month":1361669285,"month_of_year":82933018,"time":{"hour":3208676,"minute":1074026988,"second":906279820}}},"payer":{"billing_profile":"billing_profile"}}',
is_json=True,
)
- def test_v2_core_account_post_3_service(
+ def test_v2_billing_cadence_get_2_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
- "post",
- "/v2/core/accounts/id_123/close",
+ "get",
+ "/v2/billing/cadences/id_123",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.accounts.close("id_123")
+ client.v2.billing.cadences.retrieve("id_123")
http_client_mock.assert_requested(
- "post",
- path="/v2/core/accounts/id_123/close",
+ "get",
+ path="/v2/billing/cadences/id_123",
query_string="",
api_base="https://api.stripe.com",
- post_data="{}",
- is_json=True,
)
- def test_v2_core_accounts_person_get_service(
+ def test_v2_billing_cadence_post_2_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
- "get",
- "/v2/core/accounts/account_id_123/persons",
+ "post",
+ "/v2/billing/cadences/id_123",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.accounts.persons.list("account_id_123")
+ client.v2.billing.cadences.update("id_123")
http_client_mock.assert_requested(
- "get",
- path="/v2/core/accounts/account_id_123/persons",
+ "post",
+ path="/v2/billing/cadences/id_123",
query_string="",
api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
)
- def test_v2_core_accounts_person_post_service(
+ def test_v2_billing_cadence_post_3_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"post",
- "/v2/core/accounts/account_id_123/persons",
+ "/v2/billing/cadences/id_123/cancel",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.accounts.persons.create("account_id_123")
+ client.v2.billing.cadences.cancel("id_123")
http_client_mock.assert_requested(
"post",
- path="/v2/core/accounts/account_id_123/persons",
+ path="/v2/billing/cadences/id_123/cancel",
query_string="",
api_base="https://api.stripe.com",
post_data="{}",
is_json=True,
)
- def test_v2_core_accounts_person_delete_service(
+ def test_v2_billing_collection_setting_get_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
- "delete",
- "/v2/core/accounts/account_id_123/persons/id_123",
+ "get",
+ "/v2/billing/collection_settings",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.accounts.persons.delete(
- "account_id_123",
- "id_123",
- )
+ client.v2.billing.collection_settings.list()
http_client_mock.assert_requested(
- "delete",
- path="/v2/core/accounts/account_id_123/persons/id_123",
+ "get",
+ path="/v2/billing/collection_settings",
query_string="",
api_base="https://api.stripe.com",
)
- def test_v2_core_accounts_person_get_2_service(
+ def test_v2_billing_collection_setting_post_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
- "get",
- "/v2/core/accounts/account_id_123/persons/id_123",
+ "post",
+ "/v2/billing/collection_settings",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.accounts.persons.retrieve(
- "account_id_123",
- "id_123",
+ client.v2.billing.collection_settings.create()
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/billing/collection_settings",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
)
+
+ def test_v2_billing_collection_setting_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/billing/collection_settings/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.billing.collection_settings.retrieve("id_123")
http_client_mock.assert_requested(
"get",
- path="/v2/core/accounts/account_id_123/persons/id_123",
+ path="/v2/billing/collection_settings/id_123",
query_string="",
api_base="https://api.stripe.com",
)
- def test_v2_core_accounts_person_post_2_service(
+ def test_v2_billing_collection_setting_post_2_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"post",
- "/v2/core/accounts/account_id_123/persons/id_123",
+ "/v2/billing/collection_settings/id_123",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.accounts.persons.update(
- "account_id_123",
- "id_123",
- )
+ client.v2.billing.collection_settings.update("id_123")
http_client_mock.assert_requested(
"post",
- path="/v2/core/accounts/account_id_123/persons/id_123",
+ path="/v2/billing/collection_settings/id_123",
query_string="",
api_base="https://api.stripe.com",
post_data="{}",
is_json=True,
)
- def test_v2_core_accounts_person_token_post_service(
+ def test_v2_billing_collection_settings_version_get_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
- "post",
- "/v2/core/accounts/account_id_123/person_tokens",
+ "get",
+ "/v2/billing/collection_settings/collection_setting_id_123/versions",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.accounts.person_tokens.create("account_id_123")
+ client.v2.billing.collection_settings.versions.list(
+ "collection_setting_id_123",
+ )
http_client_mock.assert_requested(
- "post",
- path="/v2/core/accounts/account_id_123/person_tokens",
+ "get",
+ path="/v2/billing/collection_settings/collection_setting_id_123/versions",
query_string="",
api_base="https://api.stripe.com",
- post_data="{}",
- is_json=True,
)
- def test_v2_core_accounts_person_token_get_service(
+ def test_v2_billing_collection_settings_version_get_2_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"get",
- "/v2/core/accounts/account_id_123/person_tokens/id_123",
+ "/v2/billing/collection_settings/collection_setting_id_123/versions/id_123",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.accounts.person_tokens.retrieve(
- "account_id_123",
+ client.v2.billing.collection_settings.versions.retrieve(
+ "collection_setting_id_123",
"id_123",
)
http_client_mock.assert_requested(
"get",
- path="/v2/core/accounts/account_id_123/person_tokens/id_123",
+ path="/v2/billing/collection_settings/collection_setting_id_123/versions/id_123",
query_string="",
api_base="https://api.stripe.com",
)
- def test_v2_core_account_link_post_service(
+ def test_v2_billing_meter_event_post_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"post",
- "/v2/core/account_links",
+ "/v2/billing/meter_events",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.account_links.create(
+ client.v2.billing.meter_events.create(
{
- "account": "account",
- "use_case": {
- "type": "account_onboarding",
- "account_onboarding": {
- "collection_options": {
- "fields": "eventually_due",
- "future_requirements": "include",
- },
- "configurations": ["merchant"],
- "refresh_url": "refresh_url",
- "return_url": "return_url",
- },
- "account_update": {
- "collection_options": {
- "fields": "eventually_due",
- "future_requirements": "include",
- },
- "configurations": ["merchant"],
- "refresh_url": "refresh_url",
- "return_url": "return_url",
- },
- },
+ "event_name": "event_name",
+ "payload": {"key": "payload"},
}
)
http_client_mock.assert_requested(
"post",
- path="/v2/core/account_links",
+ path="/v2/billing/meter_events",
query_string="",
api_base="https://api.stripe.com",
- post_data='{"account":"account","use_case":{"type":"account_onboarding","account_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["merchant"],"refresh_url":"refresh_url","return_url":"return_url"},"account_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["merchant"],"refresh_url":"refresh_url","return_url":"return_url"}}}',
+ post_data='{"event_name":"event_name","payload":{"key":"payload"}}',
is_json=True,
)
- def test_v2_core_account_token_post_service(
+ def test_v2_billing_meter_event_adjustment_post_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"post",
- "/v2/core/account_tokens",
+ "/v2/billing/meter_event_adjustments",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.account_tokens.create()
+ client.v2.billing.meter_event_adjustments.create(
+ {
+ "cancel": {"identifier": "identifier"},
+ "event_name": "event_name",
+ "type": "cancel",
+ }
+ )
http_client_mock.assert_requested(
"post",
- path="/v2/core/account_tokens",
+ path="/v2/billing/meter_event_adjustments",
query_string="",
api_base="https://api.stripe.com",
- post_data="{}",
+ post_data='{"cancel":{"identifier":"identifier"},"event_name":"event_name","type":"cancel"}',
is_json=True,
)
- def test_v2_core_account_token_get_service(
+ def test_v2_billing_meter_event_session_post_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
- "get",
- "/v2/core/account_tokens/id_123",
+ "post",
+ "/v2/billing/meter_event_session",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.account_tokens.retrieve("id_123")
+ client.v2.billing.meter_event_session.create()
http_client_mock.assert_requested(
- "get",
- path="/v2/core/account_tokens/id_123",
+ "post",
+ path="/v2/billing/meter_event_session",
query_string="",
api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
)
- def test_v2_core_event_get_service(
+ def test_v2_billing_meter_event_stream_post_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
- "get",
- "/v2/core/events",
+ "post",
+ "/v2/billing/meter_event_stream",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.events.list()
+ client.v2.billing.meter_event_stream.create(
+ {
+ "events": [
+ {
+ "event_name": "event_name",
+ "identifier": "identifier",
+ "payload": {"key": "payload"},
+ "timestamp": "1970-01-01T15:18:46.294Z",
+ },
+ ],
+ }
+ )
http_client_mock.assert_requested(
- "get",
- path="/v2/core/events",
+ "post",
+ path="/v2/billing/meter_event_stream",
query_string="",
- api_base="https://api.stripe.com",
+ api_base="https://meter-events.stripe.com",
+ post_data='{"events":[{"event_name":"event_name","identifier":"identifier","payload":{"key":"payload"},"timestamp":"1970-01-01T15:18:46.294Z"}]}',
+ is_json=True,
)
- def test_v2_core_event_get_2_service(
+ def test_v2_billing_profile_get_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"get",
- "/v2/core/events/id_123",
+ "/v2/billing/profiles",
+ "lookup_keys[0]=lookup_keys",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.events.retrieve("id_123")
+ client.v2.billing.profiles.list({"lookup_keys": ["lookup_keys"]})
http_client_mock.assert_requested(
"get",
- path="/v2/core/events/id_123",
+ path="/v2/billing/profiles",
+ query_string="lookup_keys[0]=lookup_keys",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_billing_profile_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/billing/profiles",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.billing.profiles.create({"customer": "customer"})
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/billing/profiles",
query_string="",
api_base="https://api.stripe.com",
+ post_data='{"customer":"customer"}',
+ is_json=True,
)
- def test_v2_core_event_destination_get_service(
+ def test_v2_billing_profile_get_2_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"get",
- "/v2/core/event_destinations",
+ "/v2/billing/profiles/id_123",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.event_destinations.list()
+ client.v2.billing.profiles.retrieve("id_123")
http_client_mock.assert_requested(
"get",
- path="/v2/core/event_destinations",
+ path="/v2/billing/profiles/id_123",
query_string="",
api_base="https://api.stripe.com",
)
- def test_v2_core_event_destination_post_service(
+ def test_v2_billing_profile_post_2_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"post",
- "/v2/core/event_destinations",
+ "/v2/billing/profiles/id_123",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.event_destinations.create(
- {
- "enabled_events": ["enabled_events"],
- "event_payload": "thin",
- "name": "name",
- "type": "amazon_eventbridge",
- }
- )
+ client.v2.billing.profiles.update("id_123")
http_client_mock.assert_requested(
"post",
- path="/v2/core/event_destinations",
+ path="/v2/billing/profiles/id_123",
query_string="",
api_base="https://api.stripe.com",
- post_data='{"enabled_events":["enabled_events"],"event_payload":"thin","name":"name","type":"amazon_eventbridge"}',
+ post_data="{}",
is_json=True,
)
- def test_v2_core_event_destination_delete_service(
+ def test_v2_core_account_get_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
- "delete",
- "/v2/core/event_destinations/id_123",
+ "get",
+ "/v2/core/accounts",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.event_destinations.delete("id_123")
+ client.v2.core.accounts.list()
http_client_mock.assert_requested(
- "delete",
- path="/v2/core/event_destinations/id_123",
+ "get",
+ path="/v2/core/accounts",
query_string="",
api_base="https://api.stripe.com",
)
- def test_v2_core_event_destination_get_2_service(
+ def test_v2_core_account_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/accounts",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.accounts.create()
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_account_get_2_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"get",
- "/v2/core/event_destinations/id_123",
+ "/v2/core/accounts/id_123",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.event_destinations.retrieve("id_123")
+ client.v2.core.accounts.retrieve("id_123")
http_client_mock.assert_requested(
"get",
- path="/v2/core/event_destinations/id_123",
+ path="/v2/core/accounts/id_123",
query_string="",
api_base="https://api.stripe.com",
)
- def test_v2_core_event_destination_post_2_service(
+ def test_v2_core_account_post_2_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"post",
- "/v2/core/event_destinations/id_123",
+ "/v2/core/accounts/id_123",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.event_destinations.update("id_123")
+ client.v2.core.accounts.update("id_123")
http_client_mock.assert_requested(
"post",
- path="/v2/core/event_destinations/id_123",
+ path="/v2/core/accounts/id_123",
query_string="",
api_base="https://api.stripe.com",
post_data="{}",
is_json=True,
)
- def test_v2_core_event_destination_post_3_service(
+ def test_v2_core_account_post_3_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"post",
- "/v2/core/event_destinations/id_123/disable",
+ "/v2/core/accounts/id_123/close",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.event_destinations.disable("id_123")
+ client.v2.core.accounts.close("id_123")
http_client_mock.assert_requested(
"post",
- path="/v2/core/event_destinations/id_123/disable",
+ path="/v2/core/accounts/id_123/close",
query_string="",
api_base="https://api.stripe.com",
post_data="{}",
is_json=True,
)
- def test_v2_core_event_destination_post_4_service(
+ def test_v2_core_accounts_person_get_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
- "post",
- "/v2/core/event_destinations/id_123/enable",
+ "get",
+ "/v2/core/accounts/account_id_123/persons",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.event_destinations.enable("id_123")
+ client.v2.core.accounts.persons.list("account_id_123")
http_client_mock.assert_requested(
- "post",
- path="/v2/core/event_destinations/id_123/enable",
+ "get",
+ path="/v2/core/accounts/account_id_123/persons",
query_string="",
api_base="https://api.stripe.com",
- post_data="{}",
- is_json=True,
)
- def test_v2_core_event_destination_post_5_service(
+ def test_v2_core_accounts_person_post_service(
self, http_client_mock: HTTPClientMock
) -> None:
http_client_mock.stub_request(
"post",
- "/v2/core/event_destinations/id_123/ping",
+ "/v2/core/accounts/account_id_123/persons",
)
client = StripeClient(
"sk_test_123",
http_client=http_client_mock.get_mock_http_client(),
)
- client.v2.core.event_destinations.ping("id_123")
+ client.v2.core.accounts.persons.create("account_id_123")
http_client_mock.assert_requested(
"post",
- path="/v2/core/event_destinations/id_123/ping",
+ path="/v2/core/accounts/account_id_123/persons",
query_string="",
api_base="https://api.stripe.com",
post_data="{}",
is_json=True,
)
+ def test_v2_core_accounts_person_delete_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "delete",
+ "/v2/core/accounts/account_id_123/persons/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.accounts.persons.delete(
+ "account_id_123",
+ "id_123",
+ )
+ http_client_mock.assert_requested(
+ "delete",
+ path="/v2/core/accounts/account_id_123/persons/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_accounts_person_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/accounts/account_id_123/persons/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.accounts.persons.retrieve(
+ "account_id_123",
+ "id_123",
+ )
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/accounts/account_id_123/persons/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_accounts_person_post_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/accounts/account_id_123/persons/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.accounts.persons.update(
+ "account_id_123",
+ "id_123",
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/accounts/account_id_123/persons/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_accounts_person_token_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/accounts/account_id_123/person_tokens",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.accounts.person_tokens.create("account_id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/accounts/account_id_123/person_tokens",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_accounts_person_token_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/accounts/account_id_123/person_tokens/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.accounts.person_tokens.retrieve(
+ "account_id_123",
+ "id_123",
+ )
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/accounts/account_id_123/person_tokens/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_account_link_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/account_links",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.account_links.create(
+ {
+ "account": "account",
+ "use_case": {
+ "type": "account_onboarding",
+ "account_onboarding": {
+ "collection_options": {
+ "fields": "eventually_due",
+ "future_requirements": "include",
+ },
+ "configurations": ["storer"],
+ "refresh_url": "refresh_url",
+ "return_url": "return_url",
+ },
+ "account_update": {
+ "collection_options": {
+ "fields": "eventually_due",
+ "future_requirements": "include",
+ },
+ "configurations": ["storer"],
+ "refresh_url": "refresh_url",
+ "return_url": "return_url",
+ },
+ },
+ }
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/account_links",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"account":"account","use_case":{"type":"account_onboarding","account_onboarding":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["storer"],"refresh_url":"refresh_url","return_url":"return_url"},"account_update":{"collection_options":{"fields":"eventually_due","future_requirements":"include"},"configurations":["storer"],"refresh_url":"refresh_url","return_url":"return_url"}}}',
+ is_json=True,
+ )
+
+ def test_v2_core_account_token_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/account_tokens",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.account_tokens.create()
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/account_tokens",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_account_token_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/account_tokens/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.account_tokens.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/account_tokens/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_event_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/events",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.events.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/events",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_event_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/events/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.events.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/events/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_event_destination_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/event_destinations",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.event_destinations.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/event_destinations",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_event_destination_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/event_destinations",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.event_destinations.create(
+ {
+ "enabled_events": ["enabled_events"],
+ "event_payload": "thin",
+ "name": "name",
+ "type": "amazon_eventbridge",
+ }
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/event_destinations",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"enabled_events":["enabled_events"],"event_payload":"thin","name":"name","type":"amazon_eventbridge"}',
+ is_json=True,
+ )
+
+ def test_v2_core_event_destination_delete_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "delete",
+ "/v2/core/event_destinations/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.event_destinations.delete("id_123")
+ http_client_mock.assert_requested(
+ "delete",
+ path="/v2/core/event_destinations/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_event_destination_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/event_destinations/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.event_destinations.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/event_destinations/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_event_destination_post_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/event_destinations/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.event_destinations.update("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/event_destinations/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_event_destination_post_3_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/event_destinations/id_123/disable",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.event_destinations.disable("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/event_destinations/id_123/disable",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_event_destination_post_4_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/event_destinations/id_123/enable",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.event_destinations.enable("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/event_destinations/id_123/enable",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_event_destination_post_5_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/event_destinations/id_123/ping",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.event_destinations.ping("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/event_destinations/id_123/ping",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_vault_gb_bank_account_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/vault/gb_bank_accounts",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.gb_bank_accounts.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/vault/gb_bank_accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_vault_gb_bank_account_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/gb_bank_accounts",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.gb_bank_accounts.create(
+ {
+ "account_number": "account_number",
+ "sort_code": "sort_code",
+ }
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/gb_bank_accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"account_number":"account_number","sort_code":"sort_code"}',
+ is_json=True,
+ )
+
+ def test_v2_core_vault_gb_bank_account_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/vault/gb_bank_accounts/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.gb_bank_accounts.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/vault/gb_bank_accounts/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_vault_gb_bank_account_post_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/gb_bank_accounts/id_123/acknowledge_confirmation_of_payee",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.gb_bank_accounts.acknowledge_confirmation_of_payee(
+ "id_123",
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/gb_bank_accounts/id_123/acknowledge_confirmation_of_payee",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_vault_gb_bank_account_post_3_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/gb_bank_accounts/id_123/archive",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.gb_bank_accounts.archive("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/gb_bank_accounts/id_123/archive",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_vault_gb_bank_account_post_4_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/gb_bank_accounts/id_123/initiate_confirmation_of_payee",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.gb_bank_accounts.initiate_confirmation_of_payee(
+ "id_123",
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/gb_bank_accounts/id_123/initiate_confirmation_of_payee",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_vault_us_bank_account_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/vault/us_bank_accounts",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.us_bank_accounts.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/vault/us_bank_accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_vault_us_bank_account_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/us_bank_accounts",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.us_bank_accounts.create(
+ {
+ "account_number": "account_number",
+ }
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/us_bank_accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"account_number":"account_number"}',
+ is_json=True,
+ )
+
+ def test_v2_core_vault_us_bank_account_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/core/vault/us_bank_accounts/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.us_bank_accounts.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/core/vault/us_bank_accounts/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_core_vault_us_bank_account_post_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/us_bank_accounts/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.us_bank_accounts.update("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/us_bank_accounts/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_vault_us_bank_account_post_3_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/us_bank_accounts/id_123/archive",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.us_bank_accounts.archive("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/us_bank_accounts/id_123/archive",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_vault_us_bank_account_post_4_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/us_bank_accounts/id_123/confirm_microdeposits",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.us_bank_accounts.confirm_microdeposits("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/us_bank_accounts/id_123/confirm_microdeposits",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_core_vault_us_bank_account_post_5_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/us_bank_accounts/id_123/send_microdeposits",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.core.vault.us_bank_accounts.send_microdeposits("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/us_bank_accounts/id_123/send_microdeposits",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_money_management_adjustment_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/adjustments",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.adjustments.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/adjustments",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_adjustment_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/adjustments/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.adjustments.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/adjustments/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_financial_account_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/financial_accounts",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.financial_accounts.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/financial_accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_financial_account_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/financial_accounts",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.financial_accounts.create(
+ {
+ "type": "storage",
+ }
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/financial_accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"type":"storage"}',
+ is_json=True,
+ )
+
+ def test_v2_money_management_financial_account_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/financial_accounts/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.financial_accounts.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/financial_accounts/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_financial_account_post_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/financial_accounts/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.financial_accounts.update("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/financial_accounts/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_money_management_financial_account_post_3_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/financial_accounts/id_123/close",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.financial_accounts.close("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/financial_accounts/id_123/close",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_money_management_financial_address_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/financial_addresses",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.financial_addresses.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/financial_addresses",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_financial_address_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/financial_addresses",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.financial_addresses.create(
+ {
+ "financial_account": "financial_account",
+ "type": "gb_bank_account",
+ }
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/financial_addresses",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"financial_account":"financial_account","type":"gb_bank_account"}',
+ is_json=True,
+ )
+
+ def test_v2_money_management_financial_address_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/financial_addresses/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.financial_addresses.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/financial_addresses/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_inbound_transfer_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/inbound_transfers",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.inbound_transfers.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/inbound_transfers",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_inbound_transfer_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/inbound_transfers",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.inbound_transfers.create(
+ {
+ "amount": {"value": 111972721, "currency": "usd"},
+ "from": {
+ "currency": "usd",
+ "payment_method": "payment_method",
+ },
+ "to": {
+ "currency": "usd",
+ "financial_account": "financial_account",
+ },
+ }
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/inbound_transfers",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"amount":{"value":111972721,"currency":"usd"},"from":{"currency":"usd","payment_method":"payment_method"},"to":{"currency":"usd","financial_account":"financial_account"}}',
+ is_json=True,
+ )
+
+ def test_v2_money_management_inbound_transfer_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/inbound_transfers/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.inbound_transfers.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/inbound_transfers/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_outbound_payment_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/outbound_payments",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_payments.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/outbound_payments",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_outbound_payment_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_payments",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_payments.create(
+ {
+ "amount": {"value": 111972721, "currency": "usd"},
+ "from": {
+ "currency": "usd",
+ "financial_account": "financial_account",
+ },
+ "to": {
+ "currency": "usd",
+ "payout_method": "payout_method",
+ "recipient": "recipient",
+ },
+ }
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_payments",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"amount":{"value":111972721,"currency":"usd"},"from":{"currency":"usd","financial_account":"financial_account"},"to":{"currency":"usd","payout_method":"payout_method","recipient":"recipient"}}',
+ is_json=True,
+ )
+
+ def test_v2_money_management_outbound_payment_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/outbound_payments/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_payments.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/outbound_payments/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_outbound_payment_post_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_payments/id_123/cancel",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_payments.cancel("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_payments/id_123/cancel",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_money_management_outbound_payment_quote_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_payment_quotes",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_payment_quotes.create(
+ {
+ "amount": {"value": 111972721, "currency": "usd"},
+ "from": {
+ "currency": "usd",
+ "financial_account": "financial_account",
+ },
+ "to": {
+ "currency": "usd",
+ "payout_method": "payout_method",
+ "recipient": "recipient",
+ },
+ }
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_payment_quotes",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"amount":{"value":111972721,"currency":"usd"},"from":{"currency":"usd","financial_account":"financial_account"},"to":{"currency":"usd","payout_method":"payout_method","recipient":"recipient"}}',
+ is_json=True,
+ )
+
+ def test_v2_money_management_outbound_payment_quote_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/outbound_payment_quotes/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_payment_quotes.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/outbound_payment_quotes/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_outbound_setup_intent_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/outbound_setup_intents",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_setup_intents.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/outbound_setup_intents",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_outbound_setup_intent_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_setup_intents",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_setup_intents.create()
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_setup_intents",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_money_management_outbound_setup_intent_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/outbound_setup_intents/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_setup_intents.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/outbound_setup_intents/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_outbound_setup_intent_post_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_setup_intents/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_setup_intents.update("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_setup_intents/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_money_management_outbound_setup_intent_post_3_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_setup_intents/id_123/cancel",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_setup_intents.cancel("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_setup_intents/id_123/cancel",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_money_management_outbound_transfer_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/outbound_transfers",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_transfers.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/outbound_transfers",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_outbound_transfer_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_transfers",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_transfers.create(
+ {
+ "amount": {"value": 111972721, "currency": "usd"},
+ "from": {
+ "currency": "usd",
+ "financial_account": "financial_account",
+ },
+ "to": {"currency": "usd", "payout_method": "payout_method"},
+ }
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_transfers",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"amount":{"value":111972721,"currency":"usd"},"from":{"currency":"usd","financial_account":"financial_account"},"to":{"currency":"usd","payout_method":"payout_method"}}',
+ is_json=True,
+ )
+
+ def test_v2_money_management_outbound_transfer_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/outbound_transfers/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_transfers.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/outbound_transfers/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_outbound_transfer_post_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_transfers/id_123/cancel",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.outbound_transfers.cancel("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_transfers/id_123/cancel",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_money_management_payout_method_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/payout_methods",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.payout_methods.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/payout_methods",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_payout_method_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/payout_methods/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.payout_methods.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/payout_methods/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_payout_method_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/payout_methods/id_123/archive",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.payout_methods.archive("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/payout_methods/id_123/archive",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_money_management_payout_method_post_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/payout_methods/id_123/unarchive",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.payout_methods.unarchive("id_123")
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/payout_methods/id_123/unarchive",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_v2_money_management_payout_methods_bank_account_spec_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/payout_methods_bank_account_spec",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.payout_methods_bank_account_spec.retrieve()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/payout_methods_bank_account_spec",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_received_credit_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/received_credits",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.received_credits.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/received_credits",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_received_credit_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/received_credits/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.received_credits.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/received_credits/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_received_debit_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/received_debits",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.received_debits.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/received_debits",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_received_debit_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/received_debits/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.received_debits.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/received_debits/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_transaction_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/transactions",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.transactions.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/transactions",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_transaction_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/transactions/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.transactions.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/transactions/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_transaction_entry_get_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/transaction_entries",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.transaction_entries.list()
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/transaction_entries",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_money_management_transaction_entry_get_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "get",
+ "/v2/money_management/transaction_entries/id_123",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.money_management.transaction_entries.retrieve("id_123")
+ http_client_mock.assert_requested(
+ "get",
+ path="/v2/money_management/transaction_entries/id_123",
+ query_string="",
+ api_base="https://api.stripe.com",
+ )
+
+ def test_v2_test_helpers_financial_address_post_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/test_helpers/financial_addresses/id_123/credit",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.test_helpers.financial_addresses.credit(
+ "id_123",
+ {
+ "amount": {"value": 111972721, "currency": "usd"},
+ "network": "rtp",
+ },
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/test_helpers/financial_addresses/id_123/credit",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"amount":{"value":111972721,"currency":"usd"},"network":"rtp"}',
+ is_json=True,
+ )
+
+ def test_v2_test_helpers_financial_address_post_2_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/test_helpers/financial_addresses/id_123/generate_microdeposits",
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ client.v2.test_helpers.financial_addresses.generate_microdeposits(
+ "id_123",
+ )
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/test_helpers/financial_addresses/id_123/generate_microdeposits",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_already_canceled_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_payments/id_123/cancel",
+ rbody='{"error":{"type":"already_canceled","code":"outbound_payment_already_canceled"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.money_management.outbound_payments.cancel("id_123")
+ except _error.AlreadyCanceledError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_payments/id_123/cancel",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_already_exists_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/financial_accounts",
+ rbody='{"error":{"type":"already_exists","code":"already_exists"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.money_management.financial_accounts.create(
+ {
+ "type": "storage",
+ }
+ )
+ except _error.AlreadyExistsError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/financial_accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"type":"storage"}',
+ is_json=True,
+ )
+
+ def test_blocked_by_stripe_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/us_bank_accounts",
+ rbody='{"error":{"type":"blocked_by_stripe","code":"blocked_payout_method_bank_account"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.core.vault.us_bank_accounts.create(
+ {
+ "account_number": "account_number",
+ }
+ )
+ except _error.BlockedByStripeError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/us_bank_accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"account_number":"account_number"}',
+ is_json=True,
+ )
+
+ def test_controlled_by_alternate_resource_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_setup_intents",
+ rbody='{"error":{"type":"controlled_by_alternate_resource","code":"payout_method_cannot_be_archived"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.money_management.outbound_setup_intents.create()
+ except _error.ControlledByAlternateResourceError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_setup_intents",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_controlled_by_dashboard_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/us_bank_accounts/id_123/archive",
+ rbody='{"error":{"type":"controlled_by_dashboard","code":"bank_account_cannot_be_archived"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.core.vault.us_bank_accounts.archive("id_123")
+ except _error.ControlledByDashboardError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/us_bank_accounts/id_123/archive",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_feature_not_enabled_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/financial_accounts",
+ rbody='{"error":{"type":"feature_not_enabled","code":"outbound_flow_from_closed_financial_account_unsupported"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.money_management.financial_accounts.create(
+ {
+ "type": "storage",
+ }
+ )
+ except _error.FeatureNotEnabledError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/financial_accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"type":"storage"}',
+ is_json=True,
+ )
+
+ def test_financial_account_not_open_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/financial_addresses",
+ rbody='{"error":{"type":"financial_account_not_open","code":"financial_account_not_in_open_status"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.money_management.financial_addresses.create(
+ {
+ "financial_account": "financial_account",
+ "type": "gb_bank_account",
+ }
+ )
+ except _error.FinancialAccountNotOpenError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/financial_addresses",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"financial_account":"financial_account","type":"gb_bank_account"}',
+ is_json=True,
+ )
+
+ def test_insufficient_funds_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_payments",
+ rbody='{"error":{"type":"insufficient_funds","code":"insufficient_funds"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.money_management.outbound_payments.create(
+ {
+ "amount": {},
+ "from": {
+ "currency": "usd",
+ "financial_account": "financial_account",
+ },
+ "to": {"recipient": "recipient"},
+ }
+ )
+ except _error.InsufficientFundsError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_payments",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"amount":{},"from":{"currency":"usd","financial_account":"financial_account"},"to":{"recipient":"recipient"}}',
+ is_json=True,
+ )
+
+ def test_invalid_payment_method_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/us_bank_accounts",
+ rbody='{"error":{"type":"invalid_payment_method","code":"invalid_us_bank_account"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.core.vault.us_bank_accounts.create(
+ {
+ "account_number": "account_number",
+ }
+ )
+ except _error.InvalidPaymentMethodError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/us_bank_accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"account_number":"account_number"}',
+ is_json=True,
+ )
+
+ def test_invalid_payout_method_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_setup_intents",
+ rbody='{"error":{"type":"invalid_payout_method","code":"invalid_payout_method"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.money_management.outbound_setup_intents.create()
+ except _error.InvalidPayoutMethodError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_setup_intents",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_non_zero_balance_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/financial_accounts/id_123/close",
+ rbody='{"error":{"type":"non_zero_balance","code":"closing_financial_account_with_non_zero_balances"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.money_management.financial_accounts.close("id_123")
+ except _error.NonZeroBalanceError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/financial_accounts/id_123/close",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_not_cancelable_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_payments/id_123/cancel",
+ rbody='{"error":{"type":"not_cancelable","code":"outbound_payment_not_cancelable"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.money_management.outbound_payments.cancel("id_123")
+ except _error.NotCancelableError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_payments/id_123/cancel",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data="{}",
+ is_json=True,
+ )
+
+ def test_quota_exceeded_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/core/vault/us_bank_accounts",
+ rbody='{"error":{"type":"quota_exceeded","code":"archived_payout_method_card"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.core.vault.us_bank_accounts.create(
+ {
+ "account_number": "account_number",
+ }
+ )
+ except _error.QuotaExceededError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/core/vault/us_bank_accounts",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"account_number":"account_number"}',
+ is_json=True,
+ )
+
+ def test_recipient_not_notifiable_error_service(
+ self, http_client_mock: HTTPClientMock
+ ) -> None:
+ http_client_mock.stub_request(
+ "post",
+ "/v2/money_management/outbound_payments",
+ rbody='{"error":{"type":"recipient_not_notifiable","code":"recipient_email_does_not_exist"}}',
+ rcode=400,
+ )
+ client = StripeClient(
+ "sk_test_123",
+ http_client=http_client_mock.get_mock_http_client(),
+ )
+
+ try:
+ client.v2.money_management.outbound_payments.create(
+ {
+ "amount": {},
+ "from": {
+ "currency": "usd",
+ "financial_account": "financial_account",
+ },
+ "to": {"recipient": "recipient"},
+ }
+ )
+ except _error.RecipientNotNotifiableError:
+ pass
+ http_client_mock.assert_requested(
+ "post",
+ path="/v2/money_management/outbound_payments",
+ query_string="",
+ api_base="https://api.stripe.com",
+ post_data='{"amount":{},"from":{"currency":"usd","financial_account":"financial_account"},"to":{"recipient":"recipient"}}',
+ is_json=True,
+ )
+
def test_temporary_session_expired_error_service(
self, http_client_mock: HTTPClientMock
) -> None: