Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .hark/changes/2026-10-14_stripe-openapi_1c37d4a7.change.md
Original file line number Diff line number Diff line change
@@ -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`
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
43649cb7390f9257ffa04232dc7ed9ea8359c77f
ee856c792d5b7bc7c9a55588bd92531c2774e744
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2544
v2562
10 changes: 5 additions & 5 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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,
Expand All @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion stripe/_api_version.py
Original file line number Diff line number Diff line change
@@ -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 = ""
65 changes: 65 additions & 0 deletions stripe/_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
}
1 change: 1 addition & 0 deletions stripe/_balance_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class FeeDetail(StripeObject):
"payments",
"refund_and_dispute_prefunding",
"risk_reserved",
"settlement_reserved",
"transit",
],
str,
Expand Down
3 changes: 3 additions & 0 deletions stripe/_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
20 changes: 20 additions & 0 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,9 @@ class Wallet(StripeObject):
"wallet": Wallet,
}

class Carecredit(StripeObject):
pass

class Cashapp(StripeObject):
buyer_id: Optional[str]
"""
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -2186,6 +2192,9 @@ class Promptpay(StripeObject):
class Qris(StripeObject):
pass

class RakutenPay(StripeObject):
pass

class Rechnung(StripeObject):
payment_portal_url: Optional[str]
"""
Expand Down Expand Up @@ -2310,6 +2319,9 @@ class Sequra(StripeObject):
The SeQura transaction ID associated with this payment.
"""

class Sezzle(StripeObject):
pass

class Shopeepay(StripeObject):
pass

Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand All @@ -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.
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -2606,6 +2624,7 @@ class Zip(StripeObject):
"pix": Pix,
"promptpay": Promptpay,
"qris": Qris,
"rakuten_pay": RakutenPay,
"rechnung": Rechnung,
"revolut_pay": RevolutPay,
"samsung_pay": SamsungPay,
Expand All @@ -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,
Expand Down
Loading
Loading