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
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6d15a7f20cb77c2c22091a30e499cb89d7e3248c
f587035a62fe3323ed42077a0526158e57a8260b
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2111
v2121
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 = "2025-10-29.clover"
CURRENT = "2025-11-17.clover"
CURRENT_MAJOR = "clover"
4 changes: 2 additions & 2 deletions stripe/_bank_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ class Error(StripeObject):
"""
status: str
"""
For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a payout sent to this bank account fails, we'll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated.
For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, `tokenized_account_number_deactivated` or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If the status is `tokenized_account_number_deactivated`, the account utilizes a tokenized account number which has been deactivated due to expiration or revocation. This account will need to be reverified to continue using it for money movement. If a payout sent to this bank account fails, we'll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated.

For external accounts, possible values are `new`, `errored` and `verification_failed`. If a payout fails, the status is set to `errored` and scheduled payouts are stopped until account details are updated. In the US and India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply.
For external accounts, possible values are `new`, `errored`, `verification_failed`, and `tokenized_account_number_deactivated`. If a payout fails, the status is set to `errored` and scheduled payouts are stopped until account details are updated. In the US and India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply.
"""

@classmethod
Expand Down
8 changes: 7 additions & 1 deletion stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,7 @@ class Ideal(StripeObject):
"asn_bank",
"bunq",
"buut",
"finom",
"handelsbanken",
"ing",
"knab",
Expand All @@ -1235,7 +1236,7 @@ class Ideal(StripeObject):
]
]
"""
The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
"""
bic: Optional[
Literal[
Expand All @@ -1244,6 +1245,7 @@ class Ideal(StripeObject):
"BITSNL2A",
"BUNQNL2A",
"BUUTNL2A",
"FNOMNL22",
"FVLBNL22",
"HANDNL2A",
"INGBNL2A",
Expand Down Expand Up @@ -1274,6 +1276,10 @@ class Ideal(StripeObject):
"""
Last four characters of the IBAN.
"""
transaction_id: Optional[str]
"""
Unique transaction ID generated by iDEAL.
"""
verified_name: Optional[str]
"""
Owner's verified full name. Values are verified or provided by iDEAL directly
Expand Down
5 changes: 4 additions & 1 deletion stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,7 @@ class Ideal(StripeObject):
"asn_bank",
"bunq",
"buut",
"finom",
"handelsbanken",
"ing",
"knab",
Expand All @@ -960,7 +961,7 @@ class Ideal(StripeObject):
]
]
"""
The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
"""
bic: Optional[
Literal[
Expand All @@ -969,6 +970,7 @@ class Ideal(StripeObject):
"BITSNL2A",
"BUNQNL2A",
"BUUTNL2A",
"FNOMNL22",
"FVLBNL22",
"HANDNL2A",
"INGBNL2A",
Expand Down Expand Up @@ -1350,6 +1352,7 @@ class Blocked(StripeObject):
"bank_account_restricted",
"bank_account_unusable",
"debit_not_authorized",
"tokenized_account_number_deactivated",
]
]
"""
Expand Down
2 changes: 2 additions & 0 deletions stripe/_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,15 @@ class Request(StripeObject):
"customer_cash_balance_transaction.created",
"entitlements.active_entitlement_summary.updated",
"file.created",
"financial_connections.account.account_numbers_updated",
"financial_connections.account.created",
"financial_connections.account.deactivated",
"financial_connections.account.disconnected",
"financial_connections.account.reactivated",
"financial_connections.account.refreshed_balance",
"financial_connections.account.refreshed_ownership",
"financial_connections.account.refreshed_transactions",
"financial_connections.account.upcoming_account_number_expiry",
"identity.verification_session.canceled",
"identity.verification_session.created",
"identity.verification_session.processing",
Expand Down
5 changes: 5 additions & 0 deletions stripe/_object_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"stripe._subscription_schedule",
"SubscriptionSchedule",
),
"tax.association": ("stripe.tax._association", "Association"),
"tax.calculation": ("stripe.tax._calculation", "Calculation"),
"tax.calculation_line_item": (
"stripe.tax._calculation_line_item",
Expand Down Expand Up @@ -260,6 +261,10 @@
"ConnectionToken",
),
"terminal.location": ("stripe.terminal._location", "Location"),
"terminal.onboarding_link": (
"stripe.terminal._onboarding_link",
"OnboardingLink",
),
"terminal.reader": ("stripe.terminal._reader", "Reader"),
"test_helpers.test_clock": (
"stripe.test_helpers._test_clock",
Expand Down
21 changes: 15 additions & 6 deletions stripe/_payment_attempt_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ class Ideal(StripeObject):
"asn_bank",
"bunq",
"buut",
"finom",
"handelsbanken",
"ing",
"knab",
Expand All @@ -931,7 +932,7 @@ class Ideal(StripeObject):
]
]
"""
The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
"""
bic: Optional[
Literal[
Expand All @@ -940,6 +941,7 @@ class Ideal(StripeObject):
"BITSNL2A",
"BUNQNL2A",
"BUUTNL2A",
"FNOMNL22",
"FVLBNL22",
"HANDNL2A",
"INGBNL2A",
Expand Down Expand Up @@ -970,6 +972,10 @@ class Ideal(StripeObject):
"""
Last four characters of the IBAN.
"""
transaction_id: Optional[str]
"""
Unique transaction ID generated by iDEAL.
"""
verified_name: Optional[str]
"""
Owner's verified full name. Values are verified or provided by iDEAL directly
Expand Down Expand Up @@ -1579,7 +1585,13 @@ class Twint(StripeObject):

