diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 128fcf476..b58f28939 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1384 \ 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/_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] """ 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/_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/_card.py b/stripe/_card.py index 631da0c36..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. @@ -155,6 +159,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 2bdd6a416..d6fd180b1 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -850,8 +850,16 @@ 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"]] + """ + 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/_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/_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" = {}, 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 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/_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. 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, 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] """ 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/_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. 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/_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", ] ] """ 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): 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. """ 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/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", ] ] """ diff --git a/stripe/issuing/_authorization.py b/stripe/issuing/_authorization.py index 20f1cf604..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. @@ -363,6 +367,7 @@ class AmountDetails(StripeObject): "cardholder_verification_required", "insecure_authorization_method", "insufficient_funds", + "network_fallback", "not_allowed", "pin_blocked", "spending_controls", 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. 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 """ 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):