diff --git a/.hark/changes/2026-10-14_stripe-openapi_1c37d4a7.change.md b/.hark/changes/2026-10-14_stripe-openapi_1c37d4a7.change.md new file mode 100644 index 000000000..a64c5ab42 --- /dev/null +++ b/.hark/changes/2026-10-14_stripe-openapi_1c37d4a7.change.md @@ -0,0 +1,45 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-python/pull/1943 +semver_level: major +is_stripe_api_change: true +--- + +* ⚠️ Remove support for `capture` method on resource `v2.payments.OffSessionPayment` +* ⚠️ Remove support for `acknowledge_confirmation_of_payee` and `initiate_confirmation_of_payee` methods on resource `v2.core.vault.GbBankAccount` +* Add support for `wechat_pay_mobile_web_payments` on `Account.Setting`, `AccountCreateParamsSetting`, and `AccountModifyParamsSetting` +* ⚠️ Remove support for `wechat_pay_payments` on `Account.Setting`, `AccountCreateParamsSetting`, and `AccountModifyParamsSetting` +* Add support for `settlement_reserved` on `Balance` +* Change type of `BalanceSettings.Payment.default_settlement_currency` from `nullable(string)` to `string` +* Add support for new value `settlement_reserved` on enum `BalanceTransaction.balance_type` +* Add support for `carecredit`, `getflex`, and `sezzle` on `Charge.PaymentMethodDetail`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntent.PaymentMethodOption`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentConfirmParamsPaymentMethodOption`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodOption`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodOption`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodDatum` +* Add support for `rakuten_pay` on `Charge.PaymentMethodDetail`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodDatum` +* Add support for new value `auto` on enums `Checkout.Session.payment_method_collection` and `checkout.SessionCreateParams.payment_method_collection` +* Add support for `mandate_options` on `checkout.SessionCreateParamsPaymentMethodOptionCard` +* Change `Checkout.Session.Item.Subscription.backdate_start_date` to be required +* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` +* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` +* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for new values `three_d_secure.authentication.canceled`, `three_d_secure.authentication.challenge_started`, `three_d_secure.authentication.errored`, `three_d_secure.authentication.failed`, `three_d_secure.authentication.requires_challenge`, `three_d_secure.authentication.requires_submission`, and `three_d_secure.authentication.succeeded` on enum `Event.type` +* Add support for `fraudulent_document` on `Identity.VerificationReport.Signal` +* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` on enums `PaymentIntent.allowed_payment_method_types`, `PaymentIntentConfirmParams.allowed_payment_method_types`, `PaymentIntentCreateParams.allowed_payment_method_types`, `PaymentIntentModifyParams.allowed_payment_method_types`, `SetupIntent.allowed_payment_method_types`, `SetupIntentConfirmParams.allowed_payment_method_types`, `SetupIntentCreateParams.allowed_payment_method_types`, and `SetupIntentModifyParams.allowed_payment_method_types` +* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` on enums `PaymentIntent.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntent.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentModifyParams.excluded_payment_method_types` +* Add support for new values `simulated_stripe_t600` and `stripe_t600` on enum `terminal.ReaderListParams.device_type` +* Add support for new values `three_d_secure.authentication.canceled`, `three_d_secure.authentication.challenge_started`, `three_d_secure.authentication.errored`, `three_d_secure.authentication.failed`, `three_d_secure.authentication.requires_challenge`, `three_d_secure.authentication.requires_submission`, and `three_d_secure.authentication.succeeded` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointModifyParams.enabled_events` +* Add support for `contact_email` on `V2.Core.AccountEvaluation.AccountDatum`, `V2.Signals.AccountActivity.AccountDetail.Datum`, `V2.Signals.AccountEvaluation.AccountDetail.Datum`, `v2.core.AccountEvaluationCreateParamsAccountDatum`, `v2.signals.AccountActivityCreateParamsAccountDetailData`, and `v2.signals.AccountEvaluationCreateParamsAccountDetailData` +* Add support for new value `user_merchant_fit` on enum `V2.Core.AccountEvaluation.evaluations_triggered` +* ⚠️ Change type of `V2.Core.Account.Identity.Individual.AdditionalAddress.purpose` and `V2.Core.AccountPerson.AdditionalAddress.purpose` from `literal('registered')` to `enum('birthplace'|'registered')` +* Add support for `bre_b`, `nip`, and `pix` on `V2.MoneyManagement.FinancialAddress.BankAccount` and `V2.MoneyManagement.ReceivedCredit.BankTransfer.OriginatingBankAccount` +* Add support for new value `ousd` on enum `V2.MoneyManagement.FinancialAddress.CryptoWallet.SupportedNetworkDetail.supported_token_currencies` +* Add support for new values `bre_b`, `nip`, and `pix` on enum `V2.MoneyManagement.ReceivedCredit.BankTransfer.OriginatingBankAccount.type` +* ⚠️ Remove support for `amount_capturable` on `V2.Payments.OffSessionPayment` +* ⚠️ Remove support for `capture` on `V2.Payments.OffSessionPayment` and `v2.payments.OffSessionPaymentCreateParams` +* Add support for `user_merchant_fit` on `V2.Signals.AccountEvaluation.EvaluatedSignal` and `V2.Signals.AccountSignal` +* Add support for new value `user_merchant_fit` on enum `V2.Signals.AccountEvaluation.pending_signals` +* Add support for new value `user_merchant_fit` on enums `V2.Signals.AccountEvaluation.requested_signals` and `v2.signals.AccountEvaluationCreateParams.requested_signals` +* Add support for new value `user_merchant_fit` on enums `V2.Signals.AccountSignal.type` and `v2.signals.AccountSignalListParams.type` +* Add support for new values `bre_b` and `pix` on enum `v2.money_management.FinancialAddressCreditSimulationCreditParams.network` +* Change type of `v2.core.AccountCreateParamsIdentityIndividualAdditionalAddress.purpose`, `v2.core.AccountModifyParamsIdentityIndividualAdditionalAddress.purpose`, `v2.core.AccountPersonCreateParamsAdditionalAddress.purpose`, `v2.core.AccountPersonModifyParamsAdditionalAddress.purpose`, `v2.core.AccountPersonTokenCreateParamsAdditionalAddress.purpose`, and `v2.core.AccountTokenCreateParamsIdentityIndividualAdditionalAddress.purpose` from `literal('registered')` to `enum('birthplace'|'registered')` +* Add support for new value `user_merchant_fit` on enum `v2.core.AccountEvaluationCreateParams.signals` +* Add support for snapshot events `three_d_secure.authentication.canceled`, `three_d_secure.authentication.challenge_started`, `three_d_secure.authentication.errored`, `three_d_secure.authentication.failed`, `three_d_secure.authentication.requires_challenge`, `three_d_secure.authentication.requires_submission`, and `three_d_secure.authentication.succeeded` with resource `three_d_secure.Authentication` +* ⚠️ Remove support for event notification `V2PaymentsOffSessionPaymentRequiresCaptureEvent` with related object `v2.payments.OffSessionPayment` diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 0f330b47a..52d81e8f1 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -43649cb7390f9257ffa04232dc7ed9ea8359c77f \ No newline at end of file +ee856c792d5b7bc7c9a55588bd92531c2774e744 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 06472c208..24341e773 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2544 \ No newline at end of file +v2562 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 85aa992f9..4f47d815a 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -1842,10 +1842,10 @@ class TosAcceptance(StripeObject): tos_acceptance: Optional[TosAcceptance] _inner_class_types = {"tos_acceptance": TosAcceptance} - class WechatPayPayments(StripeObject): - mobile_web_domains: Optional[List[str]] + class WechatPayMobileWebPayments(StripeObject): + domains: Optional[List[str]] """ - The domains of the user's mobile web checkout pages for WeChat Pay payments. At most 4 domains are allowed. + The domains of the user's mobile web checkout pages for WeChat Pay payments. """ bacs_debit_payments: Optional[BacsDebitPayments] @@ -1863,7 +1863,7 @@ class WechatPayPayments(StripeObject): smart_disputes: Optional[SmartDisputes] tax_forms: Optional[TaxForms] treasury: Optional[Treasury] - wechat_pay_payments: Optional[WechatPayPayments] + wechat_pay_mobile_web_payments: Optional[WechatPayMobileWebPayments] _inner_class_types = { "bacs_debit_payments": BacsDebitPayments, "bank_bca_onboarding": BankBcaOnboarding, @@ -1880,7 +1880,7 @@ class WechatPayPayments(StripeObject): "smart_disputes": SmartDisputes, "tax_forms": TaxForms, "treasury": Treasury, - "wechat_pay_payments": WechatPayPayments, + "wechat_pay_mobile_web_payments": WechatPayMobileWebPayments, } class TosAcceptance(StripeObject): diff --git a/stripe/_api_version.py b/stripe/_api_version.py index dded2bcf4..462b9430b 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2026-10-07.preview" + CURRENT = "2026-10-14.preview" CURRENT_MAJOR = "" diff --git a/stripe/_balance.py b/stripe/_balance.py index 95072c866..bc685c8db 100644 --- a/stripe/_balance.py +++ b/stripe/_balance.py @@ -321,6 +321,69 @@ class SourceTypes(StripeObject): """ _inner_class_types = {"available": Available, "pending": Pending} + class SettlementReserved(StripeObject): + class Available(StripeObject): + class SourceTypes(StripeObject): + bank_account: Optional[int] + """ + Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). + """ + card: Optional[int] + """ + Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). + """ + fpx: Optional[int] + """ + Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. + """ + + amount: int + """ + Balance amount. + """ + 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). + """ + source_types: Optional[SourceTypes] + _inner_class_types = {"source_types": SourceTypes} + + class Pending(StripeObject): + class SourceTypes(StripeObject): + bank_account: Optional[int] + """ + Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). + """ + card: Optional[int] + """ + Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). + """ + fpx: Optional[int] + """ + Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. + """ + + amount: int + """ + Balance amount. + """ + 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). + """ + source_types: Optional[SourceTypes] + _inner_class_types = {"source_types": SourceTypes} + + available: List[Available] + """ + Funds that are available for use. + """ + pending: List[Pending] + """ + Funds that are pending + """ + _inner_class_types = {"available": Available, "pending": Pending} + class TransitBalancesTotal(StripeObject): class Available(StripeObject): class SourceTypes(StripeObject): @@ -411,6 +474,7 @@ class SourceTypes(StripeObject): """ refund_and_dispute_prefunding: Optional[RefundAndDisputePrefunding] risk_reserved: Optional[RiskReserved] + settlement_reserved: Optional[SettlementReserved] transit_balances_total: Optional[TransitBalancesTotal] @classmethod @@ -447,5 +511,6 @@ def class_url(cls): "pending": Pending, "refund_and_dispute_prefunding": RefundAndDisputePrefunding, "risk_reserved": RiskReserved, + "settlement_reserved": SettlementReserved, "transit_balances_total": TransitBalancesTotal, } diff --git a/stripe/_balance_transaction.py b/stripe/_balance_transaction.py index 19eb22c4a..2541db123 100644 --- a/stripe/_balance_transaction.py +++ b/stripe/_balance_transaction.py @@ -83,6 +83,7 @@ class FeeDetail(StripeObject): "payments", "refund_and_dispute_prefunding", "risk_reserved", + "settlement_reserved", "transit", ], str, diff --git a/stripe/_card.py b/stripe/_card.py index 0c9081f23..1e1bdf2fc 100644 --- a/stripe/_card.py +++ b/stripe/_card.py @@ -50,6 +50,9 @@ class Redaction(StripeObject): """ account: Optional[ExpandableField["Account"]] + """ + The account this card belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an [External Account](https://docs.stripe.com/api/external_account_cards/object) where [controller.is_controller](https://docs.stripe.com/api/accounts/object#account_object-controller-is_controller) is `true`. + """ address_city: Optional[str] """ City/District/Suburb/Town/Village. diff --git a/stripe/_charge.py b/stripe/_charge.py index c1467e5b1..1f5b6dc23 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -1253,6 +1253,9 @@ class Wallet(StripeObject): "wallet": Wallet, } + class Carecredit(StripeObject): + pass + class Cashapp(StripeObject): buyer_id: Optional[str] """ @@ -1407,6 +1410,9 @@ class Fpx(StripeObject): Unique transaction id generated by FPX for every request from the merchant """ + class Getflex(StripeObject): + pass + class GiftCard(StripeObject): class Balance(StripeObject): amount: int @@ -2186,6 +2192,9 @@ class Promptpay(StripeObject): class Qris(StripeObject): pass + class RakutenPay(StripeObject): + pass + class Rechnung(StripeObject): payment_portal_url: Optional[str] """ @@ -2310,6 +2319,9 @@ class Sequra(StripeObject): The SeQura transaction ID associated with this payment. """ + class Sezzle(StripeObject): + pass + class Shopeepay(StripeObject): pass @@ -2491,11 +2503,13 @@ class Zip(StripeObject): boleto: Optional[Boleto] card: Optional[Card] card_present: Optional[CardPresent] + carecredit: Optional[Carecredit] cashapp: Optional[Cashapp] crypto: Optional[Crypto] customer_balance: Optional[CustomerBalance] eps: Optional[Eps] fpx: Optional[Fpx] + getflex: Optional[Getflex] gift_card: Optional[GiftCard] giropay: Optional[Giropay] gopay: Optional[Gopay] @@ -2524,6 +2538,7 @@ class Zip(StripeObject): pix: Optional[Pix] promptpay: Optional[Promptpay] qris: Optional[Qris] + rakuten_pay: Optional[RakutenPay] rechnung: Optional[Rechnung] revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] @@ -2532,6 +2547,7 @@ class Zip(StripeObject): sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] sequra: Optional[Sequra] + sezzle: Optional[Sezzle] shared_payment_granted_token: Optional[str] """ ID of the shared payment granted token used to make this payment. @@ -2573,11 +2589,13 @@ class Zip(StripeObject): "boleto": Boleto, "card": Card, "card_present": CardPresent, + "carecredit": Carecredit, "cashapp": Cashapp, "crypto": Crypto, "customer_balance": CustomerBalance, "eps": Eps, "fpx": Fpx, + "getflex": Getflex, "gift_card": GiftCard, "giropay": Giropay, "gopay": Gopay, @@ -2606,6 +2624,7 @@ class Zip(StripeObject): "pix": Pix, "promptpay": Promptpay, "qris": Qris, + "rakuten_pay": RakutenPay, "rechnung": Rechnung, "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, @@ -2614,6 +2633,7 @@ class Zip(StripeObject): "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "sequra": Sequra, + "sezzle": Sezzle, "shopeepay": Shopeepay, "sofort": Sofort, "stripe_account": StripeAccount, diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 66ac2a19c..2bb4e40f6 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -933,6 +933,9 @@ class Wallet(StripeObject): "wallet": Wallet, } + class Carecredit(StripeObject): + pass + class Cashapp(StripeObject): buyer_id: Optional[str] """ @@ -1030,6 +1033,9 @@ class Fpx(StripeObject): The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`. """ + class Getflex(StripeObject): + pass + class GiftCard(StripeObject): brand: Union[Literal["svs"], str] """ @@ -1437,6 +1443,9 @@ class Promptpay(StripeObject): class Qris(StripeObject): pass + class RakutenPay(StripeObject): + pass + class Rechnung(StripeObject): class Dob(StripeObject): day: int @@ -1511,6 +1520,9 @@ class GeneratedFrom(StripeObject): class Sequra(StripeObject): pass + class Sezzle(StripeObject): + pass + class Shopeepay(StripeObject): pass @@ -1678,6 +1690,7 @@ class Zip(StripeObject): boleto: Optional[Boleto] card: Optional[Card] card_present: Optional[CardPresent] + carecredit: Optional[Carecredit] cashapp: Optional[Cashapp] crypto: Optional[Crypto] customer: Optional[ExpandableField["Customer"]] @@ -1688,6 +1701,7 @@ class Zip(StripeObject): customer_balance: Optional[CustomerBalance] eps: Optional[Eps] fpx: Optional[Fpx] + getflex: Optional[Getflex] gift_card: Optional[GiftCard] giropay: Optional[Giropay] gopay: Optional[Gopay] @@ -1716,6 +1730,7 @@ class Zip(StripeObject): pix: Optional[Pix] promptpay: Optional[Promptpay] qris: Optional[Qris] + rakuten_pay: Optional[RakutenPay] rechnung: Optional[Rechnung] revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] @@ -1723,6 +1738,7 @@ class Zip(StripeObject): scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sequra: Optional[Sequra] + sezzle: Optional[Sezzle] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] stripe_balance: Optional[StripeBalance] @@ -1747,12 +1763,14 @@ class Zip(StripeObject): "boleto", "card", "card_present", + "carecredit", "cashapp", "crypto", "custom", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -1781,6 +1799,7 @@ class Zip(StripeObject): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -1788,6 +1807,7 @@ class Zip(StripeObject): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -1828,11 +1848,13 @@ class Zip(StripeObject): "boleto": Boleto, "card": Card, "card_present": CardPresent, + "carecredit": Carecredit, "cashapp": Cashapp, "crypto": Crypto, "customer_balance": CustomerBalance, "eps": Eps, "fpx": Fpx, + "getflex": Getflex, "gift_card": GiftCard, "giropay": Giropay, "gopay": Gopay, @@ -1861,6 +1883,7 @@ class Zip(StripeObject): "pix": Pix, "promptpay": Promptpay, "qris": Qris, + "rakuten_pay": RakutenPay, "rechnung": Rechnung, "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, @@ -1868,6 +1891,7 @@ class Zip(StripeObject): "scalapay": Scalapay, "sepa_debit": SepaDebit, "sequra": Sequra, + "sezzle": Sezzle, "shopeepay": Shopeepay, "sofort": Sofort, "stripe_balance": StripeBalance, diff --git a/stripe/_event.py b/stripe/_event.py index 48a3fe8ef..5f409a5ba 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -419,6 +419,13 @@ class Request(StripeObject): "test_helpers.test_clock.deleted", "test_helpers.test_clock.internal_failure", "test_helpers.test_clock.ready", + "three_d_secure.authentication.canceled", + "three_d_secure.authentication.challenge_started", + "three_d_secure.authentication.errored", + "three_d_secure.authentication.failed", + "three_d_secure.authentication.requires_challenge", + "three_d_secure.authentication.requires_submission", + "three_d_secure.authentication.succeeded", "topup.canceled", "topup.created", "topup.failed", diff --git a/stripe/_event_notification_handler.py b/stripe/_event_notification_handler.py index f361c04a6..19812068d 100644 --- a/stripe/_event_notification_handler.py +++ b/stripe/_event_notification_handler.py @@ -1392,9 +1392,6 @@ from stripe.events._v2_payments_off_session_payment_paused_event import ( V2PaymentsOffSessionPaymentPausedEventNotification, ) - from stripe.events._v2_payments_off_session_payment_requires_capture_event import ( - V2PaymentsOffSessionPaymentRequiresCaptureEventNotification, - ) from stripe.events._v2_payments_off_session_payment_resumed_event import ( V2PaymentsOffSessionPaymentResumedEventNotification, ) @@ -7463,19 +7460,6 @@ def on_v2_payments_off_session_payment_paused( ) return func - def on_v2_payments_off_session_payment_requires_capture( - self, - func: "Callable[[V2PaymentsOffSessionPaymentRequiresCaptureEventNotification, StripeClient], CallbackReturn]", - ): - """ - Registers a callback for the `V2PaymentsOffSessionPaymentRequiresCaptureEvent` (`v2.payments.off_session_payment.requires_capture`) event notification. - """ - self._register( - "v2.payments.off_session_payment.requires_capture", - func, - ) - return func - def on_v2_payments_off_session_payment_resumed( self, func: "Callable[[V2PaymentsOffSessionPaymentResumedEventNotification, StripeClient], CallbackReturn]", diff --git a/stripe/_invoice_item.py b/stripe/_invoice_item.py index 15e52d004..5f8e85e6e 100644 --- a/stripe/_invoice_item.py +++ b/stripe/_invoice_item.py @@ -278,7 +278,7 @@ class DiscountAmount(StripeObject): credited_items: Optional[CreditedItems] """ - For a credit proration, links to the debit invoice line items or invoice item that the credit applies to. + For a credit proration, links to the debit that the credit applies to. The reference is to an invoice item if the debit was pending when the credit was created, and to invoice line items if the debit was already invoiced. """ discount_amounts: List[DiscountAmount] """ diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index ada3d2a69..52110cec7 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -987,6 +987,9 @@ class Wallet(StripeObject): "wallet": Wallet, } + class Carecredit(StripeObject): + pass + class Cashapp(StripeObject): buyer_id: Optional[str] """ @@ -1149,6 +1152,9 @@ class Fpx(StripeObject): Unique transaction id generated by FPX for every request from the merchant """ + class Getflex(StripeObject): + pass + class GiftCard(StripeObject): class Balance(StripeObject): amount: Optional[int] @@ -1931,6 +1937,9 @@ class Promptpay(StripeObject): class Qris(StripeObject): pass + class RakutenPay(StripeObject): + pass + class Rechnung(StripeObject): payment_portal_url: Optional[str] """ @@ -2055,6 +2064,9 @@ class Sequra(StripeObject): The SeQura transaction ID associated with this payment. """ + class Sezzle(StripeObject): + pass + class Shopeepay(StripeObject): pass @@ -2245,6 +2257,7 @@ class Zip(StripeObject): Details of the card used for this payment attempt. """ card_present: Optional[CardPresent] + carecredit: Optional[Carecredit] cashapp: Optional[Cashapp] crypto: Optional[Crypto] custom: Optional[Custom] @@ -2256,6 +2269,7 @@ class Zip(StripeObject): customer_balance: Optional[CustomerBalance] eps: Optional[Eps] fpx: Optional[Fpx] + getflex: Optional[Getflex] gift_card: Optional[GiftCard] giropay: Optional[Giropay] gopay: Optional[Gopay] @@ -2289,6 +2303,7 @@ class Zip(StripeObject): pix: Optional[Pix] promptpay: Optional[Promptpay] qris: Optional[Qris] + rakuten_pay: Optional[RakutenPay] rechnung: Optional[Rechnung] revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] @@ -2297,6 +2312,7 @@ class Zip(StripeObject): sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] sequra: Optional[Sequra] + sezzle: Optional[Sezzle] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] stripe_account: Optional[StripeAccount] @@ -2335,12 +2351,14 @@ class Zip(StripeObject): "boleto": Boleto, "card": Card, "card_present": CardPresent, + "carecredit": Carecredit, "cashapp": Cashapp, "crypto": Crypto, "custom": Custom, "customer_balance": CustomerBalance, "eps": Eps, "fpx": Fpx, + "getflex": Getflex, "gift_card": GiftCard, "giropay": Giropay, "gopay": Gopay, @@ -2370,6 +2388,7 @@ class Zip(StripeObject): "pix": Pix, "promptpay": Promptpay, "qris": Qris, + "rakuten_pay": RakutenPay, "rechnung": Rechnung, "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, @@ -2378,6 +2397,7 @@ class Zip(StripeObject): "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "sequra": Sequra, + "sezzle": Sezzle, "shopeepay": Shopeepay, "sofort": Sofort, "stripe_account": StripeAccount, diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 2fabef57e..5b888b767 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -4170,6 +4170,24 @@ class Routing(StripeObject): "routing": Routing, } + class Carecredit(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + setup_future_usage: Optional[ + Union[Literal["none", "off_session"], 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). + """ + class Cashapp(StripeObject): capture_method: Optional[Literal["manual"]] """ @@ -4355,6 +4373,24 @@ class Fpx(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 Getflex(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + setup_future_usage: Optional[ + Union[Literal["none", "off_session"], 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). + """ + class GiftCard(StripeObject): ignore_application_fee: Optional[Literal["yes"]] """ @@ -5068,6 +5104,22 @@ class Sequra(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 Sezzle(StripeObject): + capture_method: Optional[Literal["manual"]] + """ + Controls when the funds will be captured from the customer's account. + """ + 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 Shopeepay(StripeObject): setup_future_usage: Optional[Literal["none"]] """ @@ -5383,11 +5435,13 @@ class Zip(StripeObject): boleto: Optional[Boleto] card: Optional[Card] card_present: Optional[CardPresent] + carecredit: Optional[Carecredit] cashapp: Optional[Cashapp] crypto: Optional[Crypto] customer_balance: Optional[CustomerBalance] eps: Optional[Eps] fpx: Optional[Fpx] + getflex: Optional[Getflex] gift_card: Optional[GiftCard] giropay: Optional[Giropay] gopay: Optional[Gopay] @@ -5423,6 +5477,7 @@ class Zip(StripeObject): scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sequra: Optional[Sequra] + sezzle: Optional[Sezzle] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] stripe_balance: Optional[StripeBalance] @@ -5450,11 +5505,13 @@ class Zip(StripeObject): "boleto": Boleto, "card": Card, "card_present": CardPresent, + "carecredit": Carecredit, "cashapp": Cashapp, "crypto": Crypto, "customer_balance": CustomerBalance, "eps": Eps, "fpx": Fpx, + "getflex": Getflex, "gift_card": GiftCard, "giropay": Giropay, "gopay": Gopay, @@ -5490,6 +5547,7 @@ class Zip(StripeObject): "scalapay": Scalapay, "sepa_debit": SepaDebit, "sequra": Sequra, + "sezzle": Sezzle, "shopeepay": Shopeepay, "sofort": Sofort, "stripe_balance": StripeBalance, @@ -5657,6 +5715,7 @@ class PaymentData(StripeObject): "capchase_pay", "card", "card_present", + "carecredit", "cashapp", "check_scan", "click_to_pay", @@ -5671,6 +5730,7 @@ class PaymentData(StripeObject): "fpx", "gcash", "getbalance", + "getflex", "gift_card", "giropay", "gopay", @@ -5713,6 +5773,7 @@ class PaymentData(StripeObject): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -5720,6 +5781,7 @@ class PaymentData(StripeObject): "scalapay", "sepa_debit", "sequra", + "sezzle", "shop_pay", "shopeepay", "sofort", @@ -5859,11 +5921,13 @@ class PaymentData(StripeObject): "blik", "boleto", "card", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -5890,6 +5954,7 @@ class PaymentData(StripeObject): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -5897,6 +5962,7 @@ class PaymentData(StripeObject): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 182c09a61..45d3e5d01 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -879,6 +879,9 @@ class Wallet(StripeObject): "wallet": Wallet, } + class Carecredit(StripeObject): + pass + class Cashapp(StripeObject): buyer_id: Optional[str] """ @@ -1009,6 +1012,9 @@ class Fpx(StripeObject): The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`. """ + class Getflex(StripeObject): + pass + class GiftCard(StripeObject): brand: Union[Literal["svs"], str] """ @@ -1422,6 +1428,9 @@ class RadarOptions(StripeObject): 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 RakutenPay(StripeObject): + pass + class Rechnung(StripeObject): class Dob(StripeObject): day: int @@ -1502,6 +1511,9 @@ class GeneratedFrom(StripeObject): class Sequra(StripeObject): pass + class Sezzle(StripeObject): + pass + class Shopeepay(StripeObject): pass @@ -1669,6 +1681,7 @@ class Zip(StripeObject): boleto: Optional[Boleto] card: Optional[Card] card_present: Optional[CardPresent] + carecredit: Optional[Carecredit] cashapp: Optional[Cashapp] created: int """ @@ -1684,6 +1697,7 @@ class Zip(StripeObject): customer_balance: Optional[CustomerBalance] eps: Optional[Eps] fpx: Optional[Fpx] + getflex: Optional[Getflex] gift_card: Optional[GiftCard] giropay: Optional[Giropay] gopay: Optional[Gopay] @@ -1736,6 +1750,7 @@ class Zip(StripeObject): """ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ + rakuten_pay: Optional[RakutenPay] rechnung: Optional[Rechnung] redaction: Optional[Redaction] """ @@ -1747,6 +1762,7 @@ class Zip(StripeObject): scalapay: Optional[Scalapay] sepa_debit: Optional[SepaDebit] sequra: Optional[Sequra] + sezzle: Optional[Sezzle] shared_payment_granted_token: Optional[str] """ ID of the shared payment granted token used in the creation of this PaymentMethod. @@ -1775,12 +1791,14 @@ class Zip(StripeObject): "boleto", "card", "card_present", + "carecredit", "cashapp", "crypto", "custom", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -1809,6 +1827,7 @@ class Zip(StripeObject): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -1816,6 +1835,7 @@ class Zip(StripeObject): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -2437,12 +2457,14 @@ async def retrieve_async( "boleto": Boleto, "card": Card, "card_present": CardPresent, + "carecredit": Carecredit, "cashapp": Cashapp, "crypto": Crypto, "custom": Custom, "customer_balance": CustomerBalance, "eps": Eps, "fpx": Fpx, + "getflex": Getflex, "gift_card": GiftCard, "giropay": Giropay, "gopay": Gopay, @@ -2472,6 +2494,7 @@ async def retrieve_async( "promptpay": Promptpay, "qris": Qris, "radar_options": RadarOptions, + "rakuten_pay": RakutenPay, "rechnung": Rechnung, "redaction": Redaction, "revolut_pay": RevolutPay, @@ -2480,6 +2503,7 @@ async def retrieve_async( "scalapay": Scalapay, "sepa_debit": SepaDebit, "sequra": Sequra, + "sezzle": Sezzle, "shopeepay": Shopeepay, "sofort": Sofort, "stripe_balance": StripeBalance, diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index bed71393d..24e805fec 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -1002,6 +1002,9 @@ class Wallet(StripeObject): "wallet": Wallet, } + class Carecredit(StripeObject): + pass + class Cashapp(StripeObject): buyer_id: Optional[str] """ @@ -1164,6 +1167,9 @@ class Fpx(StripeObject): Unique transaction id generated by FPX for every request from the merchant """ + class Getflex(StripeObject): + pass + class GiftCard(StripeObject): class Balance(StripeObject): amount: Optional[int] @@ -1946,6 +1952,9 @@ class Promptpay(StripeObject): class Qris(StripeObject): pass + class RakutenPay(StripeObject): + pass + class Rechnung(StripeObject): payment_portal_url: Optional[str] """ @@ -2070,6 +2079,9 @@ class Sequra(StripeObject): The SeQura transaction ID associated with this payment. """ + class Sezzle(StripeObject): + pass + class Shopeepay(StripeObject): pass @@ -2260,6 +2272,7 @@ class Zip(StripeObject): Details of the card used for this payment attempt. """ card_present: Optional[CardPresent] + carecredit: Optional[Carecredit] cashapp: Optional[Cashapp] crypto: Optional[Crypto] custom: Optional[Custom] @@ -2271,6 +2284,7 @@ class Zip(StripeObject): customer_balance: Optional[CustomerBalance] eps: Optional[Eps] fpx: Optional[Fpx] + getflex: Optional[Getflex] gift_card: Optional[GiftCard] giropay: Optional[Giropay] gopay: Optional[Gopay] @@ -2304,6 +2318,7 @@ class Zip(StripeObject): pix: Optional[Pix] promptpay: Optional[Promptpay] qris: Optional[Qris] + rakuten_pay: Optional[RakutenPay] rechnung: Optional[Rechnung] revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] @@ -2312,6 +2327,7 @@ class Zip(StripeObject): sepa_credit_transfer: Optional[SepaCreditTransfer] sepa_debit: Optional[SepaDebit] sequra: Optional[Sequra] + sezzle: Optional[Sezzle] shopeepay: Optional[Shopeepay] sofort: Optional[Sofort] stripe_account: Optional[StripeAccount] @@ -2350,12 +2366,14 @@ class Zip(StripeObject): "boleto": Boleto, "card": Card, "card_present": CardPresent, + "carecredit": Carecredit, "cashapp": Cashapp, "crypto": Crypto, "custom": Custom, "customer_balance": CustomerBalance, "eps": Eps, "fpx": Fpx, + "getflex": Getflex, "gift_card": GiftCard, "giropay": Giropay, "gopay": Gopay, @@ -2385,6 +2403,7 @@ class Zip(StripeObject): "pix": Pix, "promptpay": Promptpay, "qris": Qris, + "rakuten_pay": RakutenPay, "rechnung": Rechnung, "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, @@ -2393,6 +2412,7 @@ class Zip(StripeObject): "sepa_credit_transfer": SepaCreditTransfer, "sepa_debit": SepaDebit, "sequra": Sequra, + "sezzle": Sezzle, "shopeepay": Shopeepay, "sofort": Sofort, "stripe_account": StripeAccount, diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index 6d1fdfec5..f2c017690 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -1088,6 +1088,7 @@ class FrMealVoucher(StripeObject): "capchase_pay", "card", "card_present", + "carecredit", "cashapp", "check_scan", "click_to_pay", @@ -1102,6 +1103,7 @@ class FrMealVoucher(StripeObject): "fpx", "gcash", "getbalance", + "getflex", "gift_card", "giropay", "gopay", @@ -1144,6 +1146,7 @@ class FrMealVoucher(StripeObject): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -1151,6 +1154,7 @@ class FrMealVoucher(StripeObject): "scalapay", "sepa_debit", "sequra", + "sezzle", "shop_pay", "shopeepay", "sofort", @@ -1242,11 +1246,13 @@ class FrMealVoucher(StripeObject): "blik", "boleto", "card", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -1273,6 +1279,7 @@ class FrMealVoucher(StripeObject): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -1280,6 +1287,7 @@ class FrMealVoucher(StripeObject): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", diff --git a/stripe/_subscription.py b/stripe/_subscription.py index a17dca097..f32f30742 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -1440,7 +1440,7 @@ def _cls_cancel( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. + Pending invoice items are included on a final invoice if you generate one. Otherwise, they remain pending and can be billed on another invoice for the customer. To prevent billing, manually [delete](https://docs.stripe.com/api/invoiceitems/delete) them. If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1467,7 +1467,7 @@ def cancel( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. + Pending invoice items are included on a final invoice if you generate one. Otherwise, they remain pending and can be billed on another invoice for the customer. To prevent billing, manually [delete](https://docs.stripe.com/api/invoiceitems/delete) them. If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1480,7 +1480,7 @@ def cancel( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. + Pending invoice items are included on a final invoice if you generate one. Otherwise, they remain pending and can be billed on another invoice for the customer. To prevent billing, manually [delete](https://docs.stripe.com/api/invoiceitems/delete) them. If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1493,7 +1493,7 @@ def cancel( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. + Pending invoice items are included on a final invoice if you generate one. Otherwise, they remain pending and can be billed on another invoice for the customer. To prevent billing, manually [delete](https://docs.stripe.com/api/invoiceitems/delete) them. If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1518,7 +1518,7 @@ async def _cls_cancel_async( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. + Pending invoice items are included on a final invoice if you generate one. Otherwise, they remain pending and can be billed on another invoice for the customer. To prevent billing, manually [delete](https://docs.stripe.com/api/invoiceitems/delete) them. If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1545,7 +1545,7 @@ async def cancel_async( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. + Pending invoice items are included on a final invoice if you generate one. Otherwise, they remain pending and can be billed on another invoice for the customer. To prevent billing, manually [delete](https://docs.stripe.com/api/invoiceitems/delete) them. If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1558,7 +1558,7 @@ async def cancel_async( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. + Pending invoice items are included on a final invoice if you generate one. Otherwise, they remain pending and can be billed on another invoice for the customer. To prevent billing, manually [delete](https://docs.stripe.com/api/invoiceitems/delete) them. If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -1571,7 +1571,7 @@ async def cancel_async( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. + Pending invoice items are included on a final invoice if you generate one. Otherwise, they remain pending and can be billed on another invoice for the customer. To prevent billing, manually [delete](https://docs.stripe.com/api/invoiceitems/delete) them. If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py index 1f71f2e38..e41a6248c 100644 --- a/stripe/_subscription_service.py +++ b/stripe/_subscription_service.py @@ -58,7 +58,7 @@ def cancel( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. + Pending invoice items are included on a final invoice if you generate one. Otherwise, they remain pending and can be billed on another invoice for the customer. To prevent billing, manually [delete](https://docs.stripe.com/api/invoiceitems/delete) them. If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ @@ -87,7 +87,7 @@ async def cancel_async( """ Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details. - Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. + Pending invoice items are included on a final invoice if you generate one. Otherwise, they remain pending and can be billed on another invoice for the customer. To prevent billing, manually [delete](https://docs.stripe.com/api/invoiceitems/delete) them. If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false. By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. """ diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 3943df130..41967ce27 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -3453,7 +3453,7 @@ class Link(StripeObject): The ID of the Payment Link that created this Session. """ payment_method_collection: Optional[ - Union[Literal["always", "if_required"], str] + Union[Literal["always", "auto", "if_required"], str] ] """ Configure whether a Checkout Session should collect a payment method for sessions with mode `payment`. Defaults to `always`. diff --git a/stripe/events/__init__.py b/stripe/events/__init__.py index 650dc312e..1ad89500b 100644 --- a/stripe/events/__init__.py +++ b/stripe/events/__init__.py @@ -1819,10 +1819,6 @@ V2PaymentsOffSessionPaymentPausedEvent as V2PaymentsOffSessionPaymentPausedEvent, V2PaymentsOffSessionPaymentPausedEventNotification as V2PaymentsOffSessionPaymentPausedEventNotification, ) - from stripe.events._v2_payments_off_session_payment_requires_capture_event import ( - V2PaymentsOffSessionPaymentRequiresCaptureEvent as V2PaymentsOffSessionPaymentRequiresCaptureEvent, - V2PaymentsOffSessionPaymentRequiresCaptureEventNotification as V2PaymentsOffSessionPaymentRequiresCaptureEventNotification, - ) from stripe.events._v2_payments_off_session_payment_resumed_event import ( V2PaymentsOffSessionPaymentResumedEvent as V2PaymentsOffSessionPaymentResumedEvent, V2PaymentsOffSessionPaymentResumedEventNotification as V2PaymentsOffSessionPaymentResumedEventNotification, @@ -5416,14 +5412,6 @@ "stripe.events._v2_payments_off_session_payment_paused_event", False, ), - "V2PaymentsOffSessionPaymentRequiresCaptureEvent": ( - "stripe.events._v2_payments_off_session_payment_requires_capture_event", - False, - ), - "V2PaymentsOffSessionPaymentRequiresCaptureEventNotification": ( - "stripe.events._v2_payments_off_session_payment_requires_capture_event", - False, - ), "V2PaymentsOffSessionPaymentResumedEvent": ( "stripe.events._v2_payments_off_session_payment_resumed_event", False, diff --git a/stripe/events/_event_classes.py b/stripe/events/_event_classes.py index e8573ead9..a8db62d50 100644 --- a/stripe/events/_event_classes.py +++ b/stripe/events/_event_classes.py @@ -1360,9 +1360,6 @@ from stripe.events._v2_payments_off_session_payment_paused_event import ( V2PaymentsOffSessionPaymentPausedEventNotification, ) - from stripe.events._v2_payments_off_session_payment_requires_capture_event import ( - V2PaymentsOffSessionPaymentRequiresCaptureEventNotification, - ) from stripe.events._v2_payments_off_session_payment_resumed_event import ( V2PaymentsOffSessionPaymentResumedEventNotification, ) @@ -3239,10 +3236,6 @@ "stripe.events._v2_payments_off_session_payment_paused_event", "V2PaymentsOffSessionPaymentPausedEvent", ), - "v2.payments.off_session_payment.requires_capture": ( - "stripe.events._v2_payments_off_session_payment_requires_capture_event", - "V2PaymentsOffSessionPaymentRequiresCaptureEvent", - ), "v2.payments.off_session_payment.resumed": ( "stripe.events._v2_payments_off_session_payment_resumed_event", "V2PaymentsOffSessionPaymentResumedEvent", @@ -5154,10 +5147,6 @@ def get_v2_event_class(type_: str): "stripe.events._v2_payments_off_session_payment_paused_event", "V2PaymentsOffSessionPaymentPausedEventNotification", ), - "v2.payments.off_session_payment.requires_capture": ( - "stripe.events._v2_payments_off_session_payment_requires_capture_event", - "V2PaymentsOffSessionPaymentRequiresCaptureEventNotification", - ), "v2.payments.off_session_payment.resumed": ( "stripe.events._v2_payments_off_session_payment_resumed_event", "V2PaymentsOffSessionPaymentResumedEventNotification", @@ -5716,7 +5705,6 @@ def get_v2_event_notification_class(type_: str): "V2PaymentsOffSessionPaymentCreatedEventNotification", "V2PaymentsOffSessionPaymentFailedEventNotification", "V2PaymentsOffSessionPaymentPausedEventNotification", - "V2PaymentsOffSessionPaymentRequiresCaptureEventNotification", "V2PaymentsOffSessionPaymentResumedEventNotification", "V2PaymentsOffSessionPaymentSucceededEventNotification", "V2PaymentsSettlementAllocationIntentCanceledEventNotification", diff --git a/stripe/events/_v2_payments_off_session_payment_requires_capture_event.py b/stripe/events/_v2_payments_off_session_payment_requires_capture_event.py deleted file mode 100644 index 0f57eebce..000000000 --- a/stripe/events/_v2_payments_off_session_payment_requires_capture_event.py +++ /dev/null @@ -1,117 +0,0 @@ -# -*- 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.payments._off_session_payment import OffSessionPayment - - -class V2PaymentsOffSessionPaymentRequiresCaptureEventNotification( - EventNotification, -): - LOOKUP_TYPE = "v2.payments.off_session_payment.requires_capture" - type: Literal["v2.payments.off_session_payment.requires_capture"] - 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) -> "V2PaymentsOffSessionPaymentRequiresCaptureEvent": - return cast( - "V2PaymentsOffSessionPaymentRequiresCaptureEvent", - super().fetch_event(), - ) - - def fetch_related_object(self) -> "OffSessionPayment": - response = self._client.raw_request( - "get", - self.related_object.url, - stripe_context=self.context, - headers={"Stripe-Request-Trigger": f"event={self.id}"}, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - @override - async def fetch_event_async( - self, - ) -> "V2PaymentsOffSessionPaymentRequiresCaptureEvent": - return cast( - "V2PaymentsOffSessionPaymentRequiresCaptureEvent", - await super().fetch_event_async(), - ) - - async def fetch_related_object_async(self) -> "OffSessionPayment": - response = await self._client.raw_request_async( - "get", - self.related_object.url, - stripe_context=self.context, - headers={"Stripe-Request-Trigger": f"event={self.id}"}, - usage=["fetch_related_object"], - ) - return cast( - "OffSessionPayment", - self._client.deserialize( - response, - api_mode=get_api_mode(self.related_object.url), - ), - ) - - -class V2PaymentsOffSessionPaymentRequiresCaptureEvent(Event): - LOOKUP_TYPE = "v2.payments.off_session_payment.requires_capture" - type: Literal["v2.payments.off_session_payment.requires_capture"] - - 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) -> "OffSessionPayment": - """ - Retrieves the related object from the API. Makes an API request on every call. - """ - return cast( - "OffSessionPayment", - self._requestor.request( - "get", - self.related_object.url, - base_address="api", - options={ - "stripe_context": self.context, - "headers": {"Stripe-Request-Trigger": f"event={self.id}"}, - }, - ), - ) diff --git a/stripe/identity/_verification_report.py b/stripe/identity/_verification_report.py index a32bfa693..0cd3de175 100644 --- a/stripe/identity/_verification_report.py +++ b/stripe/identity/_verification_report.py @@ -498,6 +498,58 @@ class Error(StripeObject): _inner_class_types = {"error": Error} class Signals(StripeObject): + class FraudulentDocument(StripeObject): + class Indicator(StripeObject): + explanation: str + """ + A brief explanation of how this indicator contributed to the risk level. + """ + impact: Union[ + Literal[ + "decrease", + "neutral", + "slight_increase", + "strong_increase", + ], + str, + ] + """ + The effect this indicator had on the overall risk level. + """ + indicator: Union[ + Literal[ + "dob_mismatch", + "forged_document", + "name_mismatch", + "other", + "static_document", + ], + str, + ] + """ + The name of the specific indicator used in the risk assessment. + """ + + indicators: List[Indicator] + """ + Array of objects representing individual factors that contributed to the calculated risk level. + """ + risk_level: Union[ + Literal[ + "elevated", + "highest", + "low", + "normal", + "not_assessed", + "unknown", + ], + str, + ] + """ + Categorical assessment of the document risk. + """ + _inner_class_types = {"indicators": Indicator} + class FraudulentEmail(StripeObject): class Indicator(StripeObject): explanation: str @@ -660,10 +712,12 @@ class Indicator(StripeObject): """ _inner_class_types = {"indicators": Indicator} + fraudulent_document: Optional[FraudulentDocument] fraudulent_email: Optional[FraudulentEmail] fraudulent_person: Optional[FraudulentPerson] fraudulent_phone: Optional[FraudulentPhone] _inner_class_types = { + "fraudulent_document": FraudulentDocument, "fraudulent_email": FraudulentEmail, "fraudulent_person": FraudulentPerson, "fraudulent_phone": FraudulentPhone, diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index 5de514f77..37a31db3b 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -212,7 +212,7 @@ AccountCreateParamsSettingsTaxForms as AccountCreateParamsSettingsTaxForms, AccountCreateParamsSettingsTreasury as AccountCreateParamsSettingsTreasury, AccountCreateParamsSettingsTreasuryTosAcceptance as AccountCreateParamsSettingsTreasuryTosAcceptance, - AccountCreateParamsSettingsWechatPayPayments as AccountCreateParamsSettingsWechatPayPayments, + AccountCreateParamsSettingsWechatPayMobileWebPayments as AccountCreateParamsSettingsWechatPayMobileWebPayments, AccountCreateParamsTosAcceptance as AccountCreateParamsTosAcceptance, ) from stripe.params._account_create_person_params import ( @@ -662,7 +662,7 @@ AccountUpdateParamsSettingsTaxForms as AccountUpdateParamsSettingsTaxForms, AccountUpdateParamsSettingsTreasury as AccountUpdateParamsSettingsTreasury, AccountUpdateParamsSettingsTreasuryTosAcceptance as AccountUpdateParamsSettingsTreasuryTosAcceptance, - AccountUpdateParamsSettingsWechatPayPayments as AccountUpdateParamsSettingsWechatPayPayments, + AccountUpdateParamsSettingsWechatPayMobileWebPayments as AccountUpdateParamsSettingsWechatPayMobileWebPayments, AccountUpdateParamsTosAcceptance as AccountUpdateParamsTosAcceptance, ) from stripe.params._apple_pay_domain_create_params import ( @@ -1034,11 +1034,13 @@ ConfirmationTokenCreateParamsPaymentMethodDataBizum as ConfirmationTokenCreateParamsPaymentMethodDataBizum, ConfirmationTokenCreateParamsPaymentMethodDataBlik as ConfirmationTokenCreateParamsPaymentMethodDataBlik, ConfirmationTokenCreateParamsPaymentMethodDataBoleto as ConfirmationTokenCreateParamsPaymentMethodDataBoleto, + ConfirmationTokenCreateParamsPaymentMethodDataCarecredit as ConfirmationTokenCreateParamsPaymentMethodDataCarecredit, ConfirmationTokenCreateParamsPaymentMethodDataCashapp as ConfirmationTokenCreateParamsPaymentMethodDataCashapp, ConfirmationTokenCreateParamsPaymentMethodDataCrypto as ConfirmationTokenCreateParamsPaymentMethodDataCrypto, ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance as ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance, ConfirmationTokenCreateParamsPaymentMethodDataEps as ConfirmationTokenCreateParamsPaymentMethodDataEps, ConfirmationTokenCreateParamsPaymentMethodDataFpx as ConfirmationTokenCreateParamsPaymentMethodDataFpx, + ConfirmationTokenCreateParamsPaymentMethodDataGetflex as ConfirmationTokenCreateParamsPaymentMethodDataGetflex, ConfirmationTokenCreateParamsPaymentMethodDataGiftCard as ConfirmationTokenCreateParamsPaymentMethodDataGiftCard, ConfirmationTokenCreateParamsPaymentMethodDataGiropay as ConfirmationTokenCreateParamsPaymentMethodDataGiropay, ConfirmationTokenCreateParamsPaymentMethodDataGopay as ConfirmationTokenCreateParamsPaymentMethodDataGopay, @@ -1069,6 +1071,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataPromptpay as ConfirmationTokenCreateParamsPaymentMethodDataPromptpay, ConfirmationTokenCreateParamsPaymentMethodDataQris as ConfirmationTokenCreateParamsPaymentMethodDataQris, ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions as ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions, + ConfirmationTokenCreateParamsPaymentMethodDataRakutenPay as ConfirmationTokenCreateParamsPaymentMethodDataRakutenPay, ConfirmationTokenCreateParamsPaymentMethodDataRechnung as ConfirmationTokenCreateParamsPaymentMethodDataRechnung, ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob as ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob, ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay as ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay, @@ -1077,6 +1080,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataScalapay as ConfirmationTokenCreateParamsPaymentMethodDataScalapay, ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit, ConfirmationTokenCreateParamsPaymentMethodDataSequra as ConfirmationTokenCreateParamsPaymentMethodDataSequra, + ConfirmationTokenCreateParamsPaymentMethodDataSezzle as ConfirmationTokenCreateParamsPaymentMethodDataSezzle, ConfirmationTokenCreateParamsPaymentMethodDataShopeepay as ConfirmationTokenCreateParamsPaymentMethodDataShopeepay, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance as ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance, @@ -2587,11 +2591,13 @@ PaymentIntentConfirmParamsPaymentMethodDataBizum as PaymentIntentConfirmParamsPaymentMethodDataBizum, PaymentIntentConfirmParamsPaymentMethodDataBlik as PaymentIntentConfirmParamsPaymentMethodDataBlik, PaymentIntentConfirmParamsPaymentMethodDataBoleto as PaymentIntentConfirmParamsPaymentMethodDataBoleto, + PaymentIntentConfirmParamsPaymentMethodDataCarecredit as PaymentIntentConfirmParamsPaymentMethodDataCarecredit, PaymentIntentConfirmParamsPaymentMethodDataCashapp as PaymentIntentConfirmParamsPaymentMethodDataCashapp, PaymentIntentConfirmParamsPaymentMethodDataCrypto as PaymentIntentConfirmParamsPaymentMethodDataCrypto, PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance as PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance, PaymentIntentConfirmParamsPaymentMethodDataEps as PaymentIntentConfirmParamsPaymentMethodDataEps, PaymentIntentConfirmParamsPaymentMethodDataFpx as PaymentIntentConfirmParamsPaymentMethodDataFpx, + PaymentIntentConfirmParamsPaymentMethodDataGetflex as PaymentIntentConfirmParamsPaymentMethodDataGetflex, PaymentIntentConfirmParamsPaymentMethodDataGiftCard as PaymentIntentConfirmParamsPaymentMethodDataGiftCard, PaymentIntentConfirmParamsPaymentMethodDataGiropay as PaymentIntentConfirmParamsPaymentMethodDataGiropay, PaymentIntentConfirmParamsPaymentMethodDataGopay as PaymentIntentConfirmParamsPaymentMethodDataGopay, @@ -2622,6 +2628,7 @@ PaymentIntentConfirmParamsPaymentMethodDataPromptpay as PaymentIntentConfirmParamsPaymentMethodDataPromptpay, PaymentIntentConfirmParamsPaymentMethodDataQris as PaymentIntentConfirmParamsPaymentMethodDataQris, PaymentIntentConfirmParamsPaymentMethodDataRadarOptions as PaymentIntentConfirmParamsPaymentMethodDataRadarOptions, + PaymentIntentConfirmParamsPaymentMethodDataRakutenPay as PaymentIntentConfirmParamsPaymentMethodDataRakutenPay, PaymentIntentConfirmParamsPaymentMethodDataRechnung as PaymentIntentConfirmParamsPaymentMethodDataRechnung, PaymentIntentConfirmParamsPaymentMethodDataRechnungDob as PaymentIntentConfirmParamsPaymentMethodDataRechnungDob, PaymentIntentConfirmParamsPaymentMethodDataRevolutPay as PaymentIntentConfirmParamsPaymentMethodDataRevolutPay, @@ -2630,6 +2637,7 @@ PaymentIntentConfirmParamsPaymentMethodDataScalapay as PaymentIntentConfirmParamsPaymentMethodDataScalapay, PaymentIntentConfirmParamsPaymentMethodDataSepaDebit as PaymentIntentConfirmParamsPaymentMethodDataSepaDebit, PaymentIntentConfirmParamsPaymentMethodDataSequra as PaymentIntentConfirmParamsPaymentMethodDataSequra, + PaymentIntentConfirmParamsPaymentMethodDataSezzle as PaymentIntentConfirmParamsPaymentMethodDataSezzle, PaymentIntentConfirmParamsPaymentMethodDataShopeepay as PaymentIntentConfirmParamsPaymentMethodDataShopeepay, PaymentIntentConfirmParamsPaymentMethodDataSofort as PaymentIntentConfirmParamsPaymentMethodDataSofort, PaymentIntentConfirmParamsPaymentMethodDataStripeBalance as PaymentIntentConfirmParamsPaymentMethodDataStripeBalance, @@ -2684,6 +2692,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure as PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecure, PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions as PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions, PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires as PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires, + PaymentIntentConfirmParamsPaymentMethodOptionsCarecredit as PaymentIntentConfirmParamsPaymentMethodOptionsCarecredit, PaymentIntentConfirmParamsPaymentMethodOptionsCashapp as PaymentIntentConfirmParamsPaymentMethodOptionsCashapp, PaymentIntentConfirmParamsPaymentMethodOptionsCrypto as PaymentIntentConfirmParamsPaymentMethodOptionsCrypto, PaymentIntentConfirmParamsPaymentMethodOptionsCryptoAmountReconciliation as PaymentIntentConfirmParamsPaymentMethodOptionsCryptoAmountReconciliation, @@ -2694,6 +2703,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as PaymentIntentConfirmParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer, PaymentIntentConfirmParamsPaymentMethodOptionsEps as PaymentIntentConfirmParamsPaymentMethodOptionsEps, PaymentIntentConfirmParamsPaymentMethodOptionsFpx as PaymentIntentConfirmParamsPaymentMethodOptionsFpx, + PaymentIntentConfirmParamsPaymentMethodOptionsGetflex as PaymentIntentConfirmParamsPaymentMethodOptionsGetflex, PaymentIntentConfirmParamsPaymentMethodOptionsGiftCard as PaymentIntentConfirmParamsPaymentMethodOptionsGiftCard, PaymentIntentConfirmParamsPaymentMethodOptionsGiropay as PaymentIntentConfirmParamsPaymentMethodOptionsGiropay, PaymentIntentConfirmParamsPaymentMethodOptionsGopay as PaymentIntentConfirmParamsPaymentMethodOptionsGopay, @@ -2773,6 +2783,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebit, PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsSequra as PaymentIntentConfirmParamsPaymentMethodOptionsSequra, + PaymentIntentConfirmParamsPaymentMethodOptionsSezzle as PaymentIntentConfirmParamsPaymentMethodOptionsSezzle, PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay as PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay, PaymentIntentConfirmParamsPaymentMethodOptionsSofort as PaymentIntentConfirmParamsPaymentMethodOptionsSofort, PaymentIntentConfirmParamsPaymentMethodOptionsStripeBalance as PaymentIntentConfirmParamsPaymentMethodOptionsStripeBalance, @@ -2923,11 +2934,13 @@ PaymentIntentCreateParamsPaymentMethodDataBizum as PaymentIntentCreateParamsPaymentMethodDataBizum, PaymentIntentCreateParamsPaymentMethodDataBlik as PaymentIntentCreateParamsPaymentMethodDataBlik, PaymentIntentCreateParamsPaymentMethodDataBoleto as PaymentIntentCreateParamsPaymentMethodDataBoleto, + PaymentIntentCreateParamsPaymentMethodDataCarecredit as PaymentIntentCreateParamsPaymentMethodDataCarecredit, PaymentIntentCreateParamsPaymentMethodDataCashapp as PaymentIntentCreateParamsPaymentMethodDataCashapp, PaymentIntentCreateParamsPaymentMethodDataCrypto as PaymentIntentCreateParamsPaymentMethodDataCrypto, PaymentIntentCreateParamsPaymentMethodDataCustomerBalance as PaymentIntentCreateParamsPaymentMethodDataCustomerBalance, PaymentIntentCreateParamsPaymentMethodDataEps as PaymentIntentCreateParamsPaymentMethodDataEps, PaymentIntentCreateParamsPaymentMethodDataFpx as PaymentIntentCreateParamsPaymentMethodDataFpx, + PaymentIntentCreateParamsPaymentMethodDataGetflex as PaymentIntentCreateParamsPaymentMethodDataGetflex, PaymentIntentCreateParamsPaymentMethodDataGiftCard as PaymentIntentCreateParamsPaymentMethodDataGiftCard, PaymentIntentCreateParamsPaymentMethodDataGiropay as PaymentIntentCreateParamsPaymentMethodDataGiropay, PaymentIntentCreateParamsPaymentMethodDataGopay as PaymentIntentCreateParamsPaymentMethodDataGopay, @@ -2958,6 +2971,7 @@ PaymentIntentCreateParamsPaymentMethodDataPromptpay as PaymentIntentCreateParamsPaymentMethodDataPromptpay, PaymentIntentCreateParamsPaymentMethodDataQris as PaymentIntentCreateParamsPaymentMethodDataQris, PaymentIntentCreateParamsPaymentMethodDataRadarOptions as PaymentIntentCreateParamsPaymentMethodDataRadarOptions, + PaymentIntentCreateParamsPaymentMethodDataRakutenPay as PaymentIntentCreateParamsPaymentMethodDataRakutenPay, PaymentIntentCreateParamsPaymentMethodDataRechnung as PaymentIntentCreateParamsPaymentMethodDataRechnung, PaymentIntentCreateParamsPaymentMethodDataRechnungDob as PaymentIntentCreateParamsPaymentMethodDataRechnungDob, PaymentIntentCreateParamsPaymentMethodDataRevolutPay as PaymentIntentCreateParamsPaymentMethodDataRevolutPay, @@ -2966,6 +2980,7 @@ PaymentIntentCreateParamsPaymentMethodDataScalapay as PaymentIntentCreateParamsPaymentMethodDataScalapay, PaymentIntentCreateParamsPaymentMethodDataSepaDebit as PaymentIntentCreateParamsPaymentMethodDataSepaDebit, PaymentIntentCreateParamsPaymentMethodDataSequra as PaymentIntentCreateParamsPaymentMethodDataSequra, + PaymentIntentCreateParamsPaymentMethodDataSezzle as PaymentIntentCreateParamsPaymentMethodDataSezzle, PaymentIntentCreateParamsPaymentMethodDataShopeepay as PaymentIntentCreateParamsPaymentMethodDataShopeepay, PaymentIntentCreateParamsPaymentMethodDataSofort as PaymentIntentCreateParamsPaymentMethodDataSofort, PaymentIntentCreateParamsPaymentMethodDataStripeBalance as PaymentIntentCreateParamsPaymentMethodDataStripeBalance, @@ -3020,6 +3035,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure as PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecure, PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions as PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions, PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires as PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires, + PaymentIntentCreateParamsPaymentMethodOptionsCarecredit as PaymentIntentCreateParamsPaymentMethodOptionsCarecredit, PaymentIntentCreateParamsPaymentMethodOptionsCashapp as PaymentIntentCreateParamsPaymentMethodOptionsCashapp, PaymentIntentCreateParamsPaymentMethodOptionsCrypto as PaymentIntentCreateParamsPaymentMethodOptionsCrypto, PaymentIntentCreateParamsPaymentMethodOptionsCryptoAmountReconciliation as PaymentIntentCreateParamsPaymentMethodOptionsCryptoAmountReconciliation, @@ -3030,6 +3046,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as PaymentIntentCreateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer, PaymentIntentCreateParamsPaymentMethodOptionsEps as PaymentIntentCreateParamsPaymentMethodOptionsEps, PaymentIntentCreateParamsPaymentMethodOptionsFpx as PaymentIntentCreateParamsPaymentMethodOptionsFpx, + PaymentIntentCreateParamsPaymentMethodOptionsGetflex as PaymentIntentCreateParamsPaymentMethodOptionsGetflex, PaymentIntentCreateParamsPaymentMethodOptionsGiftCard as PaymentIntentCreateParamsPaymentMethodOptionsGiftCard, PaymentIntentCreateParamsPaymentMethodOptionsGiropay as PaymentIntentCreateParamsPaymentMethodOptionsGiropay, PaymentIntentCreateParamsPaymentMethodOptionsGopay as PaymentIntentCreateParamsPaymentMethodOptionsGopay, @@ -3109,6 +3126,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebit, PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsSequra as PaymentIntentCreateParamsPaymentMethodOptionsSequra, + PaymentIntentCreateParamsPaymentMethodOptionsSezzle as PaymentIntentCreateParamsPaymentMethodOptionsSezzle, PaymentIntentCreateParamsPaymentMethodOptionsShopeepay as PaymentIntentCreateParamsPaymentMethodOptionsShopeepay, PaymentIntentCreateParamsPaymentMethodOptionsSofort as PaymentIntentCreateParamsPaymentMethodOptionsSofort, PaymentIntentCreateParamsPaymentMethodOptionsStripeBalance as PaymentIntentCreateParamsPaymentMethodOptionsStripeBalance, @@ -3313,11 +3331,13 @@ PaymentIntentModifyParamsPaymentMethodDataBizum as PaymentIntentModifyParamsPaymentMethodDataBizum, PaymentIntentModifyParamsPaymentMethodDataBlik as PaymentIntentModifyParamsPaymentMethodDataBlik, PaymentIntentModifyParamsPaymentMethodDataBoleto as PaymentIntentModifyParamsPaymentMethodDataBoleto, + PaymentIntentModifyParamsPaymentMethodDataCarecredit as PaymentIntentModifyParamsPaymentMethodDataCarecredit, PaymentIntentModifyParamsPaymentMethodDataCashapp as PaymentIntentModifyParamsPaymentMethodDataCashapp, PaymentIntentModifyParamsPaymentMethodDataCrypto as PaymentIntentModifyParamsPaymentMethodDataCrypto, PaymentIntentModifyParamsPaymentMethodDataCustomerBalance as PaymentIntentModifyParamsPaymentMethodDataCustomerBalance, PaymentIntentModifyParamsPaymentMethodDataEps as PaymentIntentModifyParamsPaymentMethodDataEps, PaymentIntentModifyParamsPaymentMethodDataFpx as PaymentIntentModifyParamsPaymentMethodDataFpx, + PaymentIntentModifyParamsPaymentMethodDataGetflex as PaymentIntentModifyParamsPaymentMethodDataGetflex, PaymentIntentModifyParamsPaymentMethodDataGiftCard as PaymentIntentModifyParamsPaymentMethodDataGiftCard, PaymentIntentModifyParamsPaymentMethodDataGiropay as PaymentIntentModifyParamsPaymentMethodDataGiropay, PaymentIntentModifyParamsPaymentMethodDataGopay as PaymentIntentModifyParamsPaymentMethodDataGopay, @@ -3348,6 +3368,7 @@ PaymentIntentModifyParamsPaymentMethodDataPromptpay as PaymentIntentModifyParamsPaymentMethodDataPromptpay, PaymentIntentModifyParamsPaymentMethodDataQris as PaymentIntentModifyParamsPaymentMethodDataQris, PaymentIntentModifyParamsPaymentMethodDataRadarOptions as PaymentIntentModifyParamsPaymentMethodDataRadarOptions, + PaymentIntentModifyParamsPaymentMethodDataRakutenPay as PaymentIntentModifyParamsPaymentMethodDataRakutenPay, PaymentIntentModifyParamsPaymentMethodDataRechnung as PaymentIntentModifyParamsPaymentMethodDataRechnung, PaymentIntentModifyParamsPaymentMethodDataRechnungDob as PaymentIntentModifyParamsPaymentMethodDataRechnungDob, PaymentIntentModifyParamsPaymentMethodDataRevolutPay as PaymentIntentModifyParamsPaymentMethodDataRevolutPay, @@ -3356,6 +3377,7 @@ PaymentIntentModifyParamsPaymentMethodDataScalapay as PaymentIntentModifyParamsPaymentMethodDataScalapay, PaymentIntentModifyParamsPaymentMethodDataSepaDebit as PaymentIntentModifyParamsPaymentMethodDataSepaDebit, PaymentIntentModifyParamsPaymentMethodDataSequra as PaymentIntentModifyParamsPaymentMethodDataSequra, + PaymentIntentModifyParamsPaymentMethodDataSezzle as PaymentIntentModifyParamsPaymentMethodDataSezzle, PaymentIntentModifyParamsPaymentMethodDataShopeepay as PaymentIntentModifyParamsPaymentMethodDataShopeepay, PaymentIntentModifyParamsPaymentMethodDataSofort as PaymentIntentModifyParamsPaymentMethodDataSofort, PaymentIntentModifyParamsPaymentMethodDataStripeBalance as PaymentIntentModifyParamsPaymentMethodDataStripeBalance, @@ -3410,6 +3432,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure as PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecure, PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions as PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions, PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires as PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires, + PaymentIntentModifyParamsPaymentMethodOptionsCarecredit as PaymentIntentModifyParamsPaymentMethodOptionsCarecredit, PaymentIntentModifyParamsPaymentMethodOptionsCashapp as PaymentIntentModifyParamsPaymentMethodOptionsCashapp, PaymentIntentModifyParamsPaymentMethodOptionsCrypto as PaymentIntentModifyParamsPaymentMethodOptionsCrypto, PaymentIntentModifyParamsPaymentMethodOptionsCryptoAmountReconciliation as PaymentIntentModifyParamsPaymentMethodOptionsCryptoAmountReconciliation, @@ -3420,6 +3443,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as PaymentIntentModifyParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer, PaymentIntentModifyParamsPaymentMethodOptionsEps as PaymentIntentModifyParamsPaymentMethodOptionsEps, PaymentIntentModifyParamsPaymentMethodOptionsFpx as PaymentIntentModifyParamsPaymentMethodOptionsFpx, + PaymentIntentModifyParamsPaymentMethodOptionsGetflex as PaymentIntentModifyParamsPaymentMethodOptionsGetflex, PaymentIntentModifyParamsPaymentMethodOptionsGiftCard as PaymentIntentModifyParamsPaymentMethodOptionsGiftCard, PaymentIntentModifyParamsPaymentMethodOptionsGiropay as PaymentIntentModifyParamsPaymentMethodOptionsGiropay, PaymentIntentModifyParamsPaymentMethodOptionsGopay as PaymentIntentModifyParamsPaymentMethodOptionsGopay, @@ -3499,6 +3523,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebit, PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsSequra as PaymentIntentModifyParamsPaymentMethodOptionsSequra, + PaymentIntentModifyParamsPaymentMethodOptionsSezzle as PaymentIntentModifyParamsPaymentMethodOptionsSezzle, PaymentIntentModifyParamsPaymentMethodOptionsShopeepay as PaymentIntentModifyParamsPaymentMethodOptionsShopeepay, PaymentIntentModifyParamsPaymentMethodOptionsSofort as PaymentIntentModifyParamsPaymentMethodOptionsSofort, PaymentIntentModifyParamsPaymentMethodOptionsStripeBalance as PaymentIntentModifyParamsPaymentMethodOptionsStripeBalance, @@ -3667,11 +3692,13 @@ PaymentIntentUpdateParamsPaymentMethodDataBizum as PaymentIntentUpdateParamsPaymentMethodDataBizum, PaymentIntentUpdateParamsPaymentMethodDataBlik as PaymentIntentUpdateParamsPaymentMethodDataBlik, PaymentIntentUpdateParamsPaymentMethodDataBoleto as PaymentIntentUpdateParamsPaymentMethodDataBoleto, + PaymentIntentUpdateParamsPaymentMethodDataCarecredit as PaymentIntentUpdateParamsPaymentMethodDataCarecredit, PaymentIntentUpdateParamsPaymentMethodDataCashapp as PaymentIntentUpdateParamsPaymentMethodDataCashapp, PaymentIntentUpdateParamsPaymentMethodDataCrypto as PaymentIntentUpdateParamsPaymentMethodDataCrypto, PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance as PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance, PaymentIntentUpdateParamsPaymentMethodDataEps as PaymentIntentUpdateParamsPaymentMethodDataEps, PaymentIntentUpdateParamsPaymentMethodDataFpx as PaymentIntentUpdateParamsPaymentMethodDataFpx, + PaymentIntentUpdateParamsPaymentMethodDataGetflex as PaymentIntentUpdateParamsPaymentMethodDataGetflex, PaymentIntentUpdateParamsPaymentMethodDataGiftCard as PaymentIntentUpdateParamsPaymentMethodDataGiftCard, PaymentIntentUpdateParamsPaymentMethodDataGiropay as PaymentIntentUpdateParamsPaymentMethodDataGiropay, PaymentIntentUpdateParamsPaymentMethodDataGopay as PaymentIntentUpdateParamsPaymentMethodDataGopay, @@ -3702,6 +3729,7 @@ PaymentIntentUpdateParamsPaymentMethodDataPromptpay as PaymentIntentUpdateParamsPaymentMethodDataPromptpay, PaymentIntentUpdateParamsPaymentMethodDataQris as PaymentIntentUpdateParamsPaymentMethodDataQris, PaymentIntentUpdateParamsPaymentMethodDataRadarOptions as PaymentIntentUpdateParamsPaymentMethodDataRadarOptions, + PaymentIntentUpdateParamsPaymentMethodDataRakutenPay as PaymentIntentUpdateParamsPaymentMethodDataRakutenPay, PaymentIntentUpdateParamsPaymentMethodDataRechnung as PaymentIntentUpdateParamsPaymentMethodDataRechnung, PaymentIntentUpdateParamsPaymentMethodDataRechnungDob as PaymentIntentUpdateParamsPaymentMethodDataRechnungDob, PaymentIntentUpdateParamsPaymentMethodDataRevolutPay as PaymentIntentUpdateParamsPaymentMethodDataRevolutPay, @@ -3710,6 +3738,7 @@ PaymentIntentUpdateParamsPaymentMethodDataScalapay as PaymentIntentUpdateParamsPaymentMethodDataScalapay, PaymentIntentUpdateParamsPaymentMethodDataSepaDebit as PaymentIntentUpdateParamsPaymentMethodDataSepaDebit, PaymentIntentUpdateParamsPaymentMethodDataSequra as PaymentIntentUpdateParamsPaymentMethodDataSequra, + PaymentIntentUpdateParamsPaymentMethodDataSezzle as PaymentIntentUpdateParamsPaymentMethodDataSezzle, PaymentIntentUpdateParamsPaymentMethodDataShopeepay as PaymentIntentUpdateParamsPaymentMethodDataShopeepay, PaymentIntentUpdateParamsPaymentMethodDataSofort as PaymentIntentUpdateParamsPaymentMethodDataSofort, PaymentIntentUpdateParamsPaymentMethodDataStripeBalance as PaymentIntentUpdateParamsPaymentMethodDataStripeBalance, @@ -3764,6 +3793,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure as PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecure, PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions as PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions, PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires as PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires, + PaymentIntentUpdateParamsPaymentMethodOptionsCarecredit as PaymentIntentUpdateParamsPaymentMethodOptionsCarecredit, PaymentIntentUpdateParamsPaymentMethodOptionsCashapp as PaymentIntentUpdateParamsPaymentMethodOptionsCashapp, PaymentIntentUpdateParamsPaymentMethodOptionsCrypto as PaymentIntentUpdateParamsPaymentMethodOptionsCrypto, PaymentIntentUpdateParamsPaymentMethodOptionsCryptoAmountReconciliation as PaymentIntentUpdateParamsPaymentMethodOptionsCryptoAmountReconciliation, @@ -3774,6 +3804,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer as PaymentIntentUpdateParamsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer, PaymentIntentUpdateParamsPaymentMethodOptionsEps as PaymentIntentUpdateParamsPaymentMethodOptionsEps, PaymentIntentUpdateParamsPaymentMethodOptionsFpx as PaymentIntentUpdateParamsPaymentMethodOptionsFpx, + PaymentIntentUpdateParamsPaymentMethodOptionsGetflex as PaymentIntentUpdateParamsPaymentMethodOptionsGetflex, PaymentIntentUpdateParamsPaymentMethodOptionsGiftCard as PaymentIntentUpdateParamsPaymentMethodOptionsGiftCard, PaymentIntentUpdateParamsPaymentMethodOptionsGiropay as PaymentIntentUpdateParamsPaymentMethodOptionsGiropay, PaymentIntentUpdateParamsPaymentMethodOptionsGopay as PaymentIntentUpdateParamsPaymentMethodOptionsGopay, @@ -3853,6 +3884,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebit, PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsSepaDebitMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsSequra as PaymentIntentUpdateParamsPaymentMethodOptionsSequra, + PaymentIntentUpdateParamsPaymentMethodOptionsSezzle as PaymentIntentUpdateParamsPaymentMethodOptionsSezzle, PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay as PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay, PaymentIntentUpdateParamsPaymentMethodOptionsSofort as PaymentIntentUpdateParamsPaymentMethodOptionsSofort, PaymentIntentUpdateParamsPaymentMethodOptionsStripeBalance as PaymentIntentUpdateParamsPaymentMethodOptionsStripeBalance, @@ -4525,12 +4557,14 @@ PaymentMethodCreateParamsBoleto as PaymentMethodCreateParamsBoleto, PaymentMethodCreateParamsCard as PaymentMethodCreateParamsCard, PaymentMethodCreateParamsCardNetworks as PaymentMethodCreateParamsCardNetworks, + PaymentMethodCreateParamsCarecredit as PaymentMethodCreateParamsCarecredit, PaymentMethodCreateParamsCashapp as PaymentMethodCreateParamsCashapp, PaymentMethodCreateParamsCrypto as PaymentMethodCreateParamsCrypto, PaymentMethodCreateParamsCustom as PaymentMethodCreateParamsCustom, PaymentMethodCreateParamsCustomerBalance as PaymentMethodCreateParamsCustomerBalance, PaymentMethodCreateParamsEps as PaymentMethodCreateParamsEps, PaymentMethodCreateParamsFpx as PaymentMethodCreateParamsFpx, + PaymentMethodCreateParamsGetflex as PaymentMethodCreateParamsGetflex, PaymentMethodCreateParamsGiftCard as PaymentMethodCreateParamsGiftCard, PaymentMethodCreateParamsGiropay as PaymentMethodCreateParamsGiropay, PaymentMethodCreateParamsGopay as PaymentMethodCreateParamsGopay, @@ -4561,6 +4595,7 @@ PaymentMethodCreateParamsPromptpay as PaymentMethodCreateParamsPromptpay, PaymentMethodCreateParamsQris as PaymentMethodCreateParamsQris, PaymentMethodCreateParamsRadarOptions as PaymentMethodCreateParamsRadarOptions, + PaymentMethodCreateParamsRakutenPay as PaymentMethodCreateParamsRakutenPay, PaymentMethodCreateParamsRechnung as PaymentMethodCreateParamsRechnung, PaymentMethodCreateParamsRechnungDob as PaymentMethodCreateParamsRechnungDob, PaymentMethodCreateParamsRevolutPay as PaymentMethodCreateParamsRevolutPay, @@ -4569,6 +4604,7 @@ PaymentMethodCreateParamsScalapay as PaymentMethodCreateParamsScalapay, PaymentMethodCreateParamsSepaDebit as PaymentMethodCreateParamsSepaDebit, PaymentMethodCreateParamsSequra as PaymentMethodCreateParamsSequra, + PaymentMethodCreateParamsSezzle as PaymentMethodCreateParamsSezzle, PaymentMethodCreateParamsShopeepay as PaymentMethodCreateParamsShopeepay, PaymentMethodCreateParamsSofort as PaymentMethodCreateParamsSofort, PaymentMethodCreateParamsStripeBalance as PaymentMethodCreateParamsStripeBalance, @@ -5320,11 +5356,13 @@ SetupIntentConfirmParamsPaymentMethodDataBizum as SetupIntentConfirmParamsPaymentMethodDataBizum, SetupIntentConfirmParamsPaymentMethodDataBlik as SetupIntentConfirmParamsPaymentMethodDataBlik, SetupIntentConfirmParamsPaymentMethodDataBoleto as SetupIntentConfirmParamsPaymentMethodDataBoleto, + SetupIntentConfirmParamsPaymentMethodDataCarecredit as SetupIntentConfirmParamsPaymentMethodDataCarecredit, SetupIntentConfirmParamsPaymentMethodDataCashapp as SetupIntentConfirmParamsPaymentMethodDataCashapp, SetupIntentConfirmParamsPaymentMethodDataCrypto as SetupIntentConfirmParamsPaymentMethodDataCrypto, SetupIntentConfirmParamsPaymentMethodDataCustomerBalance as SetupIntentConfirmParamsPaymentMethodDataCustomerBalance, SetupIntentConfirmParamsPaymentMethodDataEps as SetupIntentConfirmParamsPaymentMethodDataEps, SetupIntentConfirmParamsPaymentMethodDataFpx as SetupIntentConfirmParamsPaymentMethodDataFpx, + SetupIntentConfirmParamsPaymentMethodDataGetflex as SetupIntentConfirmParamsPaymentMethodDataGetflex, SetupIntentConfirmParamsPaymentMethodDataGiftCard as SetupIntentConfirmParamsPaymentMethodDataGiftCard, SetupIntentConfirmParamsPaymentMethodDataGiropay as SetupIntentConfirmParamsPaymentMethodDataGiropay, SetupIntentConfirmParamsPaymentMethodDataGopay as SetupIntentConfirmParamsPaymentMethodDataGopay, @@ -5355,6 +5393,7 @@ SetupIntentConfirmParamsPaymentMethodDataPromptpay as SetupIntentConfirmParamsPaymentMethodDataPromptpay, SetupIntentConfirmParamsPaymentMethodDataQris as SetupIntentConfirmParamsPaymentMethodDataQris, SetupIntentConfirmParamsPaymentMethodDataRadarOptions as SetupIntentConfirmParamsPaymentMethodDataRadarOptions, + SetupIntentConfirmParamsPaymentMethodDataRakutenPay as SetupIntentConfirmParamsPaymentMethodDataRakutenPay, SetupIntentConfirmParamsPaymentMethodDataRechnung as SetupIntentConfirmParamsPaymentMethodDataRechnung, SetupIntentConfirmParamsPaymentMethodDataRechnungDob as SetupIntentConfirmParamsPaymentMethodDataRechnungDob, SetupIntentConfirmParamsPaymentMethodDataRevolutPay as SetupIntentConfirmParamsPaymentMethodDataRevolutPay, @@ -5363,6 +5402,7 @@ SetupIntentConfirmParamsPaymentMethodDataScalapay as SetupIntentConfirmParamsPaymentMethodDataScalapay, SetupIntentConfirmParamsPaymentMethodDataSepaDebit as SetupIntentConfirmParamsPaymentMethodDataSepaDebit, SetupIntentConfirmParamsPaymentMethodDataSequra as SetupIntentConfirmParamsPaymentMethodDataSequra, + SetupIntentConfirmParamsPaymentMethodDataSezzle as SetupIntentConfirmParamsPaymentMethodDataSezzle, SetupIntentConfirmParamsPaymentMethodDataShopeepay as SetupIntentConfirmParamsPaymentMethodDataShopeepay, SetupIntentConfirmParamsPaymentMethodDataSofort as SetupIntentConfirmParamsPaymentMethodDataSofort, SetupIntentConfirmParamsPaymentMethodDataStripeBalance as SetupIntentConfirmParamsPaymentMethodDataStripeBalance, @@ -5440,11 +5480,13 @@ SetupIntentCreateParamsPaymentMethodDataBizum as SetupIntentCreateParamsPaymentMethodDataBizum, SetupIntentCreateParamsPaymentMethodDataBlik as SetupIntentCreateParamsPaymentMethodDataBlik, SetupIntentCreateParamsPaymentMethodDataBoleto as SetupIntentCreateParamsPaymentMethodDataBoleto, + SetupIntentCreateParamsPaymentMethodDataCarecredit as SetupIntentCreateParamsPaymentMethodDataCarecredit, SetupIntentCreateParamsPaymentMethodDataCashapp as SetupIntentCreateParamsPaymentMethodDataCashapp, SetupIntentCreateParamsPaymentMethodDataCrypto as SetupIntentCreateParamsPaymentMethodDataCrypto, SetupIntentCreateParamsPaymentMethodDataCustomerBalance as SetupIntentCreateParamsPaymentMethodDataCustomerBalance, SetupIntentCreateParamsPaymentMethodDataEps as SetupIntentCreateParamsPaymentMethodDataEps, SetupIntentCreateParamsPaymentMethodDataFpx as SetupIntentCreateParamsPaymentMethodDataFpx, + SetupIntentCreateParamsPaymentMethodDataGetflex as SetupIntentCreateParamsPaymentMethodDataGetflex, SetupIntentCreateParamsPaymentMethodDataGiftCard as SetupIntentCreateParamsPaymentMethodDataGiftCard, SetupIntentCreateParamsPaymentMethodDataGiropay as SetupIntentCreateParamsPaymentMethodDataGiropay, SetupIntentCreateParamsPaymentMethodDataGopay as SetupIntentCreateParamsPaymentMethodDataGopay, @@ -5475,6 +5517,7 @@ SetupIntentCreateParamsPaymentMethodDataPromptpay as SetupIntentCreateParamsPaymentMethodDataPromptpay, SetupIntentCreateParamsPaymentMethodDataQris as SetupIntentCreateParamsPaymentMethodDataQris, SetupIntentCreateParamsPaymentMethodDataRadarOptions as SetupIntentCreateParamsPaymentMethodDataRadarOptions, + SetupIntentCreateParamsPaymentMethodDataRakutenPay as SetupIntentCreateParamsPaymentMethodDataRakutenPay, SetupIntentCreateParamsPaymentMethodDataRechnung as SetupIntentCreateParamsPaymentMethodDataRechnung, SetupIntentCreateParamsPaymentMethodDataRechnungDob as SetupIntentCreateParamsPaymentMethodDataRechnungDob, SetupIntentCreateParamsPaymentMethodDataRevolutPay as SetupIntentCreateParamsPaymentMethodDataRevolutPay, @@ -5483,6 +5526,7 @@ SetupIntentCreateParamsPaymentMethodDataScalapay as SetupIntentCreateParamsPaymentMethodDataScalapay, SetupIntentCreateParamsPaymentMethodDataSepaDebit as SetupIntentCreateParamsPaymentMethodDataSepaDebit, SetupIntentCreateParamsPaymentMethodDataSequra as SetupIntentCreateParamsPaymentMethodDataSequra, + SetupIntentCreateParamsPaymentMethodDataSezzle as SetupIntentCreateParamsPaymentMethodDataSezzle, SetupIntentCreateParamsPaymentMethodDataShopeepay as SetupIntentCreateParamsPaymentMethodDataShopeepay, SetupIntentCreateParamsPaymentMethodDataSofort as SetupIntentCreateParamsPaymentMethodDataSofort, SetupIntentCreateParamsPaymentMethodDataStripeBalance as SetupIntentCreateParamsPaymentMethodDataStripeBalance, @@ -5560,11 +5604,13 @@ SetupIntentModifyParamsPaymentMethodDataBizum as SetupIntentModifyParamsPaymentMethodDataBizum, SetupIntentModifyParamsPaymentMethodDataBlik as SetupIntentModifyParamsPaymentMethodDataBlik, SetupIntentModifyParamsPaymentMethodDataBoleto as SetupIntentModifyParamsPaymentMethodDataBoleto, + SetupIntentModifyParamsPaymentMethodDataCarecredit as SetupIntentModifyParamsPaymentMethodDataCarecredit, SetupIntentModifyParamsPaymentMethodDataCashapp as SetupIntentModifyParamsPaymentMethodDataCashapp, SetupIntentModifyParamsPaymentMethodDataCrypto as SetupIntentModifyParamsPaymentMethodDataCrypto, SetupIntentModifyParamsPaymentMethodDataCustomerBalance as SetupIntentModifyParamsPaymentMethodDataCustomerBalance, SetupIntentModifyParamsPaymentMethodDataEps as SetupIntentModifyParamsPaymentMethodDataEps, SetupIntentModifyParamsPaymentMethodDataFpx as SetupIntentModifyParamsPaymentMethodDataFpx, + SetupIntentModifyParamsPaymentMethodDataGetflex as SetupIntentModifyParamsPaymentMethodDataGetflex, SetupIntentModifyParamsPaymentMethodDataGiftCard as SetupIntentModifyParamsPaymentMethodDataGiftCard, SetupIntentModifyParamsPaymentMethodDataGiropay as SetupIntentModifyParamsPaymentMethodDataGiropay, SetupIntentModifyParamsPaymentMethodDataGopay as SetupIntentModifyParamsPaymentMethodDataGopay, @@ -5595,6 +5641,7 @@ SetupIntentModifyParamsPaymentMethodDataPromptpay as SetupIntentModifyParamsPaymentMethodDataPromptpay, SetupIntentModifyParamsPaymentMethodDataQris as SetupIntentModifyParamsPaymentMethodDataQris, SetupIntentModifyParamsPaymentMethodDataRadarOptions as SetupIntentModifyParamsPaymentMethodDataRadarOptions, + SetupIntentModifyParamsPaymentMethodDataRakutenPay as SetupIntentModifyParamsPaymentMethodDataRakutenPay, SetupIntentModifyParamsPaymentMethodDataRechnung as SetupIntentModifyParamsPaymentMethodDataRechnung, SetupIntentModifyParamsPaymentMethodDataRechnungDob as SetupIntentModifyParamsPaymentMethodDataRechnungDob, SetupIntentModifyParamsPaymentMethodDataRevolutPay as SetupIntentModifyParamsPaymentMethodDataRevolutPay, @@ -5603,6 +5650,7 @@ SetupIntentModifyParamsPaymentMethodDataScalapay as SetupIntentModifyParamsPaymentMethodDataScalapay, SetupIntentModifyParamsPaymentMethodDataSepaDebit as SetupIntentModifyParamsPaymentMethodDataSepaDebit, SetupIntentModifyParamsPaymentMethodDataSequra as SetupIntentModifyParamsPaymentMethodDataSequra, + SetupIntentModifyParamsPaymentMethodDataSezzle as SetupIntentModifyParamsPaymentMethodDataSezzle, SetupIntentModifyParamsPaymentMethodDataShopeepay as SetupIntentModifyParamsPaymentMethodDataShopeepay, SetupIntentModifyParamsPaymentMethodDataSofort as SetupIntentModifyParamsPaymentMethodDataSofort, SetupIntentModifyParamsPaymentMethodDataStripeBalance as SetupIntentModifyParamsPaymentMethodDataStripeBalance, @@ -5678,11 +5726,13 @@ SetupIntentUpdateParamsPaymentMethodDataBizum as SetupIntentUpdateParamsPaymentMethodDataBizum, SetupIntentUpdateParamsPaymentMethodDataBlik as SetupIntentUpdateParamsPaymentMethodDataBlik, SetupIntentUpdateParamsPaymentMethodDataBoleto as SetupIntentUpdateParamsPaymentMethodDataBoleto, + SetupIntentUpdateParamsPaymentMethodDataCarecredit as SetupIntentUpdateParamsPaymentMethodDataCarecredit, SetupIntentUpdateParamsPaymentMethodDataCashapp as SetupIntentUpdateParamsPaymentMethodDataCashapp, SetupIntentUpdateParamsPaymentMethodDataCrypto as SetupIntentUpdateParamsPaymentMethodDataCrypto, SetupIntentUpdateParamsPaymentMethodDataCustomerBalance as SetupIntentUpdateParamsPaymentMethodDataCustomerBalance, SetupIntentUpdateParamsPaymentMethodDataEps as SetupIntentUpdateParamsPaymentMethodDataEps, SetupIntentUpdateParamsPaymentMethodDataFpx as SetupIntentUpdateParamsPaymentMethodDataFpx, + SetupIntentUpdateParamsPaymentMethodDataGetflex as SetupIntentUpdateParamsPaymentMethodDataGetflex, SetupIntentUpdateParamsPaymentMethodDataGiftCard as SetupIntentUpdateParamsPaymentMethodDataGiftCard, SetupIntentUpdateParamsPaymentMethodDataGiropay as SetupIntentUpdateParamsPaymentMethodDataGiropay, SetupIntentUpdateParamsPaymentMethodDataGopay as SetupIntentUpdateParamsPaymentMethodDataGopay, @@ -5713,6 +5763,7 @@ SetupIntentUpdateParamsPaymentMethodDataPromptpay as SetupIntentUpdateParamsPaymentMethodDataPromptpay, SetupIntentUpdateParamsPaymentMethodDataQris as SetupIntentUpdateParamsPaymentMethodDataQris, SetupIntentUpdateParamsPaymentMethodDataRadarOptions as SetupIntentUpdateParamsPaymentMethodDataRadarOptions, + SetupIntentUpdateParamsPaymentMethodDataRakutenPay as SetupIntentUpdateParamsPaymentMethodDataRakutenPay, SetupIntentUpdateParamsPaymentMethodDataRechnung as SetupIntentUpdateParamsPaymentMethodDataRechnung, SetupIntentUpdateParamsPaymentMethodDataRechnungDob as SetupIntentUpdateParamsPaymentMethodDataRechnungDob, SetupIntentUpdateParamsPaymentMethodDataRevolutPay as SetupIntentUpdateParamsPaymentMethodDataRevolutPay, @@ -5721,6 +5772,7 @@ SetupIntentUpdateParamsPaymentMethodDataScalapay as SetupIntentUpdateParamsPaymentMethodDataScalapay, SetupIntentUpdateParamsPaymentMethodDataSepaDebit as SetupIntentUpdateParamsPaymentMethodDataSepaDebit, SetupIntentUpdateParamsPaymentMethodDataSequra as SetupIntentUpdateParamsPaymentMethodDataSequra, + SetupIntentUpdateParamsPaymentMethodDataSezzle as SetupIntentUpdateParamsPaymentMethodDataSezzle, SetupIntentUpdateParamsPaymentMethodDataShopeepay as SetupIntentUpdateParamsPaymentMethodDataShopeepay, SetupIntentUpdateParamsPaymentMethodDataSofort as SetupIntentUpdateParamsPaymentMethodDataSofort, SetupIntentUpdateParamsPaymentMethodDataStripeBalance as SetupIntentUpdateParamsPaymentMethodDataStripeBalance, @@ -7325,7 +7377,7 @@ "stripe.params._account_create_params", False, ), - "AccountCreateParamsSettingsWechatPayPayments": ( + "AccountCreateParamsSettingsWechatPayMobileWebPayments": ( "stripe.params._account_create_params", False, ), @@ -8786,7 +8838,7 @@ "stripe.params._account_update_params", False, ), - "AccountUpdateParamsSettingsWechatPayPayments": ( + "AccountUpdateParamsSettingsWechatPayMobileWebPayments": ( "stripe.params._account_update_params", False, ), @@ -9972,6 +10024,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataCarecredit": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataCashapp": ( "stripe.params._confirmation_token_create_params", False, @@ -9992,6 +10048,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataGetflex": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataGiftCard": ( "stripe.params._confirmation_token_create_params", False, @@ -10112,6 +10172,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataRakutenPay": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataRechnung": ( "stripe.params._confirmation_token_create_params", False, @@ -10144,6 +10208,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataSezzle": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataShopeepay": ( "stripe.params._confirmation_token_create_params", False, @@ -14580,6 +14648,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataCarecredit": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataCashapp": ( "stripe.params._payment_intent_confirm_params", False, @@ -14600,6 +14672,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataGetflex": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataGiftCard": ( "stripe.params._payment_intent_confirm_params", False, @@ -14720,6 +14796,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataRakutenPay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataRechnung": ( "stripe.params._payment_intent_confirm_params", False, @@ -14752,6 +14832,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataSezzle": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataShopeepay": ( "stripe.params._payment_intent_confirm_params", False, @@ -14968,6 +15052,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsCarecredit": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsCashapp": ( "stripe.params._payment_intent_confirm_params", False, @@ -15008,6 +15096,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsGetflex": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsGiftCard": ( "stripe.params._payment_intent_confirm_params", False, @@ -15324,6 +15416,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsSezzle": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay": ( "stripe.params._payment_intent_confirm_params", False, @@ -15916,6 +16012,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataCarecredit": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataCashapp": ( "stripe.params._payment_intent_create_params", False, @@ -15936,6 +16036,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataGetflex": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataGiftCard": ( "stripe.params._payment_intent_create_params", False, @@ -16056,6 +16160,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataRakutenPay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataRechnung": ( "stripe.params._payment_intent_create_params", False, @@ -16088,6 +16196,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataSezzle": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataShopeepay": ( "stripe.params._payment_intent_create_params", False, @@ -16304,6 +16416,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsCarecredit": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsCashapp": ( "stripe.params._payment_intent_create_params", False, @@ -16344,6 +16460,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsGetflex": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsGiftCard": ( "stripe.params._payment_intent_create_params", False, @@ -16660,6 +16780,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsSezzle": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsShopeepay": ( "stripe.params._payment_intent_create_params", False, @@ -17436,6 +17560,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataCarecredit": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataCashapp": ( "stripe.params._payment_intent_modify_params", False, @@ -17456,6 +17584,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataGetflex": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataGiftCard": ( "stripe.params._payment_intent_modify_params", False, @@ -17576,6 +17708,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataRakutenPay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataRechnung": ( "stripe.params._payment_intent_modify_params", False, @@ -17608,6 +17744,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataSezzle": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataShopeepay": ( "stripe.params._payment_intent_modify_params", False, @@ -17824,6 +17964,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsCarecredit": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsCashapp": ( "stripe.params._payment_intent_modify_params", False, @@ -17864,6 +18008,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsGetflex": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsGiftCard": ( "stripe.params._payment_intent_modify_params", False, @@ -18180,6 +18328,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsSezzle": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsShopeepay": ( "stripe.params._payment_intent_modify_params", False, @@ -18796,6 +18948,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataCarecredit": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataCashapp": ( "stripe.params._payment_intent_update_params", False, @@ -18816,6 +18972,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataGetflex": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataGiftCard": ( "stripe.params._payment_intent_update_params", False, @@ -18936,6 +19096,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataRakutenPay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataRechnung": ( "stripe.params._payment_intent_update_params", False, @@ -18968,6 +19132,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataSezzle": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataShopeepay": ( "stripe.params._payment_intent_update_params", False, @@ -19184,6 +19352,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsCarecredit": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsCashapp": ( "stripe.params._payment_intent_update_params", False, @@ -19224,6 +19396,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsGetflex": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsGiftCard": ( "stripe.params._payment_intent_update_params", False, @@ -19540,6 +19716,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsSezzle": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay": ( "stripe.params._payment_intent_update_params", False, @@ -22020,6 +22200,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsCarecredit": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsCashapp": ( "stripe.params._payment_method_create_params", False, @@ -22044,6 +22228,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsGetflex": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsGiftCard": ( "stripe.params._payment_method_create_params", False, @@ -22164,6 +22352,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsRakutenPay": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsRechnung": ( "stripe.params._payment_method_create_params", False, @@ -22196,6 +22388,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsSezzle": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsShopeepay": ( "stripe.params._payment_method_create_params", False, @@ -24180,6 +24376,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataCarecredit": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataCashapp": ( "stripe.params._setup_intent_confirm_params", False, @@ -24200,6 +24400,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataGetflex": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataGiftCard": ( "stripe.params._setup_intent_confirm_params", False, @@ -24320,6 +24524,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataRakutenPay": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataRechnung": ( "stripe.params._setup_intent_confirm_params", False, @@ -24352,6 +24560,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataSezzle": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataShopeepay": ( "stripe.params._setup_intent_confirm_params", False, @@ -24652,6 +24864,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataCarecredit": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataCashapp": ( "stripe.params._setup_intent_create_params", False, @@ -24672,6 +24888,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataGetflex": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataGiftCard": ( "stripe.params._setup_intent_create_params", False, @@ -24792,6 +25012,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataRakutenPay": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataRechnung": ( "stripe.params._setup_intent_create_params", False, @@ -24824,6 +25048,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataSezzle": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataShopeepay": ( "stripe.params._setup_intent_create_params", False, @@ -25116,6 +25344,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataCarecredit": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataCashapp": ( "stripe.params._setup_intent_modify_params", False, @@ -25136,6 +25368,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataGetflex": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataGiftCard": ( "stripe.params._setup_intent_modify_params", False, @@ -25256,6 +25492,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataRakutenPay": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataRechnung": ( "stripe.params._setup_intent_modify_params", False, @@ -25288,6 +25528,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataSezzle": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataShopeepay": ( "stripe.params._setup_intent_modify_params", False, @@ -25572,6 +25816,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataCarecredit": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataCashapp": ( "stripe.params._setup_intent_update_params", False, @@ -25592,6 +25840,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataGetflex": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataGiftCard": ( "stripe.params._setup_intent_update_params", False, @@ -25712,6 +25964,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataRakutenPay": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataRechnung": ( "stripe.params._setup_intent_update_params", False, @@ -25744,6 +26000,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataSezzle": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataShopeepay": ( "stripe.params._setup_intent_update_params", False, diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py index cd897b80d..05188a207 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -2299,11 +2299,11 @@ class AccountCreateParamsSettings(TypedDict): """ Settings specific to the account's Treasury FinancialAccounts. """ - wechat_pay_payments: NotRequired[ - "AccountCreateParamsSettingsWechatPayPayments" + wechat_pay_mobile_web_payments: NotRequired[ + "AccountCreateParamsSettingsWechatPayMobileWebPayments" ] """ - Settings specific to the WeChat Pay payments method. + Settings specific to WeChat Pay payments made through a mobile web browser. """ @@ -2610,10 +2610,10 @@ class AccountCreateParamsSettingsTreasuryTosAcceptance(TypedDict): """ -class AccountCreateParamsSettingsWechatPayPayments(TypedDict): - mobile_web_domains: NotRequired["Literal['']|List[str]"] +class AccountCreateParamsSettingsWechatPayMobileWebPayments(TypedDict): + domains: NotRequired["Literal['']|List[str]"] """ - The domains of the user's mobile web checkout pages for WeChat Pay payments. At most 4 domains are allowed. + The domains of the user's mobile web checkout pages for WeChat Pay payments. """ diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py index 2e8ae090e..012c7719e 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -2237,11 +2237,11 @@ class AccountUpdateParamsSettings(TypedDict): """ Settings specific to the account's Treasury FinancialAccounts. """ - wechat_pay_payments: NotRequired[ - "AccountUpdateParamsSettingsWechatPayPayments" + wechat_pay_mobile_web_payments: NotRequired[ + "AccountUpdateParamsSettingsWechatPayMobileWebPayments" ] """ - Settings specific to the WeChat Pay payments method. + Settings specific to WeChat Pay payments made through a mobile web browser. """ @@ -2556,10 +2556,10 @@ class AccountUpdateParamsSettingsTreasuryTosAcceptance(TypedDict): """ -class AccountUpdateParamsSettingsWechatPayPayments(TypedDict): - mobile_web_domains: NotRequired["Literal['']|List[str]"] +class AccountUpdateParamsSettingsWechatPayMobileWebPayments(TypedDict): + domains: NotRequired["Literal['']|List[str]"] """ - The domains of the user's mobile web checkout pages for WeChat Pay payments. At most 4 domains are allowed. + The domains of the user's mobile web checkout pages for WeChat Pay payments. """ diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index a5ee34a22..a6bf35c95 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -120,6 +120,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ + carecredit: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method. + """ cashapp: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataCashapp" ] @@ -144,6 +150,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ + getflex: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataGetflex" + ] + """ + If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method. + """ gift_card: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataGiftCard" ] @@ -294,6 +306,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ + rakuten_pay: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataRakutenPay" + ] + """ + If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method. + """ rechnung: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataRechnung" ] @@ -334,6 +352,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. """ + sezzle: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSezzle"] + """ + If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method. + """ shared_payment_granted_token: NotRequired[str] """ ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. @@ -385,11 +407,13 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "bizum", "blik", "boleto", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -417,6 +441,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -424,6 +449,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -604,6 +630,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataBoleto(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataCarecredit(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataCashapp(TypedDict): pass @@ -665,6 +695,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataFpx(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataGetflex(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataGiftCard(TypedDict): gift_card: str """ @@ -852,6 +886,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataRakutenPay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataRechnung(TypedDict): dob: "ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob" """ @@ -901,6 +939,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSequra(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataSezzle(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataShopeepay(TypedDict): pass diff --git a/stripe/params/_customer_list_payment_methods_params.py b/stripe/params/_customer_list_payment_methods_params.py index c9c017593..36fc5af26 100644 --- a/stripe/params/_customer_list_payment_methods_params.py +++ b/stripe/params/_customer_list_payment_methods_params.py @@ -29,7 +29,7 @@ class CustomerListPaymentMethodsParams(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. """ type: NotRequired[ - "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'gift_card', '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', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" + "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', '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', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" ] """ An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request. diff --git a/stripe/params/_customer_payment_method_list_params.py b/stripe/params/_customer_payment_method_list_params.py index f8140a3e0..3b5432f46 100644 --- a/stripe/params/_customer_payment_method_list_params.py +++ b/stripe/params/_customer_payment_method_list_params.py @@ -28,7 +28,7 @@ class CustomerPaymentMethodListParams(TypedDict): 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['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'gift_card', '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', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" + "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', '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', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" ] """ An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request. diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index 8c6e7dd57..f0fa3cac8 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -32,6 +32,7 @@ class PaymentIntentConfirmParams(RequestOptions): "capchase_pay", "card", "card_present", + "carecredit", "cashapp", "check_scan", "click_to_pay", @@ -46,6 +47,7 @@ class PaymentIntentConfirmParams(RequestOptions): "fpx", "gcash", "getbalance", + "getflex", "gift_card", "giropay", "gopay", @@ -88,6 +90,7 @@ class PaymentIntentConfirmParams(RequestOptions): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -95,6 +98,7 @@ class PaymentIntentConfirmParams(RequestOptions): "scalapay", "sepa_debit", "sequra", + "sezzle", "shop_pay", "shopeepay", "sofort", @@ -153,7 +157,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[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', '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', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', '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', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this payment. @@ -2999,6 +3003,12 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ + carecredit: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method. + """ cashapp: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataCashapp"] """ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. @@ -3021,6 +3031,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ + getflex: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataGetflex"] + """ + If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method. + """ gift_card: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodDataGiftCard" ] @@ -3163,6 +3177,12 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ + rakuten_pay: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodDataRakutenPay" + ] + """ + If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method. + """ rechnung: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodDataRechnung" ] @@ -3203,6 +3223,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. """ + sezzle: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataSezzle"] + """ + If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method. + """ shared_payment_granted_token: NotRequired[str] """ ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. @@ -3254,11 +3278,13 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "bizum", "blik", "boleto", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -3286,6 +3312,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -3293,6 +3320,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -3471,6 +3499,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataBoleto(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodDataCarecredit(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataCashapp(TypedDict): pass @@ -3532,6 +3564,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataFpx(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodDataGetflex(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataGiftCard(TypedDict): gift_card: str """ @@ -3719,6 +3755,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataRadarOptions(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodDataRakutenPay(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataRechnung(TypedDict): dob: "PaymentIntentConfirmParamsPaymentMethodDataRechnungDob" """ @@ -3768,6 +3808,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataSequra(TypedDict): pass +class PaymentIntentConfirmParamsPaymentMethodDataSezzle(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataShopeepay(TypedDict): pass @@ -3956,6 +4000,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. """ + carecredit: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this sub-hash contains details about the CareCredit payment method options. + """ cashapp: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsCashapp" ] @@ -3986,6 +4036,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. """ + getflex: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGetflex" + ] + """ + If this is a `getflex` PaymentMethod, this sub-hash contains details about the GetFlex payment method options. + """ gift_card: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsGiftCard" ] @@ -4196,6 +4252,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptions(TypedDict): """ If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options. """ + sezzle: NotRequired[ + "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsSezzle" + ] + """ + If this is a `sezzle` PaymentMethod, this sub-hash contains details about the Sezzle payment method options. + """ shopeepay: NotRequired[ "Literal['']|PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay" ] @@ -5261,6 +5323,29 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresentRouting( """ +class PaymentIntentConfirmParamsPaymentMethodOptionsCarecredit(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']|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). + """ + + class PaymentIntentConfirmParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ @@ -5473,6 +5558,29 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsFpx(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsGetflex(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']|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). + """ + + class PaymentIntentConfirmParamsPaymentMethodOptionsGiftCard(TypedDict): ignore_application_fee: NotRequired[Literal["yes"]] """ @@ -7423,6 +7531,27 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsSequra(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodOptionsSezzle(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["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 PaymentIntentConfirmParamsPaymentMethodOptionsShopeepay(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index 485cbc3f2..8f09d2426 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -32,6 +32,7 @@ class PaymentIntentCreateParams(RequestOptions): "capchase_pay", "card", "card_present", + "carecredit", "cashapp", "check_scan", "click_to_pay", @@ -46,6 +47,7 @@ class PaymentIntentCreateParams(RequestOptions): "fpx", "gcash", "getbalance", + "getflex", "gift_card", "giropay", "gopay", @@ -88,6 +90,7 @@ class PaymentIntentCreateParams(RequestOptions): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -95,6 +98,7 @@ class PaymentIntentCreateParams(RequestOptions): "scalapay", "sepa_debit", "sequra", + "sezzle", "shop_pay", "shopeepay", "sofort", @@ -206,11 +210,13 @@ class PaymentIntentCreateParams(RequestOptions): "blik", "boleto", "card", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -237,6 +243,7 @@ class PaymentIntentCreateParams(RequestOptions): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -244,6 +251,7 @@ class PaymentIntentCreateParams(RequestOptions): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -3141,6 +3149,12 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ + carecredit: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method. + """ cashapp: NotRequired["PaymentIntentCreateParamsPaymentMethodDataCashapp"] """ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. @@ -3163,6 +3177,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ + getflex: NotRequired["PaymentIntentCreateParamsPaymentMethodDataGetflex"] + """ + If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method. + """ gift_card: NotRequired[ "PaymentIntentCreateParamsPaymentMethodDataGiftCard" ] @@ -3305,6 +3323,12 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ + rakuten_pay: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodDataRakutenPay" + ] + """ + If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method. + """ rechnung: NotRequired["PaymentIntentCreateParamsPaymentMethodDataRechnung"] """ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. @@ -3339,6 +3363,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. """ + sezzle: NotRequired["PaymentIntentCreateParamsPaymentMethodDataSezzle"] + """ + If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method. + """ shared_payment_granted_token: NotRequired[str] """ ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. @@ -3390,11 +3418,13 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "bizum", "blik", "boleto", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -3422,6 +3452,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -3429,6 +3460,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -3607,6 +3639,10 @@ class PaymentIntentCreateParamsPaymentMethodDataBoleto(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodDataCarecredit(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataCashapp(TypedDict): pass @@ -3668,6 +3704,10 @@ class PaymentIntentCreateParamsPaymentMethodDataFpx(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodDataGetflex(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataGiftCard(TypedDict): gift_card: str """ @@ -3855,6 +3895,10 @@ class PaymentIntentCreateParamsPaymentMethodDataRadarOptions(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodDataRakutenPay(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataRechnung(TypedDict): dob: "PaymentIntentCreateParamsPaymentMethodDataRechnungDob" """ @@ -3904,6 +3948,10 @@ class PaymentIntentCreateParamsPaymentMethodDataSequra(TypedDict): pass +class PaymentIntentCreateParamsPaymentMethodDataSezzle(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataShopeepay(TypedDict): pass @@ -4092,6 +4140,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. """ + carecredit: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this sub-hash contains details about the CareCredit payment method options. + """ cashapp: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsCashapp" ] @@ -4122,6 +4176,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. """ + getflex: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGetflex" + ] + """ + If this is a `getflex` PaymentMethod, this sub-hash contains details about the GetFlex payment method options. + """ gift_card: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsGiftCard" ] @@ -4332,6 +4392,12 @@ class PaymentIntentCreateParamsPaymentMethodOptions(TypedDict): """ If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options. """ + sezzle: NotRequired[ + "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsSezzle" + ] + """ + If this is a `sezzle` PaymentMethod, this sub-hash contains details about the Sezzle payment method options. + """ shopeepay: NotRequired[ "Literal['']|PaymentIntentCreateParamsPaymentMethodOptionsShopeepay" ] @@ -5387,6 +5453,29 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCardPresentRouting( """ +class PaymentIntentCreateParamsPaymentMethodOptionsCarecredit(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']|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). + """ + + class PaymentIntentCreateParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ @@ -5599,6 +5688,29 @@ class PaymentIntentCreateParamsPaymentMethodOptionsFpx(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsGetflex(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']|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). + """ + + class PaymentIntentCreateParamsPaymentMethodOptionsGiftCard(TypedDict): ignore_application_fee: NotRequired[Literal["yes"]] """ @@ -7549,6 +7661,27 @@ class PaymentIntentCreateParamsPaymentMethodOptionsSequra(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodOptionsSezzle(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["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 PaymentIntentCreateParamsPaymentMethodOptionsShopeepay(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index 0f32d23f6..871cb86be 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -32,6 +32,7 @@ class PaymentIntentModifyParams(RequestOptions): "capchase_pay", "card", "card_present", + "carecredit", "cashapp", "check_scan", "click_to_pay", @@ -46,6 +47,7 @@ class PaymentIntentModifyParams(RequestOptions): "fpx", "gcash", "getbalance", + "getflex", "gift_card", "giropay", "gopay", @@ -88,6 +90,7 @@ class PaymentIntentModifyParams(RequestOptions): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -95,6 +98,7 @@ class PaymentIntentModifyParams(RequestOptions): "scalapay", "sepa_debit", "sequra", + "sezzle", "shop_pay", "shopeepay", "sofort", @@ -167,7 +171,7 @@ class PaymentIntentModifyParams(RequestOptions): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', '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', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', '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', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this payment. @@ -2984,6 +2988,12 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ + carecredit: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method. + """ cashapp: NotRequired["PaymentIntentModifyParamsPaymentMethodDataCashapp"] """ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. @@ -3006,6 +3016,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ + getflex: NotRequired["PaymentIntentModifyParamsPaymentMethodDataGetflex"] + """ + If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method. + """ gift_card: NotRequired[ "PaymentIntentModifyParamsPaymentMethodDataGiftCard" ] @@ -3148,6 +3162,12 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ + rakuten_pay: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodDataRakutenPay" + ] + """ + If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method. + """ rechnung: NotRequired["PaymentIntentModifyParamsPaymentMethodDataRechnung"] """ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. @@ -3182,6 +3202,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. """ + sezzle: NotRequired["PaymentIntentModifyParamsPaymentMethodDataSezzle"] + """ + If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method. + """ shared_payment_granted_token: NotRequired[str] """ ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. @@ -3233,11 +3257,13 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "bizum", "blik", "boleto", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -3265,6 +3291,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -3272,6 +3299,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -3450,6 +3478,10 @@ class PaymentIntentModifyParamsPaymentMethodDataBoleto(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodDataCarecredit(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataCashapp(TypedDict): pass @@ -3511,6 +3543,10 @@ class PaymentIntentModifyParamsPaymentMethodDataFpx(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodDataGetflex(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataGiftCard(TypedDict): gift_card: str """ @@ -3698,6 +3734,10 @@ class PaymentIntentModifyParamsPaymentMethodDataRadarOptions(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodDataRakutenPay(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataRechnung(TypedDict): dob: "PaymentIntentModifyParamsPaymentMethodDataRechnungDob" """ @@ -3747,6 +3787,10 @@ class PaymentIntentModifyParamsPaymentMethodDataSequra(TypedDict): pass +class PaymentIntentModifyParamsPaymentMethodDataSezzle(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataShopeepay(TypedDict): pass @@ -3935,6 +3979,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. """ + carecredit: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this sub-hash contains details about the CareCredit payment method options. + """ cashapp: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsCashapp" ] @@ -3965,6 +4015,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. """ + getflex: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGetflex" + ] + """ + If this is a `getflex` PaymentMethod, this sub-hash contains details about the GetFlex payment method options. + """ gift_card: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsGiftCard" ] @@ -4175,6 +4231,12 @@ class PaymentIntentModifyParamsPaymentMethodOptions(TypedDict): """ If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options. """ + sezzle: NotRequired[ + "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsSezzle" + ] + """ + If this is a `sezzle` PaymentMethod, this sub-hash contains details about the Sezzle payment method options. + """ shopeepay: NotRequired[ "Literal['']|PaymentIntentModifyParamsPaymentMethodOptionsShopeepay" ] @@ -5230,6 +5292,29 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCardPresentRouting( """ +class PaymentIntentModifyParamsPaymentMethodOptionsCarecredit(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']|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). + """ + + class PaymentIntentModifyParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ @@ -5442,6 +5527,29 @@ class PaymentIntentModifyParamsPaymentMethodOptionsFpx(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsGetflex(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']|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). + """ + + class PaymentIntentModifyParamsPaymentMethodOptionsGiftCard(TypedDict): ignore_application_fee: NotRequired[Literal["yes"]] """ @@ -7392,6 +7500,27 @@ class PaymentIntentModifyParamsPaymentMethodOptionsSequra(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodOptionsSezzle(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["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 PaymentIntentModifyParamsPaymentMethodOptionsShopeepay(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index e7274d648..c8f356bae 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -31,6 +31,7 @@ class PaymentIntentUpdateParams(TypedDict): "capchase_pay", "card", "card_present", + "carecredit", "cashapp", "check_scan", "click_to_pay", @@ -45,6 +46,7 @@ class PaymentIntentUpdateParams(TypedDict): "fpx", "gcash", "getbalance", + "getflex", "gift_card", "giropay", "gopay", @@ -87,6 +89,7 @@ class PaymentIntentUpdateParams(TypedDict): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -94,6 +97,7 @@ class PaymentIntentUpdateParams(TypedDict): "scalapay", "sepa_debit", "sequra", + "sezzle", "shop_pay", "shopeepay", "sofort", @@ -166,7 +170,7 @@ class PaymentIntentUpdateParams(TypedDict): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', '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', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', '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', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this payment. @@ -2983,6 +2987,12 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ + carecredit: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method. + """ cashapp: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataCashapp"] """ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. @@ -3005,6 +3015,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ + getflex: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataGetflex"] + """ + If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method. + """ gift_card: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodDataGiftCard" ] @@ -3147,6 +3161,12 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ + rakuten_pay: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodDataRakutenPay" + ] + """ + If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method. + """ rechnung: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataRechnung"] """ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. @@ -3181,6 +3201,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. """ + sezzle: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataSezzle"] + """ + If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method. + """ shared_payment_granted_token: NotRequired[str] """ ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. @@ -3232,11 +3256,13 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "bizum", "blik", "boleto", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -3264,6 +3290,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -3271,6 +3298,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -3449,6 +3477,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataBoleto(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodDataCarecredit(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataCashapp(TypedDict): pass @@ -3510,6 +3542,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataFpx(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodDataGetflex(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataGiftCard(TypedDict): gift_card: str """ @@ -3697,6 +3733,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataRadarOptions(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodDataRakutenPay(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataRechnung(TypedDict): dob: "PaymentIntentUpdateParamsPaymentMethodDataRechnungDob" """ @@ -3746,6 +3786,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataSequra(TypedDict): pass +class PaymentIntentUpdateParamsPaymentMethodDataSezzle(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataShopeepay(TypedDict): pass @@ -3934,6 +3978,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options. """ + carecredit: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this sub-hash contains details about the CareCredit payment method options. + """ cashapp: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsCashapp" ] @@ -3964,6 +4014,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options. """ + getflex: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGetflex" + ] + """ + If this is a `getflex` PaymentMethod, this sub-hash contains details about the GetFlex payment method options. + """ gift_card: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsGiftCard" ] @@ -4174,6 +4230,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptions(TypedDict): """ If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options. """ + sezzle: NotRequired[ + "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsSezzle" + ] + """ + If this is a `sezzle` PaymentMethod, this sub-hash contains details about the Sezzle payment method options. + """ shopeepay: NotRequired[ "Literal['']|PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay" ] @@ -5229,6 +5291,29 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresentRouting( """ +class PaymentIntentUpdateParamsPaymentMethodOptionsCarecredit(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']|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). + """ + + class PaymentIntentUpdateParamsPaymentMethodOptionsCashapp(TypedDict): capture_method: NotRequired["Literal['']|Literal['manual']"] """ @@ -5441,6 +5526,29 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsFpx(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsGetflex(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']|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). + """ + + class PaymentIntentUpdateParamsPaymentMethodOptionsGiftCard(TypedDict): ignore_application_fee: NotRequired[Literal["yes"]] """ @@ -7391,6 +7499,27 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsSequra(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodOptionsSezzle(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["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 PaymentIntentUpdateParamsPaymentMethodOptionsShopeepay(TypedDict): setup_future_usage: NotRequired[Literal["none"]] """ diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py index 0d51490ca..7c93b3b9e 100644 --- a/stripe/params/_payment_method_create_params.py +++ b/stripe/params/_payment_method_create_params.py @@ -73,6 +73,10 @@ class PaymentMethodCreateParams(RequestOptions): """ If this is a `card` PaymentMethod, this hash contains the user's card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format `card: {token: "tok_visa"}`. When providing a card number, you must meet the requirements for [PCI compliance](https://stripe.com/docs/security#validating-pci-compliance). We strongly recommend using Stripe.js instead of interacting with this API directly. """ + carecredit: NotRequired["PaymentMethodCreateParamsCarecredit"] + """ + If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method. + """ cashapp: NotRequired["PaymentMethodCreateParamsCashapp"] """ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. @@ -105,6 +109,10 @@ class PaymentMethodCreateParams(RequestOptions): """ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ + getflex: NotRequired["PaymentMethodCreateParamsGetflex"] + """ + If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method. + """ gift_card: NotRequired["PaymentMethodCreateParamsGiftCard"] """ If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method. @@ -229,6 +237,10 @@ class PaymentMethodCreateParams(RequestOptions): """ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ + rakuten_pay: NotRequired["PaymentMethodCreateParamsRakutenPay"] + """ + If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method. + """ rechnung: NotRequired["PaymentMethodCreateParamsRechnung"] """ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. @@ -257,6 +269,10 @@ class PaymentMethodCreateParams(RequestOptions): """ If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. """ + sezzle: NotRequired["PaymentMethodCreateParamsSezzle"] + """ + If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method. + """ shopeepay: NotRequired["PaymentMethodCreateParamsShopeepay"] """ If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method. @@ -286,7 +302,7 @@ class PaymentMethodCreateParams(RequestOptions): If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: NotRequired[ - "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'gift_card', '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', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" + "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', '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', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" ] """ 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. @@ -481,6 +497,10 @@ class PaymentMethodCreateParamsCardNetworks(TypedDict): """ +class PaymentMethodCreateParamsCarecredit(TypedDict): + pass + + class PaymentMethodCreateParamsCashapp(TypedDict): pass @@ -549,6 +569,10 @@ class PaymentMethodCreateParamsFpx(TypedDict): """ +class PaymentMethodCreateParamsGetflex(TypedDict): + pass + + class PaymentMethodCreateParamsGiftCard(TypedDict): gift_card: str """ @@ -736,6 +760,10 @@ class PaymentMethodCreateParamsRadarOptions(TypedDict): """ +class PaymentMethodCreateParamsRakutenPay(TypedDict): + pass + + class PaymentMethodCreateParamsRechnung(TypedDict): dob: "PaymentMethodCreateParamsRechnungDob" """ @@ -785,6 +813,10 @@ class PaymentMethodCreateParamsSequra(TypedDict): pass +class PaymentMethodCreateParamsSezzle(TypedDict): + pass + + class PaymentMethodCreateParamsShopeepay(TypedDict): pass diff --git a/stripe/params/_payment_method_list_params.py b/stripe/params/_payment_method_list_params.py index 718e073ac..cdb53db93 100644 --- a/stripe/params/_payment_method_list_params.py +++ b/stripe/params/_payment_method_list_params.py @@ -37,7 +37,7 @@ class PaymentMethodListParams(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. """ type: NotRequired[ - "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'gift_card', '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', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" + "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', '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', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" ] """ Filters the list by the object `type` field. Unfiltered, the list returns all payment method types except `custom`. If your integration expects only one type of payment method in the response, specify that type value in the request to reduce your payload. diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index bc40495ac..ae14cdbf1 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -28,6 +28,7 @@ class SetupIntentConfirmParams(RequestOptions): "capchase_pay", "card", "card_present", + "carecredit", "cashapp", "check_scan", "click_to_pay", @@ -42,6 +43,7 @@ class SetupIntentConfirmParams(RequestOptions): "fpx", "gcash", "getbalance", + "getflex", "gift_card", "giropay", "gopay", @@ -84,6 +86,7 @@ class SetupIntentConfirmParams(RequestOptions): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -91,6 +94,7 @@ class SetupIntentConfirmParams(RequestOptions): "scalapay", "sepa_debit", "sequra", + "sezzle", "shop_pay", "shopeepay", "sofort", @@ -288,6 +292,12 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ + carecredit: NotRequired[ + "SetupIntentConfirmParamsPaymentMethodDataCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method. + """ cashapp: NotRequired["SetupIntentConfirmParamsPaymentMethodDataCashapp"] """ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. @@ -310,6 +320,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ + getflex: NotRequired["SetupIntentConfirmParamsPaymentMethodDataGetflex"] + """ + If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method. + """ gift_card: NotRequired["SetupIntentConfirmParamsPaymentMethodDataGiftCard"] """ If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method. @@ -446,6 +460,12 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ + rakuten_pay: NotRequired[ + "SetupIntentConfirmParamsPaymentMethodDataRakutenPay" + ] + """ + If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method. + """ rechnung: NotRequired["SetupIntentConfirmParamsPaymentMethodDataRechnung"] """ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. @@ -480,6 +500,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. """ + sezzle: NotRequired["SetupIntentConfirmParamsPaymentMethodDataSezzle"] + """ + If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method. + """ shared_payment_granted_token: NotRequired[str] """ ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. @@ -531,11 +555,13 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "bizum", "blik", "boleto", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -563,6 +589,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -570,6 +597,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -748,6 +776,10 @@ class SetupIntentConfirmParamsPaymentMethodDataBoleto(TypedDict): """ +class SetupIntentConfirmParamsPaymentMethodDataCarecredit(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataCashapp(TypedDict): pass @@ -809,6 +841,10 @@ class SetupIntentConfirmParamsPaymentMethodDataFpx(TypedDict): """ +class SetupIntentConfirmParamsPaymentMethodDataGetflex(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataGiftCard(TypedDict): gift_card: str """ @@ -996,6 +1032,10 @@ class SetupIntentConfirmParamsPaymentMethodDataRadarOptions(TypedDict): """ +class SetupIntentConfirmParamsPaymentMethodDataRakutenPay(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataRechnung(TypedDict): dob: "SetupIntentConfirmParamsPaymentMethodDataRechnungDob" """ @@ -1045,6 +1085,10 @@ class SetupIntentConfirmParamsPaymentMethodDataSequra(TypedDict): pass +class SetupIntentConfirmParamsPaymentMethodDataSezzle(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataShopeepay(TypedDict): pass diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py index be79a8d68..6dac7b3f6 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -28,6 +28,7 @@ class SetupIntentCreateParams(RequestOptions): "capchase_pay", "card", "card_present", + "carecredit", "cashapp", "check_scan", "click_to_pay", @@ -42,6 +43,7 @@ class SetupIntentCreateParams(RequestOptions): "fpx", "gcash", "getbalance", + "getflex", "gift_card", "giropay", "gopay", @@ -84,6 +86,7 @@ class SetupIntentCreateParams(RequestOptions): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -91,6 +94,7 @@ class SetupIntentCreateParams(RequestOptions): "scalapay", "sepa_debit", "sequra", + "sezzle", "shop_pay", "shopeepay", "sofort", @@ -174,11 +178,13 @@ class SetupIntentCreateParams(RequestOptions): "blik", "boleto", "card", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -205,6 +211,7 @@ class SetupIntentCreateParams(RequestOptions): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -212,6 +219,7 @@ class SetupIntentCreateParams(RequestOptions): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -436,6 +444,12 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ + carecredit: NotRequired[ + "SetupIntentCreateParamsPaymentMethodDataCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method. + """ cashapp: NotRequired["SetupIntentCreateParamsPaymentMethodDataCashapp"] """ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. @@ -458,6 +472,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ + getflex: NotRequired["SetupIntentCreateParamsPaymentMethodDataGetflex"] + """ + If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method. + """ gift_card: NotRequired["SetupIntentCreateParamsPaymentMethodDataGiftCard"] """ If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method. @@ -590,6 +608,12 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ + rakuten_pay: NotRequired[ + "SetupIntentCreateParamsPaymentMethodDataRakutenPay" + ] + """ + If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method. + """ rechnung: NotRequired["SetupIntentCreateParamsPaymentMethodDataRechnung"] """ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. @@ -624,6 +648,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. """ + sezzle: NotRequired["SetupIntentCreateParamsPaymentMethodDataSezzle"] + """ + If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method. + """ shared_payment_granted_token: NotRequired[str] """ ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. @@ -673,11 +701,13 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "bizum", "blik", "boleto", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -705,6 +735,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -712,6 +743,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -888,6 +920,10 @@ class SetupIntentCreateParamsPaymentMethodDataBoleto(TypedDict): """ +class SetupIntentCreateParamsPaymentMethodDataCarecredit(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataCashapp(TypedDict): pass @@ -949,6 +985,10 @@ class SetupIntentCreateParamsPaymentMethodDataFpx(TypedDict): """ +class SetupIntentCreateParamsPaymentMethodDataGetflex(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataGiftCard(TypedDict): gift_card: str """ @@ -1136,6 +1176,10 @@ class SetupIntentCreateParamsPaymentMethodDataRadarOptions(TypedDict): """ +class SetupIntentCreateParamsPaymentMethodDataRakutenPay(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataRechnung(TypedDict): dob: "SetupIntentCreateParamsPaymentMethodDataRechnungDob" """ @@ -1185,6 +1229,10 @@ class SetupIntentCreateParamsPaymentMethodDataSequra(TypedDict): pass +class SetupIntentCreateParamsPaymentMethodDataSezzle(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataShopeepay(TypedDict): pass diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py index 10d51afe4..ef82ab719 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -8,7 +8,7 @@ class SetupIntentModifyParams(RequestOptions): allowed_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'card_present', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'interac_present', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'card_present', 'carecredit', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'interac_present', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]" ] """ The list of payment method types to allow for this SetupIntent. Stripe will only use methods in this list when determining the payment methods to offer. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). @@ -36,7 +36,7 @@ class SetupIntentModifyParams(RequestOptions): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', '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', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', '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', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -163,6 +163,12 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ + carecredit: NotRequired[ + "SetupIntentModifyParamsPaymentMethodDataCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method. + """ cashapp: NotRequired["SetupIntentModifyParamsPaymentMethodDataCashapp"] """ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. @@ -185,6 +191,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ + getflex: NotRequired["SetupIntentModifyParamsPaymentMethodDataGetflex"] + """ + If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method. + """ gift_card: NotRequired["SetupIntentModifyParamsPaymentMethodDataGiftCard"] """ If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method. @@ -317,6 +327,12 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ + rakuten_pay: NotRequired[ + "SetupIntentModifyParamsPaymentMethodDataRakutenPay" + ] + """ + If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method. + """ rechnung: NotRequired["SetupIntentModifyParamsPaymentMethodDataRechnung"] """ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. @@ -351,6 +367,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. """ + sezzle: NotRequired["SetupIntentModifyParamsPaymentMethodDataSezzle"] + """ + If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method. + """ shared_payment_granted_token: NotRequired[str] """ ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. @@ -400,11 +420,13 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "bizum", "blik", "boleto", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -432,6 +454,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -439,6 +462,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -615,6 +639,10 @@ class SetupIntentModifyParamsPaymentMethodDataBoleto(TypedDict): """ +class SetupIntentModifyParamsPaymentMethodDataCarecredit(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataCashapp(TypedDict): pass @@ -676,6 +704,10 @@ class SetupIntentModifyParamsPaymentMethodDataFpx(TypedDict): """ +class SetupIntentModifyParamsPaymentMethodDataGetflex(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataGiftCard(TypedDict): gift_card: str """ @@ -863,6 +895,10 @@ class SetupIntentModifyParamsPaymentMethodDataRadarOptions(TypedDict): """ +class SetupIntentModifyParamsPaymentMethodDataRakutenPay(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataRechnung(TypedDict): dob: "SetupIntentModifyParamsPaymentMethodDataRechnungDob" """ @@ -912,6 +948,10 @@ class SetupIntentModifyParamsPaymentMethodDataSequra(TypedDict): pass +class SetupIntentModifyParamsPaymentMethodDataSezzle(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataShopeepay(TypedDict): pass diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py index ee23fe2fb..205fc3994 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -7,7 +7,7 @@ class SetupIntentUpdateParams(TypedDict): allowed_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'card_present', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'interac_present', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'card_present', 'carecredit', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'interac_present', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]" ] """ The list of payment method types to allow for this SetupIntent. Stripe will only use methods in this list when determining the payment methods to offer. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). @@ -35,7 +35,7 @@ class SetupIntentUpdateParams(TypedDict): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'gift_card', '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', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', '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', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -162,6 +162,12 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ + carecredit: NotRequired[ + "SetupIntentUpdateParamsPaymentMethodDataCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method. + """ cashapp: NotRequired["SetupIntentUpdateParamsPaymentMethodDataCashapp"] """ If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method. @@ -184,6 +190,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ + getflex: NotRequired["SetupIntentUpdateParamsPaymentMethodDataGetflex"] + """ + If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method. + """ gift_card: NotRequired["SetupIntentUpdateParamsPaymentMethodDataGiftCard"] """ If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method. @@ -316,6 +326,12 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ + rakuten_pay: NotRequired[ + "SetupIntentUpdateParamsPaymentMethodDataRakutenPay" + ] + """ + If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method. + """ rechnung: NotRequired["SetupIntentUpdateParamsPaymentMethodDataRechnung"] """ If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method. @@ -350,6 +366,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. """ + sezzle: NotRequired["SetupIntentUpdateParamsPaymentMethodDataSezzle"] + """ + If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method. + """ shared_payment_granted_token: NotRequired[str] """ ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. @@ -399,11 +419,13 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "bizum", "blik", "boleto", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -431,6 +453,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -438,6 +461,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -614,6 +638,10 @@ class SetupIntentUpdateParamsPaymentMethodDataBoleto(TypedDict): """ +class SetupIntentUpdateParamsPaymentMethodDataCarecredit(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataCashapp(TypedDict): pass @@ -675,6 +703,10 @@ class SetupIntentUpdateParamsPaymentMethodDataFpx(TypedDict): """ +class SetupIntentUpdateParamsPaymentMethodDataGetflex(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataGiftCard(TypedDict): gift_card: str """ @@ -862,6 +894,10 @@ class SetupIntentUpdateParamsPaymentMethodDataRadarOptions(TypedDict): """ +class SetupIntentUpdateParamsPaymentMethodDataRakutenPay(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataRechnung(TypedDict): dob: "SetupIntentUpdateParamsPaymentMethodDataRechnungDob" """ @@ -911,6 +947,10 @@ class SetupIntentUpdateParamsPaymentMethodDataSequra(TypedDict): pass +class SetupIntentUpdateParamsPaymentMethodDataSezzle(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataShopeepay(TypedDict): pass diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index 4e2dc6efc..6ee7e87bf 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -72,7 +72,7 @@ class SubscriptionModifyParams(RequestOptions): """ default_payment_method: NotRequired[str] """ - ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://docs.stripe.com/api/customers/object#customer_object-default_source). + ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://docs.stripe.com/api/customers/object#customer_object-default_source). For subscriptions created by Checkout Sessions with Managed Payments enabled, you can't update this field directly through the API. Customers can update it through the Customer Portal. """ default_source: NotRequired["Literal['']|str"] """ diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index 6ff680bbc..6cfb0ea25 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -71,7 +71,7 @@ class SubscriptionUpdateParams(TypedDict): """ default_payment_method: NotRequired[str] """ - ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://docs.stripe.com/api/customers/object#customer_object-default_source). + ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://docs.stripe.com/api/customers/object#customer_object-default_source). For subscriptions created by Checkout Sessions with Managed Payments enabled, you can't update this field directly through the API. Customers can update it through the Customer Portal. """ default_source: NotRequired["Literal['']|str"] """ diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py index d5de75116..46a8a2e97 100644 --- a/stripe/params/_webhook_endpoint_create_params.py +++ b/stripe/params/_webhook_endpoint_create_params.py @@ -422,6 +422,13 @@ class WebhookEndpointCreateParams(RequestOptions): "test_helpers.test_clock.deleted", "test_helpers.test_clock.internal_failure", "test_helpers.test_clock.ready", + "three_d_secure.authentication.canceled", + "three_d_secure.authentication.challenge_started", + "three_d_secure.authentication.errored", + "three_d_secure.authentication.failed", + "three_d_secure.authentication.requires_challenge", + "three_d_secure.authentication.requires_submission", + "three_d_secure.authentication.succeeded", "topup.canceled", "topup.created", "topup.failed", diff --git a/stripe/params/_webhook_endpoint_modify_params.py b/stripe/params/_webhook_endpoint_modify_params.py index b132e9878..0c39b8b81 100644 --- a/stripe/params/_webhook_endpoint_modify_params.py +++ b/stripe/params/_webhook_endpoint_modify_params.py @@ -288,6 +288,13 @@ class WebhookEndpointModifyParams(RequestOptions): "test_helpers.test_clock.deleted", "test_helpers.test_clock.internal_failure", "test_helpers.test_clock.ready", + "three_d_secure.authentication.canceled", + "three_d_secure.authentication.challenge_started", + "three_d_secure.authentication.errored", + "three_d_secure.authentication.failed", + "three_d_secure.authentication.requires_challenge", + "three_d_secure.authentication.requires_submission", + "three_d_secure.authentication.succeeded", "topup.canceled", "topup.created", "topup.failed", diff --git a/stripe/params/_webhook_endpoint_update_params.py b/stripe/params/_webhook_endpoint_update_params.py index 49d7edc00..1d71825f2 100644 --- a/stripe/params/_webhook_endpoint_update_params.py +++ b/stripe/params/_webhook_endpoint_update_params.py @@ -287,6 +287,13 @@ class WebhookEndpointUpdateParams(TypedDict): "test_helpers.test_clock.deleted", "test_helpers.test_clock.internal_failure", "test_helpers.test_clock.ready", + "three_d_secure.authentication.canceled", + "three_d_secure.authentication.challenge_started", + "three_d_secure.authentication.errored", + "three_d_secure.authentication.failed", + "three_d_secure.authentication.requires_challenge", + "three_d_secure.authentication.requires_submission", + "three_d_secure.authentication.succeeded", "topup.canceled", "topup.created", "topup.failed", diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py index cf6d2c63e..b74a4d537 100644 --- a/stripe/params/checkout/__init__.py +++ b/stripe/params/checkout/__init__.py @@ -99,6 +99,7 @@ SessionCreateParamsPaymentMethodOptionsBoleto as SessionCreateParamsPaymentMethodOptionsBoleto, SessionCreateParamsPaymentMethodOptionsCard as SessionCreateParamsPaymentMethodOptionsCard, SessionCreateParamsPaymentMethodOptionsCardInstallments as SessionCreateParamsPaymentMethodOptionsCardInstallments, + SessionCreateParamsPaymentMethodOptionsCardMandateOptions as SessionCreateParamsPaymentMethodOptionsCardMandateOptions, SessionCreateParamsPaymentMethodOptionsCardRestrictions as SessionCreateParamsPaymentMethodOptionsCardRestrictions, SessionCreateParamsPaymentMethodOptionsCashapp as SessionCreateParamsPaymentMethodOptionsCashapp, SessionCreateParamsPaymentMethodOptionsCrypto as SessionCreateParamsPaymentMethodOptionsCrypto, @@ -628,6 +629,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsPaymentMethodOptionsCardMandateOptions": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsPaymentMethodOptionsCardRestrictions": ( "stripe.params.checkout._session_create_params", False, diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index 9bebe7777..5e385cac8 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -136,7 +136,7 @@ class SessionCreateParams(RequestOptions): """ 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). Required in `setup` mode when `payment_method_types` is not set. + 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). Required in `setup` mode when `allowed_payment_method_types` is not set. """ custom_fields: NotRequired[List["SessionCreateParamsCustomField"]] """ @@ -350,7 +350,7 @@ class SessionCreateParams(RequestOptions): A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode. """ payment_method_collection: NotRequired[ - "Literal['always', 'if_required']|str" + "Literal['always', 'auto', 'if_required']|str" ] """ Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0. @@ -2039,6 +2039,12 @@ class SessionCreateParamsPaymentMethodOptionsCard(TypedDict): """ Installment options for card payments """ + mandate_options: NotRequired[ + "SessionCreateParamsPaymentMethodOptionsCardMandateOptions" + ] + """ + Configuration options for setting up an eMandate for cards issued in India. + """ request_decremental_authorization: NotRequired[ "Literal['if_available', 'never']|str" ] @@ -2105,6 +2111,51 @@ class SessionCreateParamsPaymentMethodOptionsCardInstallments(TypedDict): """ +class SessionCreateParamsPaymentMethodOptionsCardMandateOptions(TypedDict): + amount: NotRequired[int] + """ + Maximum or fixed amount for future payments, specified in the Checkout Session's integration currency. + """ + amount_type: NotRequired["Literal['fixed', 'maximum']|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. + """ + 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). + """ + 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: NotRequired[ + "Literal['day', 'month', 'sporadic', 'week', 'year']|str" + ] + """ + 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: NotRequired[str] + """ + Unique identifier for the mandate or subscription. + """ + start_date: NotRequired[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 SessionCreateParamsPaymentMethodOptionsCardRestrictions(TypedDict): brands_blocked: NotRequired[ List[ diff --git a/stripe/params/terminal/_reader_list_params.py b/stripe/params/terminal/_reader_list_params.py index becba0d89..caeaa5c8f 100644 --- a/stripe/params/terminal/_reader_list_params.py +++ b/stripe/params/terminal/_reader_list_params.py @@ -7,7 +7,7 @@ class ReaderListParams(RequestOptions): device_type: NotRequired[ - "Literal['bbpos_chipper2x', 'bbpos_wisepad3', 'bbpos_wisepos_e', 'mobile_phone_reader', 'simulated_stripe_s700', 'simulated_stripe_s710', 'simulated_verifone_m425', 'simulated_verifone_p630', 'simulated_verifone_ux700', 'simulated_verifone_v660p', 'simulated_wisepos_e', 'stripe_m2', 'stripe_s700', 'stripe_s710', 'verifone_P400', 'verifone_m425', 'verifone_p630', 'verifone_ux700', 'verifone_v660p']|str" + "Literal['bbpos_chipper2x', 'bbpos_wisepad3', 'bbpos_wisepos_e', 'mobile_phone_reader', 'simulated_stripe_s700', 'simulated_stripe_s710', 'simulated_stripe_t600', 'simulated_verifone_m425', 'simulated_verifone_p630', 'simulated_verifone_ux700', 'simulated_verifone_v660p', 'simulated_wisepos_e', 'stripe_m2', 'stripe_s700', 'stripe_s710', 'stripe_t600', 'verifone_P400', 'verifone_m425', 'verifone_p630', 'verifone_ux700', 'verifone_v660p']|str" ] """ Filters readers by device type diff --git a/stripe/params/test_helpers/__init__.py b/stripe/params/test_helpers/__init__.py index 0d2d423df..e6aa66bc2 100644 --- a/stripe/params/test_helpers/__init__.py +++ b/stripe/params/test_helpers/__init__.py @@ -29,11 +29,13 @@ ConfirmationTokenCreateParamsPaymentMethodDataBizum as ConfirmationTokenCreateParamsPaymentMethodDataBizum, ConfirmationTokenCreateParamsPaymentMethodDataBlik as ConfirmationTokenCreateParamsPaymentMethodDataBlik, ConfirmationTokenCreateParamsPaymentMethodDataBoleto as ConfirmationTokenCreateParamsPaymentMethodDataBoleto, + ConfirmationTokenCreateParamsPaymentMethodDataCarecredit as ConfirmationTokenCreateParamsPaymentMethodDataCarecredit, ConfirmationTokenCreateParamsPaymentMethodDataCashapp as ConfirmationTokenCreateParamsPaymentMethodDataCashapp, ConfirmationTokenCreateParamsPaymentMethodDataCrypto as ConfirmationTokenCreateParamsPaymentMethodDataCrypto, ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance as ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance, ConfirmationTokenCreateParamsPaymentMethodDataEps as ConfirmationTokenCreateParamsPaymentMethodDataEps, ConfirmationTokenCreateParamsPaymentMethodDataFpx as ConfirmationTokenCreateParamsPaymentMethodDataFpx, + ConfirmationTokenCreateParamsPaymentMethodDataGetflex as ConfirmationTokenCreateParamsPaymentMethodDataGetflex, ConfirmationTokenCreateParamsPaymentMethodDataGiftCard as ConfirmationTokenCreateParamsPaymentMethodDataGiftCard, ConfirmationTokenCreateParamsPaymentMethodDataGiropay as ConfirmationTokenCreateParamsPaymentMethodDataGiropay, ConfirmationTokenCreateParamsPaymentMethodDataGopay as ConfirmationTokenCreateParamsPaymentMethodDataGopay, @@ -64,6 +66,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataPromptpay as ConfirmationTokenCreateParamsPaymentMethodDataPromptpay, ConfirmationTokenCreateParamsPaymentMethodDataQris as ConfirmationTokenCreateParamsPaymentMethodDataQris, ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions as ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions, + ConfirmationTokenCreateParamsPaymentMethodDataRakutenPay as ConfirmationTokenCreateParamsPaymentMethodDataRakutenPay, ConfirmationTokenCreateParamsPaymentMethodDataRechnung as ConfirmationTokenCreateParamsPaymentMethodDataRechnung, ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob as ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob, ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay as ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay, @@ -72,6 +75,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataScalapay as ConfirmationTokenCreateParamsPaymentMethodDataScalapay, ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit as ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit, ConfirmationTokenCreateParamsPaymentMethodDataSequra as ConfirmationTokenCreateParamsPaymentMethodDataSequra, + ConfirmationTokenCreateParamsPaymentMethodDataSezzle as ConfirmationTokenCreateParamsPaymentMethodDataSezzle, ConfirmationTokenCreateParamsPaymentMethodDataShopeepay as ConfirmationTokenCreateParamsPaymentMethodDataShopeepay, ConfirmationTokenCreateParamsPaymentMethodDataSofort as ConfirmationTokenCreateParamsPaymentMethodDataSofort, ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance as ConfirmationTokenCreateParamsPaymentMethodDataStripeBalance, @@ -192,6 +196,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataCarecredit": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataCashapp": ( "stripe.params.test_helpers._confirmation_token_create_params", False, @@ -212,6 +220,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataGetflex": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataGiftCard": ( "stripe.params.test_helpers._confirmation_token_create_params", False, @@ -332,6 +344,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataRakutenPay": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataRechnung": ( "stripe.params.test_helpers._confirmation_token_create_params", False, @@ -364,6 +380,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataSezzle": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataShopeepay": ( "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 9f8198624..a2dd28463 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -119,6 +119,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method. """ + carecredit: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataCarecredit" + ] + """ + If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method. + """ cashapp: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataCashapp" ] @@ -143,6 +149,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method. """ + getflex: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataGetflex" + ] + """ + If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method. + """ gift_card: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataGiftCard" ] @@ -293,6 +305,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information. """ + rakuten_pay: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataRakutenPay" + ] + """ + If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method. + """ rechnung: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataRechnung" ] @@ -333,6 +351,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method. """ + sezzle: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSezzle"] + """ + If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method. + """ shared_payment_granted_token: NotRequired[str] """ ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. @@ -384,11 +406,13 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "bizum", "blik", "boleto", + "carecredit", "cashapp", "crypto", "customer_balance", "eps", "fpx", + "getflex", "gift_card", "giropay", "gopay", @@ -416,6 +440,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "pix", "promptpay", "qris", + "rakuten_pay", "rechnung", "revolut_pay", "samsung_pay", @@ -423,6 +448,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "scalapay", "sepa_debit", "sequra", + "sezzle", "shopeepay", "sofort", "stripe_balance", @@ -603,6 +629,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataBoleto(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataCarecredit(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataCashapp(TypedDict): pass @@ -664,6 +694,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataFpx(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataGetflex(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataGiftCard(TypedDict): gift_card: str """ @@ -851,6 +885,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataRakutenPay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataRechnung(TypedDict): dob: "ConfirmationTokenCreateParamsPaymentMethodDataRechnungDob" """ @@ -900,6 +938,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataSequra(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataSezzle(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataShopeepay(TypedDict): pass diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py index 56bdabcae..ba68db642 100644 --- a/stripe/params/v2/core/_account_create_params.py +++ b/stripe/params/v2/core/_account_create_params.py @@ -9354,7 +9354,7 @@ class AccountCreateParamsIdentityIndividualAdditionalAddress(TypedDict): """ ZIP or postal code. """ - purpose: Literal["registered"] + purpose: Literal["birthplace", "registered"] """ Purpose of additional address. """ diff --git a/stripe/params/v2/core/_account_evaluation_create_params.py b/stripe/params/v2/core/_account_evaluation_create_params.py index 5e076b391..62021121e 100644 --- a/stripe/params/v2/core/_account_evaluation_create_params.py +++ b/stripe/params/v2/core/_account_evaluation_create_params.py @@ -18,6 +18,7 @@ class AccountEvaluationCreateParams(TypedDict): Literal[ "fraudulent_website", "user_account_sharing", + "user_merchant_fit", "user_multi_accounting", ], str, @@ -29,6 +30,10 @@ class AccountEvaluationCreateParams(TypedDict): class AccountEvaluationCreateParamsAccountData(TypedDict): + contact_email: NotRequired[str] + """ + The account's contact email. + """ defaults: NotRequired["AccountEvaluationCreateParamsAccountDataDefaults"] """ Default account settings. diff --git a/stripe/params/v2/core/_account_list_params.py b/stripe/params/v2/core/_account_list_params.py index 20e1d792b..1753ae121 100644 --- a/stripe/params/v2/core/_account_list_params.py +++ b/stripe/params/v2/core/_account_list_params.py @@ -30,5 +30,7 @@ class AccountListParams(TypedDict): """ related_network_object: NotRequired[str] """ - Filter by the network object related to the account. If omitted, returns all Accounts regardless of the network object they have. + The ID of a [Business Profile](https://docs.stripe.com/api/v2/network/business-profiles) to filter Accounts by. + A Business Profile represents a business's public identity on the Stripe network. + Returns only Accounts associated with that profile. If omitted, no profile filter is applied. """ diff --git a/stripe/params/v2/core/_account_token_create_params.py b/stripe/params/v2/core/_account_token_create_params.py index 06599ba3f..c6de4a156 100644 --- a/stripe/params/v2/core/_account_token_create_params.py +++ b/stripe/params/v2/core/_account_token_create_params.py @@ -1271,7 +1271,7 @@ class AccountTokenCreateParamsIdentityIndividualAdditionalAddress(TypedDict): """ ZIP or postal code. """ - purpose: Literal["registered"] + purpose: Literal["birthplace", "registered"] """ Purpose of additional address. """ diff --git a/stripe/params/v2/core/_account_update_params.py b/stripe/params/v2/core/_account_update_params.py index 5ffae2680..13496d0be 100644 --- a/stripe/params/v2/core/_account_update_params.py +++ b/stripe/params/v2/core/_account_update_params.py @@ -9398,7 +9398,7 @@ class AccountUpdateParamsIdentityIndividualAdditionalAddress(TypedDict): """ ZIP or postal code. """ - purpose: Literal["registered"] + purpose: Literal["birthplace", "registered"] """ Purpose of additional address. """ diff --git a/stripe/params/v2/core/accounts/_person_create_params.py b/stripe/params/v2/core/accounts/_person_create_params.py index d4f098d25..7eaa9488b 100644 --- a/stripe/params/v2/core/accounts/_person_create_params.py +++ b/stripe/params/v2/core/accounts/_person_create_params.py @@ -110,7 +110,7 @@ class PersonCreateParamsAdditionalAddress(TypedDict): """ ZIP or postal code. """ - purpose: Literal["registered"] + purpose: Literal["birthplace", "registered"] """ Purpose of additional address. """ diff --git a/stripe/params/v2/core/accounts/_person_token_create_params.py b/stripe/params/v2/core/accounts/_person_token_create_params.py index 332835fe6..1aa9f1bfe 100644 --- a/stripe/params/v2/core/accounts/_person_token_create_params.py +++ b/stripe/params/v2/core/accounts/_person_token_create_params.py @@ -110,7 +110,7 @@ class PersonTokenCreateParamsAdditionalAddress(TypedDict): """ ZIP or postal code. """ - purpose: Literal["registered"] + purpose: Literal["birthplace", "registered"] """ Purpose of additional address. """ diff --git a/stripe/params/v2/core/accounts/_person_update_params.py b/stripe/params/v2/core/accounts/_person_update_params.py index 447caf2ba..84edf376d 100644 --- a/stripe/params/v2/core/accounts/_person_update_params.py +++ b/stripe/params/v2/core/accounts/_person_update_params.py @@ -112,7 +112,7 @@ class PersonUpdateParamsAdditionalAddress(TypedDict): """ ZIP or postal code. """ - purpose: Literal["registered"] + purpose: Literal["birthplace", "registered"] """ Purpose of additional address. """ diff --git a/stripe/params/v2/core/vault/__init__.py b/stripe/params/v2/core/vault/__init__.py index 398005127..0da1b141c 100644 --- a/stripe/params/v2/core/vault/__init__.py +++ b/stripe/params/v2/core/vault/__init__.py @@ -4,9 +4,6 @@ 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, ) @@ -14,9 +11,6 @@ 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, ) @@ -62,10 +56,6 @@ # 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, @@ -78,10 +68,6 @@ "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, 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 deleted file mode 100644 index 7db9a3f15..000000000 --- a/stripe/params/v2/core/vault/_gb_bank_account_acknowledge_confirmation_of_payee_params.py +++ /dev/null @@ -1,7 +0,0 @@ -# -*- 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_initiate_confirmation_of_payee_params.py b/stripe/params/v2/core/vault/_gb_bank_account_initiate_confirmation_of_payee_params.py deleted file mode 100644 index b717e626f..000000000 --- a/stripe/params/v2/core/vault/_gb_bank_account_initiate_confirmation_of_payee_params.py +++ /dev/null @@ -1,14 +0,0 @@ -# -*- 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/money_management/test_helpers/_financial_address_credit_params.py b/stripe/params/v2/money_management/test_helpers/_financial_address_credit_params.py index e4fb861f6..08bea5edc 100644 --- a/stripe/params/v2/money_management/test_helpers/_financial_address_credit_params.py +++ b/stripe/params/v2/money_management/test_helpers/_financial_address_credit_params.py @@ -14,8 +14,10 @@ class FinancialAddressCreditParams(TypedDict): Literal[ "ach", "acss", + "bre_b", "chaps", "fps", + "pix", "rtp", "sepa_credit_transfer", "swift", diff --git a/stripe/params/v2/payments/__init__.py b/stripe/params/v2/payments/__init__.py index a0c14e77e..8e952609d 100644 --- a/stripe/params/v2/payments/__init__.py +++ b/stripe/params/v2/payments/__init__.py @@ -10,16 +10,6 @@ from stripe.params.v2.payments._off_session_payment_cancel_params import ( OffSessionPaymentCancelParams as OffSessionPaymentCancelParams, ) - from stripe.params.v2.payments._off_session_payment_capture_params import ( - OffSessionPaymentCaptureParams as OffSessionPaymentCaptureParams, - OffSessionPaymentCaptureParamsAmountDetails as OffSessionPaymentCaptureParamsAmountDetails, - OffSessionPaymentCaptureParamsAmountDetailsLineItem as OffSessionPaymentCaptureParamsAmountDetailsLineItem, - OffSessionPaymentCaptureParamsAmountDetailsLineItemTax as OffSessionPaymentCaptureParamsAmountDetailsLineItemTax, - OffSessionPaymentCaptureParamsAmountDetailsShipping as OffSessionPaymentCaptureParamsAmountDetailsShipping, - OffSessionPaymentCaptureParamsAmountDetailsTax as OffSessionPaymentCaptureParamsAmountDetailsTax, - OffSessionPaymentCaptureParamsPaymentDetails as OffSessionPaymentCaptureParamsPaymentDetails, - OffSessionPaymentCaptureParamsTransferData as OffSessionPaymentCaptureParamsTransferData, - ) from stripe.params.v2.payments._off_session_payment_create_params import ( OffSessionPaymentCreateParams as OffSessionPaymentCreateParams, OffSessionPaymentCreateParamsAmountDetails as OffSessionPaymentCreateParamsAmountDetails, @@ -27,7 +17,6 @@ OffSessionPaymentCreateParamsAmountDetailsLineItemTax as OffSessionPaymentCreateParamsAmountDetailsLineItemTax, OffSessionPaymentCreateParamsAmountDetailsShipping as OffSessionPaymentCreateParamsAmountDetailsShipping, OffSessionPaymentCreateParamsAmountDetailsTax as OffSessionPaymentCreateParamsAmountDetailsTax, - OffSessionPaymentCreateParamsCapture as OffSessionPaymentCreateParamsCapture, OffSessionPaymentCreateParamsPaymentDetails as OffSessionPaymentCreateParamsPaymentDetails, OffSessionPaymentCreateParamsPaymentMethodData as OffSessionPaymentCreateParamsPaymentMethodData, OffSessionPaymentCreateParamsPaymentMethodDataBillingDetails as OffSessionPaymentCreateParamsPaymentMethodDataBillingDetails, @@ -80,38 +69,6 @@ "stripe.params.v2.payments._off_session_payment_cancel_params", False, ), - "OffSessionPaymentCaptureParams": ( - "stripe.params.v2.payments._off_session_payment_capture_params", - False, - ), - "OffSessionPaymentCaptureParamsAmountDetails": ( - "stripe.params.v2.payments._off_session_payment_capture_params", - False, - ), - "OffSessionPaymentCaptureParamsAmountDetailsLineItem": ( - "stripe.params.v2.payments._off_session_payment_capture_params", - False, - ), - "OffSessionPaymentCaptureParamsAmountDetailsLineItemTax": ( - "stripe.params.v2.payments._off_session_payment_capture_params", - False, - ), - "OffSessionPaymentCaptureParamsAmountDetailsShipping": ( - "stripe.params.v2.payments._off_session_payment_capture_params", - False, - ), - "OffSessionPaymentCaptureParamsAmountDetailsTax": ( - "stripe.params.v2.payments._off_session_payment_capture_params", - False, - ), - "OffSessionPaymentCaptureParamsPaymentDetails": ( - "stripe.params.v2.payments._off_session_payment_capture_params", - False, - ), - "OffSessionPaymentCaptureParamsTransferData": ( - "stripe.params.v2.payments._off_session_payment_capture_params", - False, - ), "OffSessionPaymentCreateParams": ( "stripe.params.v2.payments._off_session_payment_create_params", False, @@ -136,10 +93,6 @@ "stripe.params.v2.payments._off_session_payment_create_params", False, ), - "OffSessionPaymentCreateParamsCapture": ( - "stripe.params.v2.payments._off_session_payment_create_params", - False, - ), "OffSessionPaymentCreateParamsPaymentDetails": ( "stripe.params.v2.payments._off_session_payment_create_params", False, diff --git a/stripe/params/v2/payments/_off_session_payment_capture_params.py b/stripe/params/v2/payments/_off_session_payment_capture_params.py deleted file mode 100644 index b5de7c78d..000000000 --- a/stripe/params/v2/payments/_off_session_payment_capture_params.py +++ /dev/null @@ -1,166 +0,0 @@ -# -*- coding: utf-8 -*- -# File generated from our OpenAPI spec -from stripe._stripe_object import UntypedStripeObject -from stripe.v2._amount import AmountParam -from typing import Dict, List -from typing_extensions import NotRequired, TypedDict - - -class OffSessionPaymentCaptureParams(TypedDict): - amount_details: NotRequired["OffSessionPaymentCaptureParamsAmountDetails"] - """ - Provides industry-specific information about the amount. - """ - amount_to_capture: NotRequired[int] - """ - The amount to capture. - """ - application_fee_amount: NotRequired[AmountParam] - """ - The amount of the application fee for this capture. - """ - metadata: NotRequired["Dict[str, str]|UntypedStripeObject[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. Learn more about - [storing information in metadata](https://docs.stripe.com/payments/payment-intents#storing-information-in-metadata). - """ - payment_details: NotRequired[ - "OffSessionPaymentCaptureParamsPaymentDetails" - ] - """ - Provides industry-specific information about the payment. - """ - statement_descriptor: NotRequired[str] - """ - Text that appears on the customer's statement as the statement descriptor for a - non-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). - """ - statement_descriptor_suffix: NotRequired[str] - """ - Provides information about a card charge. Concatenated to the account's - [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) - to form the complete statement descriptor that appears on the customer's statement. - """ - transfer_data: NotRequired["OffSessionPaymentCaptureParamsTransferData"] - """ - The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.stripe.com/payments/connected-accounts). - """ - - -class OffSessionPaymentCaptureParamsAmountDetails(TypedDict): - discount_amount: NotRequired[int] - """ - The amount the total transaction was discounted for. - """ - enforce_arithmetic_validation: NotRequired[bool] - """ - Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data. - Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies. - For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error. - """ - line_items: NotRequired[ - List["OffSessionPaymentCaptureParamsAmountDetailsLineItem"] - ] - """ - A list of line items, each containing information about a product in the OffSessionPayment. There is a maximum of 10 line items. - """ - shipping: NotRequired[ - "OffSessionPaymentCaptureParamsAmountDetailsShipping" - ] - """ - Contains information about the shipping portion of the amount. - """ - tax: NotRequired["OffSessionPaymentCaptureParamsAmountDetailsTax"] - """ - Contains information about the tax portion of the amount. - """ - - -class OffSessionPaymentCaptureParamsAmountDetailsLineItem(TypedDict): - discount_amount: NotRequired[int] - """ - The amount an item was discounted for. Positive integer. - """ - product_code: NotRequired[str] - """ - Unique identifier of the product. At most 12 characters long. - """ - product_name: str - """ - Name of the product. At most 100 characters long. - """ - quantity: int - """ - Number of items of the product. Positive integer. - """ - tax: NotRequired["OffSessionPaymentCaptureParamsAmountDetailsLineItemTax"] - """ - Contains information about the tax on the item. - """ - unit_cost: int - """ - Cost of the product. Positive integer. - """ - unit_of_measure: NotRequired[str] - """ - A unit of measure for the line item, such as gallons, feet, meters, etc. - The maximum length is 12 characters. - """ - - -class OffSessionPaymentCaptureParamsAmountDetailsLineItemTax(TypedDict): - total_tax_amount: int - """ - Total portion of the amount that is for tax. - """ - - -class OffSessionPaymentCaptureParamsAmountDetailsShipping(TypedDict): - amount: NotRequired[int] - """ - Portion of the amount that is for shipping. - """ - from_postal_code: NotRequired[str] - """ - The postal code that represents the shipping source. - """ - to_postal_code: NotRequired[str] - """ - The postal code that represents the shipping destination. - """ - - -class OffSessionPaymentCaptureParamsAmountDetailsTax(TypedDict): - total_tax_amount: int - """ - Total portion of the amount that is for tax. - """ - - -class OffSessionPaymentCaptureParamsPaymentDetails(TypedDict): - customer_reference: NotRequired[str] - """ - A unique value to identify the customer. This field is applicable only for card payments. For card payments, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. - """ - order_reference: NotRequired[str] - """ - A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. - For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. - """ - - -class OffSessionPaymentCaptureParamsTransferData(TypedDict): - amount: NotRequired[int] - """ - The amount transferred to the destination account. This transfer will occur - automatically after the payment succeeds. If no amount is specified, by default - the entire payment amount is transferred to the destination account. The amount - must be less than or equal to the - [amount_requested](https://docs.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested), - and must be a positive integer representing how much to transfer in the smallest - currency unit (e.g., 100 cents to charge $1.00). - """ diff --git a/stripe/params/v2/payments/_off_session_payment_create_params.py b/stripe/params/v2/payments/_off_session_payment_create_params.py index f2f3fc54e..71a4a57a6 100644 --- a/stripe/params/v2/payments/_off_session_payment_create_params.py +++ b/stripe/params/v2/payments/_off_session_payment_create_params.py @@ -24,10 +24,6 @@ class OffSessionPaymentCreateParams(TypedDict): """ The frequency of the underlying payment. """ - capture: NotRequired["OffSessionPaymentCreateParamsCapture"] - """ - Deprecated. Details about the capture configuration for the OffSessionPayment. - """ customer: str """ ID of the Customer to which this OffSessionPayment belongs. @@ -198,13 +194,6 @@ class OffSessionPaymentCreateParamsAmountDetailsTax(TypedDict): """ -class OffSessionPaymentCreateParamsCapture(TypedDict): - capture_method: Union[Literal["automatic", "manual"], str] - """ - The method to use to capture the payment. - """ - - class OffSessionPaymentCreateParamsPaymentDetails(TypedDict): customer_reference: NotRequired[str] """ diff --git a/stripe/params/v2/signals/_account_activity_create_params.py b/stripe/params/v2/signals/_account_activity_create_params.py index ef6b70099..ff02c0b7c 100644 --- a/stripe/params/v2/signals/_account_activity_create_params.py +++ b/stripe/params/v2/signals/_account_activity_create_params.py @@ -85,7 +85,7 @@ class AccountActivityCreateParamsAccountDetails(TypedDict): """ customer: NotRequired[str] """ - The v1 customer ID of the account, for users not yet migrated to v2/accounts. + The v1 customer ID of the account, for users not yet migrated to v2 accounts. """ data: NotRequired["AccountActivityCreateParamsAccountDetailsData"] """ @@ -94,6 +94,10 @@ class AccountActivityCreateParamsAccountDetails(TypedDict): class AccountActivityCreateParamsAccountDetailsData(TypedDict): + contact_email: NotRequired[str] + """ + The account's contact email. + """ defaults: NotRequired[ "AccountActivityCreateParamsAccountDetailsDataDefaults" ] diff --git a/stripe/params/v2/signals/_account_evaluation_create_params.py b/stripe/params/v2/signals/_account_evaluation_create_params.py index d0dcbefac..9b102fed5 100644 --- a/stripe/params/v2/signals/_account_evaluation_create_params.py +++ b/stripe/params/v2/signals/_account_evaluation_create_params.py @@ -20,6 +20,7 @@ class AccountEvaluationCreateParams(TypedDict): Literal[ "fraudulent_website", "user_account_sharing", + "user_merchant_fit", "user_multi_accounting", ], str, @@ -166,7 +167,7 @@ class AccountEvaluationCreateParamsAccountDetails(TypedDict): """ customer: NotRequired[str] """ - The v1 customer ID of the account, for users not yet migrated to v2/accounts. + The v1 customer ID of the account, for users not yet migrated to v2 accounts. """ data: NotRequired["AccountEvaluationCreateParamsAccountDetailsData"] """ @@ -175,6 +176,10 @@ class AccountEvaluationCreateParamsAccountDetails(TypedDict): class AccountEvaluationCreateParamsAccountDetailsData(TypedDict): + contact_email: NotRequired[str] + """ + The account's contact email. + """ defaults: NotRequired[ "AccountEvaluationCreateParamsAccountDetailsDataDefaults" ] diff --git a/stripe/params/v2/signals/_account_signal_list_params.py b/stripe/params/v2/signals/_account_signal_list_params.py index 64bc5d561..955c6519a 100644 --- a/stripe/params/v2/signals/_account_signal_list_params.py +++ b/stripe/params/v2/signals/_account_signal_list_params.py @@ -22,6 +22,7 @@ class AccountSignalListParams(TypedDict): "merchant_delinquency", "payment_delinquency_exposure", "user_account_sharing", + "user_merchant_fit", "user_multi_accounting", ], str, diff --git a/stripe/shared_payment/_granted_token.py b/stripe/shared_payment/_granted_token.py index 6ced2b494..b039114a3 100644 --- a/stripe/shared_payment/_granted_token.py +++ b/stripe/shared_payment/_granted_token.py @@ -649,7 +649,7 @@ def create( cls, **params: Unpack["GrantedTokenCreateParams"] ) -> "GrantedToken": """ - Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration + Creates a new test SharedPaymentGrantedToken object. This test helper allows sellers to create SharedPaymentGrantedTokens for testing their integration. """ return cast( "GrantedToken", @@ -665,7 +665,7 @@ async def create_async( cls, **params: Unpack["GrantedTokenCreateParams"] ) -> "GrantedToken": """ - Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration + Creates a new test SharedPaymentGrantedToken object. This test helper allows sellers to create SharedPaymentGrantedTokens for testing their integration. """ return cast( "GrantedToken", @@ -684,7 +684,7 @@ def _cls_revoke( **params: Unpack["GrantedTokenRevokeParams"], ) -> "GrantedToken": """ - Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers to revoke SharedPaymentGrantedTokens for testing their integration. """ return cast( "GrantedToken", @@ -707,7 +707,7 @@ def revoke( **params: Unpack["GrantedTokenRevokeParams"], ) -> "GrantedToken": """ - Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers to revoke SharedPaymentGrantedTokens for testing their integration. """ ... @@ -716,7 +716,7 @@ def revoke( self, **params: Unpack["GrantedTokenRevokeParams"] ) -> "GrantedToken": """ - Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers to revoke SharedPaymentGrantedTokens for testing their integration. """ ... @@ -725,7 +725,7 @@ def revoke( self, **params: Unpack["GrantedTokenRevokeParams"] ) -> "GrantedToken": """ - Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers to revoke SharedPaymentGrantedTokens for testing their integration. """ return cast( "GrantedToken", @@ -748,7 +748,7 @@ async def _cls_revoke_async( **params: Unpack["GrantedTokenRevokeParams"], ) -> "GrantedToken": """ - Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers to revoke SharedPaymentGrantedTokens for testing their integration. """ return cast( "GrantedToken", @@ -771,7 +771,7 @@ async def revoke_async( **params: Unpack["GrantedTokenRevokeParams"], ) -> "GrantedToken": """ - Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers to revoke SharedPaymentGrantedTokens for testing their integration. """ ... @@ -780,7 +780,7 @@ async def revoke_async( self, **params: Unpack["GrantedTokenRevokeParams"] ) -> "GrantedToken": """ - Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers to revoke SharedPaymentGrantedTokens for testing their integration. """ ... @@ -789,7 +789,7 @@ async def revoke_async( self, **params: Unpack["GrantedTokenRevokeParams"] ) -> "GrantedToken": """ - Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers to revoke SharedPaymentGrantedTokens for testing their integration. """ return cast( "GrantedToken", diff --git a/stripe/test_helpers/shared_payment/_granted_token_service.py b/stripe/test_helpers/shared_payment/_granted_token_service.py index a02a8bca7..945fb7304 100644 --- a/stripe/test_helpers/shared_payment/_granted_token_service.py +++ b/stripe/test_helpers/shared_payment/_granted_token_service.py @@ -23,7 +23,7 @@ def create( options: Optional["RequestOptions"] = None, ) -> "GrantedToken": """ - Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration + Creates a new test SharedPaymentGrantedToken object. This test helper allows sellers to create SharedPaymentGrantedTokens for testing their integration. """ return cast( "GrantedToken", @@ -42,7 +42,7 @@ async def create_async( options: Optional["RequestOptions"] = None, ) -> "GrantedToken": """ - Creates a new test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to create SharedPaymentGrantedTokens for testing their integration + Creates a new test SharedPaymentGrantedToken object. This test helper allows sellers to create SharedPaymentGrantedTokens for testing their integration. """ return cast( "GrantedToken", @@ -63,7 +63,7 @@ def revoke( options: Optional["RequestOptions"] = None, ) -> "GrantedToken": """ - Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers to revoke SharedPaymentGrantedTokens for testing their integration. """ return cast( "GrantedToken", @@ -88,7 +88,7 @@ async def revoke_async( options: Optional["RequestOptions"] = None, ) -> "GrantedToken": """ - Revokes a test SharedPaymentGrantedToken object. This endpoint is only available in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing their integration + Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers to revoke SharedPaymentGrantedTokens for testing their integration. """ return cast( "GrantedToken", diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py index 84015efb8..fe1ccf901 100644 --- a/stripe/v2/core/_account.py +++ b/stripe/v2/core/_account.py @@ -17271,7 +17271,7 @@ class AdditionalAddress(StripeObject): """ ZIP or postal code. """ - purpose: Literal["registered"] + purpose: Literal["birthplace", "registered"] """ Purpose of additional address. """ diff --git a/stripe/v2/core/_account_evaluation.py b/stripe/v2/core/_account_evaluation.py index 72a5e616f..a03c620bb 100644 --- a/stripe/v2/core/_account_evaluation.py +++ b/stripe/v2/core/_account_evaluation.py @@ -49,6 +49,10 @@ class BusinessDetails(StripeObject): """ _inner_class_types = {"business_details": BusinessDetails} + contact_email: Optional[str] + """ + The account's contact email. + """ defaults: Optional[Defaults] """ Default account settings. @@ -76,6 +80,7 @@ class BusinessDetails(StripeObject): Literal[ "fraudulent_website", "user_account_sharing", + "user_merchant_fit", "user_multi_accounting", ], str, diff --git a/stripe/v2/core/_account_person.py b/stripe/v2/core/_account_person.py index 03d139225..9f30b8d36 100644 --- a/stripe/v2/core/_account_person.py +++ b/stripe/v2/core/_account_person.py @@ -36,7 +36,7 @@ class AdditionalAddress(StripeObject): """ ZIP or postal code. """ - purpose: Literal["registered"] + purpose: Literal["birthplace", "registered"] """ Purpose of additional address. """ diff --git a/stripe/v2/core/vault/_gb_bank_account_service.py b/stripe/v2/core/vault/_gb_bank_account_service.py index 134e52ed5..e21c66529 100644 --- a/stripe/v2/core/vault/_gb_bank_account_service.py +++ b/stripe/v2/core/vault/_gb_bank_account_service.py @@ -7,18 +7,12 @@ 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, ) @@ -152,62 +146,6 @@ async def retrieve_async( ), ) - 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, @@ -255,59 +193,3 @@ async def archive_async( 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/money_management/_financial_account_service.py b/stripe/v2/money_management/_financial_account_service.py index b70c0f004..e4b0d57ea 100644 --- a/stripe/v2/money_management/_financial_account_service.py +++ b/stripe/v2/money_management/_financial_account_service.py @@ -73,7 +73,7 @@ def list( options: Optional["RequestOptions"] = None, ) -> "ListObject[FinancialAccount]": """ - Lists FinancialAccounts in this compartment. + Lists FinancialAccounts in this account. """ return cast( "ListObject[FinancialAccount]", @@ -92,7 +92,7 @@ async def list_async( options: Optional["RequestOptions"] = None, ) -> "ListObject[FinancialAccount]": """ - Lists FinancialAccounts in this compartment. + Lists FinancialAccounts in this account. """ return cast( "ListObject[FinancialAccount]", diff --git a/stripe/v2/money_management/_financial_address.py b/stripe/v2/money_management/_financial_address.py index 7d931dbe4..a634dff88 100644 --- a/stripe/v2/money_management/_financial_address.py +++ b/stripe/v2/money_management/_financial_address.py @@ -78,6 +78,16 @@ class AccountHolderAddress(StripeObject): "account_holder_address": AccountHolderAddress, } + class BreB(StripeObject): + account_holder_name: str + """ + The name of the account holder. + """ + bre_b_key: str + """ + The BRE-B payment key. + """ + class Clabe(StripeObject): account_holder_name: str clabe: str @@ -117,6 +127,34 @@ class Iban(StripeObject): The last four digits of the IBAN. """ + class Nip(StripeObject): + account_holder_name: str + """ + The name of the account holder. + """ + bank_code: str + """ + The NIP bank code. + """ + bank_name: str + """ + The name of the bank. + """ + nuban: str + """ + The NUBAN account number. + """ + + class Pix(StripeObject): + account_holder_name: str + """ + The name of the account holder. + """ + br_code: str + """ + The Pix BR code. + """ + class SortCode(StripeObject): account_holder_name: str """ @@ -147,6 +185,10 @@ class SortCode(StripeObject): """ ABA bank account details (US). """ + bre_b: Optional[BreB] + """ + BRE-B bank account details (Colombia). + """ clabe: Optional[Clabe] country: Optional[str] """ @@ -161,6 +203,14 @@ class SortCode(StripeObject): """ IBAN bank account details. """ + nip: Optional[Nip] + """ + NIP bank account details (Nigeria). + """ + pix: Optional[Pix] + """ + Pix bank account details (Brazil). + """ sort_code: Optional[SortCode] """ Sort code bank account details (UK). @@ -183,16 +233,21 @@ class SortCode(StripeObject): """ _inner_class_types = { "aba": Aba, + "bre_b": BreB, "clabe": Clabe, "cpa": Cpa, "iban": Iban, + "nip": Nip, + "pix": Pix, "sort_code": SortCode, } class CryptoWallet(StripeObject): class SupportedNetworkDetails(StripeObject): supported_token_currencies: List[ - Union[Literal["btc", "eth", "sol", "usdc", "usdt"], str] + Union[ + Literal["btc", "eth", "ousd", "sol", "usdc", "usdt"], str + ] ] """ The token currencies supported on this network. diff --git a/stripe/v2/money_management/_received_credit.py b/stripe/v2/money_management/_received_credit.py index 3c8a8db97..cf6c90b42 100644 --- a/stripe/v2/money_management/_received_credit.py +++ b/stripe/v2/money_management/_received_credit.py @@ -216,6 +216,20 @@ class Aba(StripeObject): The routing number of the account that originated the transfer. """ + class BreB(StripeObject): + account_holder_name: Optional[str] + """ + The name of the account holder that sent the payment. + """ + last4: Optional[str] + """ + The last 4 digits of the account number that originated the transfer. + """ + network: Union[Literal["bre_b"], str] + """ + Open Enum. The money transmission network used to send funds for this ReceivedCredit. + """ + class Clabe(StripeObject): account_holder_name: Optional[str] """ @@ -286,6 +300,46 @@ class Iban(StripeObject): Open Enum. The money transmission network used to send funds for this ReceivedCredit. """ + class Nip(StripeObject): + account_holder_name: Optional[str] + """ + The name of the account holder that sent the payment. + """ + bank_code: Optional[str] + """ + The Nigerian bank code of the bank that originated the transfer. + """ + bank_name: Optional[str] + """ + The name of the bank that originated the transfer. + """ + last4: Optional[str] + """ + The last 4 digits of the account number that originated the transfer. + """ + network: Union[Literal["nip"], str] + """ + Open Enum. The money transmission network used to send funds for this ReceivedCredit. + """ + + class Pix(StripeObject): + account_holder_name: Optional[str] + """ + The name of the account holder that sent the payment. + """ + bank_name: Optional[str] + """ + The bank name the transfer was received from. + """ + br_code: Optional[str] + """ + The Pix BR code of the account that originated the transfer. + """ + network: Union[Literal["pix"], str] + """ + Open Enum. The money transmission network used to send funds for this ReceivedCredit. + """ + class SortCode(StripeObject): account_holder_name: Optional[str] """ @@ -316,6 +370,10 @@ class SortCode(StripeObject): """ Hash containing the transaction bank details. Present if `type` field value is `aba`. """ + bre_b: Optional[BreB] + """ + Hash containing the transaction bank details. Present if `type` field value is `bre_b`. + """ clabe: Optional[Clabe] """ Hash containing the transaction bank details. Present if `type` field value is `clabe`. @@ -328,21 +386,42 @@ class SortCode(StripeObject): """ Hash containing the transaction bank details. Present if `type` field value is `iban`. """ + nip: Optional[Nip] + """ + Hash containing the transaction bank details. Present if `type` field value is `nip`. + """ + pix: Optional[Pix] + """ + Hash containing the transaction bank details. Present if `type` field value is `pix`. + """ sort_code: Optional[SortCode] """ Hash containing the transaction bank details. Present if `type` field value is `sort_code`. """ type: Union[ - Literal["aba", "clabe", "cpa", "iban", "sort_code"], str + Literal[ + "aba", + "bre_b", + "clabe", + "cpa", + "iban", + "nip", + "pix", + "sort_code", + ], + str, ] """ Open Enum. The type of bank transfer that originated this ReceivedCredit. """ _inner_class_types = { "aba": Aba, + "bre_b": BreB, "clabe": Clabe, "cpa": Cpa, "iban": Iban, + "nip": Nip, + "pix": Pix, "sort_code": SortCode, } diff --git a/stripe/v2/payments/_off_session_payment.py b/stripe/v2/payments/_off_session_payment.py index 6e953052f..1000cc73e 100644 --- a/stripe/v2/payments/_off_session_payment.py +++ b/stripe/v2/payments/_off_session_payment.py @@ -124,16 +124,6 @@ class Tax(StripeObject): "tax": Tax, } - class Capture(StripeObject): - capture_before: Optional[str] - """ - The timestamp when this payment is no longer eligible to be captured. - """ - capture_method: Union[Literal["automatic", "manual"], str] - """ - The method to use to capture the payment. - """ - class LatestPaymentAttemptRecordDetails(StripeObject): class FailureDetails(StripeObject): code: Optional[str] @@ -251,10 +241,6 @@ class TransferData(StripeObject): where funds from the payment are transferred to after payment success. """ - amount_capturable: Optional[Amount] - """ - The amount available to be captured. - """ amount_details: Optional[AmountDetails] """ Provides industry-specific information about the amount. @@ -275,10 +261,6 @@ class TransferData(StripeObject): """ The frequency of the underlying payment. """ - capture: Optional[Capture] - """ - Details about the capture configuration for the OffSessionPayment. - """ created: str """ Creation time of the OffSessionPayment. Represented as a RFC 3339 date & time UTC @@ -408,7 +390,6 @@ class TransferData(StripeObject): """ _inner_class_types = { "amount_details": AmountDetails, - "capture": Capture, "latest_payment_attempt_record_details": LatestPaymentAttemptRecordDetails, "payment_details": PaymentDetails, "payments_orchestration": PaymentsOrchestration, diff --git a/stripe/v2/payments/_off_session_payment_service.py b/stripe/v2/payments/_off_session_payment_service.py index 222ff732b..7bd9d94c7 100644 --- a/stripe/v2/payments/_off_session_payment_service.py +++ b/stripe/v2/payments/_off_session_payment_service.py @@ -10,9 +10,6 @@ from stripe.params.v2.payments._off_session_payment_cancel_params import ( OffSessionPaymentCancelParams, ) - from stripe.params.v2.payments._off_session_payment_capture_params import ( - OffSessionPaymentCaptureParams, - ) from stripe.params.v2.payments._off_session_payment_create_params import ( OffSessionPaymentCreateParams, ) @@ -201,52 +198,6 @@ async def cancel_async( ), ) - def capture( - self, - id: str, - /, - params: Optional["OffSessionPaymentCaptureParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> "OffSessionPayment": - """ - Deprecated. Captures an OffSessionPayment that has previously been created. - """ - return cast( - "OffSessionPayment", - self._request( - "post", - "/v2/payments/off_session_payments/{id}/capture".format( - id=sanitize_id(id), - ), - base_address="api", - params=params, - options=options, - ), - ) - - async def capture_async( - self, - id: str, - /, - params: Optional["OffSessionPaymentCaptureParams"] = None, - options: Optional["RequestOptions"] = None, - ) -> "OffSessionPayment": - """ - Deprecated. Captures an OffSessionPayment that has previously been created. - """ - return cast( - "OffSessionPayment", - await self._request_async( - "post", - "/v2/payments/off_session_payments/{id}/capture".format( - id=sanitize_id(id), - ), - base_address="api", - params=params, - options=options, - ), - ) - def pause( self, id: str, diff --git a/stripe/v2/signals/_account_activity.py b/stripe/v2/signals/_account_activity.py index 6edeca2f1..245bb4b0a 100644 --- a/stripe/v2/signals/_account_activity.py +++ b/stripe/v2/signals/_account_activity.py @@ -50,6 +50,10 @@ class BusinessDetails(StripeObject): """ _inner_class_types = {"business_details": BusinessDetails} + contact_email: Optional[str] + """ + The account's contact email. + """ defaults: Optional[Defaults] """ Default account settings. @@ -66,7 +70,7 @@ class BusinessDetails(StripeObject): """ customer: Optional[str] """ - The v1 customer ID of the account, for users not yet migrated to v2/accounts. + The v1 customer ID of the account, for users not yet migrated to v2 accounts. """ data: Optional[Data] """ diff --git a/stripe/v2/signals/_account_evaluation.py b/stripe/v2/signals/_account_evaluation.py index 6ba2fd734..00042c3a6 100644 --- a/stripe/v2/signals/_account_evaluation.py +++ b/stripe/v2/signals/_account_evaluation.py @@ -57,6 +57,10 @@ class BusinessDetails(StripeObject): """ _inner_class_types = {"business_details": BusinessDetails} + contact_email: Optional[str] + """ + The account's contact email. + """ defaults: Optional[Defaults] """ Default account settings. @@ -73,7 +77,7 @@ class BusinessDetails(StripeObject): """ customer: Optional[str] """ - The v1 customer ID of the account, for users not yet migrated to v2/accounts. + The v1 customer ID of the account, for users not yet migrated to v2 accounts. """ data: Optional[Data] """ @@ -123,6 +127,27 @@ class UserAccountSharing(StripeObject): """ _field_encodings = {"score": "decimal_string"} + class UserMerchantFit(StripeObject): + evaluated_at: Optional[str] + """ + Timestamp at which the signal was evaluated. + """ + fit_level: Union[ + Literal["standard", "strong", "unknown", "very_strong"], str + ] + """ + Categorical assessment of the user-merchant fit. + """ + score: Optional[Decimal] + """ + The specific fit score for the user, between 0.00 and 100.00. Absent when fit_level is unknown. + """ + signal: Optional[str] + """ + The account signal ID containing the full user-merchant fit signal result. + """ + _field_encodings = {"score": "decimal_string"} + class UserMultiAccounting(StripeObject): evaluated_at: Optional[str] """ @@ -152,6 +177,10 @@ class UserMultiAccounting(StripeObject): """ User account-sharing result for the evaluation, when available. """ + user_merchant_fit: Optional[UserMerchantFit] + """ + User-merchant fit result for the evaluation, when available. + """ user_multi_accounting: Optional[UserMultiAccounting] """ User multi-accounting result for the evaluation, when available. @@ -159,6 +188,7 @@ class UserMultiAccounting(StripeObject): _inner_class_types = { "fraudulent_website": FraudulentWebsite, "user_account_sharing": UserAccountSharing, + "user_merchant_fit": UserMerchantFit, "user_multi_accounting": UserMultiAccounting, } @@ -195,6 +225,7 @@ class UserMultiAccounting(StripeObject): Literal[ "fraudulent_website", "user_account_sharing", + "user_merchant_fit", "user_multi_accounting", ], str, @@ -208,6 +239,7 @@ class UserMultiAccounting(StripeObject): Literal[ "fraudulent_website", "user_account_sharing", + "user_merchant_fit", "user_multi_accounting", ], str, diff --git a/stripe/v2/signals/_account_signal.py b/stripe/v2/signals/_account_signal.py index 15d4037bf..8dfd5de6f 100644 --- a/stripe/v2/signals/_account_signal.py +++ b/stripe/v2/signals/_account_signal.py @@ -210,6 +210,19 @@ class UserAccountSharing(StripeObject): """ _field_encodings = {"score": "decimal_string"} + class UserMerchantFit(StripeObject): + fit_level: Union[ + Literal["standard", "strong", "unknown", "very_strong"], str + ] + """ + Categorical assessment of the user-merchant fit. + """ + score: Optional[Decimal] + """ + The specific fit score for the user, between 0.00 and 100.00. Absent when fit_level is unknown. + """ + _field_encodings = {"score": "decimal_string"} + class UserMultiAccounting(StripeObject): risk_level: Literal["elevated", "highest", "low", "normal", "unknown"] """ @@ -269,6 +282,7 @@ class UserMultiAccounting(StripeObject): "merchant_delinquency", "payment_delinquency_exposure", "user_account_sharing", + "user_merchant_fit", "user_multi_accounting", ], str, @@ -280,6 +294,10 @@ class UserMultiAccounting(StripeObject): """ Data for the user account-sharing signal. Present only when type is user_account_sharing. """ + user_merchant_fit: Optional[UserMerchantFit] + """ + Data for the user-merchant fit signal. Present only when type is user_merchant_fit. + """ user_multi_accounting: Optional[UserMultiAccounting] """ Data for the user multi-accounting signal. Present only when type is user_multi_accounting. @@ -291,5 +309,6 @@ class UserMultiAccounting(StripeObject): "merchant_delinquency": MerchantDelinquency, "payment_delinquency_exposure": PaymentDelinquencyExposure, "user_account_sharing": UserAccountSharing, + "user_merchant_fit": UserMerchantFit, "user_multi_accounting": UserMultiAccounting, } diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index 3612ed179..4db089549 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -46371,7 +46371,7 @@ def test_v2_core_account_evaluation_post_service( client.v2.core.account_evaluations.create( { - "signals": ["fraudulent_website"], + "signals": ["user_multi_accounting"], } ) http_client_mock.assert_requested( @@ -46379,7 +46379,7 @@ def test_v2_core_account_evaluation_post_service( path="/v2/core/account_evaluations", query_string="", api_base="https://api.stripe.com", - post_data='{"signals":["fraudulent_website"]}', + post_data='{"signals":["user_multi_accounting"]}', is_json=True, ) @@ -47176,30 +47176,6 @@ def test_v2_core_vault_gb_bank_account_get_2_service( 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", @@ -47220,30 +47196,6 @@ def test_v2_core_vault_gb_bank_account_post_3_service( 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_network_token_post_service( self, http_client_mock: HTTPClientMock ) -> None: @@ -49658,14 +49610,14 @@ def test_v2_money_management_test_helpers_financial_address_post_service( client.v2.money_management.test_helpers.financial_addresses.credit( "id_123", - {"amount": {"currency": "USD", "value": 96}, "network": "swift"}, + {"amount": {"currency": "USD", "value": 96}, "network": "ach"}, ) http_client_mock.assert_requested( "post", path="/v2/money_management/test_helpers/financial_addresses/id_123/credit", query_string="", api_base="https://api.stripe.com", - post_data='{"amount":{"currency":"USD","value":96},"network":"swift"}', + post_data='{"amount":{"currency":"USD","value":96},"network":"ach"}', is_json=True, ) @@ -50086,28 +50038,6 @@ def test_v2_payments_off_session_payment_post_2_service( def test_v2_payments_off_session_payment_post_3_service( self, http_client_mock: HTTPClientMock - ) -> None: - http_client_mock.stub_request( - "post", - "/v2/payments/off_session_payments/id_123/capture", - ) - client = StripeClient( - "sk_test_123", - http_client=http_client_mock.get_mock_http_client(), - ) - - client.v2.payments.off_session_payments.capture("id_123") - http_client_mock.assert_requested( - "post", - path="/v2/payments/off_session_payments/id_123/capture", - query_string="", - api_base="https://api.stripe.com", - post_data="{}", - is_json=True, - ) - - def test_v2_payments_off_session_payment_post_4_service( - self, http_client_mock: HTTPClientMock ) -> None: http_client_mock.stub_request( "post", @@ -50128,7 +50058,7 @@ def test_v2_payments_off_session_payment_post_4_service( is_json=True, ) - def test_v2_payments_off_session_payment_post_5_service( + def test_v2_payments_off_session_payment_post_4_service( self, http_client_mock: HTTPClientMock ) -> None: http_client_mock.stub_request( @@ -51124,6 +51054,7 @@ def test_v2_signals_account_evaluation_post_service( "account": "account", "customer": "customer", "data": { + "contact_email": "contact_email", "defaults": { "profile": { "business_url": "business_url", @@ -51138,7 +51069,7 @@ def test_v2_signals_account_evaluation_post_service( }, }, }, - "requested_signals": ["user_multi_accounting"], + "requested_signals": ["user_merchant_fit"], } ) http_client_mock.assert_requested( @@ -51146,7 +51077,7 @@ def test_v2_signals_account_evaluation_post_service( path="/v2/signals/account_evaluations", query_string="", api_base="https://api.stripe.com", - post_data='{"account_details":{"account":"account","customer":"customer","data":{"defaults":{"profile":{"business_url":"business_url","doing_business_as":"doing_business_as","product_description":"product_description"}},"identity":{"business_details":{"registered_name":"registered_name"}}}},"requested_signals":["user_multi_accounting"]}', + post_data='{"account_details":{"account":"account","customer":"customer","data":{"contact_email":"contact_email","defaults":{"profile":{"business_url":"business_url","doing_business_as":"doing_business_as","product_description":"product_description"}},"identity":{"business_details":{"registered_name":"registered_name"}}}},"requested_signals":["user_merchant_fit"]}', is_json=True, ) @@ -51176,7 +51107,7 @@ def test_v2_signals_account_signal_get_service( http_client_mock.stub_request( "get", "/v2/signals/account_signals", - "type[0]=fraudulent_merchant", + "type[0]=payment_delinquency_exposure", ) client = StripeClient( "sk_test_123", @@ -51185,13 +51116,13 @@ def test_v2_signals_account_signal_get_service( client.v2.signals.account_signals.list( { - "type": ["fraudulent_merchant"], + "type": ["payment_delinquency_exposure"], } ) http_client_mock.assert_requested( "get", path="/v2/signals/account_signals", - query_string="type[0]=fraudulent_merchant", + query_string="type[0]=payment_delinquency_exposure", api_base="https://api.stripe.com", )