class UsBankAccount(StripeObject):
account_holder_type: Optional[Literal["company", "individual"]]
"""
The type of entity that holds the account. This can be either 'individual' or 'company'.
"""
account_type: Optional[Literal["checking", "savings"]]
"""
The type of the bank account. This can be either 'checking' or 'savings'.
"""
bank_name: Optional[str]
"""
Name of the bank associated with the bank account.
Expand All @@ -1598,11 +1610,11 @@ class UsBankAccount(StripeObject):
"""
payment_reference: Optional[str]
"""
Reference number to locate ACH payments with customer's bank.
The ACH payment reference for this transaction.
"""
routing_number: Optional[str]
"""
Routing number of the bank account.
The routing number for the bank account.
"""

class Wechat(StripeObject):
Expand Down Expand Up @@ -1705,9 +1717,6 @@ class Zip(StripeObject):
It contains information specific to the payment method.
"""
us_bank_account: Optional[UsBankAccount]
"""
Details of the US Bank Account used for this payment attempt.
"""
wechat: Optional[Wechat]
wechat_pay: Optional[WechatPay]
zip: Optional[Zip]
Expand Down
16 changes: 16 additions & 0 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,20 @@ class AutomaticPaymentMethods(StripeObject):
Automatically calculates compatible payment methods
"""

class Hooks(StripeObject):
class Inputs(StripeObject):
class Tax(StripeObject):
calculation: str
"""
The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
"""

tax: Optional[Tax]
_inner_class_types = {"tax": Tax}

inputs: Optional[Inputs]
_inner_class_types = {"inputs": Inputs}

class LastPaymentError(StripeObject):
advice_code: Optional[str]
"""
Expand Down Expand Up @@ -2828,6 +2842,7 @@ class TransferData(StripeObject):
"""
The list of payment method types to exclude from use with this payment.
"""
hooks: Optional[Hooks]
id: str
"""
Unique identifier for the object.
Expand Down Expand Up @@ -4350,6 +4365,7 @@ async def list_amount_details_line_items_async(
_inner_class_types = {
"amount_details": AmountDetails,
"automatic_payment_methods": AutomaticPaymentMethods,
"hooks": Hooks,
"last_payment_error": LastPaymentError,
"next_action": NextAction,
"payment_details": PaymentDetails,
Expand Down
5 changes: 4 additions & 1 deletion stripe/_payment_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,7 @@ class Ideal(StripeObject):
"asn_bank",
"bunq",
"buut",
"finom",
"handelsbanken",
"ing",
"knab",
Expand All @@ -929,7 +930,7 @@ class Ideal(StripeObject):
]
]
"""
The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
"""
bic: Optional[
Literal[
Expand All @@ -938,6 +939,7 @@ class Ideal(StripeObject):
"BITSNL2A",
"BUNQNL2A",
"BUUTNL2A",
"FNOMNL22",
"FVLBNL22",
"HANDNL2A",
"INGBNL2A",
Expand Down Expand Up @@ -1325,6 +1327,7 @@ class Blocked(StripeObject):
"bank_account_restricted",
"bank_account_unusable",
"debit_not_authorized",
"tokenized_account_number_deactivated",
]
]
"""
Expand Down
21 changes: 15 additions & 6 deletions stripe/_payment_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ class Ideal(StripeObject):
"asn_bank",
"bunq",
"buut",
"finom",
"handelsbanken",
"ing",
"knab",
Expand All @@ -947,7 +948,7 @@ class Ideal(StripeObject):
]
]
"""
The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
"""
bic: Optional[
Literal[
Expand All @@ -956,6 +957,7 @@ class Ideal(StripeObject):
"BITSNL2A",
"BUNQNL2A",
"BUUTNL2A",
"FNOMNL22",
"FVLBNL22",
"HANDNL2A",
"INGBNL2A",
Expand Down Expand Up @@ -986,6 +988,10 @@ class Ideal(StripeObject):
"""
Last four characters of the IBAN.
"""
transaction_id: Optional[str]
"""
Unique transaction ID generated by iDEAL.
"""
verified_name: Optional[str]
"""
Owner's verified full name. Values are verified or provided by iDEAL directly
Expand Down Expand Up @@ -1595,7 +1601,13 @@ class Twint(StripeObject):

class UsBankAccount(StripeObject):
account_holder_type: Optional[Literal["company", "individual"]]
"""
The type of entity that holds the account. This can be either 'individual' or 'company'.
"""
account_type: Optional[Literal["checking", "savings"]]
"""
The type of the bank account. This can be either 'checking' or 'savings'.
"""
bank_name: Optional[str]
"""
Name of the bank associated with the bank account.
Expand All @@ -1614,11 +1626,11 @@ class UsBankAccount(StripeObject):
"""
payment_reference: Optional[str]
"""
Reference number to locate ACH payments with customer's bank.
The ACH payment reference for this transaction.
"""
routing_number: Optional[str]
"""
Routing number of the bank account.
The routing number for the bank account.
"""

class Wechat(StripeObject):
Expand Down Expand Up @@ -1721,9 +1733,6 @@ class Zip(StripeObject):
It contains information specific to the payment method.
"""
us_bank_account: Optional[UsBankAccount]
"""
Details of the US Bank Account used for this payment attempt.
"""
wechat: Optional[Wechat]
wechat_pay: Optional[WechatPay]
zip: Optional[Zip]
Expand Down
Loading
Loading