Skip to content

Commit d38d24f

Browse files
Update generated code for v2154 and
1 parent 5ba1985 commit d38d24f

64 files changed

Lines changed: 1139 additions & 193 deletions

File tree

Some content is hidden

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

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c250368ba89214c80bc8de3e4fc5d2094c5502cc
1+
8989becedb2153519066ec2233cbf5880b938188

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2152
1+
v2154

stripe/_account_session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Features(StripeObject):
7777
"""
7878
instant_payouts: bool
7979
"""
80-
Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
80+
Whether to allow creation of instant payouts. The default value is `enabled` when Stripe is responsible for negative account balances, and `use_dashboard_rules` otherwise.
8181
"""
8282
standard_payouts: bool
8383
"""
@@ -180,7 +180,7 @@ class Features(StripeObject):
180180
"""
181181
instant_payouts: bool
182182
"""
183-
Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
183+
Whether to allow creation of instant payouts. The default value is `enabled` when Stripe is responsible for negative account balances, and `use_dashboard_rules` otherwise.
184184
"""
185185

186186
enabled: bool
@@ -365,7 +365,7 @@ class Features(StripeObject):
365365
"""
366366
instant_payouts: bool
367367
"""
368-
Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
368+
Whether to allow creation of instant payouts. The default value is `enabled` when Stripe is responsible for negative account balances, and `use_dashboard_rules` otherwise.
369369
"""
370370
standard_payouts: bool
371371
"""

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-12-15.clover"
4+
CURRENT = "2026-01-28.clover"
55
CURRENT_MAJOR = "clover"

stripe/_balance_transaction.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class FeeDetail(StripeObject):
7777
The date that the transaction's net funds become available in the Stripe balance.
7878
"""
7979
balance_type: Literal[
80-
"issuing", "payments", "refund_and_dispute_prefunding"
80+
"issuing", "payments", "refund_and_dispute_prefunding", "risk_reserved"
8181
]
8282
"""
8383
The balance that this transaction impacts.
@@ -183,6 +183,8 @@ class FeeDetail(StripeObject):
183183
"payout_minimum_balance_release",
184184
"refund",
185185
"refund_failure",
186+
"reserve_hold",
187+
"reserve_release",
186188
"reserve_transaction",
187189
"reserved_funds",
188190
"stripe_balance_payment_debit",
@@ -198,7 +200,7 @@ class FeeDetail(StripeObject):
198200
"transfer_refund",
199201
]
200202
"""
201-
Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
203+
Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
202204
"""
203205

204206
@classmethod

stripe/_charge.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,9 @@ class ThreeDSecure(StripeObject):
597597
The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID
598598
(dsTransId) for this payment.
599599
"""
600-
version: Optional[Literal["1.0.2", "2.1.0", "2.2.0"]]
600+
version: Optional[
601+
Literal["1.0.2", "2.1.0", "2.2.0", "2.3.0", "2.3.1"]
602+
]
601603
"""
602604
The version of 3D Secure that was used.
603605
"""
@@ -1228,6 +1230,7 @@ class Ideal(StripeObject):
12281230
bank: Optional[
12291231
Literal[
12301232
"abn_amro",
1233+
"adyen",
12311234
"asn_bank",
12321235
"bunq",
12331236
"buut",
@@ -1249,11 +1252,12 @@ class Ideal(StripeObject):
12491252
]
12501253
]
12511254
"""
1252-
The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
1255+
The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
12531256
"""
12541257
bic: Optional[
12551258
Literal[
12561259
"ABNANL2A",
1260+
"ADYBNL2A",
12571261
"ASNBNL21",
12581262
"BITSNL2A",
12591263
"BUNQNL2A",

stripe/_confirmation_token.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,7 @@ class Ideal(StripeObject):
941941
bank: Optional[
942942
Literal[
943943
"abn_amro",
944+
"adyen",
944945
"asn_bank",
945946
"bunq",
946947
"buut",
@@ -962,11 +963,12 @@ class Ideal(StripeObject):
962963
]
963964
]
964965
"""
965-
The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
966+
The customer's bank, if provided. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
966967
"""
967968
bic: Optional[
968969
Literal[
969970
"ABNANL2A",
971+
"ADYBNL2A",
970972
"ASNBNL21",
971973
"BITSNL2A",
972974
"BUNQNL2A",

stripe/_invoice.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ class CustomerTaxId(StripeObject):
342342
"om_vat",
343343
"pe_ruc",
344344
"ph_tin",
345+
"pl_nip",
345346
"ro_tin",
346347
"rs_pib",
347348
"ru_inn",
@@ -372,7 +373,7 @@ class CustomerTaxId(StripeObject):
372373
"zw_tin",
373374
]
374375
"""
375-
The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
376+
The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
376377
"""
377378
value: Optional[str]
378379
"""
@@ -555,6 +556,7 @@ class LastFinalizationError(StripeObject):
555556
"rate_limit",
556557
"refer_to_customer",
557558
"refund_disputed_payment",
559+
"request_blocked",
558560
"resource_already_exists",
559561
"resource_missing",
560562
"return_intent_already_processed",
@@ -1841,7 +1843,7 @@ async def attach_payment_async( # pyright: ignore[reportGeneralTypeIssues]
18411843
@classmethod
18421844
def create(cls, **params: Unpack["InvoiceCreateParams"]) -> "Invoice":
18431845
"""
1844-
This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://docs.stripe.com/api#finalize_invoice) the invoice to your customers.
1846+
This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](https://docs.stripe.com/api#finalize_invoice) or <a href="/api/invoices/send">send](https://docs.stripe.com/api/invoices/pay) the invoice to your customers.
18451847
"""
18461848
return cast(
18471849
"Invoice",
@@ -1857,7 +1859,7 @@ async def create_async(
18571859
cls, **params: Unpack["InvoiceCreateParams"]
18581860
) -> "Invoice":
18591861
"""
1860-
This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://docs.stripe.com/api#finalize_invoice) the invoice to your customers.
1862+
This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](https://docs.stripe.com/api#finalize_invoice) or <a href="/api/invoices/send">send](https://docs.stripe.com/api/invoices/pay) the invoice to your customers.
18611863
"""
18621864
return cast(
18631865
"Invoice",

stripe/_invoice_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def create(
249249
options: Optional["RequestOptions"] = None,
250250
) -> "Invoice":
251251
"""
252-
This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://docs.stripe.com/api#finalize_invoice) the invoice to your customers.
252+
This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](https://docs.stripe.com/api#finalize_invoice) or <a href="/api/invoices/send">send](https://docs.stripe.com/api/invoices/pay) the invoice to your customers.
253253
"""
254254
return cast(
255255
"Invoice",
@@ -268,7 +268,7 @@ async def create_async(
268268
options: Optional["RequestOptions"] = None,
269269
) -> "Invoice":
270270
"""
271-
This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://docs.stripe.com/api#finalize_invoice) the invoice to your customers.
271+
This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](https://docs.stripe.com/api#finalize_invoice) or <a href="/api/invoices/send">send](https://docs.stripe.com/api/invoices/pay) the invoice to your customers.
272272
"""
273273
return cast(
274274
"Invoice",

stripe/_object_classes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@
199199
"stripe.radar._early_fraud_warning",
200200
"EarlyFraudWarning",
201201
),
202+
"radar.payment_evaluation": (
203+
"stripe.radar._payment_evaluation",
204+
"PaymentEvaluation",
205+
),
202206
"radar.value_list": ("stripe.radar._value_list", "ValueList"),
203207
"radar.value_list_item": (
204208
"stripe.radar._value_list_item",

0 commit comments

Comments
 (0)