Skip to content
Open
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 @@
5a9ac40aabbc00a67ae2a186633fc8dd64b25c56
441c0fcde75bcbf836f1a1810d5b9cfe8e8a7da4
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2103
v2117
12 changes: 12 additions & 0 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ class SupportAddress(StripeObject):
"""
Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
"""
specified_commercial_transactions_act_url: Optional[str]
"""
A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan.
"""
support_address: Optional[SupportAddress]
"""
A publicly available mailing address for sending support issues to.
Expand Down Expand Up @@ -1487,6 +1491,12 @@ class Schedule(StripeObject):
"""
_inner_class_types = {"schedule": Schedule}

class PaypayPayments(StripeObject):
goods_type: Optional[Literal["digital_content", "other"]]
"""
Whether your business sells digital content or not.
"""

class SepaDebitPayments(StripeObject):
creditor_id: Optional[str]
"""
Expand Down Expand Up @@ -1527,6 +1537,7 @@ class TosAcceptance(StripeObject):
invoices: Optional[Invoices]
payments: Payments
payouts: Optional[Payouts]
paypay_payments: Optional[PaypayPayments]
sepa_debit_payments: Optional[SepaDebitPayments]
tax_forms: Optional[TaxForms]
treasury: Optional[Treasury]
Expand All @@ -1541,6 +1552,7 @@ class TosAcceptance(StripeObject):
"invoices": Invoices,
"payments": Payments,
"payouts": Payouts,
"paypay_payments": PaypayPayments,
"sepa_debit_payments": SepaDebitPayments,
"tax_forms": TaxForms,
"treasury": Treasury,
Expand Down
2 changes: 1 addition & 1 deletion stripe/_api_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
CURRENT = "2025-10-29.preview"
CURRENT = "2025-11-17.preview"
4 changes: 2 additions & 2 deletions stripe/_bank_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,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 @@ -1273,6 +1273,7 @@ class Ideal(StripeObject):
"asn_bank",
"bunq",
"buut",
"finom",
"handelsbanken",
"ing",
"knab",
Expand All @@ -1289,7 +1290,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 @@ -1298,6 +1299,7 @@ class Ideal(StripeObject):
"BITSNL2A",
"BUNQNL2A",
"BUUTNL2A",
"FNOMNL22",
"FVLBNL22",
"HANDNL2A",
"INGBNL2A",
Expand Down Expand Up @@ -1328,6 +1330,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 @@ -957,6 +957,7 @@ class Ideal(StripeObject):
"asn_bank",
"bunq",
"buut",
"finom",
"handelsbanken",
"ing",
"knab",
Expand All @@ -973,7 +974,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 @@ -982,6 +983,7 @@ class Ideal(StripeObject):
"BITSNL2A",
"BUNQNL2A",
"BUUTNL2A",
"FNOMNL22",
"FVLBNL22",
"HANDNL2A",
"INGBNL2A",
Expand Down Expand Up @@ -1423,6 +1425,7 @@ class Blocked(StripeObject):
"bank_account_restricted",
"bank_account_unusable",
"debit_not_authorized",
"tokenized_account_number_deactivated",
]
]
"""
Expand Down
3 changes: 3 additions & 0 deletions stripe/_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ class Request(StripeObject):
"billing_portal.session.created",
"capability.updated",
"capital.financing_offer.accepted",
"capital.financing_offer.accepted_other_offer",
"capital.financing_offer.canceled",
"capital.financing_offer.created",
"capital.financing_offer.expired",
Expand Down Expand Up @@ -229,6 +230,7 @@ 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",
Expand All @@ -237,6 +239,7 @@ class Request(StripeObject):
"financial_connections.account.refreshed_inferred_balances",
"financial_connections.account.refreshed_ownership",
"financial_connections.account.refreshed_transactions",
"financial_connections.account.upcoming_account_number_expiry",
"financial_connections.session.updated",
"fx_quote.expired",
"identity.verification_session.canceled",
Expand Down
6 changes: 3 additions & 3 deletions stripe/_mandate.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class Payto(StripeObject):
"""
amount_type: Literal["fixed", "maximum"]
"""
The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
"""
end_date: Optional[str]
"""
Expand All @@ -179,7 +179,7 @@ class Payto(StripeObject):
"weekly",
]
"""
The periodicity at which payments will be collected.
The periodicity at which payments will be collected. Defaults to `adhoc`.
"""
payments_per_period: Optional[int]
"""
Expand All @@ -201,7 +201,7 @@ class Payto(StripeObject):
]
]
"""
The purpose for which payments are made. Defaults to retail.
The purpose for which payments are made. Has a default value based on your merchant category code.
"""
start_date: Optional[str]
"""
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 @@ -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. 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 @@ -969,6 +970,7 @@ class Ideal(StripeObject):
"BITSNL2A",
"BUNQNL2A",
"BUUTNL2A",
"FNOMNL22",
"FVLBNL22",
"HANDNL2A",
"INGBNL2A",
Expand Down Expand Up @@ -999,6 +1001,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 @@ -1737,7 +1743,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 @@ -1756,11 +1768,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 @@ -1871,9 +1883,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
6 changes: 3 additions & 3 deletions stripe/_payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2763,7 +2763,7 @@ class MandateOptions(StripeObject):
"""
amount_type: Optional[Literal["fixed", "maximum"]]
"""
The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
"""
end_date: Optional[str]
"""
Expand All @@ -2782,7 +2782,7 @@ class MandateOptions(StripeObject):
]
]
"""
The periodicity at which payments will be collected.
The periodicity at which payments will be collected. Defaults to `adhoc`.
"""
payments_per_period: Optional[int]
"""
Expand All @@ -2804,7 +2804,7 @@ class MandateOptions(StripeObject):
]
]
"""
The purpose for which payments are made. Defaults to retail.
The purpose for which payments are made. Has a default value based on your merchant category code.
"""

mandate_options: Optional[MandateOptions]
Expand Down
5 changes: 4 additions & 1 deletion stripe/_payment_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,7 @@ class Ideal(StripeObject):
"asn_bank",
"bunq",
"buut",
"finom",
"handelsbanken",
"ing",
"knab",
Expand All @@ -943,7 +944,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 @@ -952,6 +953,7 @@ class Ideal(StripeObject):
"BITSNL2A",
"BUNQNL2A",
"BUUTNL2A",
"FNOMNL22",
"FVLBNL22",
"HANDNL2A",
"INGBNL2A",
Expand Down Expand Up @@ -1399,6 +1401,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 @@ -960,6 +960,7 @@ class Ideal(StripeObject):
"asn_bank",
"bunq",
"buut",
"finom",
"handelsbanken",
"ing",
"knab",
Expand All @@ -976,7 +977,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 @@ -985,6 +986,7 @@ class Ideal(StripeObject):
"BITSNL2A",
"BUNQNL2A",
"BUUTNL2A",
"FNOMNL22",
"FVLBNL22",
"HANDNL2A",
"INGBNL2A",
Expand Down Expand Up @@ -1015,6 +1017,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 @@ -1753,7 +1759,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 @@ -1772,11 +1784,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 @@ -1887,9 +1899,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