Skip to content

Commit a7fd0d1

Browse files
Update generated code (#1667)
* Update generated code for v2113 and * Update generated code for v2114 and * Update generated code for v2117 and * Update generated code for v2119 and * Update generated code for v2121 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <[email protected]>
1 parent cac5dc9 commit a7fd0d1

File tree

56 files changed

+950
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+950
-30
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6d15a7f20cb77c2c22091a30e499cb89d7e3248c
1+
f587035a62fe3323ed42077a0526158e57a8260b

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2111
1+
v2121

stripe/_api_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
22
# File generated from our OpenAPI spec
33
class _ApiVersion:
4-
CURRENT = "2025-10-29.clover"
4+
CURRENT = "2025-11-17.clover"
55
CURRENT_MAJOR = "clover"

stripe/_bank_account.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@ class Error(StripeObject):
376376
"""
377377
status: str
378378
"""
379-
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.
379+
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.
380380
381-
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.
381+
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.
382382
"""
383383

384384
@classmethod

stripe/_charge.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,7 @@ class Ideal(StripeObject):
12191219
"asn_bank",
12201220
"bunq",
12211221
"buut",
1222+
"finom",
12221223
"handelsbanken",
12231224
"ing",
12241225
"knab",
@@ -1235,7 +1236,7 @@ class Ideal(StripeObject):
12351236
]
12361237
]
12371238
"""
1238-
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`.
1239+
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`.
12391240
"""
12401241
bic: Optional[
12411242
Literal[
@@ -1244,6 +1245,7 @@ class Ideal(StripeObject):
12441245
"BITSNL2A",
12451246
"BUNQNL2A",
12461247
"BUUTNL2A",
1248+
"FNOMNL22",
12471249
"FVLBNL22",
12481250
"HANDNL2A",
12491251
"INGBNL2A",
@@ -1274,6 +1276,10 @@ class Ideal(StripeObject):
12741276
"""
12751277
Last four characters of the IBAN.
12761278
"""
1279+
transaction_id: Optional[str]
1280+
"""
1281+
Unique transaction ID generated by iDEAL.
1282+
"""
12771283
verified_name: Optional[str]
12781284
"""
12791285
Owner's verified full name. Values are verified or provided by iDEAL directly

stripe/_confirmation_token.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,7 @@ class Ideal(StripeObject):
944944
"asn_bank",
945945
"bunq",
946946
"buut",
947+
"finom",
947948
"handelsbanken",
948949
"ing",
949950
"knab",
@@ -960,7 +961,7 @@ class Ideal(StripeObject):
960961
]
961962
]
962963
"""
963-
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`.
964+
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`.
964965
"""
965966
bic: Optional[
966967
Literal[
@@ -969,6 +970,7 @@ class Ideal(StripeObject):
969970
"BITSNL2A",
970971
"BUNQNL2A",
971972
"BUUTNL2A",
973+
"FNOMNL22",
972974
"FVLBNL22",
973975
"HANDNL2A",
974976
"INGBNL2A",
@@ -1350,6 +1352,7 @@ class Blocked(StripeObject):
13501352
"bank_account_restricted",
13511353
"bank_account_unusable",
13521354
"debit_not_authorized",
1355+
"tokenized_account_number_deactivated",
13531356
]
13541357
]
13551358
"""

stripe/_event.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,15 @@ class Request(StripeObject):
165165
"customer_cash_balance_transaction.created",
166166
"entitlements.active_entitlement_summary.updated",
167167
"file.created",
168+
"financial_connections.account.account_numbers_updated",
168169
"financial_connections.account.created",
169170
"financial_connections.account.deactivated",
170171
"financial_connections.account.disconnected",
171172
"financial_connections.account.reactivated",
172173
"financial_connections.account.refreshed_balance",
173174
"financial_connections.account.refreshed_ownership",
174175
"financial_connections.account.refreshed_transactions",
176+
"financial_connections.account.upcoming_account_number_expiry",
175177
"identity.verification_session.canceled",
176178
"identity.verification_session.created",
177179
"identity.verification_session.processing",

stripe/_object_classes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@
232232
"stripe._subscription_schedule",
233233
"SubscriptionSchedule",
234234
),
235+
"tax.association": ("stripe.tax._association", "Association"),
235236
"tax.calculation": ("stripe.tax._calculation", "Calculation"),
236237
"tax.calculation_line_item": (
237238
"stripe.tax._calculation_line_item",
@@ -260,6 +261,10 @@
260261
"ConnectionToken",
261262
),
262263
"terminal.location": ("stripe.terminal._location", "Location"),
264+
"terminal.onboarding_link": (
265+
"stripe.terminal._onboarding_link",
266+
"OnboardingLink",
267+
),
263268
"terminal.reader": ("stripe.terminal._reader", "Reader"),
264269
"test_helpers.test_clock": (
265270
"stripe.test_helpers._test_clock",

stripe/_payment_attempt_record.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,7 @@ class Ideal(StripeObject):
915915
"asn_bank",
916916
"bunq",
917917
"buut",
918+
"finom",
918919
"handelsbanken",
919920
"ing",
920921
"knab",
@@ -931,7 +932,7 @@ class Ideal(StripeObject):
931932
]
932933
]
933934
"""
934-
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`.
935+
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`.
935936
"""
936937
bic: Optional[
937938
Literal[
@@ -940,6 +941,7 @@ class Ideal(StripeObject):
940941
"BITSNL2A",
941942
"BUNQNL2A",
942943
"BUUTNL2A",
944+
"FNOMNL22",
943945
"FVLBNL22",
944946
"HANDNL2A",
945947
"INGBNL2A",
@@ -970,6 +972,10 @@ class Ideal(StripeObject):
970972
"""
971973
Last four characters of the IBAN.
972974
"""
975+
transaction_id: Optional[str]
976+
"""
977+
Unique transaction ID generated by iDEAL.
978+
"""
973979
verified_name: Optional[str]
974980
"""
975981
Owner's verified full name. Values are verified or provided by iDEAL directly
@@ -1579,7 +1585,13 @@ class Twint(StripeObject):
15791585

15801586
class UsBankAccount(StripeObject):
15811587
account_holder_type: Optional[Literal["company", "individual"]]
1588+
"""
1589+
The type of entity that holds the account. This can be either 'individual' or 'company'.
1590+
"""
15821591
account_type: Optional[Literal["checking", "savings"]]
1592+
"""
1593+
The type of the bank account. This can be either 'checking' or 'savings'.
1594+
"""
15831595
bank_name: Optional[str]
15841596
"""
15851597
Name of the bank associated with the bank account.
@@ -1598,11 +1610,11 @@ class UsBankAccount(StripeObject):
15981610
"""
15991611
payment_reference: Optional[str]
16001612
"""
1601-
Reference number to locate ACH payments with customer's bank.
1613+
The ACH payment reference for this transaction.
16021614
"""
16031615
routing_number: Optional[str]
16041616
"""
1605-
Routing number of the bank account.
1617+
The routing number for the bank account.
16061618
"""
16071619

16081620
class Wechat(StripeObject):
@@ -1705,9 +1717,6 @@ class Zip(StripeObject):
17051717
It contains information specific to the payment method.
17061718
"""
17071719
us_bank_account: Optional[UsBankAccount]
1708-
"""
1709-
Details of the US Bank Account used for this payment attempt.
1710-
"""
17111720
wechat: Optional[Wechat]
17121721
wechat_pay: Optional[WechatPay]
17131722
zip: Optional[Zip]

stripe/_payment_intent.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,20 @@ class AutomaticPaymentMethods(StripeObject):
155155
Automatically calculates compatible payment methods
156156
"""
157157

158+
class Hooks(StripeObject):
159+
class Inputs(StripeObject):
160+
class Tax(StripeObject):
161+
calculation: str
162+
"""
163+
The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
164+
"""
165+
166+
tax: Optional[Tax]
167+
_inner_class_types = {"tax": Tax}
168+
169+
inputs: Optional[Inputs]
170+
_inner_class_types = {"inputs": Inputs}
171+
158172
class LastPaymentError(StripeObject):
159173
advice_code: Optional[str]
160174
"""
@@ -2828,6 +2842,7 @@ class TransferData(StripeObject):
28282842
"""
28292843
The list of payment method types to exclude from use with this payment.
28302844
"""
2845+
hooks: Optional[Hooks]
28312846
id: str
28322847
"""
28332848
Unique identifier for the object.
@@ -4350,6 +4365,7 @@ async def list_amount_details_line_items_async(
43504365
_inner_class_types = {
43514366
"amount_details": AmountDetails,
43524367
"automatic_payment_methods": AutomaticPaymentMethods,
4368+
"hooks": Hooks,
43534369
"last_payment_error": LastPaymentError,
43544370
"next_action": NextAction,
43554371
"payment_details": PaymentDetails,

0 commit comments

Comments
 (0)