From 157550ae52cc06cdd6578683a9389331ed08777e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:54:11 +0000 Subject: [PATCH 01/17] Update generated code for v1386 --- OPENAPI_VERSION | 2 +- stripe/forwarding/_request.py | 14 ++++++++++++-- stripe/forwarding/_request_service.py | 6 +++++- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 128fcf476..3949637a4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1384 \ No newline at end of file +v1386 \ No newline at end of file diff --git a/stripe/forwarding/_request.py b/stripe/forwarding/_request.py index 4fa54e14f..787704049 100644 --- a/stripe/forwarding/_request.py +++ b/stripe/forwarding/_request.py @@ -108,7 +108,11 @@ class CreateParams(RequestOptions): """ replacements: List[ Literal[ - "card_cvc", "card_expiry", "card_number", "cardholder_name" + "card_cvc", + "card_expiry", + "card_number", + "cardholder_name", + "request_signature", ] ] """ @@ -214,7 +218,13 @@ class RetrieveParams(RequestOptions): The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed. """ replacements: List[ - Literal["card_cvc", "card_expiry", "card_number", "cardholder_name"] + Literal[ + "card_cvc", + "card_expiry", + "card_number", + "cardholder_name", + "request_signature", + ] ] """ The field kinds to be replaced in the forwarded request. diff --git a/stripe/forwarding/_request_service.py b/stripe/forwarding/_request_service.py index 7b95f680d..5460fcfc6 100644 --- a/stripe/forwarding/_request_service.py +++ b/stripe/forwarding/_request_service.py @@ -25,7 +25,11 @@ class CreateParams(TypedDict): """ replacements: List[ Literal[ - "card_cvc", "card_expiry", "card_number", "cardholder_name" + "card_cvc", + "card_expiry", + "card_number", + "cardholder_name", + "request_signature", ] ] """ From fea37c68e2262fcf0962ec41143c5abda20d5369 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:29:48 +0000 Subject: [PATCH 02/17] Update generated code for v1387 --- OPENAPI_VERSION | 2 +- stripe/issuing/_authorization.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 3949637a4..7d20b24e5 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1386 \ No newline at end of file +v1387 \ No newline at end of file diff --git a/stripe/issuing/_authorization.py b/stripe/issuing/_authorization.py index 20f1cf604..7c8002b8b 100644 --- a/stripe/issuing/_authorization.py +++ b/stripe/issuing/_authorization.py @@ -363,6 +363,7 @@ class AmountDetails(StripeObject): "cardholder_verification_required", "insecure_authorization_method", "insufficient_funds", + "network_fallback", "not_allowed", "pin_blocked", "spending_controls", From c418542d6ef6aa26808d0dd9a45ff94b3a4bc91f Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 19:44:20 +0000 Subject: [PATCH 03/17] Update generated code for v1388 --- OPENAPI_VERSION | 2 +- stripe/_payment_record.py | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7d20b24e5..0378aa2f4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1387 \ No newline at end of file +v1388 \ No newline at end of file diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index 7c46b358a..7755fff1b 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -48,16 +48,6 @@ class AmountGuaranteed(StripeObject): A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency). """ - class AmountRefunded(StripeObject): - 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). - """ - value: int - """ - A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency). - """ - class AmountRequested(StripeObject): currency: str """ @@ -657,10 +647,6 @@ class RetrieveParams(RequestOptions): """ A representation of an amount of money, consisting of an amount and a currency. """ - amount_refunded: AmountRefunded - """ - A representation of an amount of money, consisting of an amount and a currency. - """ amount_requested: AmountRequested """ A representation of an amount of money, consisting of an amount and a currency. @@ -1282,7 +1268,6 @@ async def retrieve_async( "amount_canceled": AmountCanceled, "amount_failed": AmountFailed, "amount_guaranteed": AmountGuaranteed, - "amount_refunded": AmountRefunded, "amount_requested": AmountRequested, "customer_details": CustomerDetails, "payment_method_details": PaymentMethodDetails, From a66c52b1690cb83431845fb04b59d05e1f2f0bf9 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:37:41 +0000 Subject: [PATCH 04/17] Update generated code for v1388 --- stripe/capital/_financing_summary.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stripe/capital/_financing_summary.py b/stripe/capital/_financing_summary.py index e4c0a70b7..760fa2f00 100644 --- a/stripe/capital/_financing_summary.py +++ b/stripe/capital/_financing_summary.py @@ -19,7 +19,7 @@ class FinancingSummary(SingletonAPIResource["FinancingSummary"]): class Details(StripeObject): class CurrentRepaymentInterval(StripeObject): - due_at: int + due_at: float """ The time at which the minimum payment amount will be due. If not met through withholding, the Connected account's linked bank account or account balance will be debited. Given in seconds since unix epoch. @@ -37,7 +37,7 @@ class CurrentRepaymentInterval(StripeObject): """ Amount of financing offered, in minor units. """ - advance_paid_out_at: Optional[int] + advance_paid_out_at: Optional[float] """ The time at which the funds were paid out to the connected account's Stripe balance. Given in milliseconds since unix epoch. """ @@ -61,7 +61,7 @@ class CurrentRepaymentInterval(StripeObject): """ The balance remaining to be paid on the financing, in minor units. """ - repayments_begin_at: Optional[int] + repayments_begin_at: Optional[float] """ The time at which Capital will begin withholding from payments. Given in seconds since unix epoch. """ From ebba892d61e3195ab7fd2761e8f936d5fe2aa1d1 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:04:01 +0000 Subject: [PATCH 05/17] Update generated code for v1389 --- OPENAPI_VERSION | 2 +- stripe/billing/_credit_balance_transaction.py | 23 +++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0378aa2f4..cd5e5a331 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1388 \ No newline at end of file +v1389 \ No newline at end of file diff --git a/stripe/billing/_credit_balance_transaction.py b/stripe/billing/_credit_balance_transaction.py index da0f11e3b..630cb3693 100644 --- a/stripe/billing/_credit_balance_transaction.py +++ b/stripe/billing/_credit_balance_transaction.py @@ -47,12 +47,31 @@ class Monetary(StripeObject): """ _inner_class_types = {"monetary": Monetary} + class CreditsApplicationInvoiceVoided(StripeObject): + invoice: ExpandableField["Invoice"] + """ + The invoice to which the reinstated billing credits were originally applied. + """ + invoice_line_item: str + """ + The invoice line item to which the reinstated billing credits were originally applied. + """ + amount: Amount - type: Literal["credits_granted"] + credits_application_invoice_voided: Optional[ + CreditsApplicationInvoiceVoided + ] + """ + Details of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`. + """ + type: Literal["credits_application_invoice_voided", "credits_granted"] """ The type of credit transaction. """ - _inner_class_types = {"amount": Amount} + _inner_class_types = { + "amount": Amount, + "credits_application_invoice_voided": CreditsApplicationInvoiceVoided, + } class Debit(StripeObject): class Amount(StripeObject): From 2cd967868d3fb1ac8fb1a81ce44de5081ff2e57a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:39:33 +0000 Subject: [PATCH 06/17] Update generated code for v1390 --- OPENAPI_VERSION | 2 +- stripe/_charge.py | 17 ------------ stripe/_payment_intent.py | 46 ------------------------------- stripe/_payment_intent_service.py | 40 --------------------------- stripe/issuing/_authorization.py | 4 +++ stripe/issuing/_transaction.py | 4 +++ 6 files changed, 9 insertions(+), 104 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index cd5e5a331..53cd01555 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1389 \ No newline at end of file +v1390 \ No newline at end of file diff --git a/stripe/_charge.py b/stripe/_charge.py index 2bdd6a416..75ce9c544 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -492,17 +492,6 @@ class Overcapture(StripeObject): Indicates whether or not the authorized amount can be over-captured. """ - class PartialAuthorization(StripeObject): - status: Literal[ - "declined", - "fully_authorized", - "not_requested", - "partially_authorized", - ] - """ - Indicates whether the transaction requested for partial authorization feature and the authorization outcome. - """ - class ThreeDSecure(StripeObject): authentication_flow: Optional[ Literal["challenge", "frictionless"] @@ -766,10 +755,6 @@ class ShippingAddress(StripeObject): """ The authorized amount. """ - amount_requested: Optional[int] - """ - The latest amount intended to be authorized by this charge. - """ authorization_code: Optional[str] """ Authorization code on the charge. @@ -851,7 +836,6 @@ class ShippingAddress(StripeObject): If this card has network token credentials, this contains the details of the network token credentials. """ overcapture: Optional[Overcapture] - partial_authorization: Optional[PartialAuthorization] three_d_secure: Optional[ThreeDSecure] """ Populated if this transaction used 3D Secure authentication. @@ -869,7 +853,6 @@ class ShippingAddress(StripeObject): "multicapture": Multicapture, "network_token": NetworkToken, "overcapture": Overcapture, - "partial_authorization": PartialAuthorization, "three_d_secure": ThreeDSecure, "wallet": Wallet, } diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 2993b1518..58a8bff97 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -2047,12 +2047,6 @@ class Address(StripeObject): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ - request_partial_authorization: Optional[ - Literal["if_available", "never"] - ] - """ - Request partial authorization on this PaymentIntent. - """ request_three_d_secure: Optional[ Literal["any", "automatic", "challenge"] ] @@ -6086,12 +6080,6 @@ class ConfirmParamsPaymentMethodOptionsCard(TypedDict): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ - request_partial_authorization: NotRequired[ - Literal["if_available", "never"] - ] - """ - Request partial authorization on this PaymentIntent. - """ request_three_d_secure: NotRequired[ Literal["any", "automatic", "challenge"] ] @@ -9754,12 +9742,6 @@ class CreateParamsPaymentMethodOptionsCard(TypedDict): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ - request_partial_authorization: NotRequired[ - Literal["if_available", "never"] - ] - """ - Request partial authorization on this PaymentIntent. - """ request_three_d_secure: NotRequired[ Literal["any", "automatic", "challenge"] ] @@ -11216,12 +11198,6 @@ class IncrementAuthorizationParams(RequestOptions): """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. """ - payment_method_options: NotRequired[ - "PaymentIntent.IncrementAuthorizationParamsPaymentMethodOptions" - ] - """ - Payment method-specific configuration for this PaymentIntent. - """ statement_descriptor: NotRequired[str] """ Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). @@ -11256,22 +11232,6 @@ class IncrementAuthorizationParamsAsyncWorkflowsInputsTax(TypedDict): The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id """ - class IncrementAuthorizationParamsPaymentMethodOptions(TypedDict): - card: NotRequired[ - "PaymentIntent.IncrementAuthorizationParamsPaymentMethodOptionsCard" - ] - """ - Configuration for any card payments attempted on this PaymentIntent. - """ - - class IncrementAuthorizationParamsPaymentMethodOptionsCard(TypedDict): - request_partial_authorization: NotRequired[ - Literal["if_available", "never"] - ] - """ - Request partial authorization on this PaymentIntent. - """ - class IncrementAuthorizationParamsTransferData(TypedDict): amount: NotRequired[int] """ @@ -13554,12 +13514,6 @@ class ModifyParamsPaymentMethodOptionsCard(TypedDict): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ - request_partial_authorization: NotRequired[ - Literal["if_available", "never"] - ] - """ - Request partial authorization on this PaymentIntent. - """ request_three_d_secure: NotRequired[ Literal["any", "automatic", "challenge"] ] diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index 538b80b43..ab4a4b11c 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -3074,12 +3074,6 @@ class ConfirmParamsPaymentMethodOptionsCard(TypedDict): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ - request_partial_authorization: NotRequired[ - Literal["if_available", "never"] - ] - """ - Request partial authorization on this PaymentIntent. - """ request_three_d_secure: NotRequired[ Literal["any", "automatic", "challenge"] ] @@ -6796,12 +6790,6 @@ class CreateParamsPaymentMethodOptionsCard(TypedDict): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ - request_partial_authorization: NotRequired[ - Literal["if_available", "never"] - ] - """ - Request partial authorization on this PaymentIntent. - """ request_three_d_secure: NotRequired[ Literal["any", "automatic", "challenge"] ] @@ -8258,12 +8246,6 @@ class IncrementAuthorizationParams(TypedDict): """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. """ - payment_method_options: NotRequired[ - "PaymentIntentService.IncrementAuthorizationParamsPaymentMethodOptions" - ] - """ - Payment method-specific configuration for this PaymentIntent. - """ statement_descriptor: NotRequired[str] """ Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). @@ -8298,22 +8280,6 @@ class IncrementAuthorizationParamsAsyncWorkflowsInputsTax(TypedDict): The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id """ - class IncrementAuthorizationParamsPaymentMethodOptions(TypedDict): - card: NotRequired[ - "PaymentIntentService.IncrementAuthorizationParamsPaymentMethodOptionsCard" - ] - """ - Configuration for any card payments attempted on this PaymentIntent. - """ - - class IncrementAuthorizationParamsPaymentMethodOptionsCard(TypedDict): - request_partial_authorization: NotRequired[ - Literal["if_available", "never"] - ] - """ - Request partial authorization on this PaymentIntent. - """ - class IncrementAuthorizationParamsTransferData(TypedDict): amount: NotRequired[int] """ @@ -10702,12 +10668,6 @@ class UpdateParamsPaymentMethodOptionsCard(TypedDict): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ - request_partial_authorization: NotRequired[ - Literal["if_available", "never"] - ] - """ - Request partial authorization on this PaymentIntent. - """ request_three_d_secure: NotRequired[ Literal["any", "automatic", "challenge"] ] diff --git a/stripe/issuing/_authorization.py b/stripe/issuing/_authorization.py index 7c8002b8b..7447103b4 100644 --- a/stripe/issuing/_authorization.py +++ b/stripe/issuing/_authorization.py @@ -241,6 +241,10 @@ class MerchantData(StripeObject): """ State where the seller is located """ + tax_id: Optional[str] + """ + The seller's tax identification number. Currently populated for French merchants only. + """ terminal_id: Optional[str] """ An ID assigned by the seller to the location of the sale. diff --git a/stripe/issuing/_transaction.py b/stripe/issuing/_transaction.py index c5cd4b000..65546dc1a 100644 --- a/stripe/issuing/_transaction.py +++ b/stripe/issuing/_transaction.py @@ -87,6 +87,10 @@ class MerchantData(StripeObject): """ State where the seller is located """ + tax_id: Optional[str] + """ + The seller's tax identification number. Currently populated for French merchants only. + """ terminal_id: Optional[str] """ An ID assigned by the seller to the location of the sale. From 72008559a376c45d4dc4f1e61e4fe67a2b2b68e3 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sat, 7 Dec 2024 00:36:01 +0000 Subject: [PATCH 07/17] Update generated code for v1392 --- OPENAPI_VERSION | 2 +- stripe/_customer.py | 40 +++++++++++- stripe/_customer_service.py | 20 +++++- stripe/_customer_tax_id_service.py | 20 +++++- stripe/_invoice.py | 80 +++++++++++++++++++++-- stripe/_invoice_service.py | 40 +++++++++++- stripe/_invoice_upcoming_lines_service.py | 20 +++++- stripe/_order.py | 60 ++++++++++++++++- stripe/_order_service.py | 40 +++++++++++- stripe/_quote_preview_invoice.py | 20 +++++- stripe/_tax_id.py | 40 +++++++++++- stripe/_tax_id_service.py | 20 +++++- stripe/checkout/_session.py | 40 +++++++++++- stripe/tax/_calculation.py | 40 +++++++++++- stripe/tax/_calculation_service.py | 20 +++++- stripe/tax/_transaction.py | 20 +++++- 16 files changed, 495 insertions(+), 27 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 53cd01555..3819fbfcf 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1390 \ No newline at end of file +v1392 \ No newline at end of file diff --git a/stripe/_customer.py b/stripe/_customer.py index 71b341234..96273586a 100644 --- a/stripe/_customer.py +++ b/stripe/_customer.py @@ -514,14 +514,19 @@ class CreateParamsTaxIdDatum(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -529,6 +534,7 @@ class CreateParamsTaxIdDatum(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -544,6 +550,7 @@ class CreateParamsTaxIdDatum(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -555,12 +562,16 @@ class CreateParamsTaxIdDatum(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -568,6 +579,7 @@ class CreateParamsTaxIdDatum(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -580,12 +592,16 @@ class CreateParamsTaxIdDatum(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -593,9 +609,11 @@ class CreateParamsTaxIdDatum(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -625,14 +643,19 @@ class CreateTaxIdParams(RequestOptions): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -640,6 +663,7 @@ class CreateTaxIdParams(RequestOptions): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -655,6 +679,7 @@ class CreateTaxIdParams(RequestOptions): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -666,12 +691,16 @@ class CreateTaxIdParams(RequestOptions): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -679,6 +708,7 @@ class CreateTaxIdParams(RequestOptions): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -691,12 +721,16 @@ class CreateTaxIdParams(RequestOptions): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -704,9 +738,11 @@ class CreateTaxIdParams(RequestOptions): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_customer_service.py b/stripe/_customer_service.py index e5960c9a4..f22d1ca92 100644 --- a/stripe/_customer_service.py +++ b/stripe/_customer_service.py @@ -276,14 +276,19 @@ class CreateParamsTaxIdDatum(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -291,6 +296,7 @@ class CreateParamsTaxIdDatum(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -306,6 +312,7 @@ class CreateParamsTaxIdDatum(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -317,12 +324,16 @@ class CreateParamsTaxIdDatum(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -330,6 +341,7 @@ class CreateParamsTaxIdDatum(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -342,12 +354,16 @@ class CreateParamsTaxIdDatum(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -355,9 +371,11 @@ class CreateParamsTaxIdDatum(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_customer_tax_id_service.py b/stripe/_customer_tax_id_service.py index 15cd2be0b..32e47e713 100644 --- a/stripe/_customer_tax_id_service.py +++ b/stripe/_customer_tax_id_service.py @@ -18,14 +18,19 @@ class CreateParams(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -33,6 +38,7 @@ class CreateParams(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -48,6 +54,7 @@ class CreateParams(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -59,12 +66,16 @@ class CreateParams(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -72,6 +83,7 @@ class CreateParams(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -84,12 +96,16 @@ class CreateParams(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -97,9 +113,11 @@ class CreateParams(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 0c34b5e85..2d29813d8 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -259,14 +259,19 @@ class CustomerTaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -274,6 +279,7 @@ class CustomerTaxId(StripeObject): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -289,6 +295,7 @@ class CustomerTaxId(StripeObject): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -300,12 +307,16 @@ class CustomerTaxId(StripeObject): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -313,6 +324,7 @@ class CustomerTaxId(StripeObject): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -325,12 +337,16 @@ class CustomerTaxId(StripeObject): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -339,9 +355,11 @@ class CustomerTaxId(StripeObject): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - 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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + 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`, `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`, or `unknown` """ value: Optional[str] """ @@ -2382,14 +2400,19 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -2397,6 +2420,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -2412,6 +2436,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -2423,12 +2448,16 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -2436,6 +2465,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -2448,12 +2478,16 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -2461,9 +2495,11 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -5230,14 +5266,19 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -5245,6 +5286,7 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -5260,6 +5302,7 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -5271,12 +5314,16 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -5284,6 +5331,7 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -5296,12 +5344,16 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -5309,9 +5361,11 @@ class UpcomingLinesParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -7299,14 +7353,19 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -7314,6 +7373,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -7329,6 +7389,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -7340,12 +7401,16 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -7353,6 +7418,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -7365,12 +7431,16 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -7378,9 +7448,11 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_invoice_service.py b/stripe/_invoice_service.py index 96004551c..a5a1223cc 100644 --- a/stripe/_invoice_service.py +++ b/stripe/_invoice_service.py @@ -1256,14 +1256,19 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -1271,6 +1276,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -1286,6 +1292,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -1297,12 +1304,16 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -1310,6 +1321,7 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -1322,12 +1334,16 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -1335,9 +1351,11 @@ class CreatePreviewParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -3367,14 +3385,19 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -3382,6 +3405,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -3397,6 +3421,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -3408,12 +3433,16 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -3421,6 +3450,7 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -3433,12 +3463,16 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -3446,9 +3480,11 @@ class UpcomingParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_invoice_upcoming_lines_service.py b/stripe/_invoice_upcoming_lines_service.py index b28515f66..3e1e43e24 100644 --- a/stripe/_invoice_upcoming_lines_service.py +++ b/stripe/_invoice_upcoming_lines_service.py @@ -285,14 +285,19 @@ class ListParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -300,6 +305,7 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -315,6 +321,7 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -326,12 +333,16 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -339,6 +350,7 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -351,12 +363,16 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -364,9 +380,11 @@ class ListParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_order.py b/stripe/_order.py index fdb15bf8f..a3e647605 100644 --- a/stripe/_order.py +++ b/stripe/_order.py @@ -784,14 +784,19 @@ class TaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -799,6 +804,7 @@ class TaxId(StripeObject): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -814,6 +820,7 @@ class TaxId(StripeObject): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -825,12 +832,16 @@ class TaxId(StripeObject): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -838,6 +849,7 @@ class TaxId(StripeObject): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -850,12 +862,16 @@ class TaxId(StripeObject): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -864,9 +880,11 @@ class TaxId(StripeObject): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - 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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + 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`, `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`, or `unknown` """ value: Optional[str] """ @@ -2158,14 +2176,19 @@ class CreateParamsTaxDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -2173,6 +2196,7 @@ class CreateParamsTaxDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -2188,6 +2212,7 @@ class CreateParamsTaxDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -2199,12 +2224,16 @@ class CreateParamsTaxDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -2212,6 +2241,7 @@ class CreateParamsTaxDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -2224,12 +2254,16 @@ class CreateParamsTaxDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -2237,9 +2271,11 @@ class CreateParamsTaxDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -3480,14 +3516,19 @@ class ModifyParamsTaxDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -3495,6 +3536,7 @@ class ModifyParamsTaxDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -3510,6 +3552,7 @@ class ModifyParamsTaxDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -3521,12 +3564,16 @@ class ModifyParamsTaxDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -3534,6 +3581,7 @@ class ModifyParamsTaxDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -3546,12 +3594,16 @@ class ModifyParamsTaxDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -3559,9 +3611,11 @@ class ModifyParamsTaxDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_order_service.py b/stripe/_order_service.py index 3eeda0ced..394c24d14 100644 --- a/stripe/_order_service.py +++ b/stripe/_order_service.py @@ -1217,14 +1217,19 @@ class CreateParamsTaxDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -1232,6 +1237,7 @@ class CreateParamsTaxDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -1247,6 +1253,7 @@ class CreateParamsTaxDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -1258,12 +1265,16 @@ class CreateParamsTaxDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -1271,6 +1282,7 @@ class CreateParamsTaxDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -1283,12 +1295,16 @@ class CreateParamsTaxDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -1296,9 +1312,11 @@ class CreateParamsTaxDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -2549,14 +2567,19 @@ class UpdateParamsTaxDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -2564,6 +2587,7 @@ class UpdateParamsTaxDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -2579,6 +2603,7 @@ class UpdateParamsTaxDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -2590,12 +2615,16 @@ class UpdateParamsTaxDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -2603,6 +2632,7 @@ class UpdateParamsTaxDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -2615,12 +2645,16 @@ class UpdateParamsTaxDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -2628,9 +2662,11 @@ class UpdateParamsTaxDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/_quote_preview_invoice.py b/stripe/_quote_preview_invoice.py index c1b22e1d7..8a35c267d 100644 --- a/stripe/_quote_preview_invoice.py +++ b/stripe/_quote_preview_invoice.py @@ -241,14 +241,19 @@ class CustomerTaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -256,6 +261,7 @@ class CustomerTaxId(StripeObject): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -271,6 +277,7 @@ class CustomerTaxId(StripeObject): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -282,12 +289,16 @@ class CustomerTaxId(StripeObject): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -295,6 +306,7 @@ class CustomerTaxId(StripeObject): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -307,12 +319,16 @@ class CustomerTaxId(StripeObject): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -321,9 +337,11 @@ class CustomerTaxId(StripeObject): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - 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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + 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`, `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`, or `unknown` """ value: Optional[str] """ diff --git a/stripe/_tax_id.py b/stripe/_tax_id.py index be1de50d7..8b1d5b5bc 100644 --- a/stripe/_tax_id.py +++ b/stripe/_tax_id.py @@ -81,14 +81,19 @@ class CreateParams(RequestOptions): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -96,6 +101,7 @@ class CreateParams(RequestOptions): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -111,6 +117,7 @@ class CreateParams(RequestOptions): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -122,12 +129,16 @@ class CreateParams(RequestOptions): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -135,6 +146,7 @@ class CreateParams(RequestOptions): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -147,12 +159,16 @@ class CreateParams(RequestOptions): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -160,9 +176,11 @@ class CreateParams(RequestOptions): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ @@ -259,14 +277,19 @@ class RetrieveParams(RequestOptions): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -274,6 +297,7 @@ class RetrieveParams(RequestOptions): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -289,6 +313,7 @@ class RetrieveParams(RequestOptions): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -300,12 +325,16 @@ class RetrieveParams(RequestOptions): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -313,6 +342,7 @@ class RetrieveParams(RequestOptions): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -325,12 +355,16 @@ class RetrieveParams(RequestOptions): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -339,9 +373,11 @@ class RetrieveParams(RequestOptions): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`. Note that some legacy tax IDs have type `unknown` """ value: str """ diff --git a/stripe/_tax_id_service.py b/stripe/_tax_id_service.py index 43e88187f..1556d8b96 100644 --- a/stripe/_tax_id_service.py +++ b/stripe/_tax_id_service.py @@ -22,14 +22,19 @@ class CreateParams(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -37,6 +42,7 @@ class CreateParams(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -52,6 +58,7 @@ class CreateParams(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -63,12 +70,16 @@ class CreateParams(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -76,6 +87,7 @@ class CreateParams(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -88,12 +100,16 @@ class CreateParams(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -101,9 +117,11 @@ class CreateParams(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index 8debdeed8..9fdb69c7b 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -167,14 +167,19 @@ class TaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -182,6 +187,7 @@ class TaxId(StripeObject): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -197,6 +203,7 @@ class TaxId(StripeObject): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -208,12 +215,16 @@ class TaxId(StripeObject): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -221,6 +232,7 @@ class TaxId(StripeObject): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -233,12 +245,16 @@ class TaxId(StripeObject): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -247,9 +263,11 @@ class TaxId(StripeObject): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - 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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + 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`, `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`, or `unknown` """ value: Optional[str] """ @@ -511,14 +529,19 @@ class TaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -526,6 +549,7 @@ class TaxId(StripeObject): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -541,6 +565,7 @@ class TaxId(StripeObject): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -552,12 +577,16 @@ class TaxId(StripeObject): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -565,6 +594,7 @@ class TaxId(StripeObject): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -577,12 +607,16 @@ class TaxId(StripeObject): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -591,9 +625,11 @@ class TaxId(StripeObject): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - 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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + 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`, `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`, or `unknown` """ value: Optional[str] """ diff --git a/stripe/tax/_calculation.py b/stripe/tax/_calculation.py index 5e2759ff7..6ba29f14a 100644 --- a/stripe/tax/_calculation.py +++ b/stripe/tax/_calculation.py @@ -58,14 +58,19 @@ class TaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -73,6 +78,7 @@ class TaxId(StripeObject): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -88,6 +94,7 @@ class TaxId(StripeObject): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -99,12 +106,16 @@ class TaxId(StripeObject): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -112,6 +123,7 @@ class TaxId(StripeObject): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -124,12 +136,16 @@ class TaxId(StripeObject): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -138,9 +154,11 @@ class TaxId(StripeObject): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - 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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + 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`, `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`, or `unknown` """ value: str """ @@ -504,14 +522,19 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -519,6 +542,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -534,6 +558,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -545,12 +570,16 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -558,6 +587,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -570,12 +600,16 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -583,9 +617,11 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/tax/_calculation_service.py b/stripe/tax/_calculation_service.py index 3c26c11c5..81c39a26e 100644 --- a/stripe/tax/_calculation_service.py +++ b/stripe/tax/_calculation_service.py @@ -114,14 +114,19 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -129,6 +134,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -144,6 +150,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -155,12 +162,16 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -168,6 +179,7 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -180,12 +192,16 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "us_ein", "uy_ruc", "uz_tin", @@ -193,9 +209,11 @@ class CreateParamsCustomerDetailsTaxId(TypedDict): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` """ value: str """ diff --git a/stripe/tax/_transaction.py b/stripe/tax/_transaction.py index 3c363eb13..aa1c77f0c 100644 --- a/stripe/tax/_transaction.py +++ b/stripe/tax/_transaction.py @@ -58,14 +58,19 @@ class TaxId(StripeObject): type: Literal[ "ad_nrt", "ae_trn", + "am_tin", + "ao_tin", "ar_cuit", "au_abn", "au_arn", + "ba_tin", + "bb_tin", "bg_uic", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", + "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", @@ -73,6 +78,7 @@ class TaxId(StripeObject): "ca_pst_mb", "ca_pst_sk", "ca_qst", + "cd_nif", "ch_uid", "ch_vat", "cl_tin", @@ -88,6 +94,7 @@ class TaxId(StripeObject): "eu_vat", "gb_vat", "ge_vat", + "gn_nif", "hk_br", "hr_oib", "hu_tin", @@ -99,12 +106,16 @@ class TaxId(StripeObject): "jp_rn", "jp_trn", "ke_pin", + "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "ma_vat", "md_vat", + "me_pib", + "mk_vat", + "mr_nif", "mx_rfc", "my_frp", "my_itn", @@ -112,6 +123,7 @@ class TaxId(StripeObject): "ng_tin", "no_vat", "no_voec", + "np_pan", "nz_gst", "om_vat", "pe_ruc", @@ -124,12 +136,16 @@ class TaxId(StripeObject): "sg_gst", "sg_uen", "si_tin", + "sn_ninea", + "sr_fin", "sv_nit", "th_vat", + "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", + "ug_tin", "unknown", "us_ein", "uy_ruc", @@ -138,9 +154,11 @@ class TaxId(StripeObject): "ve_rif", "vn_tin", "za_vat", + "zm_tin", + "zw_tin", ] """ - 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`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + 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`, `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`, or `unknown` """ value: str """ From ba99e2ee7cb48b00731b7ebdb8f3add3c97e1726 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:48:33 +0000 Subject: [PATCH 08/17] Update generated code for v1394 --- OPENAPI_VERSION | 2 +- stripe/_card.py | 4 ++++ stripe/_charge.py | 4 ++++ stripe/_confirmation_token.py | 4 ++++ stripe/_payment_method.py | 4 ++++ 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 3819fbfcf..acf4c7638 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1392 \ No newline at end of file +v1394 \ No newline at end of file diff --git a/stripe/_card.py b/stripe/_card.py index 631da0c36..d0c82957e 100644 --- a/stripe/_card.py +++ b/stripe/_card.py @@ -155,6 +155,10 @@ class DeleteParams(RequestOptions): """ String representing the object's type. Objects of the same type share the same value. """ + regulated_status: Optional[Literal["regulated", "unregulated"]] + """ + Status of a card based on the card issuer. + """ status: Optional[str] """ For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated. diff --git a/stripe/_charge.py b/stripe/_charge.py index 75ce9c544..fb289d009 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -836,6 +836,10 @@ class ShippingAddress(StripeObject): If this card has network token credentials, this contains the details of the network token credentials. """ overcapture: Optional[Overcapture] + regulated_status: Optional[Literal["regulated", "unregulated"]] + """ + Status of a card based on the card issuer. + """ three_d_secure: Optional[ThreeDSecure] """ Populated if this transaction used 3D Secure authentication. diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index ca4fb1f41..f6dfe12fd 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -686,6 +686,10 @@ class ShippingAddress(StripeObject): """ Contains information about card networks that can be used to process the payment. """ + regulated_status: Optional[Literal["regulated", "unregulated"]] + """ + Status of a card based on the card issuer. + """ three_d_secure_usage: Optional[ThreeDSecureUsage] """ Contains details on how this Card may be used for 3D Secure authentication. diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 5dd5db4bd..f75d689a9 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -643,6 +643,10 @@ class ShippingAddress(StripeObject): """ Contains information about card networks that can be used to process the payment. """ + regulated_status: Optional[Literal["regulated", "unregulated"]] + """ + Status of a card based on the card issuer. + """ three_d_secure_usage: Optional[ThreeDSecureUsage] """ Contains details on how this Card may be used for 3D Secure authentication. From 3310500c8ba0d4307c2ff0d08d1184df034f2fb0 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:09:37 +0000 Subject: [PATCH 09/17] Update generated code for v1395 --- OPENAPI_VERSION | 2 +- stripe/_api_version.py | 2 +- stripe/_webhook_endpoint.py | 1 + stripe/_webhook_endpoint_service.py | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index acf4c7638..c9e0a8482 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1394 \ No newline at end of file +v1395 \ No newline at end of file diff --git a/stripe/_api_version.py b/stripe/_api_version.py index 4f7ee9878..7d2801e63 100644 --- a/stripe/_api_version.py +++ b/stripe/_api_version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec class _ApiVersion: - CURRENT = "2024-11-20.acacia" + CURRENT = "2024-12-18.acacia" diff --git a/stripe/_webhook_endpoint.py b/stripe/_webhook_endpoint.py index a6bd5dd70..0a491e3a8 100644 --- a/stripe/_webhook_endpoint.py +++ b/stripe/_webhook_endpoint.py @@ -137,6 +137,7 @@ class CreateParams(RequestOptions): "2024-09-30.acacia", "2024-10-28.acacia", "2024-11-20.acacia", + "2024-12-18.acacia", ] ] """ diff --git a/stripe/_webhook_endpoint_service.py b/stripe/_webhook_endpoint_service.py index 1c070d853..384c133f8 100644 --- a/stripe/_webhook_endpoint_service.py +++ b/stripe/_webhook_endpoint_service.py @@ -118,6 +118,7 @@ class CreateParams(TypedDict): "2024-09-30.acacia", "2024-10-28.acacia", "2024-11-20.acacia", + "2024-12-18.acacia", ] ] """ From 28ad2f41a5ef311a5e4fee2c17989ae2f54e0658 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:19:39 +0000 Subject: [PATCH 10/17] Update generated code for v1396 --- OPENAPI_VERSION | 2 +- stripe/_account_session.py | 22 +++++++++++----------- stripe/_account_session_service.py | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c9e0a8482..5120dc63e 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1395 \ No newline at end of file +v1396 \ No newline at end of file diff --git a/stripe/_account_session.py b/stripe/_account_session.py index d4eeef7aa..384113c9c 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -25,7 +25,7 @@ class AccountManagement(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ external_account_collection: bool """ @@ -43,7 +43,7 @@ class AccountOnboarding(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ external_account_collection: bool """ @@ -61,7 +61,7 @@ class Balances(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ edit_payout_schedule: bool """ @@ -135,7 +135,7 @@ class NotificationBanner(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ external_account_collection: bool """ @@ -205,7 +205,7 @@ class Payouts(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ edit_payout_schedule: bool """ @@ -464,7 +464,7 @@ class CreateParamsComponentsAccountManagement(TypedDict): class CreateParamsComponentsAccountManagementFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ external_account_collection: NotRequired[bool] """ @@ -486,7 +486,7 @@ class CreateParamsComponentsAccountOnboarding(TypedDict): class CreateParamsComponentsAccountOnboardingFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ external_account_collection: NotRequired[bool] """ @@ -544,7 +544,7 @@ class CreateParamsComponentsBalances(TypedDict): class CreateParamsComponentsBalancesFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ edit_payout_schedule: NotRequired[bool] """ @@ -653,7 +653,7 @@ class CreateParamsComponentsFinancialAccount(TypedDict): class CreateParamsComponentsFinancialAccountFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ external_account_collection: NotRequired[bool] """ @@ -767,7 +767,7 @@ class CreateParamsComponentsNotificationBanner(TypedDict): class CreateParamsComponentsNotificationBannerFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ external_account_collection: NotRequired[bool] """ @@ -864,7 +864,7 @@ class CreateParamsComponentsPayouts(TypedDict): class CreateParamsComponentsPayoutsFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ edit_payout_schedule: NotRequired[bool] """ diff --git a/stripe/_account_session_service.py b/stripe/_account_session_service.py index 3851d2d53..6868f8318 100644 --- a/stripe/_account_session_service.py +++ b/stripe/_account_session_service.py @@ -183,7 +183,7 @@ class CreateParamsComponentsAccountManagement(TypedDict): class CreateParamsComponentsAccountManagementFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ external_account_collection: NotRequired[bool] """ @@ -205,7 +205,7 @@ class CreateParamsComponentsAccountOnboarding(TypedDict): class CreateParamsComponentsAccountOnboardingFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ external_account_collection: NotRequired[bool] """ @@ -263,7 +263,7 @@ class CreateParamsComponentsBalances(TypedDict): class CreateParamsComponentsBalancesFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ edit_payout_schedule: NotRequired[bool] """ @@ -372,7 +372,7 @@ class CreateParamsComponentsFinancialAccount(TypedDict): class CreateParamsComponentsFinancialAccountFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ external_account_collection: NotRequired[bool] """ @@ -486,7 +486,7 @@ class CreateParamsComponentsNotificationBanner(TypedDict): class CreateParamsComponentsNotificationBannerFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ external_account_collection: NotRequired[bool] """ @@ -583,7 +583,7 @@ class CreateParamsComponentsPayouts(TypedDict): class CreateParamsComponentsPayoutsFeatures(TypedDict): disable_stripe_user_authentication: NotRequired[bool] """ - Disables Stripe user authentication for this embedded component. This feature can only be `true` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. """ edit_payout_schedule: NotRequired[bool] """ From d8e5dcab3ce20fea8d578aac766735fce5f77a1c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 22:23:43 +0000 Subject: [PATCH 11/17] Update generated code for v1397 --- OPENAPI_VERSION | 2 +- stripe/terminal/_reader.py | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5120dc63e..42258ffb3 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1396 \ No newline at end of file +v1397 \ No newline at end of file diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py index 8263c2d70..6386e007b 100644 --- a/stripe/terminal/_reader.py +++ b/stripe/terminal/_reader.py @@ -227,6 +227,10 @@ class Tipping(StripeObject): """ _inner_class_types = {"tipping": Tipping} + account: Optional[str] + """ + Account the payment intent belongs to. + """ collect_config: Optional[CollectConfig] """ Represents a per-transaction override of a reader configuration @@ -244,14 +248,24 @@ class Tipping(StripeObject): Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). """ stripe_account: Optional[str] + """ + This field will be deprecated. Please use `account` instead. + """ _inner_class_types = {"collect_config": CollectConfig} class ConfirmPaymentIntent(StripeObject): + account: Optional[str] + """ + Account the payment intent belongs to. + """ payment_intent: ExpandableField["PaymentIntent"] """ Most recent PaymentIntent processed by the reader. """ stripe_account: Optional[str] + """ + This field will be deprecated. Please use `account` instead. + """ class ProcessPaymentIntent(StripeObject): class ProcessConfig(StripeObject): @@ -275,6 +289,10 @@ class Tipping(StripeObject): """ _inner_class_types = {"tipping": Tipping} + account: Optional[str] + """ + Account the payment intent belongs to. + """ payment_intent: ExpandableField["PaymentIntent"] """ Most recent PaymentIntent processed by the reader. @@ -284,6 +302,9 @@ class Tipping(StripeObject): Represents a per-transaction override of a reader configuration """ stripe_account: Optional[str] + """ + This field will be deprecated. Please use `account` instead. + """ _inner_class_types = {"process_config": ProcessConfig} class ProcessSetupIntent(StripeObject): @@ -314,6 +335,10 @@ class RefundPaymentConfig(StripeObject): Enable customer initiated cancellation when refunding this payment. """ + account: Optional[str] + """ + Account the payment intent belongs to. + """ amount: Optional[int] """ The amount being refunded. @@ -353,6 +378,9 @@ class RefundPaymentConfig(StripeObject): Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge. """ stripe_account: Optional[str] + """ + This field will be deprecated. Please use `account` instead. + """ _inner_class_types = {"refund_payment_config": RefundPaymentConfig} class SetReaderDisplay(StripeObject): From d0c75051eaf19acdbdd1e10959468b40c6d7bfcf Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 22:47:43 +0000 Subject: [PATCH 12/17] Update generated code for v1398 --- OPENAPI_VERSION | 2 +- stripe/_dispute.py | 30 ++++++++++++++++++++++++++++++ stripe/_dispute_service.py | 12 ++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 42258ffb3..030963bfb 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1397 \ No newline at end of file +v1398 \ No newline at end of file diff --git a/stripe/_dispute.py b/stripe/_dispute.py index 8021dfb17..856194487 100644 --- a/stripe/_dispute.py +++ b/stripe/_dispute.py @@ -176,9 +176,17 @@ class ShippingAddress(StripeObject): "prior_undisputed_transactions": PriorUndisputedTransaction, } + class VisaCompliance(StripeObject): + fee_acknowledged: bool + """ + A field acknowledging the fee incurred when countering a Visa Compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute, and you may incur a $500 fee if the case is lost. + """ + visa_compelling_evidence_3: Optional[VisaCompellingEvidence3] + visa_compliance: Optional[VisaCompliance] _inner_class_types = { "visa_compelling_evidence_3": VisaCompellingEvidence3, + "visa_compliance": VisaCompliance, } access_activity_log: Optional[str] @@ -314,9 +322,19 @@ class VisaCompellingEvidence3(StripeObject): Visa Compelling Evidence 3.0 eligibility status. """ + class VisaCompliance(StripeObject): + status: Literal[ + "fee_acknowledged", "requires_fee_acknowledgement" + ] + """ + Visa Compelling Evidence 3.0 eligibility status. + """ + visa_compelling_evidence_3: Optional[VisaCompellingEvidence3] + visa_compliance: Optional[VisaCompliance] _inner_class_types = { "visa_compelling_evidence_3": VisaCompellingEvidence3, + "visa_compliance": VisaCompliance, } due_by: Optional[int] @@ -585,6 +603,12 @@ class ModifyParamsEvidenceEnhancedEvidence(TypedDict): """ Evidence provided for Visa Compelling Evidence 3.0 evidence submission. """ + visa_compliance: NotRequired[ + "Dispute.ModifyParamsEvidenceEnhancedEvidenceVisaCompliance" + ] + """ + Evidence provided for Visa Compliance evidence submission. + """ class ModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3( TypedDict, @@ -738,6 +762,12 @@ class ModifyParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputed State, county, province, or region. """ + class ModifyParamsEvidenceEnhancedEvidenceVisaCompliance(TypedDict): + fee_acknowledged: NotRequired[bool] + """ + A field acknowledging the fee incurred when countering a Visa Compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute, and you may incur a $500 fee if the case is lost. + """ + class RetrieveParams(RequestOptions): expand: NotRequired[List[str]] """ diff --git a/stripe/_dispute_service.py b/stripe/_dispute_service.py index 97c4f7897..1bb1191c0 100644 --- a/stripe/_dispute_service.py +++ b/stripe/_dispute_service.py @@ -211,6 +211,12 @@ class UpdateParamsEvidenceEnhancedEvidence(TypedDict): """ Evidence provided for Visa Compelling Evidence 3.0 evidence submission. """ + visa_compliance: NotRequired[ + "DisputeService.UpdateParamsEvidenceEnhancedEvidenceVisaCompliance" + ] + """ + Evidence provided for Visa Compliance evidence submission. + """ class UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3( TypedDict, @@ -364,6 +370,12 @@ class UpdateParamsEvidenceEnhancedEvidenceVisaCompellingEvidence3PriorUndisputed State, county, province, or region. """ + class UpdateParamsEvidenceEnhancedEvidenceVisaCompliance(TypedDict): + fee_acknowledged: NotRequired[bool] + """ + A field acknowledging the fee incurred when countering a Visa Compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute, and you may incur a $500 fee if the case is lost. + """ + def list( self, params: "DisputeService.ListParams" = {}, From 77cb2f25c6c1d11a317e0e0dba106f0fb755943e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 01:14:22 +0000 Subject: [PATCH 13/17] Update generated code for v1400 --- OPENAPI_VERSION | 2 +- stripe/_charge.py | 17 ++++++++++++ stripe/_payment_intent.py | 46 +++++++++++++++++++++++++++++++ stripe/_payment_intent_service.py | 40 +++++++++++++++++++++++++++ 4 files changed, 104 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 030963bfb..801f5f8b6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1398 \ No newline at end of file +v1400 \ No newline at end of file diff --git a/stripe/_charge.py b/stripe/_charge.py index fb289d009..d9f23815e 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -492,6 +492,17 @@ class Overcapture(StripeObject): Indicates whether or not the authorized amount can be over-captured. """ + class PartialAuthorization(StripeObject): + status: Literal[ + "declined", + "fully_authorized", + "not_requested", + "partially_authorized", + ] + """ + Indicates whether the transaction requested for partial authorization feature and the authorization outcome. + """ + class ThreeDSecure(StripeObject): authentication_flow: Optional[ Literal["challenge", "frictionless"] @@ -755,6 +766,10 @@ class ShippingAddress(StripeObject): """ The authorized amount. """ + amount_requested: Optional[int] + """ + The latest amount intended to be authorized by this charge. + """ authorization_code: Optional[str] """ Authorization code on the charge. @@ -836,6 +851,7 @@ class ShippingAddress(StripeObject): If this card has network token credentials, this contains the details of the network token credentials. """ overcapture: Optional[Overcapture] + partial_authorization: Optional[PartialAuthorization] regulated_status: Optional[Literal["regulated", "unregulated"]] """ Status of a card based on the card issuer. @@ -857,6 +873,7 @@ class ShippingAddress(StripeObject): "multicapture": Multicapture, "network_token": NetworkToken, "overcapture": Overcapture, + "partial_authorization": PartialAuthorization, "three_d_secure": ThreeDSecure, "wallet": Wallet, } diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 58a8bff97..2993b1518 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -2047,6 +2047,12 @@ class Address(StripeObject): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ + request_partial_authorization: Optional[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ request_three_d_secure: Optional[ Literal["any", "automatic", "challenge"] ] @@ -6080,6 +6086,12 @@ class ConfirmParamsPaymentMethodOptionsCard(TypedDict): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ + request_partial_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ request_three_d_secure: NotRequired[ Literal["any", "automatic", "challenge"] ] @@ -9742,6 +9754,12 @@ class CreateParamsPaymentMethodOptionsCard(TypedDict): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ + request_partial_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ request_three_d_secure: NotRequired[ Literal["any", "automatic", "challenge"] ] @@ -11198,6 +11216,12 @@ class IncrementAuthorizationParams(RequestOptions): """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. """ + payment_method_options: NotRequired[ + "PaymentIntent.IncrementAuthorizationParamsPaymentMethodOptions" + ] + """ + Payment method-specific configuration for this PaymentIntent. + """ statement_descriptor: NotRequired[str] """ Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). @@ -11232,6 +11256,22 @@ class IncrementAuthorizationParamsAsyncWorkflowsInputsTax(TypedDict): The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id """ + class IncrementAuthorizationParamsPaymentMethodOptions(TypedDict): + card: NotRequired[ + "PaymentIntent.IncrementAuthorizationParamsPaymentMethodOptionsCard" + ] + """ + Configuration for any card payments attempted on this PaymentIntent. + """ + + class IncrementAuthorizationParamsPaymentMethodOptionsCard(TypedDict): + request_partial_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ + class IncrementAuthorizationParamsTransferData(TypedDict): amount: NotRequired[int] """ @@ -13514,6 +13554,12 @@ class ModifyParamsPaymentMethodOptionsCard(TypedDict): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ + request_partial_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ request_three_d_secure: NotRequired[ Literal["any", "automatic", "challenge"] ] diff --git a/stripe/_payment_intent_service.py b/stripe/_payment_intent_service.py index ab4a4b11c..538b80b43 100644 --- a/stripe/_payment_intent_service.py +++ b/stripe/_payment_intent_service.py @@ -3074,6 +3074,12 @@ class ConfirmParamsPaymentMethodOptionsCard(TypedDict): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ + request_partial_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ request_three_d_secure: NotRequired[ Literal["any", "automatic", "challenge"] ] @@ -6790,6 +6796,12 @@ class CreateParamsPaymentMethodOptionsCard(TypedDict): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ + request_partial_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ request_three_d_secure: NotRequired[ Literal["any", "automatic", "challenge"] ] @@ -8246,6 +8258,12 @@ class IncrementAuthorizationParams(TypedDict): """ Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. """ + payment_method_options: NotRequired[ + "PaymentIntentService.IncrementAuthorizationParamsPaymentMethodOptions" + ] + """ + Payment method-specific configuration for this PaymentIntent. + """ statement_descriptor: NotRequired[str] """ Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). @@ -8280,6 +8298,22 @@ class IncrementAuthorizationParamsAsyncWorkflowsInputsTax(TypedDict): The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id """ + class IncrementAuthorizationParamsPaymentMethodOptions(TypedDict): + card: NotRequired[ + "PaymentIntentService.IncrementAuthorizationParamsPaymentMethodOptionsCard" + ] + """ + Configuration for any card payments attempted on this PaymentIntent. + """ + + class IncrementAuthorizationParamsPaymentMethodOptionsCard(TypedDict): + request_partial_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ + class IncrementAuthorizationParamsTransferData(TypedDict): amount: NotRequired[int] """ @@ -10668,6 +10702,12 @@ class UpdateParamsPaymentMethodOptionsCard(TypedDict): """ Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent. """ + request_partial_authorization: NotRequired[ + Literal["if_available", "never"] + ] + """ + Request partial authorization on this PaymentIntent. + """ request_three_d_secure: NotRequired[ Literal["any", "automatic", "challenge"] ] From 2da24b20189083e79ea396f51d0726f41784e809 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 13:58:01 +0000 Subject: [PATCH 14/17] Update generated code for v1401 --- OPENAPI_VERSION | 2 +- stripe/_charge.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 801f5f8b6..786255474 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1400 \ No newline at end of file +v1401 \ No newline at end of file diff --git a/stripe/_charge.py b/stripe/_charge.py index d9f23815e..d6fd180b1 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -850,6 +850,10 @@ class ShippingAddress(StripeObject): """ If this card has network token credentials, this contains the details of the network token credentials. """ + network_transaction_id: Optional[str] + """ + This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands. + """ overcapture: Optional[Overcapture] partial_authorization: Optional[PartialAuthorization] regulated_status: Optional[Literal["regulated", "unregulated"]] From 12637de43efa1af5e4a2cd5948c94ac9b5ec11e7 Mon Sep 17 00:00:00 2001 From: David Brownman <109395161+xavdid-stripe@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:00:31 -0800 Subject: [PATCH 15/17] fix deprecation warning in httpx @ 0.28 (#1431) --- stripe/_http_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stripe/_http_client.py b/stripe/_http_client.py index 0db2ef3f5..5940f6aad 100644 --- a/stripe/_http_client.py +++ b/stripe/_http_client.py @@ -1244,7 +1244,9 @@ def __init__( kwargs = {} if self._verify_ssl_certs: - kwargs["verify"] = stripe.ca_bundle_path + kwargs["verify"] = ssl.create_default_context( + capath=stripe.ca_bundle_path + ) else: kwargs["verify"] = False From 3b5ad6c1d3e58071169874b7c9f6c36057a3cdb9 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:43:28 +0000 Subject: [PATCH 16/17] Update generated code for v1405 --- OPENAPI_VERSION | 2 +- stripe/_card.py | 4 ++++ stripe/_source.py | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 39e95eebc..a7ed76c94 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1404 \ No newline at end of file +v1405 \ No newline at end of file diff --git a/stripe/_card.py b/stripe/_card.py index d0c82957e..1b1def6a1 100644 --- a/stripe/_card.py +++ b/stripe/_card.py @@ -72,6 +72,10 @@ class DeleteParams(RequestOptions): """ If `address_zip` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`. """ + allow_redisplay: Optional[Literal["always", "limited", "unspecified"]] + """ + This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”. + """ available_payout_methods: Optional[List[Literal["instant", "standard"]]] """ A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout. diff --git a/stripe/_source.py b/stripe/_source.py index f2495dd98..16a321e78 100644 --- a/stripe/_source.py +++ b/stripe/_source.py @@ -1024,6 +1024,10 @@ class VerifyParams(RequestOptions): ach_debit: Optional[AchDebit] acss_debit: Optional[AcssDebit] alipay: Optional[Alipay] + allow_redisplay: Optional[Literal["always", "limited", "unspecified"]] + """ + This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”. + """ amount: Optional[int] """ A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for `single_use` sources. From d70cce7dc37dc3d9f0b60c56e99132789434e279 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 22:46:24 +0000 Subject: [PATCH 17/17] Update generated code for v1406 --- OPENAPI_VERSION | 2 +- stripe/_account.py | 4 ++-- stripe/_capability.py | 4 ++-- stripe/_person.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a7ed76c94..b58f28939 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1405 \ No newline at end of file +v1406 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 205aab923..89c0493a1 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -913,7 +913,7 @@ class Error(StripeObject): """ eventually_due: Optional[List[str]] """ - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well. + Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well. """ past_due: Optional[List[str]] """ @@ -1087,7 +1087,7 @@ class Error(StripeObject): """ eventually_due: Optional[List[str]] """ - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set. + Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set. """ past_due: Optional[List[str]] """ diff --git a/stripe/_capability.py b/stripe/_capability.py index c4a565d9c..c9575c8ea 100644 --- a/stripe/_capability.py +++ b/stripe/_capability.py @@ -169,7 +169,7 @@ class Error(StripeObject): """ eventually_due: List[str] """ - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well. + Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well. """ past_due: List[str] """ @@ -332,7 +332,7 @@ class Error(StripeObject): """ eventually_due: List[str] """ - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set. + Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set. """ past_due: List[str] """ diff --git a/stripe/_person.py b/stripe/_person.py index 2b9b5d1ac..fc0697735 100644 --- a/stripe/_person.py +++ b/stripe/_person.py @@ -274,7 +274,7 @@ class Error(StripeObject): """ eventually_due: List[str] """ - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `future_requirements[current_deadline]` becomes set. + Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `future_requirements[current_deadline]` becomes set. """ past_due: List[str] """ @@ -476,7 +476,7 @@ class Error(StripeObject): """ eventually_due: List[str] """ - Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `current_deadline` becomes set. + Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `current_deadline` becomes set. """ past_due: List[str] """