From 1305a7a08d5043311067b5d6c2028a306ed9141a Mon Sep 17 00:00:00 2001
From: "stripe-openapi[bot]"
<105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Wed, 26 Aug 2026 16:41:34 -0700
Subject: [PATCH 1/9] Update generated code for v2442 and
baff58c9d515cdd5f5c3231d101989d588788c6f (#1876)
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
---
CODEGEN_VERSION | 2 +-
OPENAPI_VERSION | 2 +-
stripe/_account.py | 234 ++-
stripe/_account_session.py | 16 +
stripe/_api_version.py | 2 +-
stripe/_balance_transaction.py | 105 +-
stripe/_bank_account.py | 4 +-
stripe/_billing_service.py | 6 +
stripe/_card.py | 4 +-
stripe/_cash_balance.py | 4 +-
stripe/_charge.py | 325 +--
stripe/_confirmation_token.py | 239 ++-
stripe/_credit_note.py | 4 +-
stripe/_credit_note_line_item.py | 4 +-
stripe/_customer.py | 2 +-
stripe/_customer_session.py | 22 +
stripe/_ephemeral_key.py | 7 +
stripe/_invoice.py | 699 ++++---
stripe/_invoice_item.py | 10 +-
stripe/_invoice_line_item.py | 2 +-
stripe/_invoice_payment.py | 4 +-
stripe/_invoice_rendering_template.py | 4 +-
stripe/_mandate.py | 6 +-
stripe/_object_classes.py | 4 +
stripe/_payment_attempt_record.py | 295 +--
stripe/_payment_intent.py | 500 ++---
stripe/_payment_link.py | 6 +-
stripe/_payment_method.py | 233 ++-
stripe/_payment_record.py | 295 +--
stripe/_plan.py | 4 +-
stripe/_price.py | 12 +-
stripe/_product.py | 3 +-
stripe/_quote.py | 10 +-
stripe/_review.py | 4 +-
stripe/_setup_attempt.py | 518 ++---
stripe/_setup_intent.py | 473 ++---
stripe/_shipping_rate.py | 8 +-
stripe/_source.py | 43 +-
stripe/_source_transaction.py | 39 +-
stripe/_subscription.py | 69 +-
stripe/_subscription_schedule.py | 21 +-
stripe/_subscription_service.py | 4 +-
stripe/_tax_id.py | 245 +--
stripe/_tax_rate.py | 7 +-
stripe/_topup.py | 8 +-
stripe/billing/__init__.py | 11 +
stripe/billing/_feedback_option.py | 309 +++
stripe/billing/_feedback_option_service.py | 228 +++
stripe/billing_portal/_configuration.py | 19 +-
stripe/billing_portal/_session.py | 9 +
stripe/checkout/_session.py | 290 +--
stripe/climate/_order.py | 2 +-
stripe/climate/_product.py | 2 +-
stripe/financial_connections/_session.py | 4 +
stripe/issuing/_card.py | 1253 ++++++------
stripe/issuing/_cardholder.py | 1257 ++++++------
stripe/params/__init__.py | 60 +
..._account_create_external_account_params.py | 2 +-
stripe/params/_account_create_params.py | 24 +-
..._account_external_account_create_params.py | 2 +-
.../_account_external_account_list_params.py | 2 +-
..._account_external_account_update_params.py | 6 +-
stripe/params/_account_link_create_params.py | 6 +-
.../_account_list_external_accounts_params.py | 2 +-
..._account_modify_external_account_params.py | 6 +-
.../params/_account_session_create_params.py | 28 +
stripe/params/_account_update_params.py | 22 +-
stripe/params/_charge_modify_params.py | 2 +-
stripe/params/_charge_update_params.py | 2 +-
.../_confirmation_token_create_params.py | 111 +-
stripe/params/_credit_note_create_params.py | 4 +-
.../_credit_note_preview_lines_list_params.py | 4 +-
.../_credit_note_preview_lines_params.py | 4 +-
stripe/params/_credit_note_preview_params.py | 4 +-
.../_customer_cash_balance_update_params.py | 2 +-
stripe/params/_customer_create_params.py | 249 +--
.../params/_customer_create_tax_id_params.py | 241 +--
.../_customer_modify_cash_balance_params.py | 2 +-
stripe/params/_customer_modify_params.py | 8 +-
.../params/_customer_modify_source_params.py | 2 +-
.../_customer_payment_source_update_params.py | 2 +-
.../params/_customer_session_create_params.py | 26 +
.../params/_customer_tax_id_create_params.py | 241 +--
stripe/params/_customer_update_params.py | 8 +-
stripe/params/_file_list_params.py | 24 +-
stripe/params/_invoice_add_lines_params.py | 4 +-
stripe/params/_invoice_create_params.py | 33 +-
.../params/_invoice_create_preview_params.py | 287 +--
stripe/params/_invoice_item_create_params.py | 8 +-
stripe/params/_invoice_item_modify_params.py | 8 +-
stripe/params/_invoice_item_update_params.py | 8 +-
.../_invoice_line_item_update_params.py | 4 +-
stripe/params/_invoice_list_params.py | 2 +-
stripe/params/_invoice_modify_params.py | 33 +-
..._invoice_rendering_template_list_params.py | 2 +-
stripe/params/_invoice_update_lines_params.py | 4 +-
stripe/params/_invoice_update_params.py | 33 +-
.../params/_payment_intent_cancel_params.py | 4 +-
.../params/_payment_intent_confirm_params.py | 151 +-
.../params/_payment_intent_create_params.py | 151 +-
.../params/_payment_intent_modify_params.py | 147 +-
.../params/_payment_intent_update_params.py | 147 +-
stripe/params/_payment_link_create_params.py | 10 +-
stripe/params/_payment_link_modify_params.py | 36 +-
stripe/params/_payment_link_update_params.py | 36 +-
.../params/_payment_method_create_params.py | 111 +-
stripe/params/_payout_create_params.py | 4 +-
stripe/params/_plan_create_params.py | 6 +-
stripe/params/_price_create_params.py | 14 +-
stripe/params/_price_list_params.py | 6 +-
stripe/params/_price_modify_params.py | 8 +-
stripe/params/_price_update_params.py | 8 +-
stripe/params/_product_create_params.py | 12 +-
stripe/params/_product_list_params.py | 2 +-
stripe/params/_quote_create_params.py | 10 +-
stripe/params/_quote_modify_params.py | 8 +-
stripe/params/_quote_update_params.py | 8 +-
stripe/params/_refund_create_params.py | 2 +-
stripe/params/_setup_intent_cancel_params.py | 2 +-
stripe/params/_setup_intent_confirm_params.py | 149 +-
stripe/params/_setup_intent_create_params.py | 149 +-
stripe/params/_setup_intent_modify_params.py | 148 +-
stripe/params/_setup_intent_update_params.py | 148 +-
stripe/params/_shipping_rate_create_params.py | 8 +-
stripe/params/_shipping_rate_modify_params.py | 8 +-
stripe/params/_shipping_rate_update_params.py | 8 +-
stripe/params/_source_create_params.py | 20 +-
stripe/params/_source_modify_params.py | 12 +-
stripe/params/_source_update_params.py | 12 +-
stripe/params/_subscription_cancel_params.py | 4 +
stripe/params/_subscription_create_params.py | 66 +-
.../_subscription_item_create_params.py | 15 +-
.../_subscription_item_delete_params.py | 7 +-
.../_subscription_item_modify_params.py | 15 +-
.../_subscription_item_update_params.py | 15 +-
stripe/params/_subscription_list_params.py | 2 +-
stripe/params/_subscription_migrate_params.py | 2 +-
stripe/params/_subscription_modify_params.py | 74 +-
.../_subscription_schedule_create_params.py | 26 +-
.../_subscription_schedule_modify_params.py | 24 +-
.../_subscription_schedule_update_params.py | 24 +-
stripe/params/_subscription_update_params.py | 74 +-
stripe/params/_tax_id_create_params.py | 239 +--
stripe/params/_token_create_params.py | 12 +-
stripe/params/_topup_list_params.py | 4 +-
stripe/params/_transfer_create_params.py | 2 +-
.../params/_webhook_endpoint_create_params.py | 540 +++--
.../params/_webhook_endpoint_modify_params.py | 539 +++--
.../params/_webhook_endpoint_update_params.py | 539 +++--
stripe/params/billing/__init__.py | 42 +
.../billing/_feedback_option_create_params.py | 13 +
.../_feedback_option_deactivate_params.py | 12 +
.../billing/_feedback_option_list_params.py | 28 +
.../billing/_feedback_option_modify_params.py | 13 +
.../_feedback_option_retrieve_params.py | 12 +
.../billing/_feedback_option_update_params.py | 12 +
.../_configuration_create_params.py | 10 +-
.../_configuration_modify_params.py | 10 +-
.../_configuration_update_params.py | 10 +-
.../billing_portal/_session_create_params.py | 1 +
.../params/checkout/_session_create_params.py | 60 +-
.../params/checkout/_session_list_params.py | 2 +-
.../params/checkout/_session_modify_params.py | 14 +-
.../params/checkout/_session_update_params.py | 14 +-
.../_session_create_params.py | 5 +-
.../issuing/_authorization_capture_params.py | 25 +-
.../issuing/_authorization_create_params.py | 322 +--
.../_authorization_finalize_amount_params.py | 25 +-
stripe/params/issuing/_card_create_params.py | 1789 ++++++++--------
stripe/params/issuing/_card_modify_params.py | 1789 ++++++++--------
stripe/params/issuing/_card_update_params.py | 1789 ++++++++--------
.../issuing/_cardholder_create_params.py | 1793 +++++++++--------
.../issuing/_cardholder_modify_params.py | 1793 +++++++++--------
.../issuing/_cardholder_update_params.py | 1793 +++++++++--------
...transaction_create_force_capture_params.py | 322 +--
...ansaction_create_unlinked_refund_params.py | 322 +--
.../params/radar/_value_list_create_params.py | 15 +-
.../reporting/_report_run_create_params.py | 642 +-----
stripe/params/tax/__init__.py | 135 ++
.../params/tax/_calculation_create_params.py | 243 +--
.../params/tax/_registration_create_params.py | 316 ++-
stripe/params/tax/_settings_modify_params.py | 2 +-
stripe/params/tax/_settings_update_params.py | 2 +-
.../_confirmation_token_create_params.py | 111 +-
.../issuing/_authorization_capture_params.py | 25 +-
.../issuing/_authorization_create_params.py | 322 +--
.../_authorization_finalize_amount_params.py | 25 +-
...transaction_create_force_capture_params.py | 322 +--
...ansaction_create_unlinked_refund_params.py | 322 +--
.../params/v2/core/_account_create_params.py | 2 +-
stripe/radar/_payment_evaluation.py | 17 +-
stripe/tax/_calculation.py | 317 +--
stripe/tax/_calculation_line_item.py | 39 +-
stripe/tax/_registration.py | 262 ++-
stripe/tax/_transaction.py | 280 +--
stripe/terminal/_reader.py | 440 ++--
stripe/treasury/_financial_account.py | 4 +-
stripe/v2/core/_account.py | 2 +-
stripe/v2/core/_account_service.py | 53 +-
stripe/v2/core/_account_token_service.py | 27 +-
stripe/v2/core/accounts/_person_service.py | 21 +-
.../v2/core/accounts/_person_token_service.py | 11 +-
tests/test_generated_examples.py | 26 +-
203 files changed, 14209 insertions(+), 14976 deletions(-)
create mode 100644 stripe/billing/_feedback_option.py
create mode 100644 stripe/billing/_feedback_option_service.py
create mode 100644 stripe/params/billing/_feedback_option_create_params.py
create mode 100644 stripe/params/billing/_feedback_option_deactivate_params.py
create mode 100644 stripe/params/billing/_feedback_option_list_params.py
create mode 100644 stripe/params/billing/_feedback_option_modify_params.py
create mode 100644 stripe/params/billing/_feedback_option_retrieve_params.py
create mode 100644 stripe/params/billing/_feedback_option_update_params.py
diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index ea710b3c8..308945cbf 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-44014016ec56efb57a8cf6d0ee0771c2e6b4eebe
\ No newline at end of file
+baff58c9d515cdd5f5c3231d101989d588788c6f
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 5ea23263d..28d67d2bf 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2349
\ No newline at end of file
+v2442
\ No newline at end of file
diff --git a/stripe/_account.py b/stripe/_account.py
index c84854f76..649080c72 100644
--- a/stripe/_account.py
+++ b/stripe/_account.py
@@ -216,301 +216,399 @@ class SupportAddress(StripeObject):
}
class Capabilities(StripeObject):
- acss_debit_payments: Optional[Literal["active", "inactive", "pending"]]
+ acss_debit_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Canadian pre-authorized debits payments capability of the account, or whether the account can directly process Canadian pre-authorized debits charges.
"""
- affirm_payments: Optional[Literal["active", "inactive", "pending"]]
+ affirm_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Affirm capability of the account, or whether the account can directly process Affirm charges.
"""
afterpay_clearpay_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges.
"""
- alma_payments: Optional[Literal["active", "inactive", "pending"]]
+ alma_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Alma capability of the account, or whether the account can directly process Alma payments.
"""
- amazon_pay_payments: Optional[Literal["active", "inactive", "pending"]]
+ amazon_pay_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the AmazonPay capability of the account, or whether the account can directly process AmazonPay payments.
"""
- app_distribution: Optional[Literal["active", "inactive", "pending"]]
+ app_distribution: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the `app_distribution` capability of the account, or whether the platform can distribute apps to other accounts.
"""
au_becs_debit_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the BECS Direct Debit (AU) payments capability of the account, or whether the account can directly process BECS Direct Debit (AU) charges.
"""
- bacs_debit_payments: Optional[Literal["active", "inactive", "pending"]]
+ bacs_debit_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.
"""
- bancontact_payments: Optional[Literal["active", "inactive", "pending"]]
+ bancontact_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Bancontact payments capability of the account, or whether the account can directly process Bancontact charges.
"""
bank_transfer_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the customer_balance payments capability of the account, or whether the account can directly process customer_balance charges.
"""
- billie_payments: Optional[Literal["active", "inactive", "pending"]]
+ billie_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Billie capability of the account, or whether the account can directly process Billie payments.
"""
- bizum_payments: Optional[Literal["active", "inactive", "pending"]]
+ bizum_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Bizum capability of the account, or whether the account can directly process Bizum payments.
"""
- blik_payments: Optional[Literal["active", "inactive", "pending"]]
+ blik_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the blik payments capability of the account, or whether the account can directly process blik charges.
"""
- boleto_payments: Optional[Literal["active", "inactive", "pending"]]
+ boleto_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the boleto payments capability of the account, or whether the account can directly process boleto charges.
"""
- card_issuing: Optional[Literal["active", "inactive", "pending"]]
+ card_issuing: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards
"""
- card_payments: Optional[Literal["active", "inactive", "pending"]]
+ card_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the card payments capability of the account, or whether the account can directly process credit and debit card charges.
"""
cartes_bancaires_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the Cartes Bancaires payments capability of the account, or whether the account can directly process Cartes Bancaires card charges in EUR currency.
"""
- cashapp_payments: Optional[Literal["active", "inactive", "pending"]]
+ cashapp_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Cash App Pay capability of the account, or whether the account can directly process Cash App Pay payments.
"""
- crypto_payments: Optional[Literal["active", "inactive", "pending"]]
+ crypto_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Crypto capability of the account, or whether the account can directly process Crypto payments.
"""
- eps_payments: Optional[Literal["active", "inactive", "pending"]]
+ eps_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.
"""
- fpx_payments: Optional[Literal["active", "inactive", "pending"]]
+ fpx_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the FPX payments capability of the account, or whether the account can directly process FPX charges.
"""
gb_bank_transfer_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the GB customer_balance payments (GBP currency) capability of the account, or whether the account can directly process GB customer_balance charges.
"""
- giropay_payments: Optional[Literal["active", "inactive", "pending"]]
+ giropay_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
"""
- grabpay_payments: Optional[Literal["active", "inactive", "pending"]]
+ grabpay_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.
"""
- ideal_payments: Optional[Literal["active", "inactive", "pending"]]
+ ideal_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
"""
india_international_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the india_international_payments capability of the account, or whether the account can process international charges (non INR) in India.
"""
- jcb_payments: Optional[Literal["active", "inactive", "pending"]]
+ jcb_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency.
"""
jp_bank_transfer_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the Japanese customer_balance payments (JPY currency) capability of the account, or whether the account can directly process Japanese customer_balance charges.
"""
- kakao_pay_payments: Optional[Literal["active", "inactive", "pending"]]
+ kakao_pay_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the KakaoPay capability of the account, or whether the account can directly process KakaoPay payments.
"""
- klarna_payments: Optional[Literal["active", "inactive", "pending"]]
+ klarna_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges.
"""
- konbini_payments: Optional[Literal["active", "inactive", "pending"]]
+ konbini_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the konbini payments capability of the account, or whether the account can directly process konbini charges.
"""
- kr_card_payments: Optional[Literal["active", "inactive", "pending"]]
+ kr_card_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the KrCard capability of the account, or whether the account can directly process KrCard payments.
"""
- legacy_payments: Optional[Literal["active", "inactive", "pending"]]
+ legacy_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the legacy payments capability of the account.
"""
- link_payments: Optional[Literal["active", "inactive", "pending"]]
+ link_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the link_payments capability of the account, or whether the account can directly process Link charges.
"""
- mb_way_payments: Optional[Literal["active", "inactive", "pending"]]
+ mb_way_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the MB WAY payments capability of the account, or whether the account can directly process MB WAY charges.
"""
- mobilepay_payments: Optional[Literal["active", "inactive", "pending"]]
+ mobilepay_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
"""
- multibanco_payments: Optional[Literal["active", "inactive", "pending"]]
+ multibanco_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Multibanco payments capability of the account, or whether the account can directly process Multibanco charges.
"""
mx_bank_transfer_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the Mexican customer_balance payments (MXN currency) capability of the account, or whether the account can directly process Mexican customer_balance charges.
"""
- naver_pay_payments: Optional[Literal["active", "inactive", "pending"]]
+ naver_pay_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the NaverPay capability of the account, or whether the account can directly process NaverPay payments.
"""
nz_bank_account_becs_debit_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the New Zealand BECS Direct Debit payments capability of the account, or whether the account can directly process New Zealand BECS Direct Debit charges.
"""
- oxxo_payments: Optional[Literal["active", "inactive", "pending"]]
+ oxxo_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
"""
- p24_payments: Optional[Literal["active", "inactive", "pending"]]
+ p24_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.
"""
pay_by_bank_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the pay_by_bank payments capability of the account, or whether the account can directly process pay_by_bank charges.
"""
- payco_payments: Optional[Literal["active", "inactive", "pending"]]
+ payco_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Payco capability of the account, or whether the account can directly process Payco payments.
"""
- paynow_payments: Optional[Literal["active", "inactive", "pending"]]
+ paynow_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
"""
- payto_payments: Optional[Literal["active", "inactive", "pending"]]
+ payto_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the PayTo capability of the account, or whether the account can directly process PayTo charges.
"""
- pix_payments: Optional[Literal["active", "inactive", "pending"]]
+ pix_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the pix payments capability of the account, or whether the account can directly process pix charges.
"""
- promptpay_payments: Optional[Literal["active", "inactive", "pending"]]
+ promptpay_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
"""
revolut_pay_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
"""
samsung_pay_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the SamsungPay capability of the account, or whether the account can directly process SamsungPay payments.
"""
- satispay_payments: Optional[Literal["active", "inactive", "pending"]]
+ satispay_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Satispay capability of the account, or whether the account can directly process Satispay payments.
"""
- scalapay_payments: Optional[Literal["active", "inactive", "pending"]]
+ scalapay_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Scalapay capability of the account, or whether the account can directly process Scalapay payments.
"""
sepa_bank_transfer_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges.
"""
- sepa_debit_payments: Optional[Literal["active", "inactive", "pending"]]
+ sepa_debit_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
"""
- sofort_payments: Optional[Literal["active", "inactive", "pending"]]
+ sofort_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges.
"""
- sunbit_payments: Optional[Literal["active", "inactive", "pending"]]
+ sunbit_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Sunbit capability of the account, or whether the account can directly process Sunbit payments.
"""
- swish_payments: Optional[Literal["active", "inactive", "pending"]]
+ swish_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Swish capability of the account, or whether the account can directly process Swish payments.
"""
tax_reporting_us_1099_k: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the tax reporting 1099-K (US) capability of the account.
"""
tax_reporting_us_1099_misc: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the tax reporting 1099-MISC (US) capability of the account.
"""
- transfers: Optional[Literal["active", "inactive", "pending"]]
+ transfers: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the transfers capability of the account, or whether your platform can transfer funds to the account.
"""
- treasury: Optional[Literal["active", "inactive", "pending"]]
+ treasury: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the banking capability, or whether the account can have bank accounts.
"""
- twint_payments: Optional[Literal["active", "inactive", "pending"]]
+ twint_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the TWINT capability of the account, or whether the account can directly process TWINT charges.
"""
- upi_payments: Optional[Literal["active", "inactive", "pending"]]
+ upi_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the upi payments capability of the account, or whether the account can directly process upi charges.
"""
us_bank_account_ach_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
"""
us_bank_transfer_payments: Optional[
- Literal["active", "inactive", "pending"]
+ Union[Literal["active", "inactive", "pending"], str]
]
"""
The status of the US customer_balance payments (USD currency) capability of the account, or whether the account can directly process US customer_balance charges.
"""
- zip_payments: Optional[Literal["active", "inactive", "pending"]]
+ zip_payments: Optional[
+ Union[Literal["active", "inactive", "pending"], str]
+ ]
"""
The status of the Zip capability of the account, or whether the account can directly process Zip charges.
"""
@@ -906,7 +1004,7 @@ class StripeDashboard(StripeObject):
A value indicating responsibility for collecting requirements on this account. Only returned when the Connect application retrieving the resource controls the account.
"""
stripe_dashboard: Optional[StripeDashboard]
- type: Literal["account", "application"]
+ type: Union[Literal["account", "application"], str]
"""
The controller type. Can be `application`, if a Connect application controls the account, or `account`, if the account controls itself.
"""
@@ -1361,7 +1459,7 @@ class Invoices(StripeObject):
The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
"""
hosted_payment_method_save: Optional[
- Literal["always", "never", "offer"]
+ Union[Literal["always", "never", "offer"], str]
]
"""
Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
diff --git a/stripe/_account_session.py b/stripe/_account_session.py
index 87e24b3f8..41b06bcd0 100644
--- a/stripe/_account_session.py
+++ b/stripe/_account_session.py
@@ -335,6 +335,20 @@ class Features(StripeObject):
features: Features
_inner_class_types = {"features": Features}
+ class PaymentMethodSettings(StripeObject):
+ class Features(StripeObject):
+ disable_stripe_user_authentication: bool
+ """
+ Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
+ """
+
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: Features
+ _inner_class_types = {"features": Features}
+
class Payments(StripeObject):
class Features(StripeObject):
capture_payments: bool
@@ -464,6 +478,7 @@ class Features(StripeObject):
notification_banner: NotificationBanner
payment_details: PaymentDetails
payment_disputes: PaymentDisputes
+ payment_method_settings: PaymentMethodSettings
payments: Payments
payout_details: PayoutDetails
payout_reconciliation_report: PayoutReconciliationReport
@@ -486,6 +501,7 @@ class Features(StripeObject):
"notification_banner": NotificationBanner,
"payment_details": PaymentDetails,
"payment_disputes": PaymentDisputes,
+ "payment_method_settings": PaymentMethodSettings,
"payments": Payments,
"payout_details": PayoutDetails,
"payout_reconciliation_report": PayoutReconciliationReport,
diff --git a/stripe/_api_version.py b/stripe/_api_version.py
index cbf20a425..2ceb9ee92 100644
--- a/stripe/_api_version.py
+++ b/stripe/_api_version.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
class _ApiVersion:
- CURRENT = "2026-07-29.dahlia"
+ CURRENT = "2026-08-26.dahlia"
CURRENT_MAJOR = "dahlia"
diff --git a/stripe/_balance_transaction.py b/stripe/_balance_transaction.py
index d6ca5f255..a5ee4eb36 100644
--- a/stripe/_balance_transaction.py
+++ b/stripe/_balance_transaction.py
@@ -157,57 +157,60 @@ class FeeDetail(StripeObject):
"""
The transaction's net funds status in the Stripe balance, which are either `available` or `pending`.
"""
- type: Literal[
- "adjustment",
- "advance",
- "advance_funding",
- "anticipation_repayment",
- "application_fee",
- "application_fee_refund",
- "charge",
- "climate_order_purchase",
- "climate_order_refund",
- "connect_collection_transfer",
- "contribution",
- "fee_credit_funding",
- "inbound_transfer",
- "inbound_transfer_reversal",
- "issuing_authorization_hold",
- "issuing_authorization_release",
- "issuing_dispute",
- "issuing_transaction",
- "obligation_outbound",
- "obligation_reversal_inbound",
- "payment",
- "payment_failure_refund",
- "payment_network_reserve_hold",
- "payment_network_reserve_release",
- "payment_refund",
- "payment_reversal",
- "payment_unreconciled",
- "payout",
- "payout_cancel",
- "payout_failure",
- "payout_minimum_balance_hold",
- "payout_minimum_balance_release",
- "refund",
- "refund_failure",
- "reserve_hold",
- "reserve_release",
- "reserve_transaction",
- "reserved_funds",
- "stripe_balance_payment_debit",
- "stripe_balance_payment_debit_reversal",
- "stripe_fee",
- "stripe_fx_fee",
- "tax_fee",
- "tax_fund",
- "topup",
- "topup_reversal",
- "transfer",
- "transfer_cancel",
- "transfer_failure",
- "transfer_refund",
+ type: Union[
+ Literal[
+ "adjustment",
+ "advance",
+ "advance_funding",
+ "anticipation_repayment",
+ "application_fee",
+ "application_fee_refund",
+ "charge",
+ "climate_order_purchase",
+ "climate_order_refund",
+ "connect_collection_transfer",
+ "contribution",
+ "fee_credit_funding",
+ "inbound_transfer",
+ "inbound_transfer_reversal",
+ "issuing_authorization_hold",
+ "issuing_authorization_release",
+ "issuing_dispute",
+ "issuing_transaction",
+ "obligation_outbound",
+ "obligation_reversal_inbound",
+ "payment",
+ "payment_failure_refund",
+ "payment_network_reserve_hold",
+ "payment_network_reserve_release",
+ "payment_refund",
+ "payment_reversal",
+ "payment_unreconciled",
+ "payout",
+ "payout_cancel",
+ "payout_failure",
+ "payout_minimum_balance_hold",
+ "payout_minimum_balance_release",
+ "refund",
+ "refund_failure",
+ "reserve_hold",
+ "reserve_release",
+ "reserve_transaction",
+ "reserved_funds",
+ "stripe_balance_payment_debit",
+ "stripe_balance_payment_debit_reversal",
+ "stripe_fee",
+ "stripe_fx_fee",
+ "tax_fee",
+ "tax_fund",
+ "topup",
+ "topup_reversal",
+ "transfer",
+ "transfer_cancel",
+ "transfer_failure",
+ "transfer_refund",
+ ],
+ str,
]
"""
Transaction type: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
diff --git a/stripe/_bank_account.py b/stripe/_bank_account.py
index 893d43748..8c9bd8c5f 100644
--- a/stripe/_bank_account.py
+++ b/stripe/_bank_account.py
@@ -314,7 +314,9 @@ class Error(StripeObject):
"""
The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
"""
- available_payout_methods: Optional[List[Literal["instant", "standard"]]]
+ available_payout_methods: Optional[
+ List[Union[Literal["instant", "standard"], str]]
+ ]
"""
A set of available payout methods for this bank account. Only values from this set should be passed as the `method` when creating a payout.
"""
diff --git a/stripe/_billing_service.py b/stripe/_billing_service.py
index 49fb9a4c9..9909c07f0 100644
--- a/stripe/_billing_service.py
+++ b/stripe/_billing_service.py
@@ -13,6 +13,7 @@
CreditBalanceTransactionService,
)
from stripe.billing._credit_grant_service import CreditGrantService
+ from stripe.billing._feedback_option_service import FeedbackOptionService
from stripe.billing._meter_event_adjustment_service import (
MeterEventAdjustmentService,
)
@@ -33,6 +34,10 @@
"stripe.billing._credit_grant_service",
"CreditGrantService",
],
+ "feedback_options": [
+ "stripe.billing._feedback_option_service",
+ "FeedbackOptionService",
+ ],
"meters": ["stripe.billing._meter_service", "MeterService"],
"meter_events": [
"stripe.billing._meter_event_service",
@@ -50,6 +55,7 @@ class BillingService(StripeService):
credit_balance_summary: "CreditBalanceSummaryService"
credit_balance_transactions: "CreditBalanceTransactionService"
credit_grants: "CreditGrantService"
+ feedback_options: "FeedbackOptionService"
meters: "MeterService"
meter_events: "MeterEventService"
meter_event_adjustments: "MeterEventAdjustmentService"
diff --git a/stripe/_card.py b/stripe/_card.py
index f69e8dce0..889b82c5f 100644
--- a/stripe/_card.py
+++ b/stripe/_card.py
@@ -72,7 +72,9 @@ class Networks(StripeObject):
"""
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"]]]
+ available_payout_methods: Optional[
+ List[Union[Literal["instant", "standard"], str]]
+ ]
"""
A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
"""
diff --git a/stripe/_cash_balance.py b/stripe/_cash_balance.py
index d618bcee8..496500f1b 100644
--- a/stripe/_cash_balance.py
+++ b/stripe/_cash_balance.py
@@ -3,7 +3,7 @@
from stripe._customer import Customer
from stripe._stripe_object import StripeObject, UntypedStripeObject
from stripe._util import sanitize_id
-from typing import ClassVar, Optional
+from typing import ClassVar, Optional, Union
from typing_extensions import Literal
@@ -15,7 +15,7 @@ class CashBalance(StripeObject):
OBJECT_NAME: ClassVar[Literal["cash_balance"]] = "cash_balance"
class Settings(StripeObject):
- reconciliation_mode: Literal["automatic", "manual"]
+ reconciliation_mode: Union[Literal["automatic", "manual"], str]
"""
The configuration for how funds that land in the customer cash balance are reconciled.
"""
diff --git a/stripe/_charge.py b/stripe/_charge.py
index a8b4f6b84..f46178727 100644
--- a/stripe/_charge.py
+++ b/stripe/_charge.py
@@ -158,7 +158,12 @@ class Rule(StripeObject):
"""
advice_code: Optional[
- Literal["confirm_card_data", "do_not_try_again", "try_again_later"]
+ Union[
+ Literal[
+ "confirm_card_data", "do_not_try_again", "try_again_later"
+ ],
+ str,
+ ]
]
"""
An enumerated value providing a more detailed explanation on [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines).
@@ -221,7 +226,9 @@ class AchCreditTransfer(StripeObject):
"""
class AchDebit(StripeObject):
- account_holder_type: Optional[Literal["company", "individual"]]
+ account_holder_type: Optional[
+ Union[Literal["company", "individual"], str]
+ ]
"""
Type of entity that holds the account. This can be either `individual` or `company`.
"""
@@ -439,7 +446,9 @@ class Bancontact(StripeObject):
"""
Last four characters of the IBAN.
"""
- preferred_language: Optional[Literal["de", "en", "fr", "nl"]]
+ preferred_language: Optional[
+ Union[Literal["de", "en", "fr", "nl"], str]
+ ]
"""
Preferred language of the Bancontact authorization page that the customer is redirected to.
Can be one of `en`, `de`, `fr`, or `nl`
@@ -638,7 +647,10 @@ class GooglePay(StripeObject):
pass
class Link(StripeObject):
- pass
+ funding_source_group: Optional[str]
+ """
+ The [funding source group code](https://docs.stripe.com/payments/link/link-payment-methods) applied to this Link payment at confirmation time.
+ """
class Masterpass(StripeObject):
class BillingAddress(StripeObject):
@@ -801,14 +813,17 @@ class ShippingAddress(StripeObject):
link: Optional[Link]
masterpass: Optional[Masterpass]
samsung_pay: Optional[SamsungPay]
- type: Literal[
- "amex_express_checkout",
- "apple_pay",
- "google_pay",
- "link",
- "masterpass",
- "samsung_pay",
- "visa_checkout",
+ type: Union[
+ Literal[
+ "amex_express_checkout",
+ "apple_pay",
+ "google_pay",
+ "link",
+ "masterpass",
+ "samsung_pay",
+ "visa_checkout",
+ ],
+ str,
]
"""
The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
@@ -1187,35 +1202,38 @@ class CustomerBalance(StripeObject):
class Eps(StripeObject):
bank: Optional[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
+ Union[
+ Literal[
+ "arzte_und_apotheker_bank",
+ "austrian_anadi_bank_ag",
+ "bank_austria",
+ "bankhaus_carl_spangler",
+ "bankhaus_schelhammer_und_schattera_ag",
+ "bawag_psk_ag",
+ "bks_bank_ag",
+ "brull_kallmus_bank_ag",
+ "btv_vier_lander_bank",
+ "capital_bank_grawe_gruppe_ag",
+ "deutsche_bank_ag",
+ "dolomitenbank",
+ "easybank_ag",
+ "erste_bank_und_sparkassen",
+ "hypo_alpeadriabank_international_ag",
+ "hypo_bank_burgenland_aktiengesellschaft",
+ "hypo_noe_lb_fur_niederosterreich_u_wien",
+ "hypo_oberosterreich_salzburg_steiermark",
+ "hypo_tirol_bank_ag",
+ "hypo_vorarlberg_bank_ag",
+ "marchfelder_bank",
+ "oberbank_ag",
+ "raiffeisen_bankengruppe_osterreich",
+ "schoellerbank_ag",
+ "sparda_bank_wien",
+ "volksbank_gruppe",
+ "volkskreditbank_ag",
+ "vr_bank_braunau",
+ ],
+ str,
]
]
"""
@@ -1229,36 +1247,41 @@ class Eps(StripeObject):
"""
class Fpx(StripeObject):
- account_holder_type: Optional[Literal["company", "individual"]]
+ account_holder_type: Optional[
+ Union[Literal["company", "individual"], str]
+ ]
"""
Account holder type, if provided. Can be one of `individual` or `company`.
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`.
@@ -1296,55 +1319,61 @@ class Grabpay(StripeObject):
class Ideal(StripeObject):
bank: Optional[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
+ Union[
+ Literal[
+ "abn_amro",
+ "adyen",
+ "asn_bank",
+ "bunq",
+ "buut",
+ "finom",
+ "handelsbanken",
+ "ing",
+ "knab",
+ "mollie",
+ "moneyou",
+ "n26",
+ "nn",
+ "rabobank",
+ "regiobank",
+ "revolut",
+ "sns_bank",
+ "triodos_bank",
+ "van_lanschot",
+ "yoursafe",
+ ],
+ str,
]
]
"""
The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
"""
bic: Optional[
- Literal[
- "ABNANL2A",
- "ADYBNL2A",
- "ASNBNL21",
- "BITSNL2A",
- "BUNQNL2A",
- "BUUTNL2A",
- "FNOMNL22",
- "FVLBNL22",
- "HANDNL2A",
- "INGBNL2A",
- "KNABNL2H",
- "MLLENL2A",
- "MOYONL21",
- "NNBANL2G",
- "NTSBDEB1",
- "RABONL2U",
- "RBRBNL21",
- "REVOIE23",
- "REVOLT21",
- "SNSBNL2A",
- "TRIONL2U",
+ Union[
+ Literal[
+ "ABNANL2A",
+ "ADYBNL2A",
+ "ASNBNL21",
+ "BITSNL2A",
+ "BUNQNL2A",
+ "BUUTNL2A",
+ "FNOMNL22",
+ "FVLBNL22",
+ "HANDNL2A",
+ "INGBNL2A",
+ "KNABNL2H",
+ "MLLENL2A",
+ "MOYONL21",
+ "NNBANL2G",
+ "NTSBDEB1",
+ "RABONL2U",
+ "RBRBNL21",
+ "REVOIE23",
+ "REVOLT21",
+ "SNSBNL2A",
+ "TRIONL2U",
+ ],
+ str,
]
]
"""
@@ -1559,7 +1588,12 @@ class Address(StripeObject):
class Konbini(StripeObject):
class Store(StripeObject):
chain: Optional[
- Literal["familymart", "lawson", "ministop", "seicomart"]
+ Union[
+ Literal[
+ "familymart", "lawson", "ministop", "seicomart"
+ ],
+ str,
+ ]
]
"""
The name of the convenience store chain where the payment was completed.
@@ -1623,6 +1657,10 @@ class Link(StripeObject):
Two-letter ISO code representing the funding source country beneath the Link payment.
You could use this attribute to get a sense of international fees.
"""
+ funding_source_group: Optional[str]
+ """
+ The [funding source group code](https://docs.stripe.com/payments/link/link-payment-methods) applied to this Link payment at confirmation time.
+ """
class MbWay(StripeObject):
pass
@@ -1714,33 +1752,36 @@ class Oxxo(StripeObject):
class P24(StripeObject):
bank: Optional[
- Literal[
- "alior_bank",
- "bank_millennium",
- "bank_nowy_bfg_sa",
- "bank_pekao_sa",
- "banki_spbdzielcze",
- "blik",
- "bnp_paribas",
- "boz",
- "citi_handlowy",
- "credit_agricole",
- "envelobank",
- "etransfer_pocztowy24",
- "getin_bank",
- "ideabank",
- "ing",
- "inteligo",
- "mbank_mtransfer",
- "nest_przelew",
- "noble_pay",
- "pbac_z_ipko",
- "plus_bank",
- "santander_przelew24",
- "tmobile_usbugi_bankowe",
- "toyota_bank",
- "velobank",
- "volkswagen_bank",
+ Union[
+ Literal[
+ "alior_bank",
+ "bank_millennium",
+ "bank_nowy_bfg_sa",
+ "bank_pekao_sa",
+ "banki_spbdzielcze",
+ "blik",
+ "bnp_paribas",
+ "boz",
+ "citi_handlowy",
+ "credit_agricole",
+ "envelobank",
+ "etransfer_pocztowy24",
+ "getin_bank",
+ "ideabank",
+ "ing",
+ "inteligo",
+ "mbank_mtransfer",
+ "nest_przelew",
+ "noble_pay",
+ "pbac_z_ipko",
+ "plus_bank",
+ "santander_przelew24",
+ "tmobile_usbugi_bankowe",
+ "toyota_bank",
+ "velobank",
+ "volkswagen_bank",
+ ],
+ str,
]
]
"""
@@ -1861,7 +1902,7 @@ class Pix(StripeObject):
"""
mandate: Optional[str]
"""
- ID of the multi use Mandate generated by the PaymentIntent
+ ID of the multi use Mandate generated by the PaymentIntent or SetupIntent.
"""
class Promptpay(StripeObject):
@@ -2008,7 +2049,7 @@ class Sofort(StripeObject):
Last four characters of the IBAN.
"""
preferred_language: Optional[
- Literal["de", "en", "es", "fr", "it", "nl", "pl"]
+ Union[Literal["de", "en", "es", "fr", "it", "nl", "pl"], str]
]
"""
Preferred language of the SOFORT authorization page that the customer is redirected to.
@@ -2046,7 +2087,7 @@ class Swish(StripeObject):
class Twint(StripeObject):
mandate: Optional[str]
"""
- ID of the multi use Mandate generated by the PaymentIntent
+ ID of the multi use Mandate generated by the PaymentIntent or SetupIntent.
"""
class Upi(StripeObject):
diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py
index ee69e3fab..99c03d248 100644
--- a/stripe/_confirmation_token.py
+++ b/stripe/_confirmation_token.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._api_resource import APIResource
from stripe._expandable_field import ExpandableField
-from stripe._stripe_object import StripeObject
+from stripe._stripe_object import StripeObject, UntypedStripeObject
from stripe._test_helpers import APIResourceTestHelpers
from typing import ClassVar, List, Optional, Union, cast
from typing_extensions import Literal, Type, Unpack, TYPE_CHECKING
@@ -665,14 +665,17 @@ class ShippingAddress(StripeObject):
link: Optional[Link]
masterpass: Optional[Masterpass]
samsung_pay: Optional[SamsungPay]
- type: Literal[
- "amex_express_checkout",
- "apple_pay",
- "google_pay",
- "link",
- "masterpass",
- "samsung_pay",
- "visa_checkout",
+ type: Union[
+ Literal[
+ "amex_express_checkout",
+ "apple_pay",
+ "google_pay",
+ "link",
+ "masterpass",
+ "samsung_pay",
+ "visa_checkout",
+ ],
+ str,
]
"""
The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
@@ -902,35 +905,38 @@ class CustomerBalance(StripeObject):
class Eps(StripeObject):
bank: Optional[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
+ Union[
+ Literal[
+ "arzte_und_apotheker_bank",
+ "austrian_anadi_bank_ag",
+ "bank_austria",
+ "bankhaus_carl_spangler",
+ "bankhaus_schelhammer_und_schattera_ag",
+ "bawag_psk_ag",
+ "bks_bank_ag",
+ "brull_kallmus_bank_ag",
+ "btv_vier_lander_bank",
+ "capital_bank_grawe_gruppe_ag",
+ "deutsche_bank_ag",
+ "dolomitenbank",
+ "easybank_ag",
+ "erste_bank_und_sparkassen",
+ "hypo_alpeadriabank_international_ag",
+ "hypo_bank_burgenland_aktiengesellschaft",
+ "hypo_noe_lb_fur_niederosterreich_u_wien",
+ "hypo_oberosterreich_salzburg_steiermark",
+ "hypo_tirol_bank_ag",
+ "hypo_vorarlberg_bank_ag",
+ "marchfelder_bank",
+ "oberbank_ag",
+ "raiffeisen_bankengruppe_osterreich",
+ "schoellerbank_ag",
+ "sparda_bank_wien",
+ "volksbank_gruppe",
+ "volkskreditbank_ag",
+ "vr_bank_braunau",
+ ],
+ str,
]
]
"""
@@ -938,36 +944,41 @@ class Eps(StripeObject):
"""
class Fpx(StripeObject):
- account_holder_type: Optional[Literal["company", "individual"]]
+ account_holder_type: Optional[
+ Union[Literal["company", "individual"], str]
+ ]
"""
Account holder type, if provided. Can be one of `individual` or `company`.
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`.
@@ -981,55 +992,61 @@ class Grabpay(StripeObject):
class Ideal(StripeObject):
bank: Optional[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
+ Union[
+ Literal[
+ "abn_amro",
+ "adyen",
+ "asn_bank",
+ "bunq",
+ "buut",
+ "finom",
+ "handelsbanken",
+ "ing",
+ "knab",
+ "mollie",
+ "moneyou",
+ "n26",
+ "nn",
+ "rabobank",
+ "regiobank",
+ "revolut",
+ "sns_bank",
+ "triodos_bank",
+ "van_lanschot",
+ "yoursafe",
+ ],
+ str,
]
]
"""
The customer's bank, if provided. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
"""
bic: Optional[
- Literal[
- "ABNANL2A",
- "ADYBNL2A",
- "ASNBNL21",
- "BITSNL2A",
- "BUNQNL2A",
- "BUUTNL2A",
- "FNOMNL22",
- "FVLBNL22",
- "HANDNL2A",
- "INGBNL2A",
- "KNABNL2H",
- "MLLENL2A",
- "MOYONL21",
- "NNBANL2G",
- "NTSBDEB1",
- "RABONL2U",
- "RBRBNL21",
- "REVOIE23",
- "REVOLT21",
- "SNSBNL2A",
- "TRIONL2U",
+ Union[
+ Literal[
+ "ABNANL2A",
+ "ADYBNL2A",
+ "ASNBNL21",
+ "BITSNL2A",
+ "BUNQNL2A",
+ "BUUTNL2A",
+ "FNOMNL22",
+ "FVLBNL22",
+ "HANDNL2A",
+ "INGBNL2A",
+ "KNABNL2H",
+ "MLLENL2A",
+ "MOYONL21",
+ "NNBANL2G",
+ "NTSBDEB1",
+ "RABONL2U",
+ "RBRBNL21",
+ "REVOIE23",
+ "REVOLT21",
+ "SNSBNL2A",
+ "TRIONL2U",
+ ],
+ str,
]
]
"""
@@ -1402,7 +1419,7 @@ class Networks(StripeObject):
"""
The preferred network.
"""
- supported: List[Literal["ach", "us_domestic_wire"]]
+ supported: List[Union[Literal["ach", "us_domestic_wire"], str]]
"""
All supported networks.
"""
@@ -1752,6 +1769,10 @@ class Address(StripeObject):
"""
Data used for generating a Mandate.
"""
+ metadata: Optional[UntypedStripeObject[str]]
+ """
+ Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ """
object: Literal["confirmation_token"]
"""
String representing the object's type. Objects of the same type share the same value.
diff --git a/stripe/_credit_note.py b/stripe/_credit_note.py
index e396268f2..3eb6a8657 100644
--- a/stripe/_credit_note.py
+++ b/stripe/_credit_note.py
@@ -191,7 +191,7 @@ class TaxRateDetails(StripeObject):
"""
The amount of the tax, in cents (or local equivalent).
"""
- tax_behavior: Literal["exclusive", "inclusive"]
+ tax_behavior: Union[Literal["exclusive", "inclusive"], str]
"""
Whether this tax is inclusive or exclusive.
"""
@@ -373,7 +373,7 @@ class TaxRateDetails(StripeObject):
"""
The aggregate tax information for all line items.
"""
- type: Literal["mixed", "post_payment", "pre_payment"]
+ type: Union[Literal["mixed", "post_payment", "pre_payment"], str]
"""
Type of this credit note, one of `pre_payment` or `post_payment`. A `pre_payment` credit note means it was issued when the invoice was open. A `post_payment` credit note means it was issued when the invoice was paid.
"""
diff --git a/stripe/_credit_note_line_item.py b/stripe/_credit_note_line_item.py
index bbd071f38..c8b396adb 100644
--- a/stripe/_credit_note_line_item.py
+++ b/stripe/_credit_note_line_item.py
@@ -64,7 +64,7 @@ class TaxRateDetails(StripeObject):
"""
The amount of the tax, in cents (or local equivalent).
"""
- tax_behavior: Literal["exclusive", "inclusive"]
+ tax_behavior: Union[Literal["exclusive", "inclusive"], str]
"""
Whether this tax is inclusive or exclusive.
"""
@@ -158,7 +158,7 @@ class TaxRateDetails(StripeObject):
"""
The tax information of the line item.
"""
- type: Literal["custom_line_item", "invoice_line_item"]
+ type: Union[Literal["custom_line_item", "invoice_line_item"], str]
"""
The type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. When the type is `invoice_line_item` there is an additional `invoice_line_item` property on the resource the value of which is the id of the credited line item on the invoice.
"""
diff --git a/stripe/_customer.py b/stripe/_customer.py
index 9502100f4..9ef7186a0 100644
--- a/stripe/_customer.py
+++ b/stripe/_customer.py
@@ -415,7 +415,7 @@ class Location(StripeObject):
The customer's current subscriptions, if any.
"""
tax: Optional[Tax]
- tax_exempt: Optional[Literal["exempt", "none", "reverse"]]
+ tax_exempt: Optional[Union[Literal["exempt", "none", "reverse"], str]]
"""
Describes the customer's tax exemption status, which is `none`, `exempt`, or `reverse`. When set to `reverse`, invoice and receipt PDFs include the following text: **"Reverse charge"**.
"""
diff --git a/stripe/_customer_session.py b/stripe/_customer_session.py
index 16308ab6e..3a4611369 100644
--- a/stripe/_customer_session.py
+++ b/stripe/_customer_session.py
@@ -26,12 +26,24 @@ class CustomerSession(CreateableAPIResource["CustomerSession"]):
OBJECT_NAME: ClassVar[Literal["customer_session"]] = "customer_session"
class Components(StripeObject):
+ class ActiveEntitlements(StripeObject):
+ enabled: bool
+ """
+ Whether the active entitlements is enabled.
+ """
+
class BuyButton(StripeObject):
enabled: bool
"""
Whether the buy button is enabled.
"""
+ class CustomerPortal(StripeObject):
+ enabled: bool
+ """
+ Whether the customer portal is enabled.
+ """
+
class CustomerSheet(StripeObject):
class Features(StripeObject):
payment_method_allow_redisplay_filters: Optional[
@@ -175,10 +187,18 @@ class PricingTable(StripeObject):
Whether the pricing table is enabled.
"""
+ active_entitlements: ActiveEntitlements
+ """
+ This hash contains whether the active entitlements is enabled.
+ """
buy_button: BuyButton
"""
This hash contains whether the buy button is enabled.
"""
+ customer_portal: CustomerPortal
+ """
+ This hash contains whether the customer portal is enabled.
+ """
customer_sheet: CustomerSheet
"""
This hash contains whether the customer sheet is enabled and the features it supports.
@@ -196,7 +216,9 @@ class PricingTable(StripeObject):
This hash contains whether the pricing table is enabled.
"""
_inner_class_types = {
+ "active_entitlements": ActiveEntitlements,
"buy_button": BuyButton,
+ "customer_portal": CustomerPortal,
"customer_sheet": CustomerSheet,
"mobile_payment_element": MobilePaymentElement,
"payment_element": PaymentElement,
diff --git a/stripe/_ephemeral_key.py b/stripe/_ephemeral_key.py
index 2c0564c26..88766347f 100644
--- a/stripe/_ephemeral_key.py
+++ b/stripe/_ephemeral_key.py
@@ -16,6 +16,13 @@ class EphemeralKey(
CreateableAPIResource["EphemeralKey"],
DeletableAPIResource["EphemeralKey"],
):
+ """
+ Ephemeral keys give the SDKs (like Stripe's mobile SDKs and Issuing Elements) temporary, scoped access to a specific
+ resource, such as a Customer, Issuing Card, or Identity VerificationSession, without exposing your secret API key.
+
+ Related guides: [Using Issuing Elements](https://docs.stripe.com/issuing/elements).
+ """
+
OBJECT_NAME: ClassVar[Literal["ephemeral_key"]] = "ephemeral_key"
created: int
"""
diff --git a/stripe/_invoice.py b/stripe/_invoice.py
index 4b2cd033f..113ef5f88 100644
--- a/stripe/_invoice.py
+++ b/stripe/_invoice.py
@@ -262,125 +262,128 @@ class Address(StripeObject):
_inner_class_types = {"address": Address}
class CustomerTaxId(StripeObject):
- type: Literal[
- "ad_nrt",
- "ae_trn",
- "al_tin",
- "am_tin",
- "ao_tin",
- "ar_cuit",
- "au_abn",
- "au_arn",
- "aw_tin",
- "az_tin",
- "ba_tin",
- "bb_tin",
- "bd_bin",
- "bf_ifu",
- "bg_uic",
- "bh_vat",
- "bj_ifu",
- "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",
- "cm_niu",
- "cn_tin",
- "co_nit",
- "cr_tin",
- "cv_nif",
- "de_stn",
- "do_rcn",
- "ec_ruc",
- "eg_tin",
- "es_cif",
- "et_tin",
- "eu_oss_vat",
- "eu_vat",
- "fo_vat",
- "gb_vat",
- "ge_vat",
- "gi_tin",
- "gn_nif",
- "hk_br",
- "hr_oib",
- "hu_tin",
- "ic_nif",
- "id_npwp",
- "il_vat",
- "in_gst",
- "is_vat",
- "it_cf",
- "jp_cn",
- "jp_rn",
- "jp_trn",
- "ke_pin",
- "kg_tin",
- "kh_tin",
- "kr_brn",
- "kz_bin",
- "la_tin",
- "li_uid",
- "li_vat",
- "lk_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",
- "pl_nip",
- "py_ruc",
- "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",
- "unknown",
- "us_ein",
- "uy_ruc",
- "uz_tin",
- "uz_vat",
- "ve_rif",
- "vn_tin",
- "za_vat",
- "zm_tin",
- "zw_tin",
+ type: Union[
+ Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "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",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "fo_vat",
+ "gb_vat",
+ "ge_vat",
+ "gi_tin",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "ic_nif",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "it_cf",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "lk_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",
+ "pl_nip",
+ "py_ruc",
+ "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",
+ "unknown",
+ "us_ein",
+ "uy_ruc",
+ "uz_tin",
+ "uz_vat",
+ "ve_rif",
+ "vn_tin",
+ "za_vat",
+ "zm_tin",
+ "zw_tin",
+ ],
+ str,
]
"""
The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, or `unknown`
@@ -420,202 +423,211 @@ class LastFinalizationError(StripeObject):
For card errors, the ID of the failed charge.
"""
code: Optional[
- Literal[
- "account_closed",
- "account_country_invalid_address",
- "account_error_country_change_requires_additional_steps",
- "account_information_mismatch",
- "account_invalid",
- "account_number_invalid",
- "account_token_required_for_v2_account",
- "acss_debit_session_incomplete",
- "action_blocked",
- "alipay_upgrade_required",
- "amount_too_large",
- "amount_too_small",
- "anomalous_money_movement_request",
- "api_key_expired",
- "application_fees_not_allowed",
- "approval_required",
- "authentication_required",
- "balance_insufficient",
- "balance_invalid_parameter",
- "bank_account_bad_routing_numbers",
- "bank_account_declined",
- "bank_account_exists",
- "bank_account_restricted",
- "bank_account_unusable",
- "bank_account_unverified",
- "bank_account_verification_failed",
- "billing_invalid_mandate",
- "bitcoin_upgrade_required",
- "capture_charge_authorization_expired",
- "capture_unauthorized_payment",
- "card_decline_rate_limit_exceeded",
- "card_declined",
- "cardholder_phone_number_required",
- "charge_already_captured",
- "charge_already_refunded",
- "charge_disputed",
- "charge_exceeds_source_limit",
- "charge_exceeds_transaction_limit",
- "charge_expired_for_capture",
- "charge_invalid_parameter",
- "charge_not_refundable",
- "clearing_code_unsupported",
- "country_code_invalid",
- "country_unsupported",
- "coupon_expired",
- "customer_max_payment_methods",
- "customer_max_subscriptions",
- "customer_session_expired",
- "customer_tax_location_invalid",
- "debit_not_authorized",
- "email_invalid",
- "expired_card",
- "failed_tax_calculation",
- "financial_account_balance_does_not_support_currency",
- "financial_account_capability_not_enabled",
- "financial_account_capability_restricted",
- "financial_connections_account_inactive",
- "financial_connections_account_pending_account_numbers",
- "financial_connections_account_unavailable_account_numbers",
- "financial_connections_no_successful_transaction_refresh",
- "forwarding_api_inactive",
- "forwarding_api_invalid_parameter",
- "forwarding_api_retryable_upstream_error",
- "forwarding_api_upstream_connection_error",
- "forwarding_api_upstream_connection_timeout",
- "forwarding_api_upstream_error",
- "idempotency_key_in_use",
- "incorrect_address",
- "incorrect_cvc",
- "incorrect_number",
- "incorrect_zip",
- "india_recurring_payment_mandate_canceled",
- "instant_payouts_config_disabled",
- "instant_payouts_currency_disabled",
- "instant_payouts_limit_exceeded",
- "instant_payouts_unsupported",
- "insufficient_funds",
- "intent_invalid_state",
- "intent_verification_method_missing",
- "invalid_card_type",
- "invalid_characters",
- "invalid_charge_amount",
- "invalid_cvc",
- "invalid_expiry_month",
- "invalid_expiry_year",
- "invalid_mandate_reference_prefix_format",
- "invalid_number",
- "invalid_source_usage",
- "invalid_tax_location",
- "invoice_no_customer_line_items",
- "invoice_no_payment_method_types",
- "invoice_no_subscription_line_items",
- "invoice_not_editable",
- "invoice_on_behalf_of_not_editable",
- "invoice_payment_intent_requires_action",
- "invoice_upcoming_none",
- "livemode_mismatch",
- "lock_timeout",
- "missing",
- "no_account",
- "not_allowed_on_standard_account",
- "out_of_inventory",
- "ownership_declaration_not_allowed",
- "parameter_invalid_empty",
- "parameter_invalid_integer",
- "parameter_invalid_string_blank",
- "parameter_invalid_string_empty",
- "parameter_missing",
- "parameter_unknown",
- "parameters_exclusive",
- "payment_intent_action_required",
- "payment_intent_authentication_failure",
- "payment_intent_incompatible_payment_method",
- "payment_intent_invalid_parameter",
- "payment_intent_konbini_rejected_confirmation_number",
- "payment_intent_mandate_invalid",
- "payment_intent_payment_attempt_expired",
- "payment_intent_payment_attempt_failed",
- "payment_intent_rate_limit_exceeded",
- "payment_intent_unexpected_state",
- "payment_method_bank_account_already_verified",
- "payment_method_bank_account_blocked",
- "payment_method_billing_details_address_missing",
- "payment_method_configuration_failures",
- "payment_method_currency_mismatch",
- "payment_method_customer_decline",
- "payment_method_invalid_parameter",
- "payment_method_invalid_parameter_testmode",
- "payment_method_microdeposit_failed",
- "payment_method_microdeposit_processing_error",
- "payment_method_microdeposit_verification_amounts_invalid",
- "payment_method_microdeposit_verification_amounts_mismatch",
- "payment_method_microdeposit_verification_attempts_exceeded",
- "payment_method_microdeposit_verification_descriptor_code_mismatch",
- "payment_method_microdeposit_verification_timeout",
- "payment_method_not_available",
- "payment_method_provider_decline",
- "payment_method_provider_timeout",
- "payment_method_unactivated",
- "payment_method_unexpected_state",
- "payment_method_unsupported_type",
- "payout_reconciliation_not_ready",
- "payouts_limit_exceeded",
- "payouts_not_allowed",
- "platform_account_required",
- "platform_api_key_expired",
- "postal_code_invalid",
- "processing_error",
- "product_inactive",
- "progressive_onboarding_limit_exceeded",
- "rate_limit",
- "refer_to_customer",
- "refund_disputed_payment",
- "request_blocked",
- "resource_already_exists",
- "resource_missing",
- "return_intent_already_processed",
- "routing_number_invalid",
- "secret_key_required",
- "sepa_unsupported_account",
- "service_period_coupon_with_metered_tiered_item_unsupported",
- "setup_attempt_failed",
- "setup_intent_authentication_failure",
- "setup_intent_invalid_parameter",
- "setup_intent_mandate_invalid",
- "setup_intent_mobile_wallet_unsupported",
- "setup_intent_setup_attempt_expired",
- "setup_intent_unexpected_state",
- "shipping_address_invalid",
- "shipping_calculation_failed",
- "siret_invalid",
- "sku_inactive",
- "state_unsupported",
- "status_transition_invalid",
- "storer_capability_missing",
- "storer_capability_not_active",
- "stripe_tax_inactive",
- "tax_id_invalid",
- "tax_id_prohibited",
- "taxes_calculation_failed",
- "terminal_location_country_unsupported",
- "terminal_reader_busy",
- "terminal_reader_hardware_fault",
- "terminal_reader_invalid_location_for_activation",
- "terminal_reader_invalid_location_for_payment",
- "terminal_reader_offline",
- "terminal_reader_timeout",
- "testmode_charges_only",
- "tls_version_unsupported",
- "token_already_used",
- "token_card_network_invalid",
- "token_in_use",
- "transfer_source_balance_parameters_mismatch",
- "transfers_not_allowed",
- "url_invalid",
+ Union[
+ Literal[
+ "account_closed",
+ "account_country_invalid_address",
+ "account_error_country_change_requires_additional_steps",
+ "account_information_mismatch",
+ "account_invalid",
+ "account_number_invalid",
+ "account_token_required_for_v2_account",
+ "acss_debit_session_incomplete",
+ "action_blocked",
+ "alipay_upgrade_required",
+ "amount_too_large",
+ "amount_too_small",
+ "anomalous_money_movement_request",
+ "api_key_expired",
+ "application_fees_not_allowed",
+ "approval_required",
+ "authentication_failure",
+ "authentication_required",
+ "balance_insufficient",
+ "balance_invalid_parameter",
+ "bank_account_bad_routing_numbers",
+ "bank_account_declined",
+ "bank_account_exists",
+ "bank_account_restricted",
+ "bank_account_unusable",
+ "bank_account_unverified",
+ "bank_account_verification_failed",
+ "billing_invalid_mandate",
+ "bitcoin_upgrade_required",
+ "capability_not_active",
+ "capture_charge_authorization_expired",
+ "capture_unauthorized_payment",
+ "card_decline_rate_limit_exceeded",
+ "card_declined",
+ "cardholder_phone_number_required",
+ "charge_already_captured",
+ "charge_already_refunded",
+ "charge_disputed",
+ "charge_exceeds_source_limit",
+ "charge_exceeds_transaction_limit",
+ "charge_expired_for_capture",
+ "charge_invalid_parameter",
+ "charge_not_refundable",
+ "clearing_code_unsupported",
+ "country_code_invalid",
+ "country_unsupported",
+ "coupon_expired",
+ "customer_max_payment_methods",
+ "customer_max_subscriptions",
+ "customer_session_expired",
+ "customer_tax_location_invalid",
+ "debit_not_authorized",
+ "email_invalid",
+ "expired_card",
+ "expired_payment_method",
+ "failed_tax_calculation",
+ "financial_account_balance_does_not_support_currency",
+ "financial_account_capability_not_enabled",
+ "financial_account_capability_restricted",
+ "financial_connections_account_inactive",
+ "financial_connections_account_pending_account_numbers",
+ "financial_connections_account_unavailable_account_numbers",
+ "financial_connections_no_successful_transaction_refresh",
+ "forwarding_api_inactive",
+ "forwarding_api_invalid_parameter",
+ "forwarding_api_retryable_upstream_error",
+ "forwarding_api_upstream_connection_error",
+ "forwarding_api_upstream_connection_timeout",
+ "forwarding_api_upstream_error",
+ "idempotency_key_in_use",
+ "incorrect_address",
+ "incorrect_cvc",
+ "incorrect_number",
+ "incorrect_postal_code",
+ "incorrect_zip",
+ "india_recurring_payment_mandate_canceled",
+ "instant_payouts_config_disabled",
+ "instant_payouts_currency_disabled",
+ "instant_payouts_limit_exceeded",
+ "instant_payouts_unsupported",
+ "insufficient_funds",
+ "intent_invalid_state",
+ "intent_verification_method_missing",
+ "invalid_canceled_subscription_fields",
+ "invalid_card_type",
+ "invalid_characters",
+ "invalid_charge_amount",
+ "invalid_cvc",
+ "invalid_expiry_month",
+ "invalid_expiry_year",
+ "invalid_mandate_reference_prefix_format",
+ "invalid_number",
+ "invalid_source_usage",
+ "invalid_tax_location",
+ "invoice_no_customer_line_items",
+ "invoice_no_payment_method_types",
+ "invoice_no_subscription_line_items",
+ "invoice_not_editable",
+ "invoice_on_behalf_of_not_editable",
+ "invoice_payment_intent_requires_action",
+ "invoice_upcoming_none",
+ "livemode_mismatch",
+ "lock_timeout",
+ "missing",
+ "no_account",
+ "not_allowed_on_standard_account",
+ "out_of_inventory",
+ "ownership_declaration_not_allowed",
+ "parameter_invalid_empty",
+ "parameter_invalid_integer",
+ "parameter_invalid_string_blank",
+ "parameter_invalid_string_empty",
+ "parameter_missing",
+ "parameter_unknown",
+ "parameters_exclusive",
+ "payment_intent_action_required",
+ "payment_intent_authentication_failure",
+ "payment_intent_incompatible_payment_method",
+ "payment_intent_invalid_parameter",
+ "payment_intent_konbini_rejected_confirmation_number",
+ "payment_intent_mandate_invalid",
+ "payment_intent_payment_attempt_expired",
+ "payment_intent_payment_attempt_failed",
+ "payment_intent_rate_limit_exceeded",
+ "payment_intent_unexpected_state",
+ "payment_method_bank_account_already_verified",
+ "payment_method_bank_account_blocked",
+ "payment_method_billing_details_address_missing",
+ "payment_method_configuration_failures",
+ "payment_method_currency_mismatch",
+ "payment_method_customer_decline",
+ "payment_method_invalid_parameter",
+ "payment_method_invalid_parameter_testmode",
+ "payment_method_microdeposit_failed",
+ "payment_method_microdeposit_processing_error",
+ "payment_method_microdeposit_verification_amounts_invalid",
+ "payment_method_microdeposit_verification_amounts_mismatch",
+ "payment_method_microdeposit_verification_attempts_exceeded",
+ "payment_method_microdeposit_verification_descriptor_code_mismatch",
+ "payment_method_microdeposit_verification_timeout",
+ "payment_method_not_available",
+ "payment_method_provider_decline",
+ "payment_method_provider_timeout",
+ "payment_method_restricted",
+ "payment_method_unactivated",
+ "payment_method_unexpected_state",
+ "payment_method_unsupported_type",
+ "payout_reconciliation_not_ready",
+ "payouts_limit_exceeded",
+ "payouts_not_allowed",
+ "platform_account_required",
+ "platform_api_key_expired",
+ "postal_code_invalid",
+ "processing_error",
+ "product_inactive",
+ "progressive_onboarding_limit_exceeded",
+ "rate_limit",
+ "refer_to_customer",
+ "refund_disputed_payment",
+ "request_blocked",
+ "resource_already_exists",
+ "resource_missing",
+ "return_intent_already_processed",
+ "routing_number_invalid",
+ "secret_key_required",
+ "sepa_unsupported_account",
+ "service_period_coupon_with_metered_tiered_item_unsupported",
+ "setup_attempt_failed",
+ "setup_intent_authentication_failure",
+ "setup_intent_invalid_parameter",
+ "setup_intent_mandate_invalid",
+ "setup_intent_mobile_wallet_unsupported",
+ "setup_intent_setup_attempt_expired",
+ "setup_intent_unexpected_state",
+ "shipping_address_invalid",
+ "shipping_calculation_failed",
+ "siret_invalid",
+ "sku_inactive",
+ "state_unsupported",
+ "status_transition_invalid",
+ "storer_capability_missing",
+ "storer_capability_not_active",
+ "stripe_tax_inactive",
+ "tax_id_invalid",
+ "tax_id_prohibited",
+ "taxes_calculation_failed",
+ "terminal_location_country_unsupported",
+ "terminal_reader_busy",
+ "terminal_reader_hardware_fault",
+ "terminal_reader_invalid_location_for_activation",
+ "terminal_reader_invalid_location_for_payment",
+ "terminal_reader_offline",
+ "terminal_reader_timeout",
+ "testmode_charges_only",
+ "tls_version_unsupported",
+ "token_already_used",
+ "token_card_network_invalid",
+ "token_in_use",
+ "transfer_source_balance_parameters_mismatch",
+ "transfers_not_allowed",
+ "url_invalid",
+ ],
+ str,
]
]
"""
@@ -702,11 +714,14 @@ class LastFinalizationError(StripeObject):
source: Optional[
Union["Account", "BankAccount", "CardResource", "Source"]
]
- type: Literal[
- "api_error",
- "card_error",
- "idempotency_error",
- "invalid_request_error",
+ type: Union[
+ Literal[
+ "api_error",
+ "card_error",
+ "idempotency_error",
+ "invalid_request_error",
+ ],
+ str,
]
"""
The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
@@ -779,6 +794,9 @@ class Bancontact(StripeObject):
Preferred language of the Bancontact authorization page that the customer is redirected to.
"""
+ class Billie(StripeObject):
+ pass
+
class Card(StripeObject):
class Installments(StripeObject):
enabled: Optional[bool]
@@ -798,7 +816,9 @@ class Installments(StripeObject):
class CustomerBalance(StripeObject):
class BankTransfer(StripeObject):
class EuBankTransfer(StripeObject):
- country: Literal["BE", "DE", "ES", "FR", "IE", "NL"]
+ country: Union[
+ Literal["BE", "DE", "ES", "FR", "IE", "NL"], str
+ ]
"""
The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
"""
@@ -959,6 +979,10 @@ class Filters(StripeObject):
"""
If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
"""
+ billie: Optional[Billie]
+ """
+ If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
+ """
card: Optional[Card]
"""
If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
@@ -994,6 +1018,7 @@ class Filters(StripeObject):
_inner_class_types = {
"acss_debit": AcssDebit,
"bancontact": Bancontact,
+ "billie": Billie,
"card": Card,
"customer_balance": CustomerBalance,
"konbini": Konbini,
@@ -1025,6 +1050,7 @@ class Filters(StripeObject):
"au_becs_debit",
"bacs_debit",
"bancontact",
+ "billie",
"boleto",
"card",
"cashapp",
@@ -1076,7 +1102,7 @@ class Filters(StripeObject):
class Rendering(StripeObject):
class Pdf(StripeObject):
- page_size: Optional[Literal["a4", "auto", "letter"]]
+ page_size: Optional[Union[Literal["a4", "auto", "letter"], str]]
"""
Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale.
"""
@@ -1289,7 +1315,7 @@ class TaxRateDetails(StripeObject):
"""
The amount of the tax, in cents (or local equivalent).
"""
- tax_behavior: Literal["exclusive", "inclusive"]
+ tax_behavior: Union[Literal["exclusive", "inclusive"], str]
"""
Whether this tax is inclusive or exclusive.
"""
@@ -1389,16 +1415,19 @@ class TaxRateDetails(StripeObject):
The time when this invoice is currently scheduled to be automatically finalized. The field will be `null` if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always be `null` - see `finalized_at` for the time when an already-finalized invoice was finalized.
"""
billing_reason: Optional[
- Literal[
- "automatic_pending_invoice_item_invoice",
- "manual",
- "quote_accept",
- "subscription",
- "subscription_create",
- "subscription_cycle",
- "subscription_threshold",
- "subscription_update",
- "upcoming",
+ Union[
+ Literal[
+ "automatic_pending_invoice_item_invoice",
+ "manual",
+ "quote_accept",
+ "subscription",
+ "subscription_create",
+ "subscription_cycle",
+ "subscription_threshold",
+ "subscription_update",
+ "upcoming",
+ ],
+ str,
]
]
"""
@@ -1462,7 +1491,9 @@ class TaxRateDetails(StripeObject):
"""
The customer's shipping information. Until the invoice is finalized, this field will equal `customer.shipping`. Once the invoice is finalized, this field will no longer be updated.
"""
- customer_tax_exempt: Optional[Literal["exempt", "none", "reverse"]]
+ customer_tax_exempt: Optional[
+ Union[Literal["exempt", "none", "reverse"], str]
+ ]
"""
The customer's tax exempt status. Until the invoice is finalized, this field will equal `customer.tax_exempt`. Once the invoice is finalized, this field will no longer be updated.
"""
diff --git a/stripe/_invoice_item.py b/stripe/_invoice_item.py
index 2732a0edf..dfda4fafd 100644
--- a/stripe/_invoice_item.py
+++ b/stripe/_invoice_item.py
@@ -9,7 +9,7 @@
from stripe._stripe_object import StripeObject, UntypedStripeObject
from stripe._updateable_api_resource import UpdateableAPIResource
from stripe._util import class_method_variant, sanitize_id
-from typing import ClassVar, List, Optional, cast, overload
+from typing import ClassVar, List, Optional, Union, cast, overload
from typing_extensions import Literal, Unpack, TYPE_CHECKING
if TYPE_CHECKING:
@@ -124,7 +124,7 @@ class InvoiceLineItemDetails(StripeObject):
When `type` is `invoice_item`, the invoice item id for the debited invoice item corresponding to this credit proration.
"""
invoice_line_item_details: Optional[InvoiceLineItemDetails]
- type: Literal["invoice_item", "invoice_line_items"]
+ type: Union[Literal["invoice_item", "invoice_line_items"], str]
"""
Whether the credit references a pending invoice item or one or more invoice line items on an invoice.
"""
@@ -191,6 +191,12 @@ class DiscountAmount(StripeObject):
"""
The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.
"""
+ frozen_fields: Optional[
+ List[Union[Literal["discounts", "pricing", "quantity"], str]]
+ ]
+ """
+ Array of field names that can't be modified. Attempting to update a frozen field returns an error.
+ """
id: str
"""
Unique identifier for the object.
diff --git a/stripe/_invoice_line_item.py b/stripe/_invoice_line_item.py
index 113486107..c1781a88d 100644
--- a/stripe/_invoice_line_item.py
+++ b/stripe/_invoice_line_item.py
@@ -196,7 +196,7 @@ class TaxRateDetails(StripeObject):
"""
The amount of the tax, in cents (or local equivalent).
"""
- tax_behavior: Literal["exclusive", "inclusive"]
+ tax_behavior: Union[Literal["exclusive", "inclusive"], str]
"""
Whether this tax is inclusive or exclusive.
"""
diff --git a/stripe/_invoice_payment.py b/stripe/_invoice_payment.py
index f88523c6f..41d54abed 100644
--- a/stripe/_invoice_payment.py
+++ b/stripe/_invoice_payment.py
@@ -4,7 +4,7 @@
from stripe._list_object import ListObject
from stripe._listable_api_resource import ListableAPIResource
from stripe._stripe_object import StripeObject
-from typing import ClassVar, Optional
+from typing import ClassVar, Optional, Union
from typing_extensions import Literal, Unpack, TYPE_CHECKING
if TYPE_CHECKING:
@@ -47,7 +47,7 @@ class Payment(StripeObject):
"""
ID of the PaymentRecord associated with this payment when `type` is `payment_record`.
"""
- type: Literal["charge", "payment_intent", "payment_record"]
+ type: Union[Literal["charge", "payment_intent", "payment_record"], str]
"""
Type of payment object associated with this invoice payment.
"""
diff --git a/stripe/_invoice_rendering_template.py b/stripe/_invoice_rendering_template.py
index 0c59b922e..f70a67258 100644
--- a/stripe/_invoice_rendering_template.py
+++ b/stripe/_invoice_rendering_template.py
@@ -4,7 +4,7 @@
from stripe._listable_api_resource import ListableAPIResource
from stripe._stripe_object import UntypedStripeObject
from stripe._util import class_method_variant, sanitize_id
-from typing import ClassVar, Optional, cast, overload
+from typing import ClassVar, Optional, Union, cast, overload
from typing_extensions import Literal, Unpack, TYPE_CHECKING
if TYPE_CHECKING:
@@ -57,7 +57,7 @@ class InvoiceRenderingTemplate(
"""
String representing the object's type. Objects of the same type share the same value.
"""
- status: Literal["active", "archived"]
+ status: Union[Literal["active", "archived"], str]
"""
The status of the template, one of `active` or `archived`.
"""
diff --git a/stripe/_mandate.py b/stripe/_mandate.py
index 6768a53b1..4dda0d909 100644
--- a/stripe/_mandate.py
+++ b/stripe/_mandate.py
@@ -38,7 +38,7 @@ class Online(StripeObject):
"""
offline: Optional[Offline]
online: Optional[Online]
- type: Literal["offline", "online"]
+ type: Union[Literal["offline", "online"], str]
"""
The mandate includes the type of customer acceptance information, such as: `online` or `offline`.
"""
@@ -91,8 +91,8 @@ class BacsDebit(StripeObject):
"""
The display name for the account on this mandate.
"""
- network_status: Literal[
- "accepted", "pending", "refused", "revoked"
+ network_status: Union[
+ Literal["accepted", "pending", "refused", "revoked"], str
]
"""
The status of the mandate on the Bacs network. Can be one of `pending`, `revoked`, `refused`, or `accepted`.
diff --git a/stripe/_object_classes.py b/stripe/_object_classes.py
index 5dcc50103..d93383f5f 100644
--- a/stripe/_object_classes.py
+++ b/stripe/_object_classes.py
@@ -50,6 +50,10 @@
"CreditBalanceTransaction",
),
"billing.credit_grant": ("stripe.billing._credit_grant", "CreditGrant"),
+ "billing.feedback_option": (
+ "stripe.billing._feedback_option",
+ "FeedbackOption",
+ ),
"billing.meter": ("stripe.billing._meter", "Meter"),
"billing.meter_event": ("stripe.billing._meter_event", "MeterEvent"),
"billing.meter_event_adjustment": (
diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py
index 1a48fb352..4b0aca536 100644
--- a/stripe/_payment_attempt_record.py
+++ b/stripe/_payment_attempt_record.py
@@ -138,7 +138,9 @@ class AchCreditTransfer(StripeObject):
"""
class AchDebit(StripeObject):
- account_holder_type: Optional[Literal["company", "individual"]]
+ account_holder_type: Optional[
+ Union[Literal["company", "individual"], str]
+ ]
"""
Type of entity that holds the account. This can be either `individual` or `company`.
"""
@@ -356,7 +358,9 @@ class Bancontact(StripeObject):
"""
Last four characters of the IBAN.
"""
- preferred_language: Optional[Literal["de", "en", "fr", "nl"]]
+ preferred_language: Optional[
+ Union[Literal["de", "en", "fr", "nl"], str]
+ ]
"""
Preferred language of the Bancontact authorization page that the customer is redirected to. Can be one of `en`, `de`, `fr`, or `nl`
"""
@@ -504,17 +508,17 @@ class ThreeDSecure(StripeObject):
"""
For authenticated transactions: Indicates how the issuing bank authenticated the customer.
"""
- cryptogram: Optional[str]
- """
- The 3D Secure cryptogram, also known as the "authentication value" (AAV, CAVV or AEVV).
- """
electronic_commerce_indicator: Optional[
- Literal["01", "02", "03", "04", "05", "06", "07"]
+ Union[
+ Literal["01", "02", "03", "04", "05", "06", "07"], str
+ ]
]
"""
The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
"""
- exemption_indicator: Optional[Literal["low_risk", "none"]]
+ exemption_indicator: Optional[
+ Union[Literal["low_risk", "none"], str]
+ ]
"""
The exemption requested via 3DS and accepted by the issuer at authentication time.
"""
@@ -979,35 +983,38 @@ class CustomerBalance(StripeObject):
class Eps(StripeObject):
bank: Optional[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
+ Union[
+ Literal[
+ "arzte_und_apotheker_bank",
+ "austrian_anadi_bank_ag",
+ "bank_austria",
+ "bankhaus_carl_spangler",
+ "bankhaus_schelhammer_und_schattera_ag",
+ "bawag_psk_ag",
+ "bks_bank_ag",
+ "brull_kallmus_bank_ag",
+ "btv_vier_lander_bank",
+ "capital_bank_grawe_gruppe_ag",
+ "deutsche_bank_ag",
+ "dolomitenbank",
+ "easybank_ag",
+ "erste_bank_und_sparkassen",
+ "hypo_alpeadriabank_international_ag",
+ "hypo_bank_burgenland_aktiengesellschaft",
+ "hypo_noe_lb_fur_niederosterreich_u_wien",
+ "hypo_oberosterreich_salzburg_steiermark",
+ "hypo_tirol_bank_ag",
+ "hypo_vorarlberg_bank_ag",
+ "marchfelder_bank",
+ "oberbank_ag",
+ "raiffeisen_bankengruppe_osterreich",
+ "schoellerbank_ag",
+ "sparda_bank_wien",
+ "volksbank_gruppe",
+ "volkskreditbank_ag",
+ "vr_bank_braunau",
+ ],
+ str,
]
]
"""
@@ -1019,36 +1026,41 @@ class Eps(StripeObject):
"""
class Fpx(StripeObject):
- account_holder_type: Optional[Literal["company", "individual"]]
+ account_holder_type: Optional[
+ Union[Literal["company", "individual"], str]
+ ]
"""
Account holder type, if provided. Can be one of `individual` or `company`.
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`.
@@ -1084,55 +1096,61 @@ class Grabpay(StripeObject):
class Ideal(StripeObject):
bank: Optional[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
+ Union[
+ Literal[
+ "abn_amro",
+ "adyen",
+ "asn_bank",
+ "bunq",
+ "buut",
+ "finom",
+ "handelsbanken",
+ "ing",
+ "knab",
+ "mollie",
+ "moneyou",
+ "n26",
+ "nn",
+ "rabobank",
+ "regiobank",
+ "revolut",
+ "sns_bank",
+ "triodos_bank",
+ "van_lanschot",
+ "yoursafe",
+ ],
+ str,
]
]
"""
The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
"""
bic: Optional[
- Literal[
- "ABNANL2A",
- "ADYBNL2A",
- "ASNBNL21",
- "BITSNL2A",
- "BUNQNL2A",
- "BUUTNL2A",
- "FNOMNL22",
- "FVLBNL22",
- "HANDNL2A",
- "INGBNL2A",
- "KNABNL2H",
- "MLLENL2A",
- "MOYONL21",
- "NNBANL2G",
- "NTSBDEB1",
- "RABONL2U",
- "RBRBNL21",
- "REVOIE23",
- "REVOLT21",
- "SNSBNL2A",
- "TRIONL2U",
+ Union[
+ Literal[
+ "ABNANL2A",
+ "ADYBNL2A",
+ "ASNBNL21",
+ "BITSNL2A",
+ "BUNQNL2A",
+ "BUUTNL2A",
+ "FNOMNL22",
+ "FVLBNL22",
+ "HANDNL2A",
+ "INGBNL2A",
+ "KNABNL2H",
+ "MLLENL2A",
+ "MOYONL21",
+ "NNBANL2G",
+ "NTSBDEB1",
+ "RABONL2U",
+ "RBRBNL21",
+ "REVOIE23",
+ "REVOLT21",
+ "SNSBNL2A",
+ "TRIONL2U",
+ ],
+ str,
]
]
"""
@@ -1503,33 +1521,36 @@ class Oxxo(StripeObject):
class P24(StripeObject):
bank: Optional[
- Literal[
- "alior_bank",
- "bank_millennium",
- "bank_nowy_bfg_sa",
- "bank_pekao_sa",
- "banki_spbdzielcze",
- "blik",
- "bnp_paribas",
- "boz",
- "citi_handlowy",
- "credit_agricole",
- "envelobank",
- "etransfer_pocztowy24",
- "getin_bank",
- "ideabank",
- "ing",
- "inteligo",
- "mbank_mtransfer",
- "nest_przelew",
- "noble_pay",
- "pbac_z_ipko",
- "plus_bank",
- "santander_przelew24",
- "tmobile_usbugi_bankowe",
- "toyota_bank",
- "velobank",
- "volkswagen_bank",
+ Union[
+ Literal[
+ "alior_bank",
+ "bank_millennium",
+ "bank_nowy_bfg_sa",
+ "bank_pekao_sa",
+ "banki_spbdzielcze",
+ "blik",
+ "bnp_paribas",
+ "boz",
+ "citi_handlowy",
+ "credit_agricole",
+ "envelobank",
+ "etransfer_pocztowy24",
+ "getin_bank",
+ "ideabank",
+ "ing",
+ "inteligo",
+ "mbank_mtransfer",
+ "nest_przelew",
+ "noble_pay",
+ "pbac_z_ipko",
+ "plus_bank",
+ "santander_przelew24",
+ "tmobile_usbugi_bankowe",
+ "toyota_bank",
+ "velobank",
+ "volkswagen_bank",
+ ],
+ str,
]
]
"""
@@ -1644,7 +1665,7 @@ class Pix(StripeObject):
"""
mandate: Optional[str]
"""
- ID of the multi use Mandate generated by the PaymentIntent
+ ID of the multi use Mandate generated by the PaymentIntent or SetupIntent.
"""
class Promptpay(StripeObject):
@@ -1791,7 +1812,7 @@ class Sofort(StripeObject):
Last four characters of the IBAN.
"""
preferred_language: Optional[
- Literal["de", "en", "es", "fr", "it", "nl", "pl"]
+ Union[Literal["de", "en", "es", "fr", "it", "nl", "pl"], str]
]
"""
Preferred language of the SOFORT authorization page that the customer is redirected to. Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl`
@@ -1827,7 +1848,7 @@ class Swish(StripeObject):
class Twint(StripeObject):
mandate: Optional[str]
"""
- ID of the multi use Mandate generated by the PaymentIntent
+ ID of the multi use Mandate generated by the PaymentIntent or SetupIntent.
"""
class Upi(StripeObject):
diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py
index aac3f87f1..dcaa81981 100644
--- a/stripe/_payment_intent.py
+++ b/stripe/_payment_intent.py
@@ -202,202 +202,211 @@ class LastPaymentError(StripeObject):
For card errors, the ID of the failed charge.
"""
code: Optional[
- Literal[
- "account_closed",
- "account_country_invalid_address",
- "account_error_country_change_requires_additional_steps",
- "account_information_mismatch",
- "account_invalid",
- "account_number_invalid",
- "account_token_required_for_v2_account",
- "acss_debit_session_incomplete",
- "action_blocked",
- "alipay_upgrade_required",
- "amount_too_large",
- "amount_too_small",
- "anomalous_money_movement_request",
- "api_key_expired",
- "application_fees_not_allowed",
- "approval_required",
- "authentication_required",
- "balance_insufficient",
- "balance_invalid_parameter",
- "bank_account_bad_routing_numbers",
- "bank_account_declined",
- "bank_account_exists",
- "bank_account_restricted",
- "bank_account_unusable",
- "bank_account_unverified",
- "bank_account_verification_failed",
- "billing_invalid_mandate",
- "bitcoin_upgrade_required",
- "capture_charge_authorization_expired",
- "capture_unauthorized_payment",
- "card_decline_rate_limit_exceeded",
- "card_declined",
- "cardholder_phone_number_required",
- "charge_already_captured",
- "charge_already_refunded",
- "charge_disputed",
- "charge_exceeds_source_limit",
- "charge_exceeds_transaction_limit",
- "charge_expired_for_capture",
- "charge_invalid_parameter",
- "charge_not_refundable",
- "clearing_code_unsupported",
- "country_code_invalid",
- "country_unsupported",
- "coupon_expired",
- "customer_max_payment_methods",
- "customer_max_subscriptions",
- "customer_session_expired",
- "customer_tax_location_invalid",
- "debit_not_authorized",
- "email_invalid",
- "expired_card",
- "failed_tax_calculation",
- "financial_account_balance_does_not_support_currency",
- "financial_account_capability_not_enabled",
- "financial_account_capability_restricted",
- "financial_connections_account_inactive",
- "financial_connections_account_pending_account_numbers",
- "financial_connections_account_unavailable_account_numbers",
- "financial_connections_no_successful_transaction_refresh",
- "forwarding_api_inactive",
- "forwarding_api_invalid_parameter",
- "forwarding_api_retryable_upstream_error",
- "forwarding_api_upstream_connection_error",
- "forwarding_api_upstream_connection_timeout",
- "forwarding_api_upstream_error",
- "idempotency_key_in_use",
- "incorrect_address",
- "incorrect_cvc",
- "incorrect_number",
- "incorrect_zip",
- "india_recurring_payment_mandate_canceled",
- "instant_payouts_config_disabled",
- "instant_payouts_currency_disabled",
- "instant_payouts_limit_exceeded",
- "instant_payouts_unsupported",
- "insufficient_funds",
- "intent_invalid_state",
- "intent_verification_method_missing",
- "invalid_card_type",
- "invalid_characters",
- "invalid_charge_amount",
- "invalid_cvc",
- "invalid_expiry_month",
- "invalid_expiry_year",
- "invalid_mandate_reference_prefix_format",
- "invalid_number",
- "invalid_source_usage",
- "invalid_tax_location",
- "invoice_no_customer_line_items",
- "invoice_no_payment_method_types",
- "invoice_no_subscription_line_items",
- "invoice_not_editable",
- "invoice_on_behalf_of_not_editable",
- "invoice_payment_intent_requires_action",
- "invoice_upcoming_none",
- "livemode_mismatch",
- "lock_timeout",
- "missing",
- "no_account",
- "not_allowed_on_standard_account",
- "out_of_inventory",
- "ownership_declaration_not_allowed",
- "parameter_invalid_empty",
- "parameter_invalid_integer",
- "parameter_invalid_string_blank",
- "parameter_invalid_string_empty",
- "parameter_missing",
- "parameter_unknown",
- "parameters_exclusive",
- "payment_intent_action_required",
- "payment_intent_authentication_failure",
- "payment_intent_incompatible_payment_method",
- "payment_intent_invalid_parameter",
- "payment_intent_konbini_rejected_confirmation_number",
- "payment_intent_mandate_invalid",
- "payment_intent_payment_attempt_expired",
- "payment_intent_payment_attempt_failed",
- "payment_intent_rate_limit_exceeded",
- "payment_intent_unexpected_state",
- "payment_method_bank_account_already_verified",
- "payment_method_bank_account_blocked",
- "payment_method_billing_details_address_missing",
- "payment_method_configuration_failures",
- "payment_method_currency_mismatch",
- "payment_method_customer_decline",
- "payment_method_invalid_parameter",
- "payment_method_invalid_parameter_testmode",
- "payment_method_microdeposit_failed",
- "payment_method_microdeposit_processing_error",
- "payment_method_microdeposit_verification_amounts_invalid",
- "payment_method_microdeposit_verification_amounts_mismatch",
- "payment_method_microdeposit_verification_attempts_exceeded",
- "payment_method_microdeposit_verification_descriptor_code_mismatch",
- "payment_method_microdeposit_verification_timeout",
- "payment_method_not_available",
- "payment_method_provider_decline",
- "payment_method_provider_timeout",
- "payment_method_unactivated",
- "payment_method_unexpected_state",
- "payment_method_unsupported_type",
- "payout_reconciliation_not_ready",
- "payouts_limit_exceeded",
- "payouts_not_allowed",
- "platform_account_required",
- "platform_api_key_expired",
- "postal_code_invalid",
- "processing_error",
- "product_inactive",
- "progressive_onboarding_limit_exceeded",
- "rate_limit",
- "refer_to_customer",
- "refund_disputed_payment",
- "request_blocked",
- "resource_already_exists",
- "resource_missing",
- "return_intent_already_processed",
- "routing_number_invalid",
- "secret_key_required",
- "sepa_unsupported_account",
- "service_period_coupon_with_metered_tiered_item_unsupported",
- "setup_attempt_failed",
- "setup_intent_authentication_failure",
- "setup_intent_invalid_parameter",
- "setup_intent_mandate_invalid",
- "setup_intent_mobile_wallet_unsupported",
- "setup_intent_setup_attempt_expired",
- "setup_intent_unexpected_state",
- "shipping_address_invalid",
- "shipping_calculation_failed",
- "siret_invalid",
- "sku_inactive",
- "state_unsupported",
- "status_transition_invalid",
- "storer_capability_missing",
- "storer_capability_not_active",
- "stripe_tax_inactive",
- "tax_id_invalid",
- "tax_id_prohibited",
- "taxes_calculation_failed",
- "terminal_location_country_unsupported",
- "terminal_reader_busy",
- "terminal_reader_hardware_fault",
- "terminal_reader_invalid_location_for_activation",
- "terminal_reader_invalid_location_for_payment",
- "terminal_reader_offline",
- "terminal_reader_timeout",
- "testmode_charges_only",
- "tls_version_unsupported",
- "token_already_used",
- "token_card_network_invalid",
- "token_in_use",
- "transfer_source_balance_parameters_mismatch",
- "transfers_not_allowed",
- "url_invalid",
+ Union[
+ Literal[
+ "account_closed",
+ "account_country_invalid_address",
+ "account_error_country_change_requires_additional_steps",
+ "account_information_mismatch",
+ "account_invalid",
+ "account_number_invalid",
+ "account_token_required_for_v2_account",
+ "acss_debit_session_incomplete",
+ "action_blocked",
+ "alipay_upgrade_required",
+ "amount_too_large",
+ "amount_too_small",
+ "anomalous_money_movement_request",
+ "api_key_expired",
+ "application_fees_not_allowed",
+ "approval_required",
+ "authentication_failure",
+ "authentication_required",
+ "balance_insufficient",
+ "balance_invalid_parameter",
+ "bank_account_bad_routing_numbers",
+ "bank_account_declined",
+ "bank_account_exists",
+ "bank_account_restricted",
+ "bank_account_unusable",
+ "bank_account_unverified",
+ "bank_account_verification_failed",
+ "billing_invalid_mandate",
+ "bitcoin_upgrade_required",
+ "capability_not_active",
+ "capture_charge_authorization_expired",
+ "capture_unauthorized_payment",
+ "card_decline_rate_limit_exceeded",
+ "card_declined",
+ "cardholder_phone_number_required",
+ "charge_already_captured",
+ "charge_already_refunded",
+ "charge_disputed",
+ "charge_exceeds_source_limit",
+ "charge_exceeds_transaction_limit",
+ "charge_expired_for_capture",
+ "charge_invalid_parameter",
+ "charge_not_refundable",
+ "clearing_code_unsupported",
+ "country_code_invalid",
+ "country_unsupported",
+ "coupon_expired",
+ "customer_max_payment_methods",
+ "customer_max_subscriptions",
+ "customer_session_expired",
+ "customer_tax_location_invalid",
+ "debit_not_authorized",
+ "email_invalid",
+ "expired_card",
+ "expired_payment_method",
+ "failed_tax_calculation",
+ "financial_account_balance_does_not_support_currency",
+ "financial_account_capability_not_enabled",
+ "financial_account_capability_restricted",
+ "financial_connections_account_inactive",
+ "financial_connections_account_pending_account_numbers",
+ "financial_connections_account_unavailable_account_numbers",
+ "financial_connections_no_successful_transaction_refresh",
+ "forwarding_api_inactive",
+ "forwarding_api_invalid_parameter",
+ "forwarding_api_retryable_upstream_error",
+ "forwarding_api_upstream_connection_error",
+ "forwarding_api_upstream_connection_timeout",
+ "forwarding_api_upstream_error",
+ "idempotency_key_in_use",
+ "incorrect_address",
+ "incorrect_cvc",
+ "incorrect_number",
+ "incorrect_postal_code",
+ "incorrect_zip",
+ "india_recurring_payment_mandate_canceled",
+ "instant_payouts_config_disabled",
+ "instant_payouts_currency_disabled",
+ "instant_payouts_limit_exceeded",
+ "instant_payouts_unsupported",
+ "insufficient_funds",
+ "intent_invalid_state",
+ "intent_verification_method_missing",
+ "invalid_canceled_subscription_fields",
+ "invalid_card_type",
+ "invalid_characters",
+ "invalid_charge_amount",
+ "invalid_cvc",
+ "invalid_expiry_month",
+ "invalid_expiry_year",
+ "invalid_mandate_reference_prefix_format",
+ "invalid_number",
+ "invalid_source_usage",
+ "invalid_tax_location",
+ "invoice_no_customer_line_items",
+ "invoice_no_payment_method_types",
+ "invoice_no_subscription_line_items",
+ "invoice_not_editable",
+ "invoice_on_behalf_of_not_editable",
+ "invoice_payment_intent_requires_action",
+ "invoice_upcoming_none",
+ "livemode_mismatch",
+ "lock_timeout",
+ "missing",
+ "no_account",
+ "not_allowed_on_standard_account",
+ "out_of_inventory",
+ "ownership_declaration_not_allowed",
+ "parameter_invalid_empty",
+ "parameter_invalid_integer",
+ "parameter_invalid_string_blank",
+ "parameter_invalid_string_empty",
+ "parameter_missing",
+ "parameter_unknown",
+ "parameters_exclusive",
+ "payment_intent_action_required",
+ "payment_intent_authentication_failure",
+ "payment_intent_incompatible_payment_method",
+ "payment_intent_invalid_parameter",
+ "payment_intent_konbini_rejected_confirmation_number",
+ "payment_intent_mandate_invalid",
+ "payment_intent_payment_attempt_expired",
+ "payment_intent_payment_attempt_failed",
+ "payment_intent_rate_limit_exceeded",
+ "payment_intent_unexpected_state",
+ "payment_method_bank_account_already_verified",
+ "payment_method_bank_account_blocked",
+ "payment_method_billing_details_address_missing",
+ "payment_method_configuration_failures",
+ "payment_method_currency_mismatch",
+ "payment_method_customer_decline",
+ "payment_method_invalid_parameter",
+ "payment_method_invalid_parameter_testmode",
+ "payment_method_microdeposit_failed",
+ "payment_method_microdeposit_processing_error",
+ "payment_method_microdeposit_verification_amounts_invalid",
+ "payment_method_microdeposit_verification_amounts_mismatch",
+ "payment_method_microdeposit_verification_attempts_exceeded",
+ "payment_method_microdeposit_verification_descriptor_code_mismatch",
+ "payment_method_microdeposit_verification_timeout",
+ "payment_method_not_available",
+ "payment_method_provider_decline",
+ "payment_method_provider_timeout",
+ "payment_method_restricted",
+ "payment_method_unactivated",
+ "payment_method_unexpected_state",
+ "payment_method_unsupported_type",
+ "payout_reconciliation_not_ready",
+ "payouts_limit_exceeded",
+ "payouts_not_allowed",
+ "platform_account_required",
+ "platform_api_key_expired",
+ "postal_code_invalid",
+ "processing_error",
+ "product_inactive",
+ "progressive_onboarding_limit_exceeded",
+ "rate_limit",
+ "refer_to_customer",
+ "refund_disputed_payment",
+ "request_blocked",
+ "resource_already_exists",
+ "resource_missing",
+ "return_intent_already_processed",
+ "routing_number_invalid",
+ "secret_key_required",
+ "sepa_unsupported_account",
+ "service_period_coupon_with_metered_tiered_item_unsupported",
+ "setup_attempt_failed",
+ "setup_intent_authentication_failure",
+ "setup_intent_invalid_parameter",
+ "setup_intent_mandate_invalid",
+ "setup_intent_mobile_wallet_unsupported",
+ "setup_intent_setup_attempt_expired",
+ "setup_intent_unexpected_state",
+ "shipping_address_invalid",
+ "shipping_calculation_failed",
+ "siret_invalid",
+ "sku_inactive",
+ "state_unsupported",
+ "status_transition_invalid",
+ "storer_capability_missing",
+ "storer_capability_not_active",
+ "stripe_tax_inactive",
+ "tax_id_invalid",
+ "tax_id_prohibited",
+ "taxes_calculation_failed",
+ "terminal_location_country_unsupported",
+ "terminal_reader_busy",
+ "terminal_reader_hardware_fault",
+ "terminal_reader_invalid_location_for_activation",
+ "terminal_reader_invalid_location_for_payment",
+ "terminal_reader_offline",
+ "terminal_reader_timeout",
+ "testmode_charges_only",
+ "tls_version_unsupported",
+ "token_already_used",
+ "token_card_network_invalid",
+ "token_in_use",
+ "transfer_source_balance_parameters_mismatch",
+ "transfers_not_allowed",
+ "url_invalid",
+ ],
+ str,
]
]
"""
@@ -484,11 +493,14 @@ class LastPaymentError(StripeObject):
source: Optional[
Union["Account", "BankAccount", "CardResource", "Source"]
]
- type: Literal[
- "api_error",
- "card_error",
- "idempotency_error",
- "invalid_request_error",
+ type: Union[
+ Literal[
+ "api_error",
+ "card_error",
+ "idempotency_error",
+ "invalid_request_error",
+ ],
+ str,
]
"""
The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
@@ -1722,7 +1734,7 @@ class MandateOptions(StripeObject):
_inner_class_types = {"mandate_options": MandateOptions}
class Bancontact(StripeObject):
- preferred_language: Literal["de", "en", "fr", "nl"]
+ preferred_language: Union[Literal["de", "en", "fr", "nl"], str]
"""
Preferred language of the Bancontact authorization page that the customer is redirected to.
"""
@@ -1836,7 +1848,7 @@ class MandateOptions(StripeObject):
"""
Amount to be charged for future payments, specified in the presentment currency.
"""
- amount_type: Literal["fixed", "maximum"]
+ amount_type: Union[Literal["fixed", "maximum"], str]
"""
One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
"""
@@ -1848,7 +1860,9 @@ class MandateOptions(StripeObject):
"""
End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+ interval: Union[
+ Literal["day", "month", "sporadic", "week", "year"], str
+ ]
"""
Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
"""
@@ -1884,20 +1898,23 @@ class MandateOptions(StripeObject):
Configuration options for setting up an eMandate for cards issued in India.
"""
network: Optional[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
+ Union[
+ Literal[
+ "amex",
+ "cartes_bancaires",
+ "diners",
+ "discover",
+ "eftpos_au",
+ "girocard",
+ "interac",
+ "jcb",
+ "link",
+ "mastercard",
+ "unionpay",
+ "unknown",
+ "visa",
+ ],
+ str,
]
]
"""
@@ -2019,7 +2036,9 @@ class Crypto(StripeObject):
class CustomerBalance(StripeObject):
class BankTransfer(StripeObject):
class EuBankTransfer(StripeObject):
- country: Literal["BE", "DE", "ES", "FR", "IE", "NL"]
+ country: Union[
+ Literal["BE", "DE", "ES", "FR", "IE", "NL"], str
+ ]
"""
The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
"""
@@ -2660,7 +2679,7 @@ class MandateOptions(StripeObject):
class Sofort(StripeObject):
preferred_language: Optional[
- Literal["de", "en", "es", "fr", "it", "nl", "pl"]
+ Union[Literal["de", "en", "es", "fr", "it", "nl", "pl"], str]
]
"""
Preferred language of the SOFORT authorization page that the customer is redirected to.
@@ -3175,6 +3194,7 @@ class PaymentData(StripeObject):
"swish",
"tamara",
"test_pay",
+ "touch_n_go",
"truemoney",
"twint",
"upi",
@@ -3222,15 +3242,18 @@ class PaymentData(StripeObject):
Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
"""
cancellation_reason: Optional[
- Literal[
- "abandoned",
- "automatic",
- "duplicate",
- "expired",
- "failed_invoice",
- "fraudulent",
- "requested_by_customer",
- "void_invoice",
+ Union[
+ Literal[
+ "abandoned",
+ "automatic",
+ "duplicate",
+ "expired",
+ "failed_invoice",
+ "fraudulent",
+ "requested_by_customer",
+ "void_invoice",
+ ],
+ str,
]
]
"""
@@ -3451,14 +3474,17 @@ class PaymentData(StripeObject):
"""
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
"""
- status: Literal[
- "canceled",
- "processing",
- "requires_action",
- "requires_capture",
- "requires_confirmation",
- "requires_payment_method",
- "succeeded",
+ status: Union[
+ Literal[
+ "canceled",
+ "processing",
+ "requires_action",
+ "requires_capture",
+ "requires_confirmation",
+ "requires_payment_method",
+ "succeeded",
+ ],
+ str,
]
"""
Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://docs.stripe.com/payments/intents#intent-statuses).
diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py
index fea11d6f5..4721e3f8d 100644
--- a/stripe/_payment_link.py
+++ b/stripe/_payment_link.py
@@ -93,7 +93,7 @@ class Liability(StripeObject):
class ConsentCollection(StripeObject):
class PaymentMethodReuseAgreement(StripeObject):
- position: Literal["auto", "hidden"]
+ position: Union[Literal["auto", "hidden"], str]
"""
Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used.
@@ -104,11 +104,11 @@ class PaymentMethodReuseAgreement(StripeObject):
"""
Settings related to the payment method reuse text shown in the Checkout UI.
"""
- promotions: Optional[Literal["auto", "none"]]
+ promotions: Optional[Union[Literal["auto", "none"], str]]
"""
If set to `auto`, enables the collection of customer consent for promotional communications.
"""
- terms_of_service: Optional[Literal["none", "required"]]
+ terms_of_service: Optional[Union[Literal["none", "required"], str]]
"""
If set to `required`, it requires cutomers to accept the terms of service before being able to pay. If set to `none`, customers won't be shown a checkbox to accept the terms of service.
"""
diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py
index 2234f081d..16bb9cb5f 100644
--- a/stripe/_payment_method.py
+++ b/stripe/_payment_method.py
@@ -611,14 +611,17 @@ class ShippingAddress(StripeObject):
link: Optional[Link]
masterpass: Optional[Masterpass]
samsung_pay: Optional[SamsungPay]
- type: Literal[
- "amex_express_checkout",
- "apple_pay",
- "google_pay",
- "link",
- "masterpass",
- "samsung_pay",
- "visa_checkout",
+ type: Union[
+ Literal[
+ "amex_express_checkout",
+ "apple_pay",
+ "google_pay",
+ "link",
+ "masterpass",
+ "samsung_pay",
+ "visa_checkout",
+ ],
+ str,
]
"""
The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
@@ -871,35 +874,38 @@ class CustomerBalance(StripeObject):
class Eps(StripeObject):
bank: Optional[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
+ Union[
+ Literal[
+ "arzte_und_apotheker_bank",
+ "austrian_anadi_bank_ag",
+ "bank_austria",
+ "bankhaus_carl_spangler",
+ "bankhaus_schelhammer_und_schattera_ag",
+ "bawag_psk_ag",
+ "bks_bank_ag",
+ "brull_kallmus_bank_ag",
+ "btv_vier_lander_bank",
+ "capital_bank_grawe_gruppe_ag",
+ "deutsche_bank_ag",
+ "dolomitenbank",
+ "easybank_ag",
+ "erste_bank_und_sparkassen",
+ "hypo_alpeadriabank_international_ag",
+ "hypo_bank_burgenland_aktiengesellschaft",
+ "hypo_noe_lb_fur_niederosterreich_u_wien",
+ "hypo_oberosterreich_salzburg_steiermark",
+ "hypo_tirol_bank_ag",
+ "hypo_vorarlberg_bank_ag",
+ "marchfelder_bank",
+ "oberbank_ag",
+ "raiffeisen_bankengruppe_osterreich",
+ "schoellerbank_ag",
+ "sparda_bank_wien",
+ "volksbank_gruppe",
+ "volkskreditbank_ag",
+ "vr_bank_braunau",
+ ],
+ str,
]
]
"""
@@ -907,36 +913,41 @@ class Eps(StripeObject):
"""
class Fpx(StripeObject):
- account_holder_type: Optional[Literal["company", "individual"]]
+ account_holder_type: Optional[
+ Union[Literal["company", "individual"], str]
+ ]
"""
Account holder type, if provided. Can be one of `individual` or `company`.
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`.
@@ -950,55 +961,61 @@ class Grabpay(StripeObject):
class Ideal(StripeObject):
bank: Optional[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
+ Union[
+ Literal[
+ "abn_amro",
+ "adyen",
+ "asn_bank",
+ "bunq",
+ "buut",
+ "finom",
+ "handelsbanken",
+ "ing",
+ "knab",
+ "mollie",
+ "moneyou",
+ "n26",
+ "nn",
+ "rabobank",
+ "regiobank",
+ "revolut",
+ "sns_bank",
+ "triodos_bank",
+ "van_lanschot",
+ "yoursafe",
+ ],
+ str,
]
]
"""
The customer's bank, if provided. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
"""
bic: Optional[
- Literal[
- "ABNANL2A",
- "ADYBNL2A",
- "ASNBNL21",
- "BITSNL2A",
- "BUNQNL2A",
- "BUUTNL2A",
- "FNOMNL22",
- "FVLBNL22",
- "HANDNL2A",
- "INGBNL2A",
- "KNABNL2H",
- "MLLENL2A",
- "MOYONL21",
- "NNBANL2G",
- "NTSBDEB1",
- "RABONL2U",
- "RBRBNL21",
- "REVOIE23",
- "REVOLT21",
- "SNSBNL2A",
- "TRIONL2U",
+ Union[
+ Literal[
+ "ABNANL2A",
+ "ADYBNL2A",
+ "ASNBNL21",
+ "BITSNL2A",
+ "BUNQNL2A",
+ "BUUTNL2A",
+ "FNOMNL22",
+ "FVLBNL22",
+ "HANDNL2A",
+ "INGBNL2A",
+ "KNABNL2H",
+ "MLLENL2A",
+ "MOYONL21",
+ "NNBANL2G",
+ "NTSBDEB1",
+ "RABONL2U",
+ "RBRBNL21",
+ "REVOIE23",
+ "REVOLT21",
+ "SNSBNL2A",
+ "TRIONL2U",
+ ],
+ str,
]
]
"""
@@ -1377,7 +1394,7 @@ class Networks(StripeObject):
"""
The preferred network.
"""
- supported: List[Literal["ach", "us_domestic_wire"]]
+ supported: List[Union[Literal["ach", "us_domestic_wire"], str]]
"""
All supported networks.
"""
diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py
index e828c4dad..3a226e282 100644
--- a/stripe/_payment_record.py
+++ b/stripe/_payment_record.py
@@ -158,7 +158,9 @@ class AchCreditTransfer(StripeObject):
"""
class AchDebit(StripeObject):
- account_holder_type: Optional[Literal["company", "individual"]]
+ account_holder_type: Optional[
+ Union[Literal["company", "individual"], str]
+ ]
"""
Type of entity that holds the account. This can be either `individual` or `company`.
"""
@@ -376,7 +378,9 @@ class Bancontact(StripeObject):
"""
Last four characters of the IBAN.
"""
- preferred_language: Optional[Literal["de", "en", "fr", "nl"]]
+ preferred_language: Optional[
+ Union[Literal["de", "en", "fr", "nl"], str]
+ ]
"""
Preferred language of the Bancontact authorization page that the customer is redirected to. Can be one of `en`, `de`, `fr`, or `nl`
"""
@@ -524,17 +528,17 @@ class ThreeDSecure(StripeObject):
"""
For authenticated transactions: Indicates how the issuing bank authenticated the customer.
"""
- cryptogram: Optional[str]
- """
- The 3D Secure cryptogram, also known as the "authentication value" (AAV, CAVV or AEVV).
- """
electronic_commerce_indicator: Optional[
- Literal["01", "02", "03", "04", "05", "06", "07"]
+ Union[
+ Literal["01", "02", "03", "04", "05", "06", "07"], str
+ ]
]
"""
The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
"""
- exemption_indicator: Optional[Literal["low_risk", "none"]]
+ exemption_indicator: Optional[
+ Union[Literal["low_risk", "none"], str]
+ ]
"""
The exemption requested via 3DS and accepted by the issuer at authentication time.
"""
@@ -999,35 +1003,38 @@ class CustomerBalance(StripeObject):
class Eps(StripeObject):
bank: Optional[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
+ Union[
+ Literal[
+ "arzte_und_apotheker_bank",
+ "austrian_anadi_bank_ag",
+ "bank_austria",
+ "bankhaus_carl_spangler",
+ "bankhaus_schelhammer_und_schattera_ag",
+ "bawag_psk_ag",
+ "bks_bank_ag",
+ "brull_kallmus_bank_ag",
+ "btv_vier_lander_bank",
+ "capital_bank_grawe_gruppe_ag",
+ "deutsche_bank_ag",
+ "dolomitenbank",
+ "easybank_ag",
+ "erste_bank_und_sparkassen",
+ "hypo_alpeadriabank_international_ag",
+ "hypo_bank_burgenland_aktiengesellschaft",
+ "hypo_noe_lb_fur_niederosterreich_u_wien",
+ "hypo_oberosterreich_salzburg_steiermark",
+ "hypo_tirol_bank_ag",
+ "hypo_vorarlberg_bank_ag",
+ "marchfelder_bank",
+ "oberbank_ag",
+ "raiffeisen_bankengruppe_osterreich",
+ "schoellerbank_ag",
+ "sparda_bank_wien",
+ "volksbank_gruppe",
+ "volkskreditbank_ag",
+ "vr_bank_braunau",
+ ],
+ str,
]
]
"""
@@ -1039,36 +1046,41 @@ class Eps(StripeObject):
"""
class Fpx(StripeObject):
- account_holder_type: Optional[Literal["company", "individual"]]
+ account_holder_type: Optional[
+ Union[Literal["company", "individual"], str]
+ ]
"""
Account holder type, if provided. Can be one of `individual` or `company`.
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`.
@@ -1104,55 +1116,61 @@ class Grabpay(StripeObject):
class Ideal(StripeObject):
bank: Optional[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
+ Union[
+ Literal[
+ "abn_amro",
+ "adyen",
+ "asn_bank",
+ "bunq",
+ "buut",
+ "finom",
+ "handelsbanken",
+ "ing",
+ "knab",
+ "mollie",
+ "moneyou",
+ "n26",
+ "nn",
+ "rabobank",
+ "regiobank",
+ "revolut",
+ "sns_bank",
+ "triodos_bank",
+ "van_lanschot",
+ "yoursafe",
+ ],
+ str,
]
]
"""
The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
"""
bic: Optional[
- Literal[
- "ABNANL2A",
- "ADYBNL2A",
- "ASNBNL21",
- "BITSNL2A",
- "BUNQNL2A",
- "BUUTNL2A",
- "FNOMNL22",
- "FVLBNL22",
- "HANDNL2A",
- "INGBNL2A",
- "KNABNL2H",
- "MLLENL2A",
- "MOYONL21",
- "NNBANL2G",
- "NTSBDEB1",
- "RABONL2U",
- "RBRBNL21",
- "REVOIE23",
- "REVOLT21",
- "SNSBNL2A",
- "TRIONL2U",
+ Union[
+ Literal[
+ "ABNANL2A",
+ "ADYBNL2A",
+ "ASNBNL21",
+ "BITSNL2A",
+ "BUNQNL2A",
+ "BUUTNL2A",
+ "FNOMNL22",
+ "FVLBNL22",
+ "HANDNL2A",
+ "INGBNL2A",
+ "KNABNL2H",
+ "MLLENL2A",
+ "MOYONL21",
+ "NNBANL2G",
+ "NTSBDEB1",
+ "RABONL2U",
+ "RBRBNL21",
+ "REVOIE23",
+ "REVOLT21",
+ "SNSBNL2A",
+ "TRIONL2U",
+ ],
+ str,
]
]
"""
@@ -1523,33 +1541,36 @@ class Oxxo(StripeObject):
class P24(StripeObject):
bank: Optional[
- Literal[
- "alior_bank",
- "bank_millennium",
- "bank_nowy_bfg_sa",
- "bank_pekao_sa",
- "banki_spbdzielcze",
- "blik",
- "bnp_paribas",
- "boz",
- "citi_handlowy",
- "credit_agricole",
- "envelobank",
- "etransfer_pocztowy24",
- "getin_bank",
- "ideabank",
- "ing",
- "inteligo",
- "mbank_mtransfer",
- "nest_przelew",
- "noble_pay",
- "pbac_z_ipko",
- "plus_bank",
- "santander_przelew24",
- "tmobile_usbugi_bankowe",
- "toyota_bank",
- "velobank",
- "volkswagen_bank",
+ Union[
+ Literal[
+ "alior_bank",
+ "bank_millennium",
+ "bank_nowy_bfg_sa",
+ "bank_pekao_sa",
+ "banki_spbdzielcze",
+ "blik",
+ "bnp_paribas",
+ "boz",
+ "citi_handlowy",
+ "credit_agricole",
+ "envelobank",
+ "etransfer_pocztowy24",
+ "getin_bank",
+ "ideabank",
+ "ing",
+ "inteligo",
+ "mbank_mtransfer",
+ "nest_przelew",
+ "noble_pay",
+ "pbac_z_ipko",
+ "plus_bank",
+ "santander_przelew24",
+ "tmobile_usbugi_bankowe",
+ "toyota_bank",
+ "velobank",
+ "volkswagen_bank",
+ ],
+ str,
]
]
"""
@@ -1664,7 +1685,7 @@ class Pix(StripeObject):
"""
mandate: Optional[str]
"""
- ID of the multi use Mandate generated by the PaymentIntent
+ ID of the multi use Mandate generated by the PaymentIntent or SetupIntent.
"""
class Promptpay(StripeObject):
@@ -1811,7 +1832,7 @@ class Sofort(StripeObject):
Last four characters of the IBAN.
"""
preferred_language: Optional[
- Literal["de", "en", "es", "fr", "it", "nl", "pl"]
+ Union[Literal["de", "en", "es", "fr", "it", "nl", "pl"], str]
]
"""
Preferred language of the SOFORT authorization page that the customer is redirected to. Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl`
@@ -1847,7 +1868,7 @@ class Swish(StripeObject):
class Twint(StripeObject):
mandate: Optional[str]
"""
- ID of the multi use Mandate generated by the PaymentIntent
+ ID of the multi use Mandate generated by the PaymentIntent or SetupIntent.
"""
class Upi(StripeObject):
diff --git a/stripe/_plan.py b/stripe/_plan.py
index f3f9b3b67..e365c3c7f 100644
--- a/stripe/_plan.py
+++ b/stripe/_plan.py
@@ -88,7 +88,7 @@ class TransformUsage(StripeObject):
"""
The unit amount in cents (or local equivalent) to be charged, represented as a decimal string with at most 12 decimal places. Only set if `billing_scheme=per_unit`.
"""
- billing_scheme: Literal["per_unit", "tiered"]
+ billing_scheme: Union[Literal["per_unit", "tiered"], str]
"""
Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `amount`) will be charged per unit in `quantity` (for plans with `usage_type=licensed`), or per unit of total usage (for plans with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.
"""
@@ -144,7 +144,7 @@ class TransformUsage(StripeObject):
"""
Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.
"""
- tiers_mode: Optional[Literal["graduated", "volume"]]
+ tiers_mode: Optional[Union[Literal["graduated", "volume"], str]]
"""
Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price. In `graduated` tiering, pricing can change as the quantity grows.
"""
diff --git a/stripe/_price.py b/stripe/_price.py
index 6f3173cf8..9f55b83b0 100644
--- a/stripe/_price.py
+++ b/stripe/_price.py
@@ -93,7 +93,7 @@ class Tier(StripeObject):
When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
"""
tax_behavior: Optional[
- Literal["exclusive", "inclusive", "unspecified"]
+ Union[Literal["exclusive", "inclusive", "unspecified"], str]
]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
@@ -192,7 +192,7 @@ class TransformQuantity(StripeObject):
"""
Whether the price can be used for new purchases.
"""
- billing_scheme: Literal["per_unit", "tiered"]
+ billing_scheme: Union[Literal["per_unit", "tiered"], str]
"""
Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `unit_amount` or `unit_amount_decimal`) will be charged per unit in `quantity` (for prices with `usage_type=licensed`), or per unit of total usage (for prices with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.
"""
@@ -248,7 +248,9 @@ class TransformQuantity(StripeObject):
"""
The recurring components of a price such as `interval` and `usage_type`.
"""
- tax_behavior: Optional[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: Optional[
+ Union[Literal["exclusive", "inclusive", "unspecified"], str]
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -256,7 +258,7 @@ class TransformQuantity(StripeObject):
"""
Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`.
"""
- tiers_mode: Optional[Literal["graduated", "volume"]]
+ tiers_mode: Optional[Union[Literal["graduated", "volume"], str]]
"""
Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price. In `graduated` tiering, pricing can change as the quantity grows.
"""
@@ -264,7 +266,7 @@ class TransformQuantity(StripeObject):
"""
Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with `tiers`.
"""
- type: Literal["one_time", "recurring"]
+ type: Union[Literal["one_time", "recurring"], str]
"""
One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
"""
diff --git a/stripe/_product.py b/stripe/_product.py
index 2a2cdef31..e63587b5b 100644
--- a/stripe/_product.py
+++ b/stripe/_product.py
@@ -17,6 +17,7 @@
Iterator,
List,
Optional,
+ Union,
cast,
overload,
)
@@ -155,7 +156,7 @@ class PackageDimensions(StripeObject):
"""
A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
"""
- type: Literal["good", "service"]
+ type: Union[Literal["good", "service"], str]
"""
The type of the product. The product is either of type `good`, which is eligible for use with Orders and SKUs, or `service`, which is eligible for use with Subscriptions and Plans.
"""
diff --git a/stripe/_quote.py b/stripe/_quote.py
index 4297fdb71..2e334843e 100644
--- a/stripe/_quote.py
+++ b/stripe/_quote.py
@@ -175,7 +175,7 @@ class Tax(StripeObject):
"""
Total after discounts and taxes are applied.
"""
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
"""
@@ -357,7 +357,9 @@ class StatusTransitions(StripeObject):
class SubscriptionData(StripeObject):
class BillingMode(StripeObject):
class Flexible(StripeObject):
- proration_discounts: Optional[Literal["included", "itemized"]]
+ proration_discounts: Optional[
+ Union[Literal["included", "itemized"], str]
+ ]
"""
Controls how invoices and invoice items display proration amounts and discount amounts.
"""
@@ -507,7 +509,9 @@ class TransferData(StripeObject):
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. Only applicable if there are line items with recurring prices on the quote.
"""
automatic_tax: AutomaticTax
- collection_method: Literal["charge_automatically", "send_invoice"]
+ collection_method: Union[
+ Literal["charge_automatically", "send_invoice"], str
+ ]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or on finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
"""
diff --git a/stripe/_review.py b/stripe/_review.py
index 64125061a..4f6de010e 100644
--- a/stripe/_review.py
+++ b/stripe/_review.py
@@ -5,7 +5,7 @@
from stripe._listable_api_resource import ListableAPIResource
from stripe._stripe_object import StripeObject
from stripe._util import class_method_variant, sanitize_id
-from typing import ClassVar, Optional, cast, overload
+from typing import ClassVar, Optional, Union, cast, overload
from typing_extensions import Literal, Unpack, TYPE_CHECKING
if TYPE_CHECKING:
@@ -117,7 +117,7 @@ class Session(StripeObject):
"""
If `true`, the review needs action.
"""
- opened_reason: Literal["manual", "rule"]
+ opened_reason: Union[Literal["manual", "rule"], str]
"""
The reason the review was opened. One of `rule` or `manual`.
"""
diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py
index 07827c84e..c33417ba2 100644
--- a/stripe/_setup_attempt.py
+++ b/stripe/_setup_attempt.py
@@ -69,7 +69,9 @@ class Bancontact(StripeObject):
"""
Last four characters of the IBAN.
"""
- preferred_language: Optional[Literal["de", "en", "fr", "nl"]]
+ preferred_language: Optional[
+ Union[Literal["de", "en", "fr", "nl"], str]
+ ]
"""
Preferred language of the Bancontact authorization page that the customer is redirected to.
Can be one of `en`, `de`, `fr`, or `nl`
@@ -172,7 +174,7 @@ class GooglePay(StripeObject):
apple_pay: Optional[ApplePay]
google_pay: Optional[GooglePay]
- type: Literal["apple_pay", "google_pay", "link"]
+ type: Union[Literal["apple_pay", "google_pay", "link"], str]
"""
The type of the card wallet, one of `apple_pay`, `google_pay`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
"""
@@ -275,55 +277,61 @@ class Cashapp(StripeObject):
class Ideal(StripeObject):
bank: Optional[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
+ Union[
+ Literal[
+ "abn_amro",
+ "adyen",
+ "asn_bank",
+ "bunq",
+ "buut",
+ "finom",
+ "handelsbanken",
+ "ing",
+ "knab",
+ "mollie",
+ "moneyou",
+ "n26",
+ "nn",
+ "rabobank",
+ "regiobank",
+ "revolut",
+ "sns_bank",
+ "triodos_bank",
+ "van_lanschot",
+ "yoursafe",
+ ],
+ str,
]
]
"""
The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
"""
bic: Optional[
- Literal[
- "ABNANL2A",
- "ADYBNL2A",
- "ASNBNL21",
- "BITSNL2A",
- "BUNQNL2A",
- "BUUTNL2A",
- "FNOMNL22",
- "FVLBNL22",
- "HANDNL2A",
- "INGBNL2A",
- "KNABNL2H",
- "MLLENL2A",
- "MOYONL21",
- "NNBANL2G",
- "NTSBDEB1",
- "RABONL2U",
- "RBRBNL21",
- "REVOIE23",
- "REVOLT21",
- "SNSBNL2A",
- "TRIONL2U",
+ Union[
+ Literal[
+ "ABNANL2A",
+ "ADYBNL2A",
+ "ASNBNL21",
+ "BITSNL2A",
+ "BUNQNL2A",
+ "BUUTNL2A",
+ "FNOMNL22",
+ "FVLBNL22",
+ "HANDNL2A",
+ "INGBNL2A",
+ "KNABNL2H",
+ "MLLENL2A",
+ "MOYONL21",
+ "NNBANL2G",
+ "NTSBDEB1",
+ "RABONL2U",
+ "RBRBNL21",
+ "REVOIE23",
+ "REVOLT21",
+ "SNSBNL2A",
+ "TRIONL2U",
+ ],
+ str,
]
]
"""
@@ -414,7 +422,9 @@ class Sofort(StripeObject):
"""
Last four characters of the IBAN.
"""
- preferred_language: Optional[Literal["de", "en", "fr", "nl"]]
+ preferred_language: Optional[
+ Union[Literal["de", "en", "fr", "nl"], str]
+ ]
"""
Preferred language of the Sofort authorization page that the customer is redirected to.
Can be one of `en`, `de`, `fr`, or `nl`
@@ -503,202 +513,211 @@ class SetupError(StripeObject):
For card errors, the ID of the failed charge.
"""
code: Optional[
- Literal[
- "account_closed",
- "account_country_invalid_address",
- "account_error_country_change_requires_additional_steps",
- "account_information_mismatch",
- "account_invalid",
- "account_number_invalid",
- "account_token_required_for_v2_account",
- "acss_debit_session_incomplete",
- "action_blocked",
- "alipay_upgrade_required",
- "amount_too_large",
- "amount_too_small",
- "anomalous_money_movement_request",
- "api_key_expired",
- "application_fees_not_allowed",
- "approval_required",
- "authentication_required",
- "balance_insufficient",
- "balance_invalid_parameter",
- "bank_account_bad_routing_numbers",
- "bank_account_declined",
- "bank_account_exists",
- "bank_account_restricted",
- "bank_account_unusable",
- "bank_account_unverified",
- "bank_account_verification_failed",
- "billing_invalid_mandate",
- "bitcoin_upgrade_required",
- "capture_charge_authorization_expired",
- "capture_unauthorized_payment",
- "card_decline_rate_limit_exceeded",
- "card_declined",
- "cardholder_phone_number_required",
- "charge_already_captured",
- "charge_already_refunded",
- "charge_disputed",
- "charge_exceeds_source_limit",
- "charge_exceeds_transaction_limit",
- "charge_expired_for_capture",
- "charge_invalid_parameter",
- "charge_not_refundable",
- "clearing_code_unsupported",
- "country_code_invalid",
- "country_unsupported",
- "coupon_expired",
- "customer_max_payment_methods",
- "customer_max_subscriptions",
- "customer_session_expired",
- "customer_tax_location_invalid",
- "debit_not_authorized",
- "email_invalid",
- "expired_card",
- "failed_tax_calculation",
- "financial_account_balance_does_not_support_currency",
- "financial_account_capability_not_enabled",
- "financial_account_capability_restricted",
- "financial_connections_account_inactive",
- "financial_connections_account_pending_account_numbers",
- "financial_connections_account_unavailable_account_numbers",
- "financial_connections_no_successful_transaction_refresh",
- "forwarding_api_inactive",
- "forwarding_api_invalid_parameter",
- "forwarding_api_retryable_upstream_error",
- "forwarding_api_upstream_connection_error",
- "forwarding_api_upstream_connection_timeout",
- "forwarding_api_upstream_error",
- "idempotency_key_in_use",
- "incorrect_address",
- "incorrect_cvc",
- "incorrect_number",
- "incorrect_zip",
- "india_recurring_payment_mandate_canceled",
- "instant_payouts_config_disabled",
- "instant_payouts_currency_disabled",
- "instant_payouts_limit_exceeded",
- "instant_payouts_unsupported",
- "insufficient_funds",
- "intent_invalid_state",
- "intent_verification_method_missing",
- "invalid_card_type",
- "invalid_characters",
- "invalid_charge_amount",
- "invalid_cvc",
- "invalid_expiry_month",
- "invalid_expiry_year",
- "invalid_mandate_reference_prefix_format",
- "invalid_number",
- "invalid_source_usage",
- "invalid_tax_location",
- "invoice_no_customer_line_items",
- "invoice_no_payment_method_types",
- "invoice_no_subscription_line_items",
- "invoice_not_editable",
- "invoice_on_behalf_of_not_editable",
- "invoice_payment_intent_requires_action",
- "invoice_upcoming_none",
- "livemode_mismatch",
- "lock_timeout",
- "missing",
- "no_account",
- "not_allowed_on_standard_account",
- "out_of_inventory",
- "ownership_declaration_not_allowed",
- "parameter_invalid_empty",
- "parameter_invalid_integer",
- "parameter_invalid_string_blank",
- "parameter_invalid_string_empty",
- "parameter_missing",
- "parameter_unknown",
- "parameters_exclusive",
- "payment_intent_action_required",
- "payment_intent_authentication_failure",
- "payment_intent_incompatible_payment_method",
- "payment_intent_invalid_parameter",
- "payment_intent_konbini_rejected_confirmation_number",
- "payment_intent_mandate_invalid",
- "payment_intent_payment_attempt_expired",
- "payment_intent_payment_attempt_failed",
- "payment_intent_rate_limit_exceeded",
- "payment_intent_unexpected_state",
- "payment_method_bank_account_already_verified",
- "payment_method_bank_account_blocked",
- "payment_method_billing_details_address_missing",
- "payment_method_configuration_failures",
- "payment_method_currency_mismatch",
- "payment_method_customer_decline",
- "payment_method_invalid_parameter",
- "payment_method_invalid_parameter_testmode",
- "payment_method_microdeposit_failed",
- "payment_method_microdeposit_processing_error",
- "payment_method_microdeposit_verification_amounts_invalid",
- "payment_method_microdeposit_verification_amounts_mismatch",
- "payment_method_microdeposit_verification_attempts_exceeded",
- "payment_method_microdeposit_verification_descriptor_code_mismatch",
- "payment_method_microdeposit_verification_timeout",
- "payment_method_not_available",
- "payment_method_provider_decline",
- "payment_method_provider_timeout",
- "payment_method_unactivated",
- "payment_method_unexpected_state",
- "payment_method_unsupported_type",
- "payout_reconciliation_not_ready",
- "payouts_limit_exceeded",
- "payouts_not_allowed",
- "platform_account_required",
- "platform_api_key_expired",
- "postal_code_invalid",
- "processing_error",
- "product_inactive",
- "progressive_onboarding_limit_exceeded",
- "rate_limit",
- "refer_to_customer",
- "refund_disputed_payment",
- "request_blocked",
- "resource_already_exists",
- "resource_missing",
- "return_intent_already_processed",
- "routing_number_invalid",
- "secret_key_required",
- "sepa_unsupported_account",
- "service_period_coupon_with_metered_tiered_item_unsupported",
- "setup_attempt_failed",
- "setup_intent_authentication_failure",
- "setup_intent_invalid_parameter",
- "setup_intent_mandate_invalid",
- "setup_intent_mobile_wallet_unsupported",
- "setup_intent_setup_attempt_expired",
- "setup_intent_unexpected_state",
- "shipping_address_invalid",
- "shipping_calculation_failed",
- "siret_invalid",
- "sku_inactive",
- "state_unsupported",
- "status_transition_invalid",
- "storer_capability_missing",
- "storer_capability_not_active",
- "stripe_tax_inactive",
- "tax_id_invalid",
- "tax_id_prohibited",
- "taxes_calculation_failed",
- "terminal_location_country_unsupported",
- "terminal_reader_busy",
- "terminal_reader_hardware_fault",
- "terminal_reader_invalid_location_for_activation",
- "terminal_reader_invalid_location_for_payment",
- "terminal_reader_offline",
- "terminal_reader_timeout",
- "testmode_charges_only",
- "tls_version_unsupported",
- "token_already_used",
- "token_card_network_invalid",
- "token_in_use",
- "transfer_source_balance_parameters_mismatch",
- "transfers_not_allowed",
- "url_invalid",
+ Union[
+ Literal[
+ "account_closed",
+ "account_country_invalid_address",
+ "account_error_country_change_requires_additional_steps",
+ "account_information_mismatch",
+ "account_invalid",
+ "account_number_invalid",
+ "account_token_required_for_v2_account",
+ "acss_debit_session_incomplete",
+ "action_blocked",
+ "alipay_upgrade_required",
+ "amount_too_large",
+ "amount_too_small",
+ "anomalous_money_movement_request",
+ "api_key_expired",
+ "application_fees_not_allowed",
+ "approval_required",
+ "authentication_failure",
+ "authentication_required",
+ "balance_insufficient",
+ "balance_invalid_parameter",
+ "bank_account_bad_routing_numbers",
+ "bank_account_declined",
+ "bank_account_exists",
+ "bank_account_restricted",
+ "bank_account_unusable",
+ "bank_account_unverified",
+ "bank_account_verification_failed",
+ "billing_invalid_mandate",
+ "bitcoin_upgrade_required",
+ "capability_not_active",
+ "capture_charge_authorization_expired",
+ "capture_unauthorized_payment",
+ "card_decline_rate_limit_exceeded",
+ "card_declined",
+ "cardholder_phone_number_required",
+ "charge_already_captured",
+ "charge_already_refunded",
+ "charge_disputed",
+ "charge_exceeds_source_limit",
+ "charge_exceeds_transaction_limit",
+ "charge_expired_for_capture",
+ "charge_invalid_parameter",
+ "charge_not_refundable",
+ "clearing_code_unsupported",
+ "country_code_invalid",
+ "country_unsupported",
+ "coupon_expired",
+ "customer_max_payment_methods",
+ "customer_max_subscriptions",
+ "customer_session_expired",
+ "customer_tax_location_invalid",
+ "debit_not_authorized",
+ "email_invalid",
+ "expired_card",
+ "expired_payment_method",
+ "failed_tax_calculation",
+ "financial_account_balance_does_not_support_currency",
+ "financial_account_capability_not_enabled",
+ "financial_account_capability_restricted",
+ "financial_connections_account_inactive",
+ "financial_connections_account_pending_account_numbers",
+ "financial_connections_account_unavailable_account_numbers",
+ "financial_connections_no_successful_transaction_refresh",
+ "forwarding_api_inactive",
+ "forwarding_api_invalid_parameter",
+ "forwarding_api_retryable_upstream_error",
+ "forwarding_api_upstream_connection_error",
+ "forwarding_api_upstream_connection_timeout",
+ "forwarding_api_upstream_error",
+ "idempotency_key_in_use",
+ "incorrect_address",
+ "incorrect_cvc",
+ "incorrect_number",
+ "incorrect_postal_code",
+ "incorrect_zip",
+ "india_recurring_payment_mandate_canceled",
+ "instant_payouts_config_disabled",
+ "instant_payouts_currency_disabled",
+ "instant_payouts_limit_exceeded",
+ "instant_payouts_unsupported",
+ "insufficient_funds",
+ "intent_invalid_state",
+ "intent_verification_method_missing",
+ "invalid_canceled_subscription_fields",
+ "invalid_card_type",
+ "invalid_characters",
+ "invalid_charge_amount",
+ "invalid_cvc",
+ "invalid_expiry_month",
+ "invalid_expiry_year",
+ "invalid_mandate_reference_prefix_format",
+ "invalid_number",
+ "invalid_source_usage",
+ "invalid_tax_location",
+ "invoice_no_customer_line_items",
+ "invoice_no_payment_method_types",
+ "invoice_no_subscription_line_items",
+ "invoice_not_editable",
+ "invoice_on_behalf_of_not_editable",
+ "invoice_payment_intent_requires_action",
+ "invoice_upcoming_none",
+ "livemode_mismatch",
+ "lock_timeout",
+ "missing",
+ "no_account",
+ "not_allowed_on_standard_account",
+ "out_of_inventory",
+ "ownership_declaration_not_allowed",
+ "parameter_invalid_empty",
+ "parameter_invalid_integer",
+ "parameter_invalid_string_blank",
+ "parameter_invalid_string_empty",
+ "parameter_missing",
+ "parameter_unknown",
+ "parameters_exclusive",
+ "payment_intent_action_required",
+ "payment_intent_authentication_failure",
+ "payment_intent_incompatible_payment_method",
+ "payment_intent_invalid_parameter",
+ "payment_intent_konbini_rejected_confirmation_number",
+ "payment_intent_mandate_invalid",
+ "payment_intent_payment_attempt_expired",
+ "payment_intent_payment_attempt_failed",
+ "payment_intent_rate_limit_exceeded",
+ "payment_intent_unexpected_state",
+ "payment_method_bank_account_already_verified",
+ "payment_method_bank_account_blocked",
+ "payment_method_billing_details_address_missing",
+ "payment_method_configuration_failures",
+ "payment_method_currency_mismatch",
+ "payment_method_customer_decline",
+ "payment_method_invalid_parameter",
+ "payment_method_invalid_parameter_testmode",
+ "payment_method_microdeposit_failed",
+ "payment_method_microdeposit_processing_error",
+ "payment_method_microdeposit_verification_amounts_invalid",
+ "payment_method_microdeposit_verification_amounts_mismatch",
+ "payment_method_microdeposit_verification_attempts_exceeded",
+ "payment_method_microdeposit_verification_descriptor_code_mismatch",
+ "payment_method_microdeposit_verification_timeout",
+ "payment_method_not_available",
+ "payment_method_provider_decline",
+ "payment_method_provider_timeout",
+ "payment_method_restricted",
+ "payment_method_unactivated",
+ "payment_method_unexpected_state",
+ "payment_method_unsupported_type",
+ "payout_reconciliation_not_ready",
+ "payouts_limit_exceeded",
+ "payouts_not_allowed",
+ "platform_account_required",
+ "platform_api_key_expired",
+ "postal_code_invalid",
+ "processing_error",
+ "product_inactive",
+ "progressive_onboarding_limit_exceeded",
+ "rate_limit",
+ "refer_to_customer",
+ "refund_disputed_payment",
+ "request_blocked",
+ "resource_already_exists",
+ "resource_missing",
+ "return_intent_already_processed",
+ "routing_number_invalid",
+ "secret_key_required",
+ "sepa_unsupported_account",
+ "service_period_coupon_with_metered_tiered_item_unsupported",
+ "setup_attempt_failed",
+ "setup_intent_authentication_failure",
+ "setup_intent_invalid_parameter",
+ "setup_intent_mandate_invalid",
+ "setup_intent_mobile_wallet_unsupported",
+ "setup_intent_setup_attempt_expired",
+ "setup_intent_unexpected_state",
+ "shipping_address_invalid",
+ "shipping_calculation_failed",
+ "siret_invalid",
+ "sku_inactive",
+ "state_unsupported",
+ "status_transition_invalid",
+ "storer_capability_missing",
+ "storer_capability_not_active",
+ "stripe_tax_inactive",
+ "tax_id_invalid",
+ "tax_id_prohibited",
+ "taxes_calculation_failed",
+ "terminal_location_country_unsupported",
+ "terminal_reader_busy",
+ "terminal_reader_hardware_fault",
+ "terminal_reader_invalid_location_for_activation",
+ "terminal_reader_invalid_location_for_payment",
+ "terminal_reader_offline",
+ "terminal_reader_timeout",
+ "testmode_charges_only",
+ "tls_version_unsupported",
+ "token_already_used",
+ "token_card_network_invalid",
+ "token_in_use",
+ "transfer_source_balance_parameters_mismatch",
+ "transfers_not_allowed",
+ "url_invalid",
+ ],
+ str,
]
]
"""
@@ -785,11 +804,14 @@ class SetupError(StripeObject):
source: Optional[
Union["Account", "BankAccount", "CardResource", "Source"]
]
- type: Literal[
- "api_error",
- "card_error",
- "idempotency_error",
- "invalid_request_error",
+ type: Union[
+ Literal[
+ "api_error",
+ "card_error",
+ "idempotency_error",
+ "invalid_request_error",
+ ],
+ str,
]
"""
The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
@@ -817,7 +839,7 @@ class SetupError(StripeObject):
"""
The value of [customer_account](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-customer_account) on the SetupIntent at the time of this confirmation.
"""
- flow_directions: Optional[List[Literal["inbound", "outbound"]]]
+ flow_directions: Optional[List[Union[Literal["inbound", "outbound"], str]]]
"""
Indicates the directions of money movement for which this payment method is intended to be used.
diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py
index 1be5e4091..b98824fbd 100644
--- a/stripe/_setup_intent.py
+++ b/stripe/_setup_intent.py
@@ -95,202 +95,211 @@ class LastSetupError(StripeObject):
For card errors, the ID of the failed charge.
"""
code: Optional[
- Literal[
- "account_closed",
- "account_country_invalid_address",
- "account_error_country_change_requires_additional_steps",
- "account_information_mismatch",
- "account_invalid",
- "account_number_invalid",
- "account_token_required_for_v2_account",
- "acss_debit_session_incomplete",
- "action_blocked",
- "alipay_upgrade_required",
- "amount_too_large",
- "amount_too_small",
- "anomalous_money_movement_request",
- "api_key_expired",
- "application_fees_not_allowed",
- "approval_required",
- "authentication_required",
- "balance_insufficient",
- "balance_invalid_parameter",
- "bank_account_bad_routing_numbers",
- "bank_account_declined",
- "bank_account_exists",
- "bank_account_restricted",
- "bank_account_unusable",
- "bank_account_unverified",
- "bank_account_verification_failed",
- "billing_invalid_mandate",
- "bitcoin_upgrade_required",
- "capture_charge_authorization_expired",
- "capture_unauthorized_payment",
- "card_decline_rate_limit_exceeded",
- "card_declined",
- "cardholder_phone_number_required",
- "charge_already_captured",
- "charge_already_refunded",
- "charge_disputed",
- "charge_exceeds_source_limit",
- "charge_exceeds_transaction_limit",
- "charge_expired_for_capture",
- "charge_invalid_parameter",
- "charge_not_refundable",
- "clearing_code_unsupported",
- "country_code_invalid",
- "country_unsupported",
- "coupon_expired",
- "customer_max_payment_methods",
- "customer_max_subscriptions",
- "customer_session_expired",
- "customer_tax_location_invalid",
- "debit_not_authorized",
- "email_invalid",
- "expired_card",
- "failed_tax_calculation",
- "financial_account_balance_does_not_support_currency",
- "financial_account_capability_not_enabled",
- "financial_account_capability_restricted",
- "financial_connections_account_inactive",
- "financial_connections_account_pending_account_numbers",
- "financial_connections_account_unavailable_account_numbers",
- "financial_connections_no_successful_transaction_refresh",
- "forwarding_api_inactive",
- "forwarding_api_invalid_parameter",
- "forwarding_api_retryable_upstream_error",
- "forwarding_api_upstream_connection_error",
- "forwarding_api_upstream_connection_timeout",
- "forwarding_api_upstream_error",
- "idempotency_key_in_use",
- "incorrect_address",
- "incorrect_cvc",
- "incorrect_number",
- "incorrect_zip",
- "india_recurring_payment_mandate_canceled",
- "instant_payouts_config_disabled",
- "instant_payouts_currency_disabled",
- "instant_payouts_limit_exceeded",
- "instant_payouts_unsupported",
- "insufficient_funds",
- "intent_invalid_state",
- "intent_verification_method_missing",
- "invalid_card_type",
- "invalid_characters",
- "invalid_charge_amount",
- "invalid_cvc",
- "invalid_expiry_month",
- "invalid_expiry_year",
- "invalid_mandate_reference_prefix_format",
- "invalid_number",
- "invalid_source_usage",
- "invalid_tax_location",
- "invoice_no_customer_line_items",
- "invoice_no_payment_method_types",
- "invoice_no_subscription_line_items",
- "invoice_not_editable",
- "invoice_on_behalf_of_not_editable",
- "invoice_payment_intent_requires_action",
- "invoice_upcoming_none",
- "livemode_mismatch",
- "lock_timeout",
- "missing",
- "no_account",
- "not_allowed_on_standard_account",
- "out_of_inventory",
- "ownership_declaration_not_allowed",
- "parameter_invalid_empty",
- "parameter_invalid_integer",
- "parameter_invalid_string_blank",
- "parameter_invalid_string_empty",
- "parameter_missing",
- "parameter_unknown",
- "parameters_exclusive",
- "payment_intent_action_required",
- "payment_intent_authentication_failure",
- "payment_intent_incompatible_payment_method",
- "payment_intent_invalid_parameter",
- "payment_intent_konbini_rejected_confirmation_number",
- "payment_intent_mandate_invalid",
- "payment_intent_payment_attempt_expired",
- "payment_intent_payment_attempt_failed",
- "payment_intent_rate_limit_exceeded",
- "payment_intent_unexpected_state",
- "payment_method_bank_account_already_verified",
- "payment_method_bank_account_blocked",
- "payment_method_billing_details_address_missing",
- "payment_method_configuration_failures",
- "payment_method_currency_mismatch",
- "payment_method_customer_decline",
- "payment_method_invalid_parameter",
- "payment_method_invalid_parameter_testmode",
- "payment_method_microdeposit_failed",
- "payment_method_microdeposit_processing_error",
- "payment_method_microdeposit_verification_amounts_invalid",
- "payment_method_microdeposit_verification_amounts_mismatch",
- "payment_method_microdeposit_verification_attempts_exceeded",
- "payment_method_microdeposit_verification_descriptor_code_mismatch",
- "payment_method_microdeposit_verification_timeout",
- "payment_method_not_available",
- "payment_method_provider_decline",
- "payment_method_provider_timeout",
- "payment_method_unactivated",
- "payment_method_unexpected_state",
- "payment_method_unsupported_type",
- "payout_reconciliation_not_ready",
- "payouts_limit_exceeded",
- "payouts_not_allowed",
- "platform_account_required",
- "platform_api_key_expired",
- "postal_code_invalid",
- "processing_error",
- "product_inactive",
- "progressive_onboarding_limit_exceeded",
- "rate_limit",
- "refer_to_customer",
- "refund_disputed_payment",
- "request_blocked",
- "resource_already_exists",
- "resource_missing",
- "return_intent_already_processed",
- "routing_number_invalid",
- "secret_key_required",
- "sepa_unsupported_account",
- "service_period_coupon_with_metered_tiered_item_unsupported",
- "setup_attempt_failed",
- "setup_intent_authentication_failure",
- "setup_intent_invalid_parameter",
- "setup_intent_mandate_invalid",
- "setup_intent_mobile_wallet_unsupported",
- "setup_intent_setup_attempt_expired",
- "setup_intent_unexpected_state",
- "shipping_address_invalid",
- "shipping_calculation_failed",
- "siret_invalid",
- "sku_inactive",
- "state_unsupported",
- "status_transition_invalid",
- "storer_capability_missing",
- "storer_capability_not_active",
- "stripe_tax_inactive",
- "tax_id_invalid",
- "tax_id_prohibited",
- "taxes_calculation_failed",
- "terminal_location_country_unsupported",
- "terminal_reader_busy",
- "terminal_reader_hardware_fault",
- "terminal_reader_invalid_location_for_activation",
- "terminal_reader_invalid_location_for_payment",
- "terminal_reader_offline",
- "terminal_reader_timeout",
- "testmode_charges_only",
- "tls_version_unsupported",
- "token_already_used",
- "token_card_network_invalid",
- "token_in_use",
- "transfer_source_balance_parameters_mismatch",
- "transfers_not_allowed",
- "url_invalid",
+ Union[
+ Literal[
+ "account_closed",
+ "account_country_invalid_address",
+ "account_error_country_change_requires_additional_steps",
+ "account_information_mismatch",
+ "account_invalid",
+ "account_number_invalid",
+ "account_token_required_for_v2_account",
+ "acss_debit_session_incomplete",
+ "action_blocked",
+ "alipay_upgrade_required",
+ "amount_too_large",
+ "amount_too_small",
+ "anomalous_money_movement_request",
+ "api_key_expired",
+ "application_fees_not_allowed",
+ "approval_required",
+ "authentication_failure",
+ "authentication_required",
+ "balance_insufficient",
+ "balance_invalid_parameter",
+ "bank_account_bad_routing_numbers",
+ "bank_account_declined",
+ "bank_account_exists",
+ "bank_account_restricted",
+ "bank_account_unusable",
+ "bank_account_unverified",
+ "bank_account_verification_failed",
+ "billing_invalid_mandate",
+ "bitcoin_upgrade_required",
+ "capability_not_active",
+ "capture_charge_authorization_expired",
+ "capture_unauthorized_payment",
+ "card_decline_rate_limit_exceeded",
+ "card_declined",
+ "cardholder_phone_number_required",
+ "charge_already_captured",
+ "charge_already_refunded",
+ "charge_disputed",
+ "charge_exceeds_source_limit",
+ "charge_exceeds_transaction_limit",
+ "charge_expired_for_capture",
+ "charge_invalid_parameter",
+ "charge_not_refundable",
+ "clearing_code_unsupported",
+ "country_code_invalid",
+ "country_unsupported",
+ "coupon_expired",
+ "customer_max_payment_methods",
+ "customer_max_subscriptions",
+ "customer_session_expired",
+ "customer_tax_location_invalid",
+ "debit_not_authorized",
+ "email_invalid",
+ "expired_card",
+ "expired_payment_method",
+ "failed_tax_calculation",
+ "financial_account_balance_does_not_support_currency",
+ "financial_account_capability_not_enabled",
+ "financial_account_capability_restricted",
+ "financial_connections_account_inactive",
+ "financial_connections_account_pending_account_numbers",
+ "financial_connections_account_unavailable_account_numbers",
+ "financial_connections_no_successful_transaction_refresh",
+ "forwarding_api_inactive",
+ "forwarding_api_invalid_parameter",
+ "forwarding_api_retryable_upstream_error",
+ "forwarding_api_upstream_connection_error",
+ "forwarding_api_upstream_connection_timeout",
+ "forwarding_api_upstream_error",
+ "idempotency_key_in_use",
+ "incorrect_address",
+ "incorrect_cvc",
+ "incorrect_number",
+ "incorrect_postal_code",
+ "incorrect_zip",
+ "india_recurring_payment_mandate_canceled",
+ "instant_payouts_config_disabled",
+ "instant_payouts_currency_disabled",
+ "instant_payouts_limit_exceeded",
+ "instant_payouts_unsupported",
+ "insufficient_funds",
+ "intent_invalid_state",
+ "intent_verification_method_missing",
+ "invalid_canceled_subscription_fields",
+ "invalid_card_type",
+ "invalid_characters",
+ "invalid_charge_amount",
+ "invalid_cvc",
+ "invalid_expiry_month",
+ "invalid_expiry_year",
+ "invalid_mandate_reference_prefix_format",
+ "invalid_number",
+ "invalid_source_usage",
+ "invalid_tax_location",
+ "invoice_no_customer_line_items",
+ "invoice_no_payment_method_types",
+ "invoice_no_subscription_line_items",
+ "invoice_not_editable",
+ "invoice_on_behalf_of_not_editable",
+ "invoice_payment_intent_requires_action",
+ "invoice_upcoming_none",
+ "livemode_mismatch",
+ "lock_timeout",
+ "missing",
+ "no_account",
+ "not_allowed_on_standard_account",
+ "out_of_inventory",
+ "ownership_declaration_not_allowed",
+ "parameter_invalid_empty",
+ "parameter_invalid_integer",
+ "parameter_invalid_string_blank",
+ "parameter_invalid_string_empty",
+ "parameter_missing",
+ "parameter_unknown",
+ "parameters_exclusive",
+ "payment_intent_action_required",
+ "payment_intent_authentication_failure",
+ "payment_intent_incompatible_payment_method",
+ "payment_intent_invalid_parameter",
+ "payment_intent_konbini_rejected_confirmation_number",
+ "payment_intent_mandate_invalid",
+ "payment_intent_payment_attempt_expired",
+ "payment_intent_payment_attempt_failed",
+ "payment_intent_rate_limit_exceeded",
+ "payment_intent_unexpected_state",
+ "payment_method_bank_account_already_verified",
+ "payment_method_bank_account_blocked",
+ "payment_method_billing_details_address_missing",
+ "payment_method_configuration_failures",
+ "payment_method_currency_mismatch",
+ "payment_method_customer_decline",
+ "payment_method_invalid_parameter",
+ "payment_method_invalid_parameter_testmode",
+ "payment_method_microdeposit_failed",
+ "payment_method_microdeposit_processing_error",
+ "payment_method_microdeposit_verification_amounts_invalid",
+ "payment_method_microdeposit_verification_amounts_mismatch",
+ "payment_method_microdeposit_verification_attempts_exceeded",
+ "payment_method_microdeposit_verification_descriptor_code_mismatch",
+ "payment_method_microdeposit_verification_timeout",
+ "payment_method_not_available",
+ "payment_method_provider_decline",
+ "payment_method_provider_timeout",
+ "payment_method_restricted",
+ "payment_method_unactivated",
+ "payment_method_unexpected_state",
+ "payment_method_unsupported_type",
+ "payout_reconciliation_not_ready",
+ "payouts_limit_exceeded",
+ "payouts_not_allowed",
+ "platform_account_required",
+ "platform_api_key_expired",
+ "postal_code_invalid",
+ "processing_error",
+ "product_inactive",
+ "progressive_onboarding_limit_exceeded",
+ "rate_limit",
+ "refer_to_customer",
+ "refund_disputed_payment",
+ "request_blocked",
+ "resource_already_exists",
+ "resource_missing",
+ "return_intent_already_processed",
+ "routing_number_invalid",
+ "secret_key_required",
+ "sepa_unsupported_account",
+ "service_period_coupon_with_metered_tiered_item_unsupported",
+ "setup_attempt_failed",
+ "setup_intent_authentication_failure",
+ "setup_intent_invalid_parameter",
+ "setup_intent_mandate_invalid",
+ "setup_intent_mobile_wallet_unsupported",
+ "setup_intent_setup_attempt_expired",
+ "setup_intent_unexpected_state",
+ "shipping_address_invalid",
+ "shipping_calculation_failed",
+ "siret_invalid",
+ "sku_inactive",
+ "state_unsupported",
+ "status_transition_invalid",
+ "storer_capability_missing",
+ "storer_capability_not_active",
+ "stripe_tax_inactive",
+ "tax_id_invalid",
+ "tax_id_prohibited",
+ "taxes_calculation_failed",
+ "terminal_location_country_unsupported",
+ "terminal_reader_busy",
+ "terminal_reader_hardware_fault",
+ "terminal_reader_invalid_location_for_activation",
+ "terminal_reader_invalid_location_for_payment",
+ "terminal_reader_offline",
+ "terminal_reader_timeout",
+ "testmode_charges_only",
+ "tls_version_unsupported",
+ "token_already_used",
+ "token_card_network_invalid",
+ "token_in_use",
+ "transfer_source_balance_parameters_mismatch",
+ "transfers_not_allowed",
+ "url_invalid",
+ ],
+ str,
]
]
"""
@@ -377,11 +386,14 @@ class LastSetupError(StripeObject):
source: Optional[
Union["Account", "BankAccount", "CardResource", "Source"]
]
- type: Literal[
- "api_error",
- "card_error",
- "idempotency_error",
- "invalid_request_error",
+ type: Union[
+ Literal[
+ "api_error",
+ "card_error",
+ "idempotency_error",
+ "invalid_request_error",
+ ],
+ str,
]
"""
The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
@@ -595,7 +607,7 @@ class MandateOptions(StripeObject):
"""
Amount to be charged for future payments, specified in the presentment currency.
"""
- amount_type: Literal["fixed", "maximum"]
+ amount_type: Union[Literal["fixed", "maximum"], str]
"""
One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
"""
@@ -611,7 +623,9 @@ class MandateOptions(StripeObject):
"""
End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+ interval: Union[
+ Literal["day", "month", "sporadic", "week", "year"], str
+ ]
"""
Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
"""
@@ -637,20 +651,23 @@ class MandateOptions(StripeObject):
Configuration options for setting up an eMandate for cards issued in India.
"""
network: Optional[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
+ Union[
+ Literal[
+ "amex",
+ "cartes_bancaires",
+ "diners",
+ "discover",
+ "eftpos_au",
+ "girocard",
+ "interac",
+ "jcb",
+ "link",
+ "mastercard",
+ "unionpay",
+ "unknown",
+ "visa",
+ ],
+ str,
]
]
"""
@@ -1022,6 +1039,7 @@ class MandateOptions(StripeObject):
"swish",
"tamara",
"test_pay",
+ "touch_n_go",
"truemoney",
"twint",
"upi",
@@ -1054,7 +1072,7 @@ class MandateOptions(StripeObject):
Settings for dynamic payment methods compatible with this Setup Intent
"""
cancellation_reason: Optional[
- Literal["abandoned", "duplicate", "requested_by_customer"]
+ Union[Literal["abandoned", "duplicate", "requested_by_customer"], str]
]
"""
Reason for cancellation of this SetupIntent, one of `abandoned`, `requested_by_customer`, or `duplicate`.
@@ -1150,7 +1168,7 @@ class MandateOptions(StripeObject):
"""
Payment method types that are excluded from this SetupIntent.
"""
- flow_directions: Optional[List[Literal["inbound", "outbound"]]]
+ flow_directions: Optional[List[Union[Literal["inbound", "outbound"], str]]]
"""
Indicates the directions of money movement for which this payment method is intended to be used.
@@ -1215,13 +1233,16 @@ class MandateOptions(StripeObject):
"""
ID of the single_use Mandate generated by the SetupIntent.
"""
- status: Literal[
- "canceled",
- "processing",
- "requires_action",
- "requires_confirmation",
- "requires_payment_method",
- "succeeded",
+ status: Union[
+ Literal[
+ "canceled",
+ "processing",
+ "requires_action",
+ "requires_confirmation",
+ "requires_payment_method",
+ "succeeded",
+ ],
+ str,
]
"""
[Status](https://docs.stripe.com/payments/intents#intent-statuses) of this SetupIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `canceled`, or `succeeded`.
diff --git a/stripe/_shipping_rate.py b/stripe/_shipping_rate.py
index 3b6823592..f9ac2fca9 100644
--- a/stripe/_shipping_rate.py
+++ b/stripe/_shipping_rate.py
@@ -77,7 +77,9 @@ class CurrencyOptions(StripeObject):
"""
A non-negative integer in cents representing how much to charge.
"""
- tax_behavior: Literal["exclusive", "inclusive", "unspecified"]
+ tax_behavior: Union[
+ Literal["exclusive", "inclusive", "unspecified"], str
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
@@ -130,7 +132,9 @@ class CurrencyOptions(StripeObject):
"""
String representing the object's type. Objects of the same type share the same value.
"""
- tax_behavior: Optional[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: Optional[
+ Union[Literal["exclusive", "inclusive", "unspecified"], str]
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
diff --git a/stripe/_source.py b/stripe/_source.py
index 01581a05c..cec32918c 100644
--- a/stripe/_source.py
+++ b/stripe/_source.py
@@ -565,26 +565,29 @@ class Wechat(StripeObject):
The status of the source, one of `canceled`, `chargeable`, `consumed`, `failed`, or `pending`. Only `chargeable` sources can be used to create a charge.
"""
three_d_secure: Optional[ThreeDSecure]
- type: Literal[
- "ach_credit_transfer",
- "ach_debit",
- "acss_debit",
- "alipay",
- "au_becs_debit",
- "bancontact",
- "card",
- "card_present",
- "eps",
- "giropay",
- "ideal",
- "klarna",
- "multibanco",
- "p24",
- "sepa_credit_transfer",
- "sepa_debit",
- "sofort",
- "three_d_secure",
- "wechat",
+ type: Union[
+ Literal[
+ "ach_credit_transfer",
+ "ach_debit",
+ "acss_debit",
+ "alipay",
+ "au_becs_debit",
+ "bancontact",
+ "card",
+ "card_present",
+ "eps",
+ "giropay",
+ "ideal",
+ "klarna",
+ "multibanco",
+ "p24",
+ "sepa_credit_transfer",
+ "sepa_debit",
+ "sofort",
+ "three_d_secure",
+ "wechat",
+ ],
+ str,
]
"""
The `type` of the source. The `type` is a payment method, one of `ach_credit_transfer`, `ach_debit`, `alipay`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `multibanco`, `klarna`, `p24`, `sepa_debit`, `sofort`, `three_d_secure`, or `wechat`. An additional hash is included on the source with a name matching this value. It contains additional information specific to the [payment method](https://docs.stripe.com/sources) used.
diff --git a/stripe/_source_transaction.py b/stripe/_source_transaction.py
index 52a4fc278..d45424997 100644
--- a/stripe/_source_transaction.py
+++ b/stripe/_source_transaction.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._stripe_object import StripeObject
-from typing import ClassVar, Optional
+from typing import ClassVar, Optional, Union
from typing_extensions import Literal
@@ -146,23 +146,26 @@ class SepaCreditTransfer(StripeObject):
"""
The status of the transaction, one of `succeeded`, `pending`, or `failed`.
"""
- type: Literal[
- "ach_credit_transfer",
- "ach_debit",
- "alipay",
- "bancontact",
- "card",
- "card_present",
- "eps",
- "giropay",
- "ideal",
- "klarna",
- "multibanco",
- "p24",
- "sepa_debit",
- "sofort",
- "three_d_secure",
- "wechat",
+ type: Union[
+ Literal[
+ "ach_credit_transfer",
+ "ach_debit",
+ "alipay",
+ "bancontact",
+ "card",
+ "card_present",
+ "eps",
+ "giropay",
+ "ideal",
+ "klarna",
+ "multibanco",
+ "p24",
+ "sepa_debit",
+ "sofort",
+ "three_d_secure",
+ "wechat",
+ ],
+ str,
]
"""
The type of source this transaction is attached to.
diff --git a/stripe/_subscription.py b/stripe/_subscription.py
index d783d43cd..839181733 100644
--- a/stripe/_subscription.py
+++ b/stripe/_subscription.py
@@ -38,6 +38,7 @@
from stripe._subscription_schedule import SubscriptionSchedule
from stripe._tax_id import TaxId
from stripe._tax_rate import TaxRate
+ from stripe.billing._feedback_option import FeedbackOption
from stripe.params._subscription_cancel_params import (
SubscriptionCancelParams,
)
@@ -130,7 +131,9 @@ class BillingCycleAnchorConfig(StripeObject):
class BillingMode(StripeObject):
class Flexible(StripeObject):
- proration_discounts: Optional[Literal["included", "itemized"]]
+ proration_discounts: Optional[
+ Union[Literal["included", "itemized"], str]
+ ]
"""
Controls how invoices and invoice items display proration amounts and discount amounts.
"""
@@ -162,7 +165,7 @@ class AppliesTo(StripeObject):
class BillUntil(StripeObject):
class Duration(StripeObject):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing duration. Either `day`, `week`, `month` or `year`.
"""
@@ -236,6 +239,10 @@ class CancellationDetails(StripeObject):
"""
The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
"""
+ feedback_option: Optional[ExpandableField["FeedbackOption"]]
+ """
+ Customized feedback options that provide deeper insight into why the subscription was canceled, if the subscription was canceled explicitly by the user.
+ """
reason: Optional[
Union[
Literal[
@@ -298,7 +305,9 @@ class ManagedPayments(StripeObject):
"""
class PauseCollection(StripeObject):
- behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ behavior: Union[
+ Literal["keep_as_draft", "mark_uncollectible", "void"], str
+ ]
"""
The payment collection behavior for this subscription while paused.
"""
@@ -335,6 +344,9 @@ class Bancontact(StripeObject):
Preferred language of the Bancontact authorization page that the customer is redirected to.
"""
+ class Billie(StripeObject):
+ pass
+
class Card(StripeObject):
class MandateOptions(StripeObject):
amount: Optional[int]
@@ -354,20 +366,23 @@ class MandateOptions(StripeObject):
mandate_options: Optional[MandateOptions]
network: Optional[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
+ Union[
+ Literal[
+ "amex",
+ "cartes_bancaires",
+ "diners",
+ "discover",
+ "eftpos_au",
+ "girocard",
+ "interac",
+ "jcb",
+ "link",
+ "mastercard",
+ "unionpay",
+ "unknown",
+ "visa",
+ ],
+ str,
]
]
"""
@@ -384,7 +399,9 @@ class MandateOptions(StripeObject):
class CustomerBalance(StripeObject):
class BankTransfer(StripeObject):
class EuBankTransfer(StripeObject):
- country: Literal["BE", "DE", "ES", "FR", "IE", "NL"]
+ country: Union[
+ Literal["BE", "DE", "ES", "FR", "IE", "NL"], str
+ ]
"""
The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
"""
@@ -572,6 +589,10 @@ class Filters(StripeObject):
"""
This sub-hash contains details about the Bancontact payment method options to pass to invoices created by the subscription.
"""
+ billie: Optional[Billie]
+ """
+ This sub-hash contains details about the Billie payment method options to pass to invoices created by the subscription.
+ """
card: Optional[Card]
"""
This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription.
@@ -607,6 +628,7 @@ class Filters(StripeObject):
_inner_class_types = {
"acss_debit": AcssDebit,
"bancontact": Bancontact,
+ "billie": Billie,
"card": Card,
"customer_balance": CustomerBalance,
"konbini": Konbini,
@@ -634,6 +656,7 @@ class Filters(StripeObject):
"au_becs_debit",
"bacs_debit",
"bancontact",
+ "billie",
"boleto",
"card",
"cashapp",
@@ -690,7 +713,7 @@ class Filters(StripeObject):
_inner_class_types = {"payment_method_options": PaymentMethodOptions}
class PendingInvoiceItemInterval(StripeObject):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.
"""
@@ -809,7 +832,9 @@ class EndBehavior(StripeObject):
"""
Details about why this subscription was cancelled
"""
- collection_method: Literal["charge_automatically", "send_invoice"]
+ collection_method: Union[
+ Literal["charge_automatically", "send_invoice"], str
+ ]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`.
"""
@@ -1449,7 +1474,7 @@ def modify(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.
- By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
+ By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).
Switching prices does not normally change the billing date or generate an immediate charge unless:
@@ -1486,7 +1511,7 @@ async def modify_async(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.
- By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
+ By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).
Switching prices does not normally change the billing date or generate an immediate charge unless:
diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py
index 68f31b157..28236fdb0 100644
--- a/stripe/_subscription_schedule.py
+++ b/stripe/_subscription_schedule.py
@@ -61,7 +61,9 @@ class SubscriptionSchedule(
class BillingMode(StripeObject):
class Flexible(StripeObject):
- proration_discounts: Optional[Literal["included", "itemized"]]
+ proration_discounts: Optional[
+ Union[Literal["included", "itemized"], str]
+ ]
"""
Controls how invoices and invoice items display proration amounts and discount amounts.
"""
@@ -188,7 +190,7 @@ class TransferData(StripeObject):
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule.
"""
automatic_tax: Optional[AutomaticTax]
- billing_cycle_anchor: Literal["automatic", "phase_start"]
+ billing_cycle_anchor: Union[Literal["automatic", "phase_start"], str]
"""
Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -476,7 +478,9 @@ class TransferData(StripeObject):
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule.
"""
automatic_tax: Optional[AutomaticTax]
- billing_cycle_anchor: Optional[Literal["automatic", "phase_start"]]
+ billing_cycle_anchor: Optional[
+ Union[Literal["automatic", "phase_start"], str]
+ ]
"""
Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -485,7 +489,7 @@ class TransferData(StripeObject):
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
"""
collection_method: Optional[
- Literal["charge_automatically", "send_invoice"]
+ Union[Literal["charge_automatically", "send_invoice"], str]
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`.
@@ -530,8 +534,8 @@ class TransferData(StripeObject):
"""
The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
"""
- proration_behavior: Literal[
- "always_invoice", "create_prorations", "none"
+ proration_behavior: Union[
+ Literal["always_invoice", "create_prorations", "none"], str
]
"""
When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
@@ -627,8 +631,9 @@ class TransferData(StripeObject):
"""
ID of the subscription once managed by the subscription schedule (if it is released).
"""
- status: Literal[
- "active", "canceled", "completed", "not_started", "released"
+ status: Union[
+ Literal["active", "canceled", "completed", "not_started", "released"],
+ str,
]
"""
The present status of the subscription schedule. Possible values are `not_started`, `active`, `completed`, `released`, and `canceled`. You can read more about the different states in our [behavior guide](https://docs.stripe.com/billing/subscriptions/subscription-schedules).
diff --git a/stripe/_subscription_service.py b/stripe/_subscription_service.py
index 076cee8c7..d2dec8d9e 100644
--- a/stripe/_subscription_service.py
+++ b/stripe/_subscription_service.py
@@ -154,7 +154,7 @@ def update(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.
- By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
+ By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).
Switching prices does not normally change the billing date or generate an immediate charge unless:
@@ -198,7 +198,7 @@ async def update_async(
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.
- By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
+ By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes. You can also [use scripts to prorate your billing. To learn more, see Prorations](https://docs.stripe.com/billing/scripts/stripe-authored/proration).
Switching prices does not normally change the billing date or generate an immediate charge unless:
diff --git a/stripe/_tax_id.py b/stripe/_tax_id.py
index 583fdb5eb..370f1baf8 100644
--- a/stripe/_tax_id.py
+++ b/stripe/_tax_id.py
@@ -57,7 +57,9 @@ class Owner(StripeObject):
"""
class Verification(StripeObject):
- status: Literal["pending", "unavailable", "unverified", "verified"]
+ status: Union[
+ Literal["pending", "unavailable", "unverified", "verified"], str
+ ]
"""
Verification status, one of `pending`, `verified`, `unverified`, or `unavailable`.
"""
@@ -106,125 +108,128 @@ class Verification(StripeObject):
"""
The account or customer the tax ID belongs to.
"""
- type: Literal[
- "ad_nrt",
- "ae_trn",
- "al_tin",
- "am_tin",
- "ao_tin",
- "ar_cuit",
- "au_abn",
- "au_arn",
- "aw_tin",
- "az_tin",
- "ba_tin",
- "bb_tin",
- "bd_bin",
- "bf_ifu",
- "bg_uic",
- "bh_vat",
- "bj_ifu",
- "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",
- "cm_niu",
- "cn_tin",
- "co_nit",
- "cr_tin",
- "cv_nif",
- "de_stn",
- "do_rcn",
- "ec_ruc",
- "eg_tin",
- "es_cif",
- "et_tin",
- "eu_oss_vat",
- "eu_vat",
- "fo_vat",
- "gb_vat",
- "ge_vat",
- "gi_tin",
- "gn_nif",
- "hk_br",
- "hr_oib",
- "hu_tin",
- "ic_nif",
- "id_npwp",
- "il_vat",
- "in_gst",
- "is_vat",
- "it_cf",
- "jp_cn",
- "jp_rn",
- "jp_trn",
- "ke_pin",
- "kg_tin",
- "kh_tin",
- "kr_brn",
- "kz_bin",
- "la_tin",
- "li_uid",
- "li_vat",
- "lk_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",
- "pl_nip",
- "py_ruc",
- "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",
- "unknown",
- "us_ein",
- "uy_ruc",
- "uz_tin",
- "uz_vat",
- "ve_rif",
- "vn_tin",
- "za_vat",
- "zm_tin",
- "zw_tin",
+ type: Union[
+ Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "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",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "fo_vat",
+ "gb_vat",
+ "ge_vat",
+ "gi_tin",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "ic_nif",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "it_cf",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "lk_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",
+ "pl_nip",
+ "py_ruc",
+ "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",
+ "unknown",
+ "us_ein",
+ "uy_ruc",
+ "uz_tin",
+ "uz_vat",
+ "ve_rif",
+ "vn_tin",
+ "za_vat",
+ "zm_tin",
+ "zw_tin",
+ ],
+ str,
]
"""
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `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`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `ic_nif`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_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`, `pl_nip`, `py_ruc`, `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`
diff --git a/stripe/_tax_rate.py b/stripe/_tax_rate.py
index fa059ae69..b39b580c8 100644
--- a/stripe/_tax_rate.py
+++ b/stripe/_tax_rate.py
@@ -82,7 +82,12 @@ class FlatAmount(StripeObject):
The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer's invoice.
"""
jurisdiction_level: Optional[
- Literal["city", "country", "county", "district", "multiple", "state"]
+ Union[
+ Literal[
+ "city", "country", "county", "district", "multiple", "state"
+ ],
+ str,
+ ]
]
"""
The level of the jurisdiction that imposes this tax rate. Will be `null` for manually defined tax rates.
diff --git a/stripe/_topup.py b/stripe/_topup.py
index d601b1dae..296cd7d7f 100644
--- a/stripe/_topup.py
+++ b/stripe/_topup.py
@@ -7,7 +7,7 @@
from stripe._stripe_object import StripeObject, UntypedStripeObject
from stripe._updateable_api_resource import UpdateableAPIResource
from stripe._util import class_method_variant, sanitize_id
-from typing import ClassVar, Optional, cast, overload
+from typing import ClassVar, Optional, Union, cast, overload
from typing_extensions import Literal, Unpack, TYPE_CHECKING
if TYPE_CHECKING:
@@ -85,7 +85,7 @@ class UsBankAccount(StripeObject):
"""
Unique identifier for the object.
"""
- initiated_by: Optional[Literal["stripe", "user"]]
+ initiated_by: Optional[Union[Literal["stripe", "user"], str]]
"""
Indicates whether the top-up was initiated by Stripe or by the user.
"""
@@ -117,7 +117,9 @@ class UsBankAccount(StripeObject):
"""
Extra information about a top-up. This will appear on your source's bank statement. It must contain at least one letter.
"""
- status: Literal["canceled", "failed", "pending", "reversed", "succeeded"]
+ status: Union[
+ Literal["canceled", "failed", "pending", "reversed", "succeeded"], str
+ ]
"""
The status of the top-up is either `canceled`, `failed`, `pending`, `reversed`, or `succeeded`.
"""
diff --git a/stripe/billing/__init__.py b/stripe/billing/__init__.py
index d6b7582df..5abf77b15 100644
--- a/stripe/billing/__init__.py
+++ b/stripe/billing/__init__.py
@@ -25,6 +25,12 @@
from stripe.billing._credit_grant_service import (
CreditGrantService as CreditGrantService,
)
+ from stripe.billing._feedback_option import (
+ FeedbackOption as FeedbackOption,
+ )
+ from stripe.billing._feedback_option_service import (
+ FeedbackOptionService as FeedbackOptionService,
+ )
from stripe.billing._meter import Meter as Meter
from stripe.billing._meter_event import MeterEvent as MeterEvent
from stripe.billing._meter_event_adjustment import (
@@ -64,6 +70,11 @@
),
"CreditGrant": ("stripe.billing._credit_grant", False),
"CreditGrantService": ("stripe.billing._credit_grant_service", False),
+ "FeedbackOption": ("stripe.billing._feedback_option", False),
+ "FeedbackOptionService": (
+ "stripe.billing._feedback_option_service",
+ False,
+ ),
"Meter": ("stripe.billing._meter", False),
"MeterEvent": ("stripe.billing._meter_event", False),
"MeterEventAdjustment": ("stripe.billing._meter_event_adjustment", False),
diff --git a/stripe/billing/_feedback_option.py b/stripe/billing/_feedback_option.py
new file mode 100644
index 000000000..c1b1da92c
--- /dev/null
+++ b/stripe/billing/_feedback_option.py
@@ -0,0 +1,309 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._createable_api_resource import CreateableAPIResource
+from stripe._list_object import ListObject
+from stripe._listable_api_resource import ListableAPIResource
+from stripe._stripe_object import StripeObject
+from stripe._updateable_api_resource import UpdateableAPIResource
+from stripe._util import class_method_variant, sanitize_id
+from typing import ClassVar, Optional, cast, overload
+from typing_extensions import Literal, Unpack, TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe.params.billing._feedback_option_create_params import (
+ FeedbackOptionCreateParams,
+ )
+ from stripe.params.billing._feedback_option_deactivate_params import (
+ FeedbackOptionDeactivateParams,
+ )
+ from stripe.params.billing._feedback_option_list_params import (
+ FeedbackOptionListParams,
+ )
+ from stripe.params.billing._feedback_option_modify_params import (
+ FeedbackOptionModifyParams,
+ )
+ from stripe.params.billing._feedback_option_retrieve_params import (
+ FeedbackOptionRetrieveParams,
+ )
+
+
+class FeedbackOption(
+ CreateableAPIResource["FeedbackOption"],
+ ListableAPIResource["FeedbackOption"],
+ UpdateableAPIResource["FeedbackOption"],
+):
+ """
+ A resource for the feedback options model (for custom cancellation reasons)
+ """
+
+ OBJECT_NAME: ClassVar[Literal["billing.feedback_option"]] = (
+ "billing.feedback_option"
+ )
+
+ class StatusTransitions(StripeObject):
+ deactivated_at: Optional[int]
+ """
+ The time the feedback option was deactivated, if any. Measured in seconds since Unix epoch.
+ """
+
+ description: str
+ """
+ An arbitrary string attached to the object. Often useful for displaying to users.
+ """
+ id: str
+ """
+ Unique identifier for the object.
+ """
+ livemode: bool
+ """
+ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
+ """
+ object: Literal["billing.feedback_option"]
+ """
+ String representing the object's type. Objects of the same type share the same value.
+ """
+ status: Literal["active", "inactive"]
+ """
+ The feedback option's status.
+ """
+ status_transitions: StatusTransitions
+
+ @classmethod
+ def create(
+ cls, **params: Unpack["FeedbackOptionCreateParams"]
+ ) -> "FeedbackOption":
+ """
+ Creates a new feedback option.
+ """
+ return cast(
+ "FeedbackOption",
+ cls._static_request(
+ "post",
+ cls.class_url(),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def create_async(
+ cls, **params: Unpack["FeedbackOptionCreateParams"]
+ ) -> "FeedbackOption":
+ """
+ Creates a new feedback option.
+ """
+ return cast(
+ "FeedbackOption",
+ await cls._static_request_async(
+ "post",
+ cls.class_url(),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def _cls_deactivate(
+ cls, id: str, **params: Unpack["FeedbackOptionDeactivateParams"]
+ ) -> "FeedbackOption":
+ """
+ Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.
+ """
+ return cast(
+ "FeedbackOption",
+ cls._static_request(
+ "post",
+ "/v1/billing/feedback_options/{id}/deactivate".format(
+ id=sanitize_id(id)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ def deactivate(
+ id: str, **params: Unpack["FeedbackOptionDeactivateParams"]
+ ) -> "FeedbackOption":
+ """
+ Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.
+ """
+ ...
+
+ @overload
+ def deactivate(
+ self, **params: Unpack["FeedbackOptionDeactivateParams"]
+ ) -> "FeedbackOption":
+ """
+ Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.
+ """
+ ...
+
+ @class_method_variant("_cls_deactivate")
+ def deactivate( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["FeedbackOptionDeactivateParams"]
+ ) -> "FeedbackOption":
+ """
+ Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.
+ """
+ return cast(
+ "FeedbackOption",
+ self._request(
+ "post",
+ "/v1/billing/feedback_options/{id}/deactivate".format(
+ id=sanitize_id(self._data.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def _cls_deactivate_async(
+ cls, id: str, **params: Unpack["FeedbackOptionDeactivateParams"]
+ ) -> "FeedbackOption":
+ """
+ Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.
+ """
+ return cast(
+ "FeedbackOption",
+ await cls._static_request_async(
+ "post",
+ "/v1/billing/feedback_options/{id}/deactivate".format(
+ id=sanitize_id(id)
+ ),
+ params=params,
+ ),
+ )
+
+ @overload
+ @staticmethod
+ async def deactivate_async(
+ id: str, **params: Unpack["FeedbackOptionDeactivateParams"]
+ ) -> "FeedbackOption":
+ """
+ Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.
+ """
+ ...
+
+ @overload
+ async def deactivate_async(
+ self, **params: Unpack["FeedbackOptionDeactivateParams"]
+ ) -> "FeedbackOption":
+ """
+ Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.
+ """
+ ...
+
+ @class_method_variant("_cls_deactivate_async")
+ async def deactivate_async( # pyright: ignore[reportGeneralTypeIssues]
+ self, **params: Unpack["FeedbackOptionDeactivateParams"]
+ ) -> "FeedbackOption":
+ """
+ Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.
+ """
+ return cast(
+ "FeedbackOption",
+ await self._request_async(
+ "post",
+ "/v1/billing/feedback_options/{id}/deactivate".format(
+ id=sanitize_id(self._data.get("id"))
+ ),
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def list(
+ cls, **params: Unpack["FeedbackOptionListParams"]
+ ) -> ListObject["FeedbackOption"]:
+ """
+ An API method for listing the feedback options model
+ """
+ result = cls._static_request(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ async def list_async(
+ cls, **params: Unpack["FeedbackOptionListParams"]
+ ) -> ListObject["FeedbackOption"]:
+ """
+ An API method for listing the feedback options model
+ """
+ result = await cls._static_request_async(
+ "get",
+ cls.class_url(),
+ params=params,
+ )
+ if not isinstance(result, ListObject):
+ raise TypeError(
+ "Expected list object from API, got %s"
+ % (type(result).__name__)
+ )
+
+ return result
+
+ @classmethod
+ def modify(
+ cls, id: str, **params: Unpack["FeedbackOptionModifyParams"]
+ ) -> "FeedbackOption":
+ """
+ Updates the description of an existing feedback option.
+ """
+ url = "%s/%s" % (cls.class_url(), sanitize_id(id))
+ return cast(
+ "FeedbackOption",
+ cls._static_request(
+ "post",
+ url,
+ params=params,
+ ),
+ )
+
+ @classmethod
+ async def modify_async(
+ cls, id: str, **params: Unpack["FeedbackOptionModifyParams"]
+ ) -> "FeedbackOption":
+ """
+ Updates the description of an existing feedback option.
+ """
+ url = "%s/%s" % (cls.class_url(), sanitize_id(id))
+ return cast(
+ "FeedbackOption",
+ await cls._static_request_async(
+ "post",
+ url,
+ params=params,
+ ),
+ )
+
+ @classmethod
+ def retrieve(
+ cls, id: str, **params: Unpack["FeedbackOptionRetrieveParams"]
+ ) -> "FeedbackOption":
+ """
+ Retrieves a feedback options object given an ID.
+ """
+ instance = cls(id, **params)
+ instance.refresh()
+ return instance
+
+ @classmethod
+ async def retrieve_async(
+ cls, id: str, **params: Unpack["FeedbackOptionRetrieveParams"]
+ ) -> "FeedbackOption":
+ """
+ Retrieves a feedback options object given an ID.
+ """
+ instance = cls(id, **params)
+ await instance.refresh_async()
+ return instance
+
+ _inner_class_types = {"status_transitions": StatusTransitions}
diff --git a/stripe/billing/_feedback_option_service.py b/stripe/billing/_feedback_option_service.py
new file mode 100644
index 000000000..e8560ac3e
--- /dev/null
+++ b/stripe/billing/_feedback_option_service.py
@@ -0,0 +1,228 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._stripe_service import StripeService
+from stripe._util import sanitize_id
+from typing import Optional, cast
+from typing_extensions import TYPE_CHECKING
+
+if TYPE_CHECKING:
+ from stripe._list_object import ListObject
+ from stripe._request_options import RequestOptions
+ from stripe.billing._feedback_option import FeedbackOption
+ from stripe.params.billing._feedback_option_create_params import (
+ FeedbackOptionCreateParams,
+ )
+ from stripe.params.billing._feedback_option_deactivate_params import (
+ FeedbackOptionDeactivateParams,
+ )
+ from stripe.params.billing._feedback_option_list_params import (
+ FeedbackOptionListParams,
+ )
+ from stripe.params.billing._feedback_option_retrieve_params import (
+ FeedbackOptionRetrieveParams,
+ )
+ from stripe.params.billing._feedback_option_update_params import (
+ FeedbackOptionUpdateParams,
+ )
+
+
+class FeedbackOptionService(StripeService):
+ def list(
+ self,
+ params: Optional["FeedbackOptionListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FeedbackOption]":
+ """
+ An API method for listing the feedback options model
+ """
+ return cast(
+ "ListObject[FeedbackOption]",
+ self._request(
+ "get",
+ "/v1/billing/feedback_options",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def list_async(
+ self,
+ params: Optional["FeedbackOptionListParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "ListObject[FeedbackOption]":
+ """
+ An API method for listing the feedback options model
+ """
+ return cast(
+ "ListObject[FeedbackOption]",
+ await self._request_async(
+ "get",
+ "/v1/billing/feedback_options",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def create(
+ self,
+ params: "FeedbackOptionCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "FeedbackOption":
+ """
+ Creates a new feedback option.
+ """
+ return cast(
+ "FeedbackOption",
+ self._request(
+ "post",
+ "/v1/billing/feedback_options",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def create_async(
+ self,
+ params: "FeedbackOptionCreateParams",
+ options: Optional["RequestOptions"] = None,
+ ) -> "FeedbackOption":
+ """
+ Creates a new feedback option.
+ """
+ return cast(
+ "FeedbackOption",
+ await self._request_async(
+ "post",
+ "/v1/billing/feedback_options",
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def retrieve(
+ self,
+ id: str,
+ params: Optional["FeedbackOptionRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FeedbackOption":
+ """
+ Retrieves a feedback options object given an ID.
+ """
+ return cast(
+ "FeedbackOption",
+ self._request(
+ "get",
+ "/v1/billing/feedback_options/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def retrieve_async(
+ self,
+ id: str,
+ params: Optional["FeedbackOptionRetrieveParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FeedbackOption":
+ """
+ Retrieves a feedback options object given an ID.
+ """
+ return cast(
+ "FeedbackOption",
+ await self._request_async(
+ "get",
+ "/v1/billing/feedback_options/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def update(
+ self,
+ id: str,
+ params: Optional["FeedbackOptionUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FeedbackOption":
+ """
+ Updates the description of an existing feedback option.
+ """
+ return cast(
+ "FeedbackOption",
+ self._request(
+ "post",
+ "/v1/billing/feedback_options/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def update_async(
+ self,
+ id: str,
+ params: Optional["FeedbackOptionUpdateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FeedbackOption":
+ """
+ Updates the description of an existing feedback option.
+ """
+ return cast(
+ "FeedbackOption",
+ await self._request_async(
+ "post",
+ "/v1/billing/feedback_options/{id}".format(id=sanitize_id(id)),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ def deactivate(
+ self,
+ id: str,
+ params: Optional["FeedbackOptionDeactivateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FeedbackOption":
+ """
+ Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.
+ """
+ return cast(
+ "FeedbackOption",
+ self._request(
+ "post",
+ "/v1/billing/feedback_options/{id}/deactivate".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
+
+ async def deactivate_async(
+ self,
+ id: str,
+ params: Optional["FeedbackOptionDeactivateParams"] = None,
+ options: Optional["RequestOptions"] = None,
+ ) -> "FeedbackOption":
+ """
+ Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.
+ """
+ return cast(
+ "FeedbackOption",
+ await self._request_async(
+ "post",
+ "/v1/billing/feedback_options/{id}/deactivate".format(
+ id=sanitize_id(id),
+ ),
+ base_address="api",
+ params=params,
+ options=options,
+ ),
+ )
diff --git a/stripe/billing_portal/_configuration.py b/stripe/billing_portal/_configuration.py
index 2bdad7f3c..af85f62e6 100644
--- a/stripe/billing_portal/_configuration.py
+++ b/stripe/billing_portal/_configuration.py
@@ -12,6 +12,7 @@
if TYPE_CHECKING:
from stripe._application import Application
+ from stripe.billing._feedback_option import FeedbackOption
from stripe.params.billing_portal._configuration_create_params import (
ConfigurationCreateParams,
)
@@ -98,6 +99,12 @@ class CancellationReason(StripeObject):
"""
Whether the feature is enabled.
"""
+ feedback_options: Optional[
+ List[ExpandableField["FeedbackOption"]]
+ ]
+ """
+ The IDs of custom feedback options configured for this cancellation reason.
+ """
options: List[
Union[
Literal[
@@ -126,8 +133,8 @@ class CancellationReason(StripeObject):
"""
Whether to cancel subscriptions immediately or at the end of the billing period.
"""
- proration_behavior: Literal[
- "always_invoice", "create_prorations", "none"
+ proration_behavior: Union[
+ Literal["always_invoice", "create_prorations", "none"], str
]
"""
Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`.
@@ -181,7 +188,9 @@ class Condition(StripeObject):
"""
_inner_class_types = {"conditions": Condition}
- billing_cycle_anchor: Optional[Literal["now", "unchanged"]]
+ billing_cycle_anchor: Optional[
+ Union[Literal["now", "unchanged"], str]
+ ]
"""
Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -199,8 +208,8 @@ class Condition(StripeObject):
"""
The list of up to 10 products that support subscription updates.
"""
- proration_behavior: Literal[
- "always_invoice", "create_prorations", "none"
+ proration_behavior: Union[
+ Literal["always_invoice", "create_prorations", "none"], str
]
"""
Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. Defaults to a value of `none` if you don't set it during creation.
diff --git a/stripe/billing_portal/_session.py b/stripe/billing_portal/_session.py
index f2dc44812..57c69dd94 100644
--- a/stripe/billing_portal/_session.py
+++ b/stripe/billing_portal/_session.py
@@ -69,6 +69,9 @@ class Redirect(StripeObject):
"redirect": Redirect,
}
+ class CustomerUpdate(StripeObject):
+ pass
+
class SubscriptionCancel(StripeObject):
class Retention(StripeObject):
class CouponOffer(StripeObject):
@@ -143,6 +146,10 @@ class Item(StripeObject):
_inner_class_types = {"discounts": Discount, "items": Item}
after_completion: AfterCompletion
+ customer_update: Optional[CustomerUpdate]
+ """
+ Configuration when `flow.type=customer_update`.
+ """
subscription_cancel: Optional[SubscriptionCancel]
"""
Configuration when `flow.type=subscription_cancel`.
@@ -157,6 +164,7 @@ class Item(StripeObject):
"""
type: Union[
Literal[
+ "customer_update",
"payment_method_update",
"subscription_cancel",
"subscription_update",
@@ -169,6 +177,7 @@ class Item(StripeObject):
"""
_inner_class_types = {
"after_completion": AfterCompletion,
+ "customer_update": CustomerUpdate,
"subscription_cancel": SubscriptionCancel,
"subscription_update": SubscriptionUpdate,
"subscription_update_confirm": SubscriptionUpdateConfirm,
diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py
index da25e8124..eeda495c4 100644
--- a/stripe/checkout/_session.py
+++ b/stripe/checkout/_session.py
@@ -140,7 +140,7 @@ class Icon(StripeObject):
"""
The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise.
"""
- type: Literal["file", "url"]
+ type: Union[Literal["file", "url"], str]
"""
The type of image for the icon. Must be one of `file` or `url`.
"""
@@ -154,7 +154,7 @@ class Logo(StripeObject):
"""
The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise.
"""
- type: Literal["file", "url"]
+ type: Union[Literal["file", "url"], str]
"""
The type of image for the logo. Must be one of `file` or `url`.
"""
@@ -167,7 +167,7 @@ class Logo(StripeObject):
"""
A hex color value starting with `#` representing the background color for the Checkout Session.
"""
- border_style: Literal["pill", "rectangular", "rounded"]
+ border_style: Union[Literal["pill", "rectangular", "rounded"], str]
"""
The border style for the Checkout Session. Must be one of `rounded`, `rectangular`, or `pill`.
"""
@@ -243,7 +243,7 @@ class Address(StripeObject):
_inner_class_types = {"shipping_details": ShippingDetails}
class Consent(StripeObject):
- promotions: Optional[Literal["opt_in", "opt_out"]]
+ promotions: Optional[Union[Literal["opt_in", "opt_out"], str]]
"""
If `opt_in`, the customer consents to receiving promotional communications
from the merchant about this Checkout Session.
@@ -255,7 +255,7 @@ class Consent(StripeObject):
class ConsentCollection(StripeObject):
class PaymentMethodReuseAgreement(StripeObject):
- position: Literal["auto", "hidden"]
+ position: Union[Literal["auto", "hidden"], str]
"""
Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used.
@@ -266,13 +266,13 @@ class PaymentMethodReuseAgreement(StripeObject):
"""
If set to `hidden`, it will hide legal text related to the reuse of a payment method.
"""
- promotions: Optional[Literal["auto", "none"]]
+ promotions: Optional[Union[Literal["auto", "none"], str]]
"""
If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout
Session will determine whether to display an option to opt into promotional communication
from the merchant depending on the customer's locale. Only available to US merchants and US customers.
"""
- terms_of_service: Optional[Literal["none", "required"]]
+ terms_of_service: Optional[Union[Literal["none", "required"], str]]
"""
If set to `required`, it requires customers to accept the terms of service before being able to pay.
"""
@@ -470,125 +470,128 @@ class Address(StripeObject):
"""
class TaxId(StripeObject):
- type: Literal[
- "ad_nrt",
- "ae_trn",
- "al_tin",
- "am_tin",
- "ao_tin",
- "ar_cuit",
- "au_abn",
- "au_arn",
- "aw_tin",
- "az_tin",
- "ba_tin",
- "bb_tin",
- "bd_bin",
- "bf_ifu",
- "bg_uic",
- "bh_vat",
- "bj_ifu",
- "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",
- "cm_niu",
- "cn_tin",
- "co_nit",
- "cr_tin",
- "cv_nif",
- "de_stn",
- "do_rcn",
- "ec_ruc",
- "eg_tin",
- "es_cif",
- "et_tin",
- "eu_oss_vat",
- "eu_vat",
- "fo_vat",
- "gb_vat",
- "ge_vat",
- "gi_tin",
- "gn_nif",
- "hk_br",
- "hr_oib",
- "hu_tin",
- "ic_nif",
- "id_npwp",
- "il_vat",
- "in_gst",
- "is_vat",
- "it_cf",
- "jp_cn",
- "jp_rn",
- "jp_trn",
- "ke_pin",
- "kg_tin",
- "kh_tin",
- "kr_brn",
- "kz_bin",
- "la_tin",
- "li_uid",
- "li_vat",
- "lk_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",
- "pl_nip",
- "py_ruc",
- "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",
- "unknown",
- "us_ein",
- "uy_ruc",
- "uz_tin",
- "uz_vat",
- "ve_rif",
- "vn_tin",
- "za_vat",
- "zm_tin",
- "zw_tin",
+ type: Union[
+ Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "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",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "fo_vat",
+ "gb_vat",
+ "ge_vat",
+ "gi_tin",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "ic_nif",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "it_cf",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "lk_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",
+ "pl_nip",
+ "py_ruc",
+ "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",
+ "unknown",
+ "us_ein",
+ "uy_ruc",
+ "uz_tin",
+ "uz_vat",
+ "ve_rif",
+ "vn_tin",
+ "za_vat",
+ "zm_tin",
+ "zw_tin",
+ ],
+ str,
]
"""
The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, or `unknown`
@@ -623,7 +626,7 @@ class TaxId(StripeObject):
"""
The customer's phone number after a completed Checkout Session.
"""
- tax_exempt: Optional[Literal["exempt", "none", "reverse"]]
+ tax_exempt: Optional[Union[Literal["exempt", "none", "reverse"], str]]
"""
The customer's tax exempt status after a completed Checkout Session.
"""
@@ -992,17 +995,26 @@ class Installments(StripeObject):
class Restrictions(StripeObject):
brands_blocked: Optional[
List[
- Literal[
- "american_express",
- "discover_global_network",
- "mastercard",
- "visa",
+ Union[
+ Literal[
+ "american_express",
+ "discover_global_network",
+ "mastercard",
+ "visa",
+ ],
+ str,
]
]
]
"""
The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment.
"""
+ funding_types_blocked: Optional[
+ List[Union[Literal["credit", "debit", "prepaid"], str]]
+ ]
+ """
+ Card funding types to block for this Checkout Session. Supported values are `credit`, `debit`, and `prepaid`.
+ """
capture_method: Optional[Literal["manual"]]
"""
@@ -1084,7 +1096,9 @@ class Cashapp(StripeObject):
class CustomerBalance(StripeObject):
class BankTransfer(StripeObject):
class EuBankTransfer(StripeObject):
- country: Literal["BE", "DE", "ES", "FR", "IE", "NL"]
+ country: Union[
+ Literal["BE", "DE", "ES", "FR", "IE", "NL"], str
+ ]
"""
The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
"""
@@ -1799,7 +1813,7 @@ class WechatPay(StripeObject):
"""
The app ID registered with WeChat Pay. Only required when client is iOS or Android.
"""
- client: Optional[Literal["android", "ios", "web"]]
+ client: Optional[Union[Literal["android", "ios", "web"], str]]
"""
The client type that the end customer will pay from
"""
@@ -1911,14 +1925,14 @@ class WechatPay(StripeObject):
class Permissions(StripeObject):
update_shipping_details: Optional[
- Literal["client_only", "server_only"]
+ Union[Literal["client_only", "server_only"], str]
]
"""
Determines which entity is allowed to update the shipping details.
Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
- When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
+ This parameter is only supported when `ui_mode=elements`.
"""
class PhoneNumberCollection(StripeObject):
@@ -2607,7 +2621,7 @@ class Link(StripeObject):
Union[Literal["always", "if_required"], str]
]
"""
- Configure whether a Checkout Session should collect a payment method. Defaults to `always`.
+ Configure whether a Checkout Session should collect a payment method for sessions with mode `payment`. Defaults to `always`.
"""
payment_method_configuration_details: Optional[
PaymentMethodConfigurationDetails
@@ -2673,7 +2687,7 @@ class Link(StripeObject):
"""
The shipping rate options applied to this Session.
"""
- status: Optional[Literal["complete", "expired", "open"]]
+ status: Optional[Union[Literal["complete", "expired", "open"], str]]
"""
The status of the Checkout Session, one of `open`, `complete`, or `expired`.
"""
diff --git a/stripe/climate/_order.py b/stripe/climate/_order.py
index 5f21f6fde..75c5bcc5a 100644
--- a/stripe/climate/_order.py
+++ b/stripe/climate/_order.py
@@ -139,7 +139,7 @@ class Location(StripeObject):
"""
expected_delivery_year: int
"""
- The year this order is expected to be delivered.
+ The year this order is expected to be delivered. If the year is in the past, the order is a spot purchase and will be delivered within 30 days of purchase.
"""
id: str
"""
diff --git a/stripe/climate/_product.py b/stripe/climate/_product.py
index b940227a9..211c71dc9 100644
--- a/stripe/climate/_product.py
+++ b/stripe/climate/_product.py
@@ -49,7 +49,7 @@ class CurrentPricesPerMetricTon(StripeObject):
"""
delivery_year: Optional[int]
"""
- The year in which the carbon removal is expected to be delivered.
+ The year in which the carbon removal is expected to be delivered. If the year is in the past, this represents spot inventory with guaranteed delivery.
"""
id: str
"""
diff --git a/stripe/financial_connections/_session.py b/stripe/financial_connections/_session.py
index 2407a6a51..a6598840a 100644
--- a/stripe/financial_connections/_session.py
+++ b/stripe/financial_connections/_session.py
@@ -68,6 +68,10 @@ class Filters(StripeObject):
"""
List of countries from which to filter accounts.
"""
+ country: Optional[str]
+ """
+ Country from which to filter accounts.
+ """
require_payment_method_support: Optional[
Literal["all", "at_least_one", "none"]
]
diff --git a/stripe/issuing/_card.py b/stripe/issuing/_card.py
index 161bdd2e3..a154dd85c 100644
--- a/stripe/issuing/_card.py
+++ b/stripe/issuing/_card.py
@@ -246,6 +246,335 @@ class SpendingLimit(StripeObject):
"""
categories: Optional[
List[
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
+ ]
+ ]
+ ]
+ """
+ Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories.
+ """
+ interval: Union[
+ Literal[
+ "all_time",
+ "daily",
+ "monthly",
+ "per_authorization",
+ "weekly",
+ "yearly",
+ ],
+ str,
+ ]
+ """
+ Interval (or event) to which the amount applies.
+ """
+
+ allowed_card_presences: Optional[
+ List[Union[Literal["not_present", "present"], str]]
+ ]
+ """
+ Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control.
+ """
+ allowed_categories: Optional[
+ List[
+ Union[
Literal[
"ac_refrigeration_repair",
"accounting_bookkeeping_services",
@@ -542,331 +871,8 @@ class SpendingLimit(StripeObject):
"womens_accessory_and_specialty_shops",
"womens_ready_to_wear_stores",
"wrecking_and_salvage_yards",
- ]
- ]
- ]
- """
- Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories.
- """
- interval: Union[
- Literal[
- "all_time",
- "daily",
- "monthly",
- "per_authorization",
- "weekly",
- "yearly",
- ],
- str,
- ]
- """
- Interval (or event) to which the amount applies.
- """
-
- allowed_card_presences: Optional[
- List[Literal["not_present", "present"]]
- ]
- """
- Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control.
- """
- allowed_categories: Optional[
- List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -878,309 +884,312 @@ class SpendingLimit(StripeObject):
Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control.
"""
blocked_card_presences: Optional[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control.
"""
blocked_categories: Optional[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
diff --git a/stripe/issuing/_cardholder.py b/stripe/issuing/_cardholder.py
index 2202c460c..b0cd036b5 100644
--- a/stripe/issuing/_cardholder.py
+++ b/stripe/issuing/_cardholder.py
@@ -93,7 +93,7 @@ class UserTermsAcceptance(StripeObject):
user_terms_acceptance: Optional[UserTermsAcceptance]
"""
- Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). Required for cards backed by a Celtic program.
+ Information about cardholder acceptance of Celtic [Authorized User Terms](https://docs.stripe.com/issuing/compliance-us#issuing-terms). Required for cards backed by a Celtic program.
"""
_inner_class_types = {"user_terms_acceptance": UserTermsAcceptance}
@@ -199,6 +199,335 @@ class SpendingLimit(StripeObject):
"""
categories: Optional[
List[
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
+ ]
+ ]
+ ]
+ """
+ Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories.
+ """
+ interval: Union[
+ Literal[
+ "all_time",
+ "daily",
+ "monthly",
+ "per_authorization",
+ "weekly",
+ "yearly",
+ ],
+ str,
+ ]
+ """
+ Interval (or event) to which the amount applies.
+ """
+
+ allowed_card_presences: Optional[
+ List[Union[Literal["not_present", "present"], str]]
+ ]
+ """
+ Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control.
+ """
+ allowed_categories: Optional[
+ List[
+ Union[
Literal[
"ac_refrigeration_repair",
"accounting_bookkeeping_services",
@@ -495,331 +824,8 @@ class SpendingLimit(StripeObject):
"womens_accessory_and_specialty_shops",
"womens_ready_to_wear_stores",
"wrecking_and_salvage_yards",
- ]
- ]
- ]
- """
- Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories.
- """
- interval: Union[
- Literal[
- "all_time",
- "daily",
- "monthly",
- "per_authorization",
- "weekly",
- "yearly",
- ],
- str,
- ]
- """
- Interval (or event) to which the amount applies.
- """
-
- allowed_card_presences: Optional[
- List[Literal["not_present", "present"]]
- ]
- """
- Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control.
- """
- allowed_categories: Optional[
- List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -831,309 +837,312 @@ class SpendingLimit(StripeObject):
Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control.
"""
blocked_card_presences: Optional[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control.
"""
blocked_categories: Optional[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -1199,7 +1208,7 @@ class SpendingLimit(StripeObject):
List[Union[Literal["de", "en", "es", "fr", "it"], str]]
]
"""
- The cardholder's preferred locales (languages), ordered by preference. Locales can be `da`, `de`, `en`, `es`, `fr`, `it`, `pl`, or `sv`.
+ The cardholder's preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
This changes the language of the [3D Secure flow](https://docs.stripe.com/issuing/3d-secure) and one-time password messages sent to the cardholder.
"""
requirements: Requirements
diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py
index 4551dfa61..853863f5d 100644
--- a/stripe/params/__init__.py
+++ b/stripe/params/__init__.py
@@ -374,6 +374,8 @@
AccountSessionCreateParamsComponentsPaymentDetailsFeatures as AccountSessionCreateParamsComponentsPaymentDetailsFeatures,
AccountSessionCreateParamsComponentsPaymentDisputes as AccountSessionCreateParamsComponentsPaymentDisputes,
AccountSessionCreateParamsComponentsPaymentDisputesFeatures as AccountSessionCreateParamsComponentsPaymentDisputesFeatures,
+ AccountSessionCreateParamsComponentsPaymentMethodSettings as AccountSessionCreateParamsComponentsPaymentMethodSettings,
+ AccountSessionCreateParamsComponentsPaymentMethodSettingsFeatures as AccountSessionCreateParamsComponentsPaymentMethodSettingsFeatures,
AccountSessionCreateParamsComponentsPayments as AccountSessionCreateParamsComponentsPayments,
AccountSessionCreateParamsComponentsPaymentsFeatures as AccountSessionCreateParamsComponentsPaymentsFeatures,
AccountSessionCreateParamsComponentsPayoutDetails as AccountSessionCreateParamsComponentsPayoutDetails,
@@ -967,7 +969,9 @@
from stripe.params._customer_session_create_params import (
CustomerSessionCreateParams as CustomerSessionCreateParams,
CustomerSessionCreateParamsComponents as CustomerSessionCreateParamsComponents,
+ CustomerSessionCreateParamsComponentsActiveEntitlements as CustomerSessionCreateParamsComponentsActiveEntitlements,
CustomerSessionCreateParamsComponentsBuyButton as CustomerSessionCreateParamsComponentsBuyButton,
+ CustomerSessionCreateParamsComponentsCustomerPortal as CustomerSessionCreateParamsComponentsCustomerPortal,
CustomerSessionCreateParamsComponentsCustomerSheet as CustomerSessionCreateParamsComponentsCustomerSheet,
CustomerSessionCreateParamsComponentsCustomerSheetFeatures as CustomerSessionCreateParamsComponentsCustomerSheetFeatures,
CustomerSessionCreateParamsComponentsMobilePaymentElement as CustomerSessionCreateParamsComponentsMobilePaymentElement,
@@ -1107,6 +1111,7 @@
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact,
+ InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillie as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillie,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments,
InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan,
@@ -1261,6 +1266,7 @@
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBancontact as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBancontact,
+ InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillie as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillie,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments,
InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan as InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan,
@@ -1349,6 +1355,7 @@
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact,
+ InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillie as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillie,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments,
InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan as InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan,
@@ -2209,6 +2216,7 @@
PaymentLinkModifyParamsSubscriptionDataTrialSettings as PaymentLinkModifyParamsSubscriptionDataTrialSettings,
PaymentLinkModifyParamsSubscriptionDataTrialSettingsEndBehavior as PaymentLinkModifyParamsSubscriptionDataTrialSettingsEndBehavior,
PaymentLinkModifyParamsTaxIdCollection as PaymentLinkModifyParamsTaxIdCollection,
+ PaymentLinkModifyParamsTransferData as PaymentLinkModifyParamsTransferData,
)
from stripe.params._payment_link_retrieve_params import (
PaymentLinkRetrieveParams as PaymentLinkRetrieveParams,
@@ -2260,6 +2268,7 @@
PaymentLinkUpdateParamsSubscriptionDataTrialSettings as PaymentLinkUpdateParamsSubscriptionDataTrialSettings,
PaymentLinkUpdateParamsSubscriptionDataTrialSettingsEndBehavior as PaymentLinkUpdateParamsSubscriptionDataTrialSettingsEndBehavior,
PaymentLinkUpdateParamsTaxIdCollection as PaymentLinkUpdateParamsTaxIdCollection,
+ PaymentLinkUpdateParamsTransferData as PaymentLinkUpdateParamsTransferData,
)
from stripe.params._payment_method_attach_params import (
PaymentMethodAttachParams as PaymentMethodAttachParams,
@@ -3597,6 +3606,7 @@
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBancontact as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBancontact,
+ SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillie as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillie,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions,
SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance,
@@ -3694,6 +3704,7 @@
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBancontact as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBancontact,
+ SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillie as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillie,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions,
SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance,
@@ -3869,6 +3880,7 @@
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact,
+ SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillie as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillie,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCardMandateOptions,
SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance as SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance,
@@ -5167,6 +5179,14 @@
"stripe.params._account_session_create_params",
False,
),
+ "AccountSessionCreateParamsComponentsPaymentMethodSettings": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
+ "AccountSessionCreateParamsComponentsPaymentMethodSettingsFeatures": (
+ "stripe.params._account_session_create_params",
+ False,
+ ),
"AccountSessionCreateParamsComponentsPayments": (
"stripe.params._account_session_create_params",
False,
@@ -6653,10 +6673,18 @@
"stripe.params._customer_session_create_params",
False,
),
+ "CustomerSessionCreateParamsComponentsActiveEntitlements": (
+ "stripe.params._customer_session_create_params",
+ False,
+ ),
"CustomerSessionCreateParamsComponentsBuyButton": (
"stripe.params._customer_session_create_params",
False,
),
+ "CustomerSessionCreateParamsComponentsCustomerPortal": (
+ "stripe.params._customer_session_create_params",
+ False,
+ ),
"CustomerSessionCreateParamsComponentsCustomerSheet": (
"stripe.params._customer_session_create_params",
False,
@@ -6940,6 +6968,10 @@
"stripe.params._invoice_create_params",
False,
),
+ "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillie": (
+ "stripe.params._invoice_create_params",
+ False,
+ ),
"InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard": (
"stripe.params._invoice_create_params",
False,
@@ -7421,6 +7453,10 @@
"stripe.params._invoice_modify_params",
False,
),
+ "InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillie": (
+ "stripe.params._invoice_modify_params",
+ False,
+ ),
"InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard": (
"stripe.params._invoice_modify_params",
False,
@@ -7657,6 +7693,10 @@
"stripe.params._invoice_update_params",
False,
),
+ "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillie": (
+ "stripe.params._invoice_update_params",
+ False,
+ ),
"InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard": (
"stripe.params._invoice_update_params",
False,
@@ -10910,6 +10950,10 @@
"stripe.params._payment_link_modify_params",
False,
),
+ "PaymentLinkModifyParamsTransferData": (
+ "stripe.params._payment_link_modify_params",
+ False,
+ ),
"PaymentLinkRetrieveParams": (
"stripe.params._payment_link_retrieve_params",
False,
@@ -11098,6 +11142,10 @@
"stripe.params._payment_link_update_params",
False,
),
+ "PaymentLinkUpdateParamsTransferData": (
+ "stripe.params._payment_link_update_params",
+ False,
+ ),
"PaymentMethodAttachParams": (
"stripe.params._payment_method_attach_params",
False,
@@ -15335,6 +15383,10 @@
"stripe.params._subscription_create_params",
False,
),
+ "SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillie": (
+ "stripe.params._subscription_create_params",
+ False,
+ ),
"SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard": (
"stripe.params._subscription_create_params",
False,
@@ -15643,6 +15695,10 @@
"stripe.params._subscription_modify_params",
False,
),
+ "SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillie": (
+ "stripe.params._subscription_modify_params",
+ False,
+ ),
"SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard": (
"stripe.params._subscription_modify_params",
False,
@@ -16255,6 +16311,10 @@
"stripe.params._subscription_update_params",
False,
),
+ "SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillie": (
+ "stripe.params._subscription_update_params",
+ False,
+ ),
"SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard": (
"stripe.params._subscription_update_params",
False,
diff --git a/stripe/params/_account_create_external_account_params.py b/stripe/params/_account_create_external_account_params.py
index f6567a2b2..8f8d88898 100644
--- a/stripe/params/_account_create_external_account_params.py
+++ b/stripe/params/_account_create_external_account_params.py
@@ -56,7 +56,7 @@ class AccountCreateExternalAccountParamsBankAccount(TypedDict):
"""
The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
"""
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
"""
diff --git a/stripe/params/_account_create_params.py b/stripe/params/_account_create_params.py
index eb0ab2f4c..80e129c0e 100644
--- a/stripe/params/_account_create_params.py
+++ b/stripe/params/_account_create_params.py
@@ -90,7 +90,7 @@ class AccountCreateParams(RequestOptions):
"""
Details on the account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
"""
- type: NotRequired[Literal["custom", "express", "standard"]]
+ type: NotRequired["Literal['custom', 'express', 'standard']|str"]
"""
The `type` parameter is deprecated. Use [`controller`](https://docs.stripe.com/api/accounts/create#create_account-controller) instead to configure dashboard access, fee payer, loss liability, and requirement collection.
"""
@@ -1054,6 +1054,9 @@ class AccountCreateParamsCompany(TypedDict):
administrative_address: NotRequired[
"AccountCreateParamsCompanyAdministrativeAddress"
]
+ """
+ The location where the business is administered.
+ """
directors_provided: NotRequired[bool]
"""
Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
@@ -1111,6 +1114,9 @@ class AccountCreateParamsCompany(TypedDict):
principal_place_of_business: NotRequired[
"AccountCreateParamsCompanyPrincipalPlaceOfBusiness"
]
+ """
+ The primary location where the business conducts operations.
+ """
registration_date: NotRequired[
"Literal['']|AccountCreateParamsCompanyRegistrationDate"
]
@@ -1542,7 +1548,7 @@ class AccountCreateParamsBankAccount(TypedDict):
"""
The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
"""
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
"""
@@ -2047,7 +2053,9 @@ class AccountCreateParamsSettingsPayoutsSchedule(TypedDict):
"""
The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](https://docs.stripe.com/connect/manage-payout-schedule).
"""
- interval: NotRequired[Literal["daily", "manual", "monthly", "weekly"]]
+ interval: NotRequired[
+ "Literal['daily', 'manual', 'monthly', 'weekly']|str"
+ ]
"""
How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
"""
@@ -2060,15 +2068,7 @@ class AccountCreateParamsSettingsPayoutsSchedule(TypedDict):
The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
"""
weekly_anchor: NotRequired[
- Literal[
- "friday",
- "monday",
- "saturday",
- "sunday",
- "thursday",
- "tuesday",
- "wednesday",
- ]
+ "Literal['friday', 'monday', 'saturday', 'sunday', 'thursday', 'tuesday', 'wednesday']|str"
]
"""
The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. Required and applicable only if `interval` is `weekly`.
diff --git a/stripe/params/_account_external_account_create_params.py b/stripe/params/_account_external_account_create_params.py
index 480e8a222..d97f2feab 100644
--- a/stripe/params/_account_external_account_create_params.py
+++ b/stripe/params/_account_external_account_create_params.py
@@ -55,7 +55,7 @@ class AccountExternalAccountCreateParamsBankAccount(TypedDict):
"""
The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
"""
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
"""
diff --git a/stripe/params/_account_external_account_list_params.py b/stripe/params/_account_external_account_list_params.py
index 1afd1d469..6339fbf54 100644
--- a/stripe/params/_account_external_account_list_params.py
+++ b/stripe/params/_account_external_account_list_params.py
@@ -17,7 +17,7 @@ class AccountExternalAccountListParams(TypedDict):
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
- object: NotRequired[Literal["bank_account", "card"]]
+ object: NotRequired["Literal['bank_account', 'card']|str"]
"""
Filter external accounts according to a particular object type.
"""
diff --git a/stripe/params/_account_external_account_update_params.py b/stripe/params/_account_external_account_update_params.py
index c65b21233..3149e110e 100644
--- a/stripe/params/_account_external_account_update_params.py
+++ b/stripe/params/_account_external_account_update_params.py
@@ -11,12 +11,14 @@ class AccountExternalAccountUpdateParams(TypedDict):
The name of the person or business that owns the bank account.
"""
account_holder_type: NotRequired[
- "Literal['']|Literal['company', 'individual']"
+ "Literal['']|Literal['company', 'individual']|str"
]
"""
The type of entity that holds the account. This can be either `individual` or `company`.
"""
- account_type: NotRequired[Literal["checking", "futsu", "savings", "toza"]]
+ account_type: NotRequired[
+ "Literal['checking', 'futsu', 'savings', 'toza']|str"
+ ]
"""
The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
"""
diff --git a/stripe/params/_account_link_create_params.py b/stripe/params/_account_link_create_params.py
index cd64f2de9..8a25a87b9 100644
--- a/stripe/params/_account_link_create_params.py
+++ b/stripe/params/_account_link_create_params.py
@@ -10,7 +10,7 @@ class AccountLinkCreateParams(RequestOptions):
"""
The identifier of the account to create an account link for.
"""
- collect: NotRequired[Literal["currently_due", "eventually_due"]]
+ collect: NotRequired["Literal['currently_due', 'eventually_due']|str"]
"""
The collect parameter is deprecated. Use `collection_options` instead.
"""
@@ -39,11 +39,11 @@ class AccountLinkCreateParams(RequestOptions):
class AccountLinkCreateParamsCollectionOptions(TypedDict):
- fields: NotRequired[Literal["currently_due", "eventually_due"]]
+ fields: NotRequired["Literal['currently_due', 'eventually_due']|str"]
"""
Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`.
"""
- future_requirements: NotRequired[Literal["include", "omit"]]
+ future_requirements: NotRequired["Literal['include', 'omit']|str"]
"""
Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
"""
diff --git a/stripe/params/_account_list_external_accounts_params.py b/stripe/params/_account_list_external_accounts_params.py
index 45f1f078b..e1f5bd6ed 100644
--- a/stripe/params/_account_list_external_accounts_params.py
+++ b/stripe/params/_account_list_external_accounts_params.py
@@ -18,7 +18,7 @@ class AccountListExternalAccountsParams(RequestOptions):
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
- object: NotRequired[Literal["bank_account", "card"]]
+ object: NotRequired["Literal['bank_account', 'card']|str"]
"""
Filter external accounts according to a particular object type.
"""
diff --git a/stripe/params/_account_modify_external_account_params.py b/stripe/params/_account_modify_external_account_params.py
index b28993058..06184111d 100644
--- a/stripe/params/_account_modify_external_account_params.py
+++ b/stripe/params/_account_modify_external_account_params.py
@@ -12,12 +12,14 @@ class AccountModifyExternalAccountParams(RequestOptions):
The name of the person or business that owns the bank account.
"""
account_holder_type: NotRequired[
- "Literal['']|Literal['company', 'individual']"
+ "Literal['']|Literal['company', 'individual']|str"
]
"""
The type of entity that holds the account. This can be either `individual` or `company`.
"""
- account_type: NotRequired[Literal["checking", "futsu", "savings", "toza"]]
+ account_type: NotRequired[
+ "Literal['checking', 'futsu', 'savings', 'toza']|str"
+ ]
"""
The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
"""
diff --git a/stripe/params/_account_session_create_params.py b/stripe/params/_account_session_create_params.py
index a2748db79..662b94021 100644
--- a/stripe/params/_account_session_create_params.py
+++ b/stripe/params/_account_session_create_params.py
@@ -101,6 +101,12 @@ class AccountSessionCreateParamsComponents(TypedDict):
"""
Configuration for the [payment disputes](https://docs.stripe.com/connect/supported-embedded-components/payment-disputes/) embedded component.
"""
+ payment_method_settings: NotRequired[
+ "AccountSessionCreateParamsComponentsPaymentMethodSettings"
+ ]
+ """
+ Configuration for the [payment method settings](https://docs.stripe.com/connect/supported-embedded-components/payment-method-settings/) embedded component.
+ """
payments: NotRequired["AccountSessionCreateParamsComponentsPayments"]
"""
Configuration for the [payments](https://docs.stripe.com/connect/supported-embedded-components/payments/) embedded component.
@@ -543,6 +549,28 @@ class AccountSessionCreateParamsComponentsPaymentDisputesFeatures(TypedDict):
"""
+class AccountSessionCreateParamsComponentsPaymentMethodSettings(TypedDict):
+ enabled: bool
+ """
+ Whether the embedded component is enabled.
+ """
+ features: NotRequired[
+ "AccountSessionCreateParamsComponentsPaymentMethodSettingsFeatures"
+ ]
+ """
+ The list of features enabled in the embedded component.
+ """
+
+
+class AccountSessionCreateParamsComponentsPaymentMethodSettingsFeatures(
+ TypedDict,
+):
+ disable_stripe_user_authentication: NotRequired[bool]
+ """
+ Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
+ """
+
+
class AccountSessionCreateParamsComponentsPayments(TypedDict):
enabled: bool
"""
diff --git a/stripe/params/_account_update_params.py b/stripe/params/_account_update_params.py
index 88aae3c47..be49da7ed 100644
--- a/stripe/params/_account_update_params.py
+++ b/stripe/params/_account_update_params.py
@@ -1041,6 +1041,9 @@ class AccountUpdateParamsCompany(TypedDict):
administrative_address: NotRequired[
"AccountUpdateParamsCompanyAdministrativeAddress"
]
+ """
+ The location where the business is administered.
+ """
directors_provided: NotRequired[bool]
"""
Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
@@ -1098,6 +1101,9 @@ class AccountUpdateParamsCompany(TypedDict):
principal_place_of_business: NotRequired[
"AccountUpdateParamsCompanyPrincipalPlaceOfBusiness"
]
+ """
+ The primary location where the business conducts operations.
+ """
registration_date: NotRequired[
"Literal['']|AccountUpdateParamsCompanyRegistrationDate"
]
@@ -1510,7 +1516,7 @@ class AccountUpdateParamsBankAccount(TypedDict):
"""
The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
"""
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
"""
@@ -2025,7 +2031,9 @@ class AccountUpdateParamsSettingsPayoutsSchedule(TypedDict):
"""
The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](https://docs.stripe.com/connect/manage-payout-schedule).
"""
- interval: NotRequired[Literal["daily", "manual", "monthly", "weekly"]]
+ interval: NotRequired[
+ "Literal['daily', 'manual', 'monthly', 'weekly']|str"
+ ]
"""
How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
"""
@@ -2038,15 +2046,7 @@ class AccountUpdateParamsSettingsPayoutsSchedule(TypedDict):
The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
"""
weekly_anchor: NotRequired[
- Literal[
- "friday",
- "monday",
- "saturday",
- "sunday",
- "thursday",
- "tuesday",
- "wednesday",
- ]
+ "Literal['friday', 'monday', 'saturday', 'sunday', 'thursday', 'tuesday', 'wednesday']|str"
]
"""
The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. Required and applicable only if `interval` is `weekly`.
diff --git a/stripe/params/_charge_modify_params.py b/stripe/params/_charge_modify_params.py
index 1ea164348..f296952d4 100644
--- a/stripe/params/_charge_modify_params.py
+++ b/stripe/params/_charge_modify_params.py
@@ -44,7 +44,7 @@ class ChargeModifyParams(RequestOptions):
class ChargeModifyParamsFraudDetails(TypedDict):
- user_report: Union[Literal[""], Literal["fraudulent", "safe"]]
+ user_report: Union[Literal[""], Literal["fraudulent", "safe"], str]
"""
Either `safe` or `fraudulent`.
"""
diff --git a/stripe/params/_charge_update_params.py b/stripe/params/_charge_update_params.py
index fae063365..a5b058db2 100644
--- a/stripe/params/_charge_update_params.py
+++ b/stripe/params/_charge_update_params.py
@@ -43,7 +43,7 @@ class ChargeUpdateParams(TypedDict):
class ChargeUpdateParamsFraudDetails(TypedDict):
- user_report: Union[Literal[""], Literal["fraudulent", "safe"]]
+ user_report: Union[Literal[""], Literal["fraudulent", "safe"], str]
"""
Either `safe` or `fraudulent`.
"""
diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py
index a7c87dd45..f92a01130 100644
--- a/stripe/params/_confirmation_token_create_params.py
+++ b/stripe/params/_confirmation_token_create_params.py
@@ -549,36 +549,7 @@ class ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance(TypedDict):
class ConfirmationTokenCreateParamsPaymentMethodDataEps(TypedDict):
bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
- ]
+ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str"
]
"""
The customer's bank.
@@ -586,36 +557,39 @@ class ConfirmationTokenCreateParamsPaymentMethodDataEps(TypedDict):
class ConfirmationTokenCreateParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
Account holder type for FPX transaction
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank.
@@ -632,28 +606,7 @@ class ConfirmationTokenCreateParamsPaymentMethodDataGrabpay(TypedDict):
class ConfirmationTokenCreateParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
- ]
+ "Literal['abn_amro', 'adyen', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'mollie', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']|str"
]
"""
The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
diff --git a/stripe/params/_credit_note_create_params.py b/stripe/params/_credit_note_create_params.py
index e1b14e9d4..58ce559a4 100644
--- a/stripe/params/_credit_note_create_params.py
+++ b/stripe/params/_credit_note_create_params.py
@@ -3,7 +3,7 @@
from decimal import Decimal
from stripe._request_options import RequestOptions
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List
+from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -99,7 +99,7 @@ class CreditNoteCreateParamsLine(TypedDict):
"""
The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
"""
- type: Literal["custom_line_item", "invoice_line_item"]
+ type: Union[Literal["custom_line_item", "invoice_line_item"], str]
"""
Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`.
"""
diff --git a/stripe/params/_credit_note_preview_lines_list_params.py b/stripe/params/_credit_note_preview_lines_list_params.py
index e13d69e05..eb3f5535d 100644
--- a/stripe/params/_credit_note_preview_lines_list_params.py
+++ b/stripe/params/_credit_note_preview_lines_list_params.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from decimal import Decimal
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List
+from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -110,7 +110,7 @@ class CreditNotePreviewLinesListParamsLine(TypedDict):
"""
The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
"""
- type: Literal["custom_line_item", "invoice_line_item"]
+ type: Union[Literal["custom_line_item", "invoice_line_item"], str]
"""
Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`.
"""
diff --git a/stripe/params/_credit_note_preview_lines_params.py b/stripe/params/_credit_note_preview_lines_params.py
index ca760649a..b92f1d766 100644
--- a/stripe/params/_credit_note_preview_lines_params.py
+++ b/stripe/params/_credit_note_preview_lines_params.py
@@ -3,7 +3,7 @@
from decimal import Decimal
from stripe._request_options import RequestOptions
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List
+from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -111,7 +111,7 @@ class CreditNotePreviewLinesParamsLine(TypedDict):
"""
The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
"""
- type: Literal["custom_line_item", "invoice_line_item"]
+ type: Union[Literal["custom_line_item", "invoice_line_item"], str]
"""
Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`.
"""
diff --git a/stripe/params/_credit_note_preview_params.py b/stripe/params/_credit_note_preview_params.py
index 4488307aa..68cabf068 100644
--- a/stripe/params/_credit_note_preview_params.py
+++ b/stripe/params/_credit_note_preview_params.py
@@ -3,7 +3,7 @@
from decimal import Decimal
from stripe._request_options import RequestOptions
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List
+from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -99,7 +99,7 @@ class CreditNotePreviewParamsLine(TypedDict):
"""
The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
"""
- type: Literal["custom_line_item", "invoice_line_item"]
+ type: Union[Literal["custom_line_item", "invoice_line_item"], str]
"""
Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`.
"""
diff --git a/stripe/params/_customer_cash_balance_update_params.py b/stripe/params/_customer_cash_balance_update_params.py
index 47b4e048d..7101c50ca 100644
--- a/stripe/params/_customer_cash_balance_update_params.py
+++ b/stripe/params/_customer_cash_balance_update_params.py
@@ -17,7 +17,7 @@ class CustomerCashBalanceUpdateParams(TypedDict):
class CustomerCashBalanceUpdateParamsSettings(TypedDict):
reconciliation_mode: NotRequired[
- Literal["automatic", "manual", "merchant_default"]
+ "Literal['automatic', 'manual', 'merchant_default']|str"
]
"""
Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://docs.stripe.com/payments/customer-balance/reconciliation).
diff --git a/stripe/params/_customer_create_params.py b/stripe/params/_customer_create_params.py
index 86496478c..7903ff669 100644
--- a/stripe/params/_customer_create_params.py
+++ b/stripe/params/_customer_create_params.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List
+from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -79,7 +79,9 @@ class CustomerCreateParams(RequestOptions):
"""
Tax details about the customer.
"""
- tax_exempt: NotRequired["Literal['']|Literal['exempt', 'none', 'reverse']"]
+ tax_exempt: NotRequired[
+ "Literal['']|Literal['exempt', 'none', 'reverse']|str"
+ ]
"""
The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
"""
@@ -131,7 +133,7 @@ class CustomerCreateParamsCashBalance(TypedDict):
class CustomerCreateParamsCashBalanceSettings(TypedDict):
reconciliation_mode: NotRequired[
- Literal["automatic", "manual", "merchant_default"]
+ "Literal['automatic', 'manual', 'merchant_default']|str"
]
"""
Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://docs.stripe.com/payments/customer-balance/reconciliation).
@@ -174,7 +176,7 @@ class CustomerCreateParamsInvoiceSettingsCustomField(TypedDict):
class CustomerCreateParamsInvoiceSettingsRenderingOptions(TypedDict):
amount_tax_display: NotRequired[
- "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
+ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']|str"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
@@ -239,124 +241,127 @@ class CustomerCreateParamsTax(TypedDict):
class CustomerCreateParamsTaxIdDatum(TypedDict):
- type: Literal[
- "ad_nrt",
- "ae_trn",
- "al_tin",
- "am_tin",
- "ao_tin",
- "ar_cuit",
- "au_abn",
- "au_arn",
- "aw_tin",
- "az_tin",
- "ba_tin",
- "bb_tin",
- "bd_bin",
- "bf_ifu",
- "bg_uic",
- "bh_vat",
- "bj_ifu",
- "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",
- "cm_niu",
- "cn_tin",
- "co_nit",
- "cr_tin",
- "cv_nif",
- "de_stn",
- "do_rcn",
- "ec_ruc",
- "eg_tin",
- "es_cif",
- "et_tin",
- "eu_oss_vat",
- "eu_vat",
- "fo_vat",
- "gb_vat",
- "ge_vat",
- "gi_tin",
- "gn_nif",
- "hk_br",
- "hr_oib",
- "hu_tin",
- "ic_nif",
- "id_npwp",
- "il_vat",
- "in_gst",
- "is_vat",
- "it_cf",
- "jp_cn",
- "jp_rn",
- "jp_trn",
- "ke_pin",
- "kg_tin",
- "kh_tin",
- "kr_brn",
- "kz_bin",
- "la_tin",
- "li_uid",
- "li_vat",
- "lk_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",
- "pl_nip",
- "py_ruc",
- "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",
- "zw_tin",
+ type: Union[
+ Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "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",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "fo_vat",
+ "gb_vat",
+ "ge_vat",
+ "gi_tin",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "ic_nif",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "it_cf",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "lk_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",
+ "pl_nip",
+ "py_ruc",
+ "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",
+ "zw_tin",
+ ],
+ str,
]
"""
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `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`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `ic_nif`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_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`, `pl_nip`, `py_ruc`, `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`
diff --git a/stripe/params/_customer_create_tax_id_params.py b/stripe/params/_customer_create_tax_id_params.py
index 82165dbec..88b09b1d9 100644
--- a/stripe/params/_customer_create_tax_id_params.py
+++ b/stripe/params/_customer_create_tax_id_params.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
-from typing import List
+from typing import List, Union
from typing_extensions import Literal, NotRequired
@@ -10,124 +10,127 @@ class CustomerCreateTaxIdParams(RequestOptions):
"""
Specifies which fields in the response should be expanded.
"""
- type: Literal[
- "ad_nrt",
- "ae_trn",
- "al_tin",
- "am_tin",
- "ao_tin",
- "ar_cuit",
- "au_abn",
- "au_arn",
- "aw_tin",
- "az_tin",
- "ba_tin",
- "bb_tin",
- "bd_bin",
- "bf_ifu",
- "bg_uic",
- "bh_vat",
- "bj_ifu",
- "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",
- "cm_niu",
- "cn_tin",
- "co_nit",
- "cr_tin",
- "cv_nif",
- "de_stn",
- "do_rcn",
- "ec_ruc",
- "eg_tin",
- "es_cif",
- "et_tin",
- "eu_oss_vat",
- "eu_vat",
- "fo_vat",
- "gb_vat",
- "ge_vat",
- "gi_tin",
- "gn_nif",
- "hk_br",
- "hr_oib",
- "hu_tin",
- "ic_nif",
- "id_npwp",
- "il_vat",
- "in_gst",
- "is_vat",
- "it_cf",
- "jp_cn",
- "jp_rn",
- "jp_trn",
- "ke_pin",
- "kg_tin",
- "kh_tin",
- "kr_brn",
- "kz_bin",
- "la_tin",
- "li_uid",
- "li_vat",
- "lk_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",
- "pl_nip",
- "py_ruc",
- "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",
- "zw_tin",
+ type: Union[
+ Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "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",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "fo_vat",
+ "gb_vat",
+ "ge_vat",
+ "gi_tin",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "ic_nif",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "it_cf",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "lk_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",
+ "pl_nip",
+ "py_ruc",
+ "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",
+ "zw_tin",
+ ],
+ str,
]
"""
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `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`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `ic_nif`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_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`, `pl_nip`, `py_ruc`, `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`
diff --git a/stripe/params/_customer_modify_cash_balance_params.py b/stripe/params/_customer_modify_cash_balance_params.py
index d3b2ce817..8ed7db354 100644
--- a/stripe/params/_customer_modify_cash_balance_params.py
+++ b/stripe/params/_customer_modify_cash_balance_params.py
@@ -18,7 +18,7 @@ class CustomerModifyCashBalanceParams(RequestOptions):
class CustomerModifyCashBalanceParamsSettings(TypedDict):
reconciliation_mode: NotRequired[
- Literal["automatic", "manual", "merchant_default"]
+ "Literal['automatic', 'manual', 'merchant_default']|str"
]
"""
Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://docs.stripe.com/payments/customer-balance/reconciliation).
diff --git a/stripe/params/_customer_modify_params.py b/stripe/params/_customer_modify_params.py
index 253b346af..31190633c 100644
--- a/stripe/params/_customer_modify_params.py
+++ b/stripe/params/_customer_modify_params.py
@@ -86,7 +86,9 @@ class CustomerModifyParams(RequestOptions):
"""
Tax details about the customer.
"""
- tax_exempt: NotRequired["Literal['']|Literal['exempt', 'none', 'reverse']"]
+ tax_exempt: NotRequired[
+ "Literal['']|Literal['exempt', 'none', 'reverse']|str"
+ ]
"""
The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
"""
@@ -130,7 +132,7 @@ class CustomerModifyParamsCashBalance(TypedDict):
class CustomerModifyParamsCashBalanceSettings(TypedDict):
reconciliation_mode: NotRequired[
- Literal["automatic", "manual", "merchant_default"]
+ "Literal['automatic', 'manual', 'merchant_default']|str"
]
"""
Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://docs.stripe.com/payments/customer-balance/reconciliation).
@@ -173,7 +175,7 @@ class CustomerModifyParamsInvoiceSettingsCustomField(TypedDict):
class CustomerModifyParamsInvoiceSettingsRenderingOptions(TypedDict):
amount_tax_display: NotRequired[
- "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
+ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']|str"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
diff --git a/stripe/params/_customer_modify_source_params.py b/stripe/params/_customer_modify_source_params.py
index 02be0a8b5..1a9d4d934 100644
--- a/stripe/params/_customer_modify_source_params.py
+++ b/stripe/params/_customer_modify_source_params.py
@@ -11,7 +11,7 @@ class CustomerModifySourceParams(RequestOptions):
"""
The name of the person or business that owns the bank account.
"""
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
The type of entity that holds the account. This can be either `individual` or `company`.
"""
diff --git a/stripe/params/_customer_payment_source_update_params.py b/stripe/params/_customer_payment_source_update_params.py
index 1a43cbb78..856960dab 100644
--- a/stripe/params/_customer_payment_source_update_params.py
+++ b/stripe/params/_customer_payment_source_update_params.py
@@ -10,7 +10,7 @@ class CustomerPaymentSourceUpdateParams(TypedDict):
"""
The name of the person or business that owns the bank account.
"""
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
The type of entity that holds the account. This can be either `individual` or `company`.
"""
diff --git a/stripe/params/_customer_session_create_params.py b/stripe/params/_customer_session_create_params.py
index 30c09a6de..9fa05a0d9 100644
--- a/stripe/params/_customer_session_create_params.py
+++ b/stripe/params/_customer_session_create_params.py
@@ -25,10 +25,22 @@ class CustomerSessionCreateParams(RequestOptions):
class CustomerSessionCreateParamsComponents(TypedDict):
+ active_entitlements: NotRequired[
+ "CustomerSessionCreateParamsComponentsActiveEntitlements"
+ ]
+ """
+ Configuration for active entitlements.
+ """
buy_button: NotRequired["CustomerSessionCreateParamsComponentsBuyButton"]
"""
Configuration for buy button.
"""
+ customer_portal: NotRequired[
+ "CustomerSessionCreateParamsComponentsCustomerPortal"
+ ]
+ """
+ Configuration for customer portal.
+ """
customer_sheet: NotRequired[
"CustomerSessionCreateParamsComponentsCustomerSheet"
]
@@ -55,6 +67,13 @@ class CustomerSessionCreateParamsComponents(TypedDict):
"""
+class CustomerSessionCreateParamsComponentsActiveEntitlements(TypedDict):
+ enabled: bool
+ """
+ Whether the active entitlements is enabled.
+ """
+
+
class CustomerSessionCreateParamsComponentsBuyButton(TypedDict):
enabled: bool
"""
@@ -62,6 +81,13 @@ class CustomerSessionCreateParamsComponentsBuyButton(TypedDict):
"""
+class CustomerSessionCreateParamsComponentsCustomerPortal(TypedDict):
+ enabled: bool
+ """
+ Whether the customer portal is enabled.
+ """
+
+
class CustomerSessionCreateParamsComponentsCustomerSheet(TypedDict):
enabled: bool
"""
diff --git a/stripe/params/_customer_tax_id_create_params.py b/stripe/params/_customer_tax_id_create_params.py
index 017ae4f32..c8b9dd57f 100644
--- a/stripe/params/_customer_tax_id_create_params.py
+++ b/stripe/params/_customer_tax_id_create_params.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
-from typing import List
+from typing import List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -9,124 +9,127 @@ class CustomerTaxIdCreateParams(TypedDict):
"""
Specifies which fields in the response should be expanded.
"""
- type: Literal[
- "ad_nrt",
- "ae_trn",
- "al_tin",
- "am_tin",
- "ao_tin",
- "ar_cuit",
- "au_abn",
- "au_arn",
- "aw_tin",
- "az_tin",
- "ba_tin",
- "bb_tin",
- "bd_bin",
- "bf_ifu",
- "bg_uic",
- "bh_vat",
- "bj_ifu",
- "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",
- "cm_niu",
- "cn_tin",
- "co_nit",
- "cr_tin",
- "cv_nif",
- "de_stn",
- "do_rcn",
- "ec_ruc",
- "eg_tin",
- "es_cif",
- "et_tin",
- "eu_oss_vat",
- "eu_vat",
- "fo_vat",
- "gb_vat",
- "ge_vat",
- "gi_tin",
- "gn_nif",
- "hk_br",
- "hr_oib",
- "hu_tin",
- "ic_nif",
- "id_npwp",
- "il_vat",
- "in_gst",
- "is_vat",
- "it_cf",
- "jp_cn",
- "jp_rn",
- "jp_trn",
- "ke_pin",
- "kg_tin",
- "kh_tin",
- "kr_brn",
- "kz_bin",
- "la_tin",
- "li_uid",
- "li_vat",
- "lk_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",
- "pl_nip",
- "py_ruc",
- "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",
- "zw_tin",
+ type: Union[
+ Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "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",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "fo_vat",
+ "gb_vat",
+ "ge_vat",
+ "gi_tin",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "ic_nif",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "it_cf",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "lk_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",
+ "pl_nip",
+ "py_ruc",
+ "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",
+ "zw_tin",
+ ],
+ str,
]
"""
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `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`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `ic_nif`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_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`, `pl_nip`, `py_ruc`, `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`
diff --git a/stripe/params/_customer_update_params.py b/stripe/params/_customer_update_params.py
index 77499d1e7..779fa949a 100644
--- a/stripe/params/_customer_update_params.py
+++ b/stripe/params/_customer_update_params.py
@@ -85,7 +85,9 @@ class CustomerUpdateParams(TypedDict):
"""
Tax details about the customer.
"""
- tax_exempt: NotRequired["Literal['']|Literal['exempt', 'none', 'reverse']"]
+ tax_exempt: NotRequired[
+ "Literal['']|Literal['exempt', 'none', 'reverse']|str"
+ ]
"""
The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
"""
@@ -129,7 +131,7 @@ class CustomerUpdateParamsCashBalance(TypedDict):
class CustomerUpdateParamsCashBalanceSettings(TypedDict):
reconciliation_mode: NotRequired[
- Literal["automatic", "manual", "merchant_default"]
+ "Literal['automatic', 'manual', 'merchant_default']|str"
]
"""
Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://docs.stripe.com/payments/customer-balance/reconciliation).
@@ -172,7 +174,7 @@ class CustomerUpdateParamsInvoiceSettingsCustomField(TypedDict):
class CustomerUpdateParamsInvoiceSettingsRenderingOptions(TypedDict):
amount_tax_display: NotRequired[
- "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
+ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']|str"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
diff --git a/stripe/params/_file_list_params.py b/stripe/params/_file_list_params.py
index 6c9b4626e..2ec194055 100644
--- a/stripe/params/_file_list_params.py
+++ b/stripe/params/_file_list_params.py
@@ -23,29 +23,7 @@ class FileListParams(RequestOptions):
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
purpose: NotRequired[
- Literal[
- "account_requirement",
- "additional_verification",
- "business_icon",
- "business_logo",
- "customer_signature",
- "dispute_evidence",
- "document_provider_identity_document",
- "finance_report_run",
- "financial_account_statement",
- "identity_document",
- "identity_document_downloadable",
- "issuing_regulatory_reporting",
- "pci_document",
- "platform_terms_of_service",
- "selfie",
- "sigma_scheduled_query",
- "tax_document_user_upload",
- "terminal_android_apk",
- "terminal_reader_splashscreen",
- "terminal_wifi_certificate",
- "terminal_wifi_private_key",
- ]
+ "Literal['account_requirement', 'additional_verification', 'business_icon', 'business_logo', 'customer_signature', 'dispute_evidence', 'document_provider_identity_document', 'finance_report_run', 'financial_account_statement', 'identity_document', 'identity_document_downloadable', 'issuing_regulatory_reporting', 'pci_document', 'platform_terms_of_service', 'selfie', 'sigma_scheduled_query', 'tax_document_user_upload', 'terminal_android_apk', 'terminal_reader_splashscreen', 'terminal_wifi_certificate', 'terminal_wifi_private_key']|str"
]
"""
Filter queries by the file purpose. If you don't provide a purpose, the queries return unfiltered files.
diff --git a/stripe/params/_invoice_add_lines_params.py b/stripe/params/_invoice_add_lines_params.py
index a69f3588c..2f85fb150 100644
--- a/stripe/params/_invoice_add_lines_params.py
+++ b/stripe/params/_invoice_add_lines_params.py
@@ -124,7 +124,9 @@ class InvoiceAddLinesParamsLinePriceData(TypedDict):
"""
Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py
index dc18e5083..8f5be0c51 100644
--- a/stripe/params/_invoice_create_params.py
+++ b/stripe/params/_invoice_create_params.py
@@ -28,7 +28,7 @@ class InvoiceCreateParams(RequestOptions):
The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`.
@@ -231,7 +231,7 @@ class InvoiceCreateParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to the invoice's PaymentIntent.
"""
payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
+ "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
@@ -251,6 +251,12 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
"""
+ billie: NotRequired[
+ "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillie"
+ ]
+ """
+ If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
+ """
card: NotRequired[
"Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard"
]
@@ -336,6 +342,10 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact(
"""
+class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBillie(TypedDict):
+ pass
+
+
class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict):
installments: NotRequired[
"InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments"
@@ -529,7 +539,12 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -556,7 +571,7 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci
class InvoiceCreateParamsRendering(TypedDict):
amount_tax_display: NotRequired[
- "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
+ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']|str"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
@@ -576,7 +591,7 @@ class InvoiceCreateParamsRendering(TypedDict):
class InvoiceCreateParamsRenderingPdf(TypedDict):
- page_size: NotRequired[Literal["a4", "auto", "letter"]]
+ page_size: NotRequired["Literal['a4', 'auto', 'letter']|str"]
"""
Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`.
If set to `auto`, invoice PDF page size defaults to `a4` for customers with
@@ -618,7 +633,9 @@ class InvoiceCreateParamsShippingCostShippingRateData(TypedDict):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
@@ -699,7 +716,9 @@ class InvoiceCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions(
"""
A non-negative integer in cents representing how much to charge.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
diff --git a/stripe/params/_invoice_create_preview_params.py b/stripe/params/_invoice_create_preview_params.py
index 51ae1d67b..5fc28ab6c 100644
--- a/stripe/params/_invoice_create_preview_params.py
+++ b/stripe/params/_invoice_create_preview_params.py
@@ -113,7 +113,9 @@ class InvoiceCreatePreviewParamsCustomerDetails(TypedDict):
"""
Tax details about the customer.
"""
- tax_exempt: NotRequired["Literal['']|Literal['exempt', 'none', 'reverse']"]
+ tax_exempt: NotRequired[
+ "Literal['']|Literal['exempt', 'none', 'reverse']|str"
+ ]
"""
The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
"""
@@ -202,124 +204,127 @@ class InvoiceCreatePreviewParamsCustomerDetailsTax(TypedDict):
class InvoiceCreatePreviewParamsCustomerDetailsTaxId(TypedDict):
- type: Literal[
- "ad_nrt",
- "ae_trn",
- "al_tin",
- "am_tin",
- "ao_tin",
- "ar_cuit",
- "au_abn",
- "au_arn",
- "aw_tin",
- "az_tin",
- "ba_tin",
- "bb_tin",
- "bd_bin",
- "bf_ifu",
- "bg_uic",
- "bh_vat",
- "bj_ifu",
- "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",
- "cm_niu",
- "cn_tin",
- "co_nit",
- "cr_tin",
- "cv_nif",
- "de_stn",
- "do_rcn",
- "ec_ruc",
- "eg_tin",
- "es_cif",
- "et_tin",
- "eu_oss_vat",
- "eu_vat",
- "fo_vat",
- "gb_vat",
- "ge_vat",
- "gi_tin",
- "gn_nif",
- "hk_br",
- "hr_oib",
- "hu_tin",
- "ic_nif",
- "id_npwp",
- "il_vat",
- "in_gst",
- "is_vat",
- "it_cf",
- "jp_cn",
- "jp_rn",
- "jp_trn",
- "ke_pin",
- "kg_tin",
- "kh_tin",
- "kr_brn",
- "kz_bin",
- "la_tin",
- "li_uid",
- "li_vat",
- "lk_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",
- "pl_nip",
- "py_ruc",
- "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",
- "zw_tin",
+ type: Union[
+ Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "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",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "fo_vat",
+ "gb_vat",
+ "ge_vat",
+ "gi_tin",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "ic_nif",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "it_cf",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "lk_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",
+ "pl_nip",
+ "py_ruc",
+ "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",
+ "zw_tin",
+ ],
+ str,
]
"""
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `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`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `ic_nif`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_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`, `pl_nip`, `py_ruc`, `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`
@@ -398,7 +403,9 @@ class InvoiceCreatePreviewParamsInvoiceItem(TypedDict):
"""
Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -455,7 +462,9 @@ class InvoiceCreatePreviewParamsInvoiceItemPriceData(TypedDict):
"""
The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -487,7 +496,7 @@ class InvoiceCreatePreviewParamsScheduleDetails(TypedDict):
"""
Controls how prorations and invoices for subscriptions are calculated and orchestrated.
"""
- end_behavior: NotRequired[Literal["cancel", "release"]]
+ end_behavior: NotRequired["Literal['cancel', 'release']|str"]
"""
Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
"""
@@ -517,7 +526,7 @@ class InvoiceCreatePreviewParamsScheduleDetailsBillingMode(TypedDict):
class InvoiceCreatePreviewParamsScheduleDetailsBillingModeFlexible(TypedDict):
- proration_discounts: NotRequired[Literal["included", "itemized"]]
+ proration_discounts: NotRequired["Literal['included', 'itemized']|str"]
"""
Controls how invoices and invoice items display proration amounts and discount amounts.
"""
@@ -540,7 +549,9 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhase(TypedDict):
"""
Automatic tax settings for this phase.
"""
- billing_cycle_anchor: NotRequired[Literal["automatic", "phase_start"]]
+ billing_cycle_anchor: NotRequired[
+ "Literal['automatic', 'phase_start']|str"
+ ]
"""
Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -551,7 +562,7 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhase(TypedDict):
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -746,7 +757,9 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceData(
"""
The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -815,7 +828,7 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscount(TypedDict):
class InvoiceCreatePreviewParamsScheduleDetailsPhaseDuration(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies phase duration. Either `day`, `week`, `month` or `year`.
"""
@@ -935,7 +948,9 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -952,7 +967,7 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceData(TypedDict):
class InvoiceCreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring(
TypedDict,
):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
@@ -974,7 +989,7 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseTransferData(TypedDict):
class InvoiceCreatePreviewParamsSubscriptionDetails(TypedDict):
- billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|int"]
+ billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str|int"]
"""
For new subscriptions, a future timestamp to anchor the subscription's [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle). This is used to determine the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. For existing subscriptions, the value can only be set to `now` or `unchanged`.
"""
@@ -1060,7 +1075,7 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsBillingMode(TypedDict):
class InvoiceCreatePreviewParamsSubscriptionDetailsBillingModeFlexible(
TypedDict,
):
- proration_discounts: NotRequired[Literal["included", "itemized"]]
+ proration_discounts: NotRequired["Literal['included', 'itemized']|str"]
"""
Controls how invoices and invoice items display proration amounts and discount amounts.
"""
@@ -1079,7 +1094,7 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsBillingSchedule(TypedDict):
"InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil"
]
"""
- The end date for the billing schedule.
+ The end date for the billing schedule. You must not set this earlier than current period end for every applicable subscription item.
"""
key: NotRequired[str]
"""
@@ -1122,7 +1137,7 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntil(
class InvoiceCreatePreviewParamsSubscriptionDetailsBillingScheduleBillUntilDuration(
TypedDict,
):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing duration. Either `day`, `week`, `month` or `year`.
"""
@@ -1226,7 +1241,9 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -1243,7 +1260,7 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceData(TypedDict):
class InvoiceCreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring(
TypedDict,
):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_invoice_item_create_params.py b/stripe/params/_invoice_item_create_params.py
index 76456a891..474174536 100644
--- a/stripe/params/_invoice_item_create_params.py
+++ b/stripe/params/_invoice_item_create_params.py
@@ -74,7 +74,9 @@ class InvoiceItemCreateParams(RequestOptions):
"""
The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -127,7 +129,9 @@ class InvoiceItemCreateParamsPriceData(TypedDict):
"""
The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
diff --git a/stripe/params/_invoice_item_modify_params.py b/stripe/params/_invoice_item_modify_params.py
index 195d590da..fbf797986 100644
--- a/stripe/params/_invoice_item_modify_params.py
+++ b/stripe/params/_invoice_item_modify_params.py
@@ -54,7 +54,9 @@ class InvoiceItemModifyParams(RequestOptions):
"""
Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -107,7 +109,9 @@ class InvoiceItemModifyParamsPriceData(TypedDict):
"""
The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
diff --git a/stripe/params/_invoice_item_update_params.py b/stripe/params/_invoice_item_update_params.py
index 91ed07688..efd676c51 100644
--- a/stripe/params/_invoice_item_update_params.py
+++ b/stripe/params/_invoice_item_update_params.py
@@ -53,7 +53,9 @@ class InvoiceItemUpdateParams(TypedDict):
"""
Non-negative decimal with at most 12 decimal places. The quantity of units for the line item.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -106,7 +108,9 @@ class InvoiceItemUpdateParamsPriceData(TypedDict):
"""
The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
diff --git a/stripe/params/_invoice_line_item_update_params.py b/stripe/params/_invoice_line_item_update_params.py
index fb5c19d9f..193400666 100644
--- a/stripe/params/_invoice_line_item_update_params.py
+++ b/stripe/params/_invoice_line_item_update_params.py
@@ -108,7 +108,9 @@ class InvoiceLineItemUpdateParamsPriceData(TypedDict):
"""
Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
diff --git a/stripe/params/_invoice_list_params.py b/stripe/params/_invoice_list_params.py
index b3cbd6644..5e3c58b56 100644
--- a/stripe/params/_invoice_list_params.py
+++ b/stripe/params/_invoice_list_params.py
@@ -7,7 +7,7 @@
class InvoiceListParams(RequestOptions):
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`.
diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py
index e6ef938e4..a30012902 100644
--- a/stripe/params/_invoice_modify_params.py
+++ b/stripe/params/_invoice_modify_params.py
@@ -28,7 +28,7 @@ class InvoiceModifyParams(RequestOptions):
The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state. To turn off automatic finalization, set `auto_advance` to false.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically` or `send_invoice`. This field can be updated only on `draft` invoices.
@@ -196,7 +196,7 @@ class InvoiceModifyParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to the invoice's PaymentIntent.
"""
payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
+ "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
@@ -216,6 +216,12 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
"""
+ billie: NotRequired[
+ "Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillie"
+ ]
+ """
+ If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
+ """
card: NotRequired[
"Literal['']|InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard"
]
@@ -301,6 +307,10 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBancontact(
"""
+class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBillie(TypedDict):
+ pass
+
+
class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict):
installments: NotRequired[
"InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments"
@@ -494,7 +504,12 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -521,7 +536,7 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci
class InvoiceModifyParamsRendering(TypedDict):
amount_tax_display: NotRequired[
- "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
+ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']|str"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
@@ -541,7 +556,7 @@ class InvoiceModifyParamsRendering(TypedDict):
class InvoiceModifyParamsRenderingPdf(TypedDict):
- page_size: NotRequired[Literal["a4", "auto", "letter"]]
+ page_size: NotRequired["Literal['a4', 'auto', 'letter']|str"]
"""
Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`.
If set to `auto`, invoice PDF page size defaults to `a4` for customers with
@@ -583,7 +598,9 @@ class InvoiceModifyParamsShippingCostShippingRateData(TypedDict):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
@@ -664,7 +681,9 @@ class InvoiceModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions(
"""
A non-negative integer in cents representing how much to charge.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
diff --git a/stripe/params/_invoice_rendering_template_list_params.py b/stripe/params/_invoice_rendering_template_list_params.py
index b50b24c5c..4be08c679 100644
--- a/stripe/params/_invoice_rendering_template_list_params.py
+++ b/stripe/params/_invoice_rendering_template_list_params.py
@@ -22,4 +22,4 @@ class InvoiceRenderingTemplateListParams(RequestOptions):
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
- status: NotRequired[Literal["active", "archived"]]
+ status: NotRequired["Literal['active', 'archived']|str"]
diff --git a/stripe/params/_invoice_update_lines_params.py b/stripe/params/_invoice_update_lines_params.py
index c069620f5..23184d47b 100644
--- a/stripe/params/_invoice_update_lines_params.py
+++ b/stripe/params/_invoice_update_lines_params.py
@@ -126,7 +126,9 @@ class InvoiceUpdateLinesParamsLinePriceData(TypedDict):
"""
Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py
index 45452c7a4..9917c3eb0 100644
--- a/stripe/params/_invoice_update_params.py
+++ b/stripe/params/_invoice_update_params.py
@@ -27,7 +27,7 @@ class InvoiceUpdateParams(TypedDict):
The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state. To turn off automatic finalization, set `auto_advance` to false.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically` or `send_invoice`. This field can be updated only on `draft` invoices.
@@ -195,7 +195,7 @@ class InvoiceUpdateParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to the invoice's PaymentIntent.
"""
payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
+ "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
@@ -215,6 +215,12 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
"""
+ billie: NotRequired[
+ "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillie"
+ ]
+ """
+ If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
+ """
card: NotRequired[
"Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard"
]
@@ -300,6 +306,10 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact(
"""
+class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBillie(TypedDict):
+ pass
+
+
class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict):
installments: NotRequired[
"InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments"
@@ -493,7 +503,12 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -520,7 +535,7 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci
class InvoiceUpdateParamsRendering(TypedDict):
amount_tax_display: NotRequired[
- "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
+ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']|str"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
@@ -540,7 +555,7 @@ class InvoiceUpdateParamsRendering(TypedDict):
class InvoiceUpdateParamsRenderingPdf(TypedDict):
- page_size: NotRequired[Literal["a4", "auto", "letter"]]
+ page_size: NotRequired["Literal['a4', 'auto', 'letter']|str"]
"""
Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`.
If set to `auto`, invoice PDF page size defaults to `a4` for customers with
@@ -582,7 +597,9 @@ class InvoiceUpdateParamsShippingCostShippingRateData(TypedDict):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
@@ -663,7 +680,9 @@ class InvoiceUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions(
"""
A non-negative integer in cents representing how much to charge.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
diff --git a/stripe/params/_payment_intent_cancel_params.py b/stripe/params/_payment_intent_cancel_params.py
index 427711c1d..5f417c9de 100644
--- a/stripe/params/_payment_intent_cancel_params.py
+++ b/stripe/params/_payment_intent_cancel_params.py
@@ -7,9 +7,7 @@
class PaymentIntentCancelParams(RequestOptions):
cancellation_reason: NotRequired[
- Literal[
- "abandoned", "duplicate", "fraudulent", "requested_by_customer"
- ]
+ "Literal['abandoned', 'duplicate', 'fraudulent', 'requested_by_customer']|str"
]
"""
Reason for canceling this PaymentIntent. Possible values are: `duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`
diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py
index b019dddcd..34ad18d3a 100644
--- a/stripe/params/_payment_intent_confirm_params.py
+++ b/stripe/params/_payment_intent_confirm_params.py
@@ -98,6 +98,7 @@ class PaymentIntentConfirmParams(RequestOptions):
"swish",
"tamara",
"test_pay",
+ "touch_n_go",
"truemoney",
"twint",
"upi",
@@ -162,7 +163,7 @@ class PaymentIntentConfirmParams(RequestOptions):
mandate_data: NotRequired[
"Literal['']|PaymentIntentConfirmParamsMandateData"
]
- off_session: NotRequired["bool|Literal['one_off', 'recurring']"]
+ off_session: NotRequired["bool|Literal['one_off', 'recurring']|str"]
"""
Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment).
"""
@@ -474,7 +475,7 @@ class PaymentIntentConfirmParamsMandateDataCustomerAcceptance(TypedDict):
"""
If this is a Mandate accepted online, this hash contains details about the online acceptance.
"""
- type: Literal["offline", "online"]
+ type: Union[Literal["offline", "online"], str]
"""
The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
"""
@@ -1006,36 +1007,7 @@ class PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance(TypedDict):
class PaymentIntentConfirmParamsPaymentMethodDataEps(TypedDict):
bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
- ]
+ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str"
]
"""
The customer's bank.
@@ -1043,36 +1015,39 @@ class PaymentIntentConfirmParamsPaymentMethodDataEps(TypedDict):
class PaymentIntentConfirmParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
Account holder type for FPX transaction
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank.
@@ -1089,28 +1064,7 @@ class PaymentIntentConfirmParamsPaymentMethodDataGrabpay(TypedDict):
class PaymentIntentConfirmParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
- ]
+ "Literal['abn_amro', 'adyen', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'mollie', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']|str"
]
"""
The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -2034,21 +1988,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCard(TypedDict):
parameter can only be provided during confirmation.
"""
network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ "Literal['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']|str"
]
"""
Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
@@ -2157,7 +2097,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions(
"""
Amount to be charged for future payments, specified in the presentment currency.
"""
- amount_type: Literal["fixed", "maximum"]
+ amount_type: Union[Literal["fixed", "maximum"], str]
"""
One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
"""
@@ -2169,7 +2109,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCardMandateOptions(
"""
End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+ interval: Union[Literal["day", "month", "sporadic", "week", "year"], str]
"""
Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
"""
@@ -3362,7 +3302,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnec
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -3383,7 +3328,9 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnec
class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
- account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
+ account_subcategories: NotRequired[
+ List[Union[Literal["checking", "savings"], str]]
+ ]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
@@ -3401,7 +3348,9 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions(
class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks(
TypedDict,
):
- requested: NotRequired[List[Literal["ach", "us_domestic_wire"]]]
+ requested: NotRequired[
+ List[Union[Literal["ach", "us_domestic_wire"], str]]
+ ]
"""
Triggers validations to run across the selected networks
"""
diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py
index e007b1297..551cc20aa 100644
--- a/stripe/params/_payment_intent_create_params.py
+++ b/stripe/params/_payment_intent_create_params.py
@@ -98,6 +98,7 @@ class PaymentIntentCreateParams(RequestOptions):
"swish",
"tamara",
"test_pay",
+ "touch_n_go",
"truemoney",
"twint",
"upi",
@@ -268,7 +269,7 @@ class PaymentIntentCreateParams(RequestOptions):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
- off_session: NotRequired["bool|Literal['one_off', 'recurring']"]
+ off_session: NotRequired["bool|Literal['one_off', 'recurring']|str"]
"""
Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
"""
@@ -615,7 +616,7 @@ class PaymentIntentCreateParamsMandateDataCustomerAcceptance(TypedDict):
"""
If this is a Mandate accepted online, this hash contains details about the online acceptance.
"""
- type: Literal["offline", "online"]
+ type: Union[Literal["offline", "online"], str]
"""
The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
"""
@@ -1141,36 +1142,7 @@ class PaymentIntentCreateParamsPaymentMethodDataCustomerBalance(TypedDict):
class PaymentIntentCreateParamsPaymentMethodDataEps(TypedDict):
bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
- ]
+ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str"
]
"""
The customer's bank.
@@ -1178,36 +1150,39 @@ class PaymentIntentCreateParamsPaymentMethodDataEps(TypedDict):
class PaymentIntentCreateParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
Account holder type for FPX transaction
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank.
@@ -1224,28 +1199,7 @@ class PaymentIntentCreateParamsPaymentMethodDataGrabpay(TypedDict):
class PaymentIntentCreateParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
- ]
+ "Literal['abn_amro', 'adyen', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'mollie', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']|str"
]
"""
The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -2167,21 +2121,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCard(TypedDict):
parameter can only be provided during confirmation.
"""
network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ "Literal['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']|str"
]
"""
Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
@@ -2288,7 +2228,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions(
"""
Amount to be charged for future payments, specified in the presentment currency.
"""
- amount_type: Literal["fixed", "maximum"]
+ amount_type: Union[Literal["fixed", "maximum"], str]
"""
One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
"""
@@ -2300,7 +2240,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCardMandateOptions(
"""
End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+ interval: Union[Literal["day", "month", "sporadic", "week", "year"], str]
"""
Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
"""
@@ -3491,7 +3431,12 @@ class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnect
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -3512,7 +3457,9 @@ class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnect
class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
- account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
+ account_subcategories: NotRequired[
+ List[Union[Literal["checking", "savings"], str]]
+ ]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
@@ -3530,7 +3477,9 @@ class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions(
class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks(
TypedDict,
):
- requested: NotRequired[List[Literal["ach", "us_domestic_wire"]]]
+ requested: NotRequired[
+ List[Union[Literal["ach", "us_domestic_wire"], str]]
+ ]
"""
Triggers validations to run across the selected networks
"""
diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py
index 26e11dae8..a245fb194 100644
--- a/stripe/params/_payment_intent_modify_params.py
+++ b/stripe/params/_payment_intent_modify_params.py
@@ -98,6 +98,7 @@ class PaymentIntentModifyParams(RequestOptions):
"swish",
"tamara",
"test_pay",
+ "touch_n_go",
"truemoney",
"twint",
"upi",
@@ -973,36 +974,7 @@ class PaymentIntentModifyParamsPaymentMethodDataCustomerBalance(TypedDict):
class PaymentIntentModifyParamsPaymentMethodDataEps(TypedDict):
bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
- ]
+ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str"
]
"""
The customer's bank.
@@ -1010,36 +982,39 @@ class PaymentIntentModifyParamsPaymentMethodDataEps(TypedDict):
class PaymentIntentModifyParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
Account holder type for FPX transaction
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank.
@@ -1056,28 +1031,7 @@ class PaymentIntentModifyParamsPaymentMethodDataGrabpay(TypedDict):
class PaymentIntentModifyParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
- ]
+ "Literal['abn_amro', 'adyen', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'mollie', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']|str"
]
"""
The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -1999,21 +1953,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCard(TypedDict):
parameter can only be provided during confirmation.
"""
network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ "Literal['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']|str"
]
"""
Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
@@ -2120,7 +2060,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions(
"""
Amount to be charged for future payments, specified in the presentment currency.
"""
- amount_type: Literal["fixed", "maximum"]
+ amount_type: Union[Literal["fixed", "maximum"], str]
"""
One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
"""
@@ -2132,7 +2072,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCardMandateOptions(
"""
End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+ interval: Union[Literal["day", "month", "sporadic", "week", "year"], str]
"""
Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
"""
@@ -3323,7 +3263,12 @@ class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnect
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -3344,7 +3289,9 @@ class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnect
class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
- account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
+ account_subcategories: NotRequired[
+ List[Union[Literal["checking", "savings"], str]]
+ ]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
@@ -3362,7 +3309,9 @@ class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions(
class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountNetworks(
TypedDict,
):
- requested: NotRequired[List[Literal["ach", "us_domestic_wire"]]]
+ requested: NotRequired[
+ List[Union[Literal["ach", "us_domestic_wire"], str]]
+ ]
"""
Triggers validations to run across the selected networks
"""
diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py
index 1cb3cb141..cd3c5cf6e 100644
--- a/stripe/params/_payment_intent_update_params.py
+++ b/stripe/params/_payment_intent_update_params.py
@@ -97,6 +97,7 @@ class PaymentIntentUpdateParams(TypedDict):
"swish",
"tamara",
"test_pay",
+ "touch_n_go",
"truemoney",
"twint",
"upi",
@@ -972,36 +973,7 @@ class PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance(TypedDict):
class PaymentIntentUpdateParamsPaymentMethodDataEps(TypedDict):
bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
- ]
+ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str"
]
"""
The customer's bank.
@@ -1009,36 +981,39 @@ class PaymentIntentUpdateParamsPaymentMethodDataEps(TypedDict):
class PaymentIntentUpdateParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
Account holder type for FPX transaction
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank.
@@ -1055,28 +1030,7 @@ class PaymentIntentUpdateParamsPaymentMethodDataGrabpay(TypedDict):
class PaymentIntentUpdateParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
- ]
+ "Literal['abn_amro', 'adyen', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'mollie', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']|str"
]
"""
The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -1998,21 +1952,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCard(TypedDict):
parameter can only be provided during confirmation.
"""
network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ "Literal['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']|str"
]
"""
Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
@@ -2119,7 +2059,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions(
"""
Amount to be charged for future payments, specified in the presentment currency.
"""
- amount_type: Literal["fixed", "maximum"]
+ amount_type: Union[Literal["fixed", "maximum"], str]
"""
One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
"""
@@ -2131,7 +2071,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCardMandateOptions(
"""
End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+ interval: Union[Literal["day", "month", "sporadic", "week", "year"], str]
"""
Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
"""
@@ -3322,7 +3262,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnect
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -3343,7 +3288,9 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnect
class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
- account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
+ account_subcategories: NotRequired[
+ List[Union[Literal["checking", "savings"], str]]
+ ]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
@@ -3361,7 +3308,9 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions(
class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountNetworks(
TypedDict,
):
- requested: NotRequired[List[Literal["ach", "us_domestic_wire"]]]
+ requested: NotRequired[
+ List[Union[Literal["ach", "us_domestic_wire"], str]]
+ ]
"""
Triggers validations to run across the selected networks
"""
diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py
index e8885ca28..fff786069 100644
--- a/stripe/params/_payment_link_create_params.py
+++ b/stripe/params/_payment_link_create_params.py
@@ -329,7 +329,7 @@ class PaymentLinkCreateParamsCustomField(TypedDict):
class PaymentLinkCreateParamsCustomFieldDropdown(TypedDict):
default_value: NotRequired[str]
"""
- The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
+ The value that pre-fills the field on the payment page. Must match a `value` in the `options` array.
"""
options: List["PaymentLinkCreateParamsCustomFieldDropdownOption"]
"""
@@ -520,7 +520,7 @@ class PaymentLinkCreateParamsInvoiceCreationInvoiceDataRenderingOptions(
TypedDict,
):
amount_tax_display: NotRequired[
- "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
+ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']|str"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
@@ -586,7 +586,9 @@ class PaymentLinkCreateParamsLineItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -628,7 +630,7 @@ class PaymentLinkCreateParamsLineItemPriceDataProductData(TypedDict):
class PaymentLinkCreateParamsLineItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_payment_link_modify_params.py b/stripe/params/_payment_link_modify_params.py
index 48421a5b0..a4f6b479e 100644
--- a/stripe/params/_payment_link_modify_params.py
+++ b/stripe/params/_payment_link_modify_params.py
@@ -19,6 +19,14 @@ class PaymentLinkModifyParams(RequestOptions):
"""
Enables user redeemable promotion codes.
"""
+ application_fee_amount: NotRequired["Literal['']|int"]
+ """
+ The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Can only be applied when there are no line items with recurring prices.
+ """
+ application_fee_percent: NotRequired["Literal['']|float"]
+ """
+ A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.
+ """
automatic_tax: NotRequired["PaymentLinkModifyParamsAutomaticTax"]
"""
Configuration for automatic tax collection.
@@ -71,6 +79,10 @@ class PaymentLinkModifyParams(RequestOptions):
"""
Controls settings applied for collecting the customer's name.
"""
+ on_behalf_of: NotRequired["Literal['']|str"]
+ """
+ The account on behalf of which to charge.
+ """
optional_items: NotRequired[
"Literal['']|List[PaymentLinkModifyParamsOptionalItem]"
]
@@ -147,6 +159,12 @@ class PaymentLinkModifyParams(RequestOptions):
"""
Controls tax ID collection during checkout.
"""
+ transfer_data: NotRequired[
+ "Literal['']|PaymentLinkModifyParamsTransferData"
+ ]
+ """
+ The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
+ """
class PaymentLinkModifyParamsAfterCompletion(TypedDict):
@@ -268,7 +286,7 @@ class PaymentLinkModifyParamsCustomField(TypedDict):
class PaymentLinkModifyParamsCustomFieldDropdown(TypedDict):
default_value: NotRequired[str]
"""
- The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
+ The value that pre-fills the field on the payment page. Must match a `value` in the `options` array.
"""
options: List["PaymentLinkModifyParamsCustomFieldDropdownOption"]
"""
@@ -459,7 +477,7 @@ class PaymentLinkModifyParamsInvoiceCreationInvoiceDataRenderingOptions(
TypedDict,
):
amount_tax_display: NotRequired[
- "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
+ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']|str"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
@@ -991,3 +1009,17 @@ class PaymentLinkModifyParamsTaxIdCollection(TypedDict):
"""
Describes whether a tax ID is required during checkout. Defaults to `never`. You can't set this parameter if `ui_mode` is `custom`.
"""
+
+
+class PaymentLinkModifyParamsTransferData(TypedDict):
+ amount: NotRequired["Literal['']|int"]
+ """
+ The amount that will be transferred automatically when a charge succeeds.
+ """
+ destination: str
+ """
+ If specified, successful charges will be attributed to the destination
+ account for tax reporting, and the funds from charges will be transferred
+ to the destination account. The ID of the resulting transfer will be
+ returned on the successful charge's `transfer` field.
+ """
diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py
index ab224ccbe..4a3d7b329 100644
--- a/stripe/params/_payment_link_update_params.py
+++ b/stripe/params/_payment_link_update_params.py
@@ -18,6 +18,14 @@ class PaymentLinkUpdateParams(TypedDict):
"""
Enables user redeemable promotion codes.
"""
+ application_fee_amount: NotRequired["Literal['']|int"]
+ """
+ The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Can only be applied when there are no line items with recurring prices.
+ """
+ application_fee_percent: NotRequired["Literal['']|float"]
+ """
+ A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.
+ """
automatic_tax: NotRequired["PaymentLinkUpdateParamsAutomaticTax"]
"""
Configuration for automatic tax collection.
@@ -70,6 +78,10 @@ class PaymentLinkUpdateParams(TypedDict):
"""
Controls settings applied for collecting the customer's name.
"""
+ on_behalf_of: NotRequired["Literal['']|str"]
+ """
+ The account on behalf of which to charge.
+ """
optional_items: NotRequired[
"Literal['']|List[PaymentLinkUpdateParamsOptionalItem]"
]
@@ -146,6 +158,12 @@ class PaymentLinkUpdateParams(TypedDict):
"""
Controls tax ID collection during checkout.
"""
+ transfer_data: NotRequired[
+ "Literal['']|PaymentLinkUpdateParamsTransferData"
+ ]
+ """
+ The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
+ """
class PaymentLinkUpdateParamsAfterCompletion(TypedDict):
@@ -267,7 +285,7 @@ class PaymentLinkUpdateParamsCustomField(TypedDict):
class PaymentLinkUpdateParamsCustomFieldDropdown(TypedDict):
default_value: NotRequired[str]
"""
- The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
+ The value that pre-fills the field on the payment page. Must match a `value` in the `options` array.
"""
options: List["PaymentLinkUpdateParamsCustomFieldDropdownOption"]
"""
@@ -458,7 +476,7 @@ class PaymentLinkUpdateParamsInvoiceCreationInvoiceDataRenderingOptions(
TypedDict,
):
amount_tax_display: NotRequired[
- "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
+ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']|str"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
@@ -990,3 +1008,17 @@ class PaymentLinkUpdateParamsTaxIdCollection(TypedDict):
"""
Describes whether a tax ID is required during checkout. Defaults to `never`. You can't set this parameter if `ui_mode` is `custom`.
"""
+
+
+class PaymentLinkUpdateParamsTransferData(TypedDict):
+ amount: NotRequired["Literal['']|int"]
+ """
+ The amount that will be transferred automatically when a charge succeeds.
+ """
+ destination: str
+ """
+ If specified, successful charges will be attributed to the destination
+ account for tax reporting, and the funds from charges will be transferred
+ to the destination account. The ID of the resulting transfer will be
+ returned on the successful charge's `transfer` field.
+ """
diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py
index 774bba778..813f90eb2 100644
--- a/stripe/params/_payment_method_create_params.py
+++ b/stripe/params/_payment_method_create_params.py
@@ -458,36 +458,7 @@ class PaymentMethodCreateParamsCustomerBalance(TypedDict):
class PaymentMethodCreateParamsEps(TypedDict):
bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
- ]
+ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str"
]
"""
The customer's bank.
@@ -495,36 +466,39 @@ class PaymentMethodCreateParamsEps(TypedDict):
class PaymentMethodCreateParamsFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
Account holder type for FPX transaction
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank.
@@ -541,28 +515,7 @@ class PaymentMethodCreateParamsGrabpay(TypedDict):
class PaymentMethodCreateParamsIdeal(TypedDict):
bank: NotRequired[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
- ]
+ "Literal['abn_amro', 'adyen', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'mollie', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']|str"
]
"""
The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
diff --git a/stripe/params/_payout_create_params.py b/stripe/params/_payout_create_params.py
index d97efb1ef..bf98c6d19 100644
--- a/stripe/params/_payout_create_params.py
+++ b/stripe/params/_payout_create_params.py
@@ -31,7 +31,7 @@ class PayoutCreateParams(RequestOptions):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
- method: NotRequired[Literal["instant", "standard"]]
+ method: NotRequired["Literal['instant', 'standard']|str"]
"""
The method used to send this payout, which is `standard` or `instant`. We support `instant` for payouts to debit cards and bank accounts in certain countries. Learn more about [bank support for Instant Payouts](https://stripe.com/docs/payouts/instant-payouts-banks).
"""
@@ -39,7 +39,7 @@ class PayoutCreateParams(RequestOptions):
"""
The ID of a v2 FinancialAccount to send funds to.
"""
- source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ source_type: NotRequired["Literal['bank_account', 'card', 'fpx']|str"]
"""
The balance type of your Stripe balance to draw this payout from. Balances for different payment sources are kept separately. You can find the amounts with the Balances API. One of `bank_account`, `card`, or `fpx`.
"""
diff --git a/stripe/params/_plan_create_params.py b/stripe/params/_plan_create_params.py
index 77175ea1f..32d8e1693 100644
--- a/stripe/params/_plan_create_params.py
+++ b/stripe/params/_plan_create_params.py
@@ -20,7 +20,7 @@ class PlanCreateParams(RequestOptions):
"""
Same as `amount`, but accepts a decimal value with at most 12 decimal places. Only one of `amount` and `amount_decimal` can be set.
"""
- billing_scheme: NotRequired[Literal["per_unit", "tiered"]]
+ billing_scheme: NotRequired["Literal['per_unit', 'tiered']|str"]
"""
Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `amount`) will be charged per unit in `quantity` (for plans with `usage_type=licensed`), or per unit of total usage (for plans with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.
"""
@@ -36,7 +36,7 @@ class PlanCreateParams(RequestOptions):
"""
An identifier randomly generated by Stripe. Used to identify this plan when subscribing a customer. You can optionally override this ID, but the ID must be unique across all plans in your Stripe account. You can, however, use the same plan ID in both live and test modes.
"""
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
@@ -75,7 +75,7 @@ class PlanCreateParams(RequestOptions):
"""
Default number of trial days when subscribing a customer to this plan using [`trial_from_plan=true`](https://docs.stripe.com/api#create_subscription-trial_from_plan).
"""
- usage_type: NotRequired[Literal["licensed", "metered"]]
+ usage_type: NotRequired["Literal['licensed', 'metered']|str"]
"""
Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.
"""
diff --git a/stripe/params/_price_create_params.py b/stripe/params/_price_create_params.py
index dcd09fa55..3089d980b 100644
--- a/stripe/params/_price_create_params.py
+++ b/stripe/params/_price_create_params.py
@@ -12,7 +12,7 @@ class PriceCreateParams(RequestOptions):
"""
Whether the price can be used for new purchases. Defaults to `true`.
"""
- billing_scheme: NotRequired[Literal["per_unit", "tiered"]]
+ billing_scheme: NotRequired["Literal['per_unit', 'tiered']|str"]
"""
Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `unit_amount` or `unit_amount_decimal`) will be charged per unit in `quantity` (for prices with `usage_type=licensed`), or per unit of total usage (for prices with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.
"""
@@ -58,7 +58,9 @@ class PriceCreateParams(RequestOptions):
"""
The recurring components of a price such as `interval` and `usage_type`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -95,7 +97,9 @@ class PriceCreateParamsCurrencyOptions(TypedDict):
"""
When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -208,7 +212,7 @@ class PriceCreateParamsProductData(TypedDict):
class PriceCreateParamsRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
@@ -224,7 +228,7 @@ class PriceCreateParamsRecurring(TypedDict):
"""
Default number of trial days when subscribing a customer to this price using [`trial_from_plan=true`](https://docs.stripe.com/api#create_subscription-trial_from_plan).
"""
- usage_type: NotRequired[Literal["licensed", "metered"]]
+ usage_type: NotRequired["Literal['licensed', 'metered']|str"]
"""
Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.
"""
diff --git a/stripe/params/_price_list_params.py b/stripe/params/_price_list_params.py
index e1df106d0..fa5c36e41 100644
--- a/stripe/params/_price_list_params.py
+++ b/stripe/params/_price_list_params.py
@@ -46,7 +46,7 @@ class PriceListParams(RequestOptions):
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
- type: NotRequired[Literal["one_time", "recurring"]]
+ type: NotRequired["Literal['one_time', 'recurring']|str"]
"""
Only return prices of type `recurring` or `one_time`.
"""
@@ -72,7 +72,7 @@ class PriceListParamsCreated(TypedDict):
class PriceListParamsRecurring(TypedDict):
- interval: NotRequired[Literal["day", "month", "week", "year"]]
+ interval: NotRequired["Literal['day', 'month', 'week', 'year']|str"]
"""
Filter by billing frequency. Either `day`, `week`, `month` or `year`.
"""
@@ -80,7 +80,7 @@ class PriceListParamsRecurring(TypedDict):
"""
Filter by the price's meter.
"""
- usage_type: NotRequired[Literal["licensed", "metered"]]
+ usage_type: NotRequired["Literal['licensed', 'metered']|str"]
"""
Filter by the usage type for this price. Can be either `metered` or `licensed`.
"""
diff --git a/stripe/params/_price_modify_params.py b/stripe/params/_price_modify_params.py
index 6bfbd2055..a96085ee0 100644
--- a/stripe/params/_price_modify_params.py
+++ b/stripe/params/_price_modify_params.py
@@ -36,7 +36,9 @@ class PriceModifyParams(RequestOptions):
"""
A brief description of the price, hidden from customers.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -53,7 +55,9 @@ class PriceModifyParamsCurrencyOptions(TypedDict):
"""
When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
diff --git a/stripe/params/_price_update_params.py b/stripe/params/_price_update_params.py
index 117c042ba..a09c062d2 100644
--- a/stripe/params/_price_update_params.py
+++ b/stripe/params/_price_update_params.py
@@ -35,7 +35,9 @@ class PriceUpdateParams(TypedDict):
"""
A brief description of the price, hidden from customers.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -52,7 +54,9 @@ class PriceUpdateParamsCurrencyOptions(TypedDict):
"""
When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
diff --git a/stripe/params/_product_create_params.py b/stripe/params/_product_create_params.py
index 6529f1933..1c8962cca 100644
--- a/stripe/params/_product_create_params.py
+++ b/stripe/params/_product_create_params.py
@@ -65,7 +65,7 @@ class ProductCreateParams(RequestOptions):
"""
A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
"""
- type: NotRequired[Literal["good", "service"]]
+ type: NotRequired["Literal['good', 'service']|str"]
"""
The type of the product. Defaults to `service` if not explicitly specified, enabling use of this product with Subscriptions and Plans. Set this parameter to `good` to use this product with Orders and SKUs. On API versions before `2018-02-05`, this field defaults to `good` for compatibility reasons.
"""
@@ -104,7 +104,9 @@ class ProductCreateParamsDefaultPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -125,7 +127,9 @@ class ProductCreateParamsDefaultPriceDataCurrencyOptions(TypedDict):
"""
When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -209,7 +213,7 @@ class ProductCreateParamsDefaultPriceDataCustomUnitAmount(TypedDict):
class ProductCreateParamsDefaultPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_product_list_params.py b/stripe/params/_product_list_params.py
index 40347b633..280732a53 100644
--- a/stripe/params/_product_list_params.py
+++ b/stripe/params/_product_list_params.py
@@ -38,7 +38,7 @@ class ProductListParams(RequestOptions):
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
- type: NotRequired[Literal["good", "service"]]
+ type: NotRequired["Literal['good', 'service']|str"]
"""
Only return products of this type.
"""
diff --git a/stripe/params/_quote_create_params.py b/stripe/params/_quote_create_params.py
index eee63093c..837da743a 100644
--- a/stripe/params/_quote_create_params.py
+++ b/stripe/params/_quote_create_params.py
@@ -21,7 +21,7 @@ class QuoteCreateParams(RequestOptions):
Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
@@ -244,7 +244,9 @@ class QuoteCreateParamsLineItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -259,7 +261,7 @@ class QuoteCreateParamsLineItemPriceData(TypedDict):
class QuoteCreateParamsLineItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
@@ -308,7 +310,7 @@ class QuoteCreateParamsSubscriptionDataBillingMode(TypedDict):
class QuoteCreateParamsSubscriptionDataBillingModeFlexible(TypedDict):
- proration_discounts: NotRequired[Literal["included", "itemized"]]
+ proration_discounts: NotRequired["Literal['included', 'itemized']|str"]
"""
Controls how invoices and invoice items display proration amounts and discount amounts.
"""
diff --git a/stripe/params/_quote_modify_params.py b/stripe/params/_quote_modify_params.py
index cca43795d..7864487e9 100644
--- a/stripe/params/_quote_modify_params.py
+++ b/stripe/params/_quote_modify_params.py
@@ -21,7 +21,7 @@ class QuoteModifyParams(RequestOptions):
Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
@@ -229,7 +229,9 @@ class QuoteModifyParamsLineItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -244,7 +246,7 @@ class QuoteModifyParamsLineItemPriceData(TypedDict):
class QuoteModifyParamsLineItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_quote_update_params.py b/stripe/params/_quote_update_params.py
index a63e46fa1..0e18b3f0c 100644
--- a/stripe/params/_quote_update_params.py
+++ b/stripe/params/_quote_update_params.py
@@ -20,7 +20,7 @@ class QuoteUpdateParams(TypedDict):
Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
@@ -228,7 +228,9 @@ class QuoteUpdateParamsLineItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -243,7 +245,7 @@ class QuoteUpdateParamsLineItemPriceData(TypedDict):
class QuoteUpdateParamsLineItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_refund_create_params.py b/stripe/params/_refund_create_params.py
index 55540d1fd..c4c35f6e7 100644
--- a/stripe/params/_refund_create_params.py
+++ b/stripe/params/_refund_create_params.py
@@ -43,7 +43,7 @@ class RefundCreateParams(RequestOptions):
The identifier of the PaymentIntent to refund.
"""
reason: NotRequired[
- Literal["duplicate", "fraudulent", "requested_by_customer"]
+ "Literal['duplicate', 'fraudulent', 'requested_by_customer']|str"
]
"""
String indicating the reason for the refund. If set, possible values are `duplicate`, `fraudulent`, and `requested_by_customer`. If you believe the charge to be fraudulent, specifying `fraudulent` as the reason will add the associated card and email to your [block lists](https://docs.stripe.com/radar/lists), and will also help us improve our fraud detection algorithms.
diff --git a/stripe/params/_setup_intent_cancel_params.py b/stripe/params/_setup_intent_cancel_params.py
index 76c796898..20bbada09 100644
--- a/stripe/params/_setup_intent_cancel_params.py
+++ b/stripe/params/_setup_intent_cancel_params.py
@@ -7,7 +7,7 @@
class SetupIntentCancelParams(RequestOptions):
cancellation_reason: NotRequired[
- Literal["abandoned", "duplicate", "requested_by_customer"]
+ "Literal['abandoned', 'duplicate', 'requested_by_customer']|str"
]
"""
Reason for canceling this SetupIntent. Possible values are: `abandoned`, `requested_by_customer`, or `duplicate`
diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py
index c28b8bfea..235bc561d 100644
--- a/stripe/params/_setup_intent_confirm_params.py
+++ b/stripe/params/_setup_intent_confirm_params.py
@@ -98,6 +98,7 @@ class SetupIntentConfirmParams(RequestOptions):
"swish",
"tamara",
"test_pay",
+ "touch_n_go",
"truemoney",
"twint",
"upi",
@@ -183,7 +184,7 @@ class SetupIntentConfirmParamsMandateDataCustomerAcceptance(TypedDict):
"""
If this is a Mandate accepted online, this hash contains details about the online acceptance.
"""
- type: Literal["offline", "online"]
+ type: Union[Literal["offline", "online"], str]
"""
The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
"""
@@ -690,36 +691,7 @@ class SetupIntentConfirmParamsPaymentMethodDataCustomerBalance(TypedDict):
class SetupIntentConfirmParamsPaymentMethodDataEps(TypedDict):
bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
- ]
+ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str"
]
"""
The customer's bank.
@@ -727,36 +699,39 @@ class SetupIntentConfirmParamsPaymentMethodDataEps(TypedDict):
class SetupIntentConfirmParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
Account holder type for FPX transaction
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank.
@@ -773,28 +748,7 @@ class SetupIntentConfirmParamsPaymentMethodDataGrabpay(TypedDict):
class SetupIntentConfirmParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
- ]
+ "Literal['abn_amro', 'adyen', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'mollie', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']|str"
]
"""
The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -1207,21 +1161,7 @@ class SetupIntentConfirmParamsPaymentMethodOptionsCard(TypedDict):
parameter can only be provided during confirmation.
"""
network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ "Literal['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']|str"
]
"""
Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.
@@ -1248,7 +1188,7 @@ class SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions(
"""
Amount to be charged for future payments, specified in the presentment currency.
"""
- amount_type: Literal["fixed", "maximum"]
+ amount_type: Union[Literal["fixed", "maximum"], str]
"""
One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
"""
@@ -1264,7 +1204,7 @@ class SetupIntentConfirmParamsPaymentMethodOptionsCardMandateOptions(
"""
End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+ interval: Union[Literal["day", "month", "sporadic", "week", "year"], str]
"""
Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
"""
@@ -1652,7 +1592,12 @@ class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnecti
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -1673,7 +1618,9 @@ class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnecti
class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
- account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
+ account_subcategories: NotRequired[
+ List[Union[Literal["checking", "savings"], str]]
+ ]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
@@ -1691,7 +1638,9 @@ class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions(
class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks(
TypedDict,
):
- requested: NotRequired[List[Literal["ach", "us_domestic_wire"]]]
+ requested: NotRequired[
+ List[Union[Literal["ach", "us_domestic_wire"], str]]
+ ]
"""
Triggers validations to run across the selected networks
"""
diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py
index e07f556c1..4980b33c7 100644
--- a/stripe/params/_setup_intent_create_params.py
+++ b/stripe/params/_setup_intent_create_params.py
@@ -98,6 +98,7 @@ class SetupIntentCreateParams(RequestOptions):
"swish",
"tamara",
"test_pay",
+ "touch_n_go",
"truemoney",
"twint",
"upi",
@@ -324,7 +325,7 @@ class SetupIntentCreateParamsMandateDataCustomerAcceptance(TypedDict):
"""
If this is a Mandate accepted online, this hash contains details about the online acceptance.
"""
- type: Literal["offline", "online"]
+ type: Union[Literal["offline", "online"], str]
"""
The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
"""
@@ -825,36 +826,7 @@ class SetupIntentCreateParamsPaymentMethodDataCustomerBalance(TypedDict):
class SetupIntentCreateParamsPaymentMethodDataEps(TypedDict):
bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
- ]
+ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str"
]
"""
The customer's bank.
@@ -862,36 +834,39 @@ class SetupIntentCreateParamsPaymentMethodDataEps(TypedDict):
class SetupIntentCreateParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
Account holder type for FPX transaction
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank.
@@ -908,28 +883,7 @@ class SetupIntentCreateParamsPaymentMethodDataGrabpay(TypedDict):
class SetupIntentCreateParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
- ]
+ "Literal['abn_amro', 'adyen', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'mollie', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']|str"
]
"""
The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -1342,21 +1296,7 @@ class SetupIntentCreateParamsPaymentMethodOptionsCard(TypedDict):
parameter can only be provided during confirmation.
"""
network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ "Literal['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']|str"
]
"""
Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.
@@ -1381,7 +1321,7 @@ class SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions(TypedDict):
"""
Amount to be charged for future payments, specified in the presentment currency.
"""
- amount_type: Literal["fixed", "maximum"]
+ amount_type: Union[Literal["fixed", "maximum"], str]
"""
One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
"""
@@ -1397,7 +1337,7 @@ class SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions(TypedDict):
"""
End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+ interval: Union[Literal["day", "month", "sporadic", "week", "year"], str]
"""
Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
"""
@@ -1783,7 +1723,12 @@ class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -1804,7 +1749,9 @@ class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
- account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
+ account_subcategories: NotRequired[
+ List[Union[Literal["checking", "savings"], str]]
+ ]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
@@ -1822,7 +1769,9 @@ class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions(
class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks(
TypedDict,
):
- requested: NotRequired[List[Literal["ach", "us_domestic_wire"]]]
+ requested: NotRequired[
+ List[Union[Literal["ach", "us_domestic_wire"], str]]
+ ]
"""
Triggers validations to run across the selected networks
"""
diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py
index 09c21f799..c60fbb808 100644
--- a/stripe/params/_setup_intent_modify_params.py
+++ b/stripe/params/_setup_intent_modify_params.py
@@ -8,7 +8,7 @@
class SetupIntentModifyParams(RequestOptions):
allowed_payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]"
+ "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]"
]
"""
The list of payment method types to allow for this SetupIntent. Stripe will only use methods in this list when determining the payment methods to offer. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
@@ -566,36 +566,7 @@ class SetupIntentModifyParamsPaymentMethodDataCustomerBalance(TypedDict):
class SetupIntentModifyParamsPaymentMethodDataEps(TypedDict):
bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
- ]
+ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str"
]
"""
The customer's bank.
@@ -603,36 +574,39 @@ class SetupIntentModifyParamsPaymentMethodDataEps(TypedDict):
class SetupIntentModifyParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
Account holder type for FPX transaction
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank.
@@ -649,28 +623,7 @@ class SetupIntentModifyParamsPaymentMethodDataGrabpay(TypedDict):
class SetupIntentModifyParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
- ]
+ "Literal['abn_amro', 'adyen', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'mollie', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']|str"
]
"""
The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -1083,21 +1036,7 @@ class SetupIntentModifyParamsPaymentMethodOptionsCard(TypedDict):
parameter can only be provided during confirmation.
"""
network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ "Literal['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']|str"
]
"""
Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.
@@ -1122,7 +1061,7 @@ class SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions(TypedDict):
"""
Amount to be charged for future payments, specified in the presentment currency.
"""
- amount_type: Literal["fixed", "maximum"]
+ amount_type: Union[Literal["fixed", "maximum"], str]
"""
One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
"""
@@ -1138,7 +1077,7 @@ class SetupIntentModifyParamsPaymentMethodOptionsCardMandateOptions(TypedDict):
"""
End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+ interval: Union[Literal["day", "month", "sporadic", "week", "year"], str]
"""
Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
"""
@@ -1524,7 +1463,12 @@ class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -1545,7 +1489,9 @@ class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
- account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
+ account_subcategories: NotRequired[
+ List[Union[Literal["checking", "savings"], str]]
+ ]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
@@ -1563,7 +1509,9 @@ class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountMandateOptions(
class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountNetworks(
TypedDict,
):
- requested: NotRequired[List[Literal["ach", "us_domestic_wire"]]]
+ requested: NotRequired[
+ List[Union[Literal["ach", "us_domestic_wire"], str]]
+ ]
"""
Triggers validations to run across the selected networks
"""
diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py
index 61cd5f285..160182d69 100644
--- a/stripe/params/_setup_intent_update_params.py
+++ b/stripe/params/_setup_intent_update_params.py
@@ -7,7 +7,7 @@
class SetupIntentUpdateParams(TypedDict):
allowed_payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]"
+ "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]"
]
"""
The list of payment method types to allow for this SetupIntent. Stripe will only use methods in this list when determining the payment methods to offer. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
@@ -565,36 +565,7 @@ class SetupIntentUpdateParamsPaymentMethodDataCustomerBalance(TypedDict):
class SetupIntentUpdateParamsPaymentMethodDataEps(TypedDict):
bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
- ]
+ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str"
]
"""
The customer's bank.
@@ -602,36 +573,39 @@ class SetupIntentUpdateParamsPaymentMethodDataEps(TypedDict):
class SetupIntentUpdateParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
Account holder type for FPX transaction
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank.
@@ -648,28 +622,7 @@ class SetupIntentUpdateParamsPaymentMethodDataGrabpay(TypedDict):
class SetupIntentUpdateParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
- ]
+ "Literal['abn_amro', 'adyen', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'mollie', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']|str"
]
"""
The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -1082,21 +1035,7 @@ class SetupIntentUpdateParamsPaymentMethodOptionsCard(TypedDict):
parameter can only be provided during confirmation.
"""
network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ "Literal['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']|str"
]
"""
Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.
@@ -1121,7 +1060,7 @@ class SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions(TypedDict):
"""
Amount to be charged for future payments, specified in the presentment currency.
"""
- amount_type: Literal["fixed", "maximum"]
+ amount_type: Union[Literal["fixed", "maximum"], str]
"""
One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
"""
@@ -1137,7 +1076,7 @@ class SetupIntentUpdateParamsPaymentMethodOptionsCardMandateOptions(TypedDict):
"""
End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
"""
- interval: Literal["day", "month", "sporadic", "week", "year"]
+ interval: Union[Literal["day", "month", "sporadic", "week", "year"], str]
"""
Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
"""
@@ -1523,7 +1462,12 @@ class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -1544,7 +1488,9 @@ class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectio
class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
TypedDict,
):
- account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
+ account_subcategories: NotRequired[
+ List[Union[Literal["checking", "savings"], str]]
+ ]
"""
The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
"""
@@ -1562,7 +1508,9 @@ class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountMandateOptions(
class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountNetworks(
TypedDict,
):
- requested: NotRequired[List[Literal["ach", "us_domestic_wire"]]]
+ requested: NotRequired[
+ List[Union[Literal["ach", "us_domestic_wire"], str]]
+ ]
"""
Triggers validations to run across the selected networks
"""
diff --git a/stripe/params/_shipping_rate_create_params.py b/stripe/params/_shipping_rate_create_params.py
index 5e24621c9..9375d1b45 100644
--- a/stripe/params/_shipping_rate_create_params.py
+++ b/stripe/params/_shipping_rate_create_params.py
@@ -27,7 +27,9 @@ class ShippingRateCreateParams(RequestOptions):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
@@ -96,7 +98,9 @@ class ShippingRateCreateParamsFixedAmountCurrencyOptions(TypedDict):
"""
A non-negative integer in cents representing how much to charge.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
diff --git a/stripe/params/_shipping_rate_modify_params.py b/stripe/params/_shipping_rate_modify_params.py
index a0e48f2e4..f451066f8 100644
--- a/stripe/params/_shipping_rate_modify_params.py
+++ b/stripe/params/_shipping_rate_modify_params.py
@@ -25,7 +25,9 @@ class ShippingRateModifyParams(RequestOptions):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
@@ -45,7 +47,9 @@ class ShippingRateModifyParamsFixedAmountCurrencyOptions(TypedDict):
"""
A non-negative integer in cents representing how much to charge.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
diff --git a/stripe/params/_shipping_rate_update_params.py b/stripe/params/_shipping_rate_update_params.py
index de842d16d..aa6d0763c 100644
--- a/stripe/params/_shipping_rate_update_params.py
+++ b/stripe/params/_shipping_rate_update_params.py
@@ -24,7 +24,9 @@ class ShippingRateUpdateParams(TypedDict):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
@@ -44,7 +46,9 @@ class ShippingRateUpdateParamsFixedAmountCurrencyOptions(TypedDict):
"""
A non-negative integer in cents representing how much to charge.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
diff --git a/stripe/params/_source_create_params.py b/stripe/params/_source_create_params.py
index 0fb114b68..e12cb5f63 100644
--- a/stripe/params/_source_create_params.py
+++ b/stripe/params/_source_create_params.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List
+from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -24,7 +24,7 @@ class SourceCreateParams(RequestOptions):
Specifies which fields in the response should be expanded.
"""
flow: NotRequired[
- Literal["code_verification", "none", "receiver", "redirect"]
+ "Literal['code_verification', 'none', 'receiver', 'redirect']|str"
]
"""
The authentication `flow` of the source to create. `flow` is one of `redirect`, `receiver`, `code_verification`, `none`. It is generally inferred unless a type supports multiple flows.
@@ -66,7 +66,7 @@ class SourceCreateParams(RequestOptions):
"""
The `type` of the source to create. Required unless `customer` and `original_source` are specified (see the [Cloning card Sources](https://docs.stripe.com/sources/connect#cloning-card-sources) guide)
"""
- usage: NotRequired[Literal["reusable", "single_use"]]
+ usage: NotRequired["Literal['reusable', 'single_use']|str"]
class SourceCreateParamsMandate(TypedDict):
@@ -82,12 +82,12 @@ class SourceCreateParamsMandate(TypedDict):
"""
The currency specified by the mandate. (Must match `currency` of the source)
"""
- interval: NotRequired[Literal["one_time", "scheduled", "variable"]]
+ interval: NotRequired["Literal['one_time', 'scheduled', 'variable']|str"]
"""
The interval of debits permitted by the mandate. Either `one_time` (just permitting a single debit), `scheduled` (with debits on an agreed schedule or for clearly-defined events), or `variable`(for debits with any frequency)
"""
notification_method: NotRequired[
- Literal["deprecated_none", "email", "manual", "none", "stripe_email"]
+ "Literal['deprecated_none', 'email', 'manual', 'none', 'stripe_email']|str"
]
"""
The method Stripe should use to notify the customer of upcoming debit instructions and/or mandate confirmation as required by the underlying debit network. Either `email` (an email is sent directly to the customer), `manual` (a `source.mandate_notification` event is sent to your webhooks endpoint and you should handle the notification) or `none` (the underlying debit network does not require any notification).
@@ -111,11 +111,11 @@ class SourceCreateParamsMandateAcceptance(TypedDict):
"""
The parameters required to store a mandate accepted online. Should only be set if `mandate[type]` is `online`
"""
- status: Literal["accepted", "pending", "refused", "revoked"]
+ status: Union[Literal["accepted", "pending", "refused", "revoked"], str]
"""
The status of the mandate acceptance. Either `accepted` (the mandate was accepted) or `refused` (the mandate was refused).
"""
- type: NotRequired[Literal["offline", "online"]]
+ type: NotRequired["Literal['offline', 'online']|str"]
"""
The type of acceptance information included with the mandate. Either `online` or `offline`
"""
@@ -194,7 +194,9 @@ class SourceCreateParamsOwnerAddress(TypedDict):
class SourceCreateParamsReceiver(TypedDict):
- refund_attributes_method: NotRequired[Literal["email", "manual", "none"]]
+ refund_attributes_method: NotRequired[
+ "Literal['email', 'manual', 'none']|str"
+ ]
"""
The method Stripe should use to request information needed to process a refund or mispayment. Either `email` (an email is sent directly to the customer) or `manual` (a `source.refund_attributes_required` event is sent to your webhooks endpoint). Refer to each payment method's documentation to learn which refund attributes may be required.
"""
@@ -230,7 +232,7 @@ class SourceCreateParamsSourceOrderItem(TypedDict):
"""
The quantity of this order item. When type is `sku`, this is the number of instances of the SKU to be ordered.
"""
- type: NotRequired[Literal["discount", "shipping", "sku", "tax"]]
+ type: NotRequired["Literal['discount', 'shipping', 'sku', 'tax']|str"]
class SourceCreateParamsSourceOrderShipping(TypedDict):
diff --git a/stripe/params/_source_modify_params.py b/stripe/params/_source_modify_params.py
index c7fc06c1a..8b4a00fcd 100644
--- a/stripe/params/_source_modify_params.py
+++ b/stripe/params/_source_modify_params.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List
+from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -48,12 +48,12 @@ class SourceModifyParamsMandate(TypedDict):
"""
The currency specified by the mandate. (Must match `currency` of the source)
"""
- interval: NotRequired[Literal["one_time", "scheduled", "variable"]]
+ interval: NotRequired["Literal['one_time', 'scheduled', 'variable']|str"]
"""
The interval of debits permitted by the mandate. Either `one_time` (just permitting a single debit), `scheduled` (with debits on an agreed schedule or for clearly-defined events), or `variable`(for debits with any frequency)
"""
notification_method: NotRequired[
- Literal["deprecated_none", "email", "manual", "none", "stripe_email"]
+ "Literal['deprecated_none', 'email', 'manual', 'none', 'stripe_email']|str"
]
"""
The method Stripe should use to notify the customer of upcoming debit instructions and/or mandate confirmation as required by the underlying debit network. Either `email` (an email is sent directly to the customer), `manual` (a `source.mandate_notification` event is sent to your webhooks endpoint and you should handle the notification) or `none` (the underlying debit network does not require any notification).
@@ -77,11 +77,11 @@ class SourceModifyParamsMandateAcceptance(TypedDict):
"""
The parameters required to store a mandate accepted online. Should only be set if `mandate[type]` is `online`
"""
- status: Literal["accepted", "pending", "refused", "revoked"]
+ status: Union[Literal["accepted", "pending", "refused", "revoked"], str]
"""
The status of the mandate acceptance. Either `accepted` (the mandate was accepted) or `refused` (the mandate was refused).
"""
- type: NotRequired[Literal["offline", "online"]]
+ type: NotRequired["Literal['offline', 'online']|str"]
"""
The type of acceptance information included with the mandate. Either `online` or `offline`
"""
@@ -182,7 +182,7 @@ class SourceModifyParamsSourceOrderItem(TypedDict):
"""
The quantity of this order item. When type is `sku`, this is the number of instances of the SKU to be ordered.
"""
- type: NotRequired[Literal["discount", "shipping", "sku", "tax"]]
+ type: NotRequired["Literal['discount', 'shipping', 'sku', 'tax']|str"]
class SourceModifyParamsSourceOrderShipping(TypedDict):
diff --git a/stripe/params/_source_update_params.py b/stripe/params/_source_update_params.py
index 006cd6b4f..44e2ad15b 100644
--- a/stripe/params/_source_update_params.py
+++ b/stripe/params/_source_update_params.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List
+from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -47,12 +47,12 @@ class SourceUpdateParamsMandate(TypedDict):
"""
The currency specified by the mandate. (Must match `currency` of the source)
"""
- interval: NotRequired[Literal["one_time", "scheduled", "variable"]]
+ interval: NotRequired["Literal['one_time', 'scheduled', 'variable']|str"]
"""
The interval of debits permitted by the mandate. Either `one_time` (just permitting a single debit), `scheduled` (with debits on an agreed schedule or for clearly-defined events), or `variable`(for debits with any frequency)
"""
notification_method: NotRequired[
- Literal["deprecated_none", "email", "manual", "none", "stripe_email"]
+ "Literal['deprecated_none', 'email', 'manual', 'none', 'stripe_email']|str"
]
"""
The method Stripe should use to notify the customer of upcoming debit instructions and/or mandate confirmation as required by the underlying debit network. Either `email` (an email is sent directly to the customer), `manual` (a `source.mandate_notification` event is sent to your webhooks endpoint and you should handle the notification) or `none` (the underlying debit network does not require any notification).
@@ -76,11 +76,11 @@ class SourceUpdateParamsMandateAcceptance(TypedDict):
"""
The parameters required to store a mandate accepted online. Should only be set if `mandate[type]` is `online`
"""
- status: Literal["accepted", "pending", "refused", "revoked"]
+ status: Union[Literal["accepted", "pending", "refused", "revoked"], str]
"""
The status of the mandate acceptance. Either `accepted` (the mandate was accepted) or `refused` (the mandate was refused).
"""
- type: NotRequired[Literal["offline", "online"]]
+ type: NotRequired["Literal['offline', 'online']|str"]
"""
The type of acceptance information included with the mandate. Either `online` or `offline`
"""
@@ -181,7 +181,7 @@ class SourceUpdateParamsSourceOrderItem(TypedDict):
"""
The quantity of this order item. When type is `sku`, this is the number of instances of the SKU to be ordered.
"""
- type: NotRequired[Literal["discount", "shipping", "sku", "tax"]]
+ type: NotRequired["Literal['discount', 'shipping', 'sku', 'tax']|str"]
class SourceUpdateParamsSourceOrderShipping(TypedDict):
diff --git a/stripe/params/_subscription_cancel_params.py b/stripe/params/_subscription_cancel_params.py
index 0acc4dbe5..fb68cc76d 100644
--- a/stripe/params/_subscription_cancel_params.py
+++ b/stripe/params/_subscription_cancel_params.py
@@ -37,3 +37,7 @@ class SubscriptionCancelParamsCancellationDetails(TypedDict):
"""
The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
"""
+ feedback_option: NotRequired[str]
+ """
+ Customized feedback options that provide deeper insight into why the subscription was canceled, if the subscription was canceled explicitly by the user.
+ """
diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py
index 6dbf6a085..176880283 100644
--- a/stripe/params/_subscription_create_params.py
+++ b/stripe/params/_subscription_create_params.py
@@ -44,7 +44,7 @@ class SubscriptionCreateParams(RequestOptions):
List["SubscriptionCreateParamsBillingSchedule"]
]
"""
- Sets the billing schedules for the subscription.
+ An array of billing schedules, which allow you to bill customers in advance for multiple service periods. Requires flexible billing mode and API version 2026-05-27.dahlia or later. Learn more about [prebilling](https://docs.stripe.com/billing/subscriptions/prebilling).
"""
billing_thresholds: NotRequired[
"Literal['']|SubscriptionCreateParamsBillingThresholds"
@@ -63,7 +63,7 @@ class SubscriptionCreateParams(RequestOptions):
Indicate whether this subscription should cancel at the end of the current period (`current_period_end`). Defaults to `false`.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
@@ -133,12 +133,7 @@ class SubscriptionCreateParams(RequestOptions):
The account on behalf of which to charge, for each of the subscription's invoices.
"""
payment_behavior: NotRequired[
- Literal[
- "allow_incomplete",
- "default_incomplete",
- "error_if_incomplete",
- "pending_if_incomplete",
- ]
+ "Literal['allow_incomplete', 'default_incomplete', 'error_if_incomplete', 'pending_if_incomplete']|str"
]
"""
Controls how Stripe handles the first invoice when payment is required and `collection_method=charge_automatically`. Subscriptions with `collection_method=send_invoice` are automatically activated regardless of the first Invoice status.
@@ -275,7 +270,9 @@ class SubscriptionCreateParamsAddInvoiceItemPriceData(TypedDict):
"""
The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -346,7 +343,7 @@ class SubscriptionCreateParamsBillingMode(TypedDict):
class SubscriptionCreateParamsBillingModeFlexible(TypedDict):
- proration_discounts: NotRequired[Literal["included", "itemized"]]
+ proration_discounts: NotRequired["Literal['included', 'itemized']|str"]
"""
Controls how invoices and invoice items display proration amounts and discount amounts.
"""
@@ -361,7 +358,7 @@ class SubscriptionCreateParamsBillingSchedule(TypedDict):
"""
bill_until: "SubscriptionCreateParamsBillingScheduleBillUntil"
"""
- The end date for the billing schedule.
+ The end date for the billing schedule. You must not set this earlier than current period end for every applicable subscription item.
"""
key: NotRequired[str]
"""
@@ -398,7 +395,7 @@ class SubscriptionCreateParamsBillingScheduleBillUntil(TypedDict):
class SubscriptionCreateParamsBillingScheduleBillUntilDuration(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing duration. Either `day`, `week`, `month` or `year`.
"""
@@ -555,7 +552,9 @@ class SubscriptionCreateParamsItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -570,7 +569,7 @@ class SubscriptionCreateParamsItemPriceData(TypedDict):
class SubscriptionCreateParamsItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
@@ -588,7 +587,7 @@ class SubscriptionCreateParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to invoices created by the subscription.
"""
payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
+ "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
@@ -614,6 +613,12 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
"""
+ billie: NotRequired[
+ "Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillie"
+ ]
+ """
+ This sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
+ """
card: NotRequired[
"Literal['']|SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard"
]
@@ -699,6 +704,12 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBancontact(
"""
+class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBillie(
+ TypedDict,
+):
+ pass
+
+
class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard(
TypedDict,
):
@@ -709,21 +720,7 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsCard(
Configuration options for setting up an eMandate for cards issued in India.
"""
network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ "Literal['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']|str"
]
"""
Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time.
@@ -928,7 +925,12 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -954,7 +956,7 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi
class SubscriptionCreateParamsPendingInvoiceItemInterval(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_subscription_item_create_params.py b/stripe/params/_subscription_item_create_params.py
index 44dd33f09..751afee49 100644
--- a/stripe/params/_subscription_item_create_params.py
+++ b/stripe/params/_subscription_item_create_params.py
@@ -3,7 +3,7 @@
from decimal import Decimal
from stripe._request_options import RequestOptions
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List
+from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -29,12 +29,7 @@ class SubscriptionItemCreateParams(RequestOptions):
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
payment_behavior: NotRequired[
- Literal[
- "allow_incomplete",
- "default_incomplete",
- "error_if_incomplete",
- "pending_if_incomplete",
- ]
+ "Literal['allow_incomplete', 'default_incomplete', 'error_if_incomplete', 'pending_if_incomplete']|str"
]
"""
Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`.
@@ -110,7 +105,9 @@ class SubscriptionItemCreateParamsPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -125,7 +122,7 @@ class SubscriptionItemCreateParamsPriceData(TypedDict):
class SubscriptionItemCreateParamsPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_subscription_item_delete_params.py b/stripe/params/_subscription_item_delete_params.py
index 1e0e67d97..a8e15a08a 100644
--- a/stripe/params/_subscription_item_delete_params.py
+++ b/stripe/params/_subscription_item_delete_params.py
@@ -10,12 +10,7 @@ class SubscriptionItemDeleteParams(RequestOptions):
Delete all usage for the given subscription item. Allowed only when the current plan's `usage_type` is `metered`.
"""
payment_behavior: NotRequired[
- Literal[
- "allow_incomplete",
- "default_incomplete",
- "error_if_incomplete",
- "pending_if_incomplete",
- ]
+ "Literal['allow_incomplete', 'default_incomplete', 'error_if_incomplete', 'pending_if_incomplete']|str"
]
"""
Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`.
diff --git a/stripe/params/_subscription_item_modify_params.py b/stripe/params/_subscription_item_modify_params.py
index a80e011e3..2c79037d0 100644
--- a/stripe/params/_subscription_item_modify_params.py
+++ b/stripe/params/_subscription_item_modify_params.py
@@ -3,7 +3,7 @@
from decimal import Decimal
from stripe._request_options import RequestOptions
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List
+from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -35,12 +35,7 @@ class SubscriptionItemModifyParams(RequestOptions):
Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
"""
payment_behavior: NotRequired[
- Literal[
- "allow_incomplete",
- "default_incomplete",
- "error_if_incomplete",
- "pending_if_incomplete",
- ]
+ "Literal['allow_incomplete', 'default_incomplete', 'error_if_incomplete', 'pending_if_incomplete']|str"
]
"""
Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`.
@@ -112,7 +107,9 @@ class SubscriptionItemModifyParamsPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -127,7 +124,7 @@ class SubscriptionItemModifyParamsPriceData(TypedDict):
class SubscriptionItemModifyParamsPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_subscription_item_update_params.py b/stripe/params/_subscription_item_update_params.py
index 2b5b755a2..bfa2299eb 100644
--- a/stripe/params/_subscription_item_update_params.py
+++ b/stripe/params/_subscription_item_update_params.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from decimal import Decimal
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List
+from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -34,12 +34,7 @@ class SubscriptionItemUpdateParams(TypedDict):
Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
"""
payment_behavior: NotRequired[
- Literal[
- "allow_incomplete",
- "default_incomplete",
- "error_if_incomplete",
- "pending_if_incomplete",
- ]
+ "Literal['allow_incomplete', 'default_incomplete', 'error_if_incomplete', 'pending_if_incomplete']|str"
]
"""
Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`.
@@ -111,7 +106,9 @@ class SubscriptionItemUpdateParamsPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -126,7 +123,7 @@ class SubscriptionItemUpdateParamsPriceData(TypedDict):
class SubscriptionItemUpdateParamsPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_subscription_list_params.py b/stripe/params/_subscription_list_params.py
index 9a37127cb..b7f29119c 100644
--- a/stripe/params/_subscription_list_params.py
+++ b/stripe/params/_subscription_list_params.py
@@ -11,7 +11,7 @@ class SubscriptionListParams(RequestOptions):
Filter subscriptions by their automatic tax settings.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
diff --git a/stripe/params/_subscription_migrate_params.py b/stripe/params/_subscription_migrate_params.py
index fed3c5df5..7f763e31b 100644
--- a/stripe/params/_subscription_migrate_params.py
+++ b/stripe/params/_subscription_migrate_params.py
@@ -28,7 +28,7 @@ class SubscriptionMigrateParamsBillingMode(TypedDict):
class SubscriptionMigrateParamsBillingModeFlexible(TypedDict):
- proration_discounts: NotRequired[Literal["included", "itemized"]]
+ proration_discounts: NotRequired["Literal['included', 'itemized']|str"]
"""
Controls how invoices and invoice items display proration amounts and discount amounts.
"""
diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py
index ce5e3a2c2..ebc3779cd 100644
--- a/stripe/params/_subscription_modify_params.py
+++ b/stripe/params/_subscription_modify_params.py
@@ -22,7 +22,7 @@ class SubscriptionModifyParams(RequestOptions):
"""
Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
"""
- billing_cycle_anchor: NotRequired[Literal["now", "unchanged"]]
+ billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"]
"""
Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -30,7 +30,7 @@ class SubscriptionModifyParams(RequestOptions):
"Literal['']|List[SubscriptionModifyParamsBillingSchedule]"
]
"""
- Sets the billing schedules for the subscription.
+ An array of billing schedules, which allow you to bill customers in advance for multiple service periods. Requires flexible billing mode and API version 2026-05-27.dahlia or later. Learn more about [prebilling](https://docs.stripe.com/billing/subscriptions/prebilling).
"""
billing_thresholds: NotRequired[
"Literal['']|SubscriptionModifyParamsBillingThresholds"
@@ -55,7 +55,7 @@ class SubscriptionModifyParams(RequestOptions):
Details about why this subscription was cancelled
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
@@ -119,12 +119,7 @@ class SubscriptionModifyParams(RequestOptions):
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
"""
payment_behavior: NotRequired[
- Literal[
- "allow_incomplete",
- "default_incomplete",
- "error_if_incomplete",
- "pending_if_incomplete",
- ]
+ "Literal['allow_incomplete', 'default_incomplete', 'error_if_incomplete', 'pending_if_incomplete']|str"
]
"""
Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`.
@@ -263,7 +258,9 @@ class SubscriptionModifyParamsAddInvoiceItemPriceData(TypedDict):
"""
The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -308,7 +305,7 @@ class SubscriptionModifyParamsBillingSchedule(TypedDict):
"""
bill_until: NotRequired["SubscriptionModifyParamsBillingScheduleBillUntil"]
"""
- The end date for the billing schedule.
+ The end date for the billing schedule. You must not set this earlier than current period end for every applicable subscription item.
"""
key: NotRequired[str]
"""
@@ -345,7 +342,7 @@ class SubscriptionModifyParamsBillingScheduleBillUntil(TypedDict):
class SubscriptionModifyParamsBillingScheduleBillUntilDuration(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing duration. Either `day`, `week`, `month` or `year`.
"""
@@ -377,6 +374,10 @@ class SubscriptionModifyParamsCancellationDetails(TypedDict):
"""
The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
"""
+ feedback_option: NotRequired[str]
+ """
+ Customized feedback options that provide deeper insight into why the subscription was canceled, if the subscription was canceled explicitly by the user.
+ """
class SubscriptionModifyParamsDiscount(TypedDict):
@@ -529,7 +530,9 @@ class SubscriptionModifyParamsItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -544,7 +547,7 @@ class SubscriptionModifyParamsItemPriceData(TypedDict):
class SubscriptionModifyParamsItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
@@ -555,7 +558,9 @@ class SubscriptionModifyParamsItemPriceDataRecurring(TypedDict):
class SubscriptionModifyParamsPauseCollection(TypedDict):
- behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ behavior: Union[
+ Literal["keep_as_draft", "mark_uncollectible", "void"], str
+ ]
"""
The payment collection behavior for this subscription while paused.
"""
@@ -573,7 +578,7 @@ class SubscriptionModifyParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to invoices created by the subscription.
"""
payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
+ "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
@@ -599,6 +604,12 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
"""
+ billie: NotRequired[
+ "Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillie"
+ ]
+ """
+ This sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
+ """
card: NotRequired[
"Literal['']|SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard"
]
@@ -684,6 +695,12 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBancontact(
"""
+class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBillie(
+ TypedDict,
+):
+ pass
+
+
class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard(
TypedDict,
):
@@ -694,21 +711,7 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsCard(
Configuration options for setting up an eMandate for cards issued in India.
"""
network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ "Literal['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']|str"
]
"""
Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time.
@@ -913,7 +916,12 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -939,7 +947,7 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi
class SubscriptionModifyParamsPendingInvoiceItemInterval(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_subscription_schedule_create_params.py b/stripe/params/_subscription_schedule_create_params.py
index 87ac09983..f516084b5 100644
--- a/stripe/params/_subscription_schedule_create_params.py
+++ b/stripe/params/_subscription_schedule_create_params.py
@@ -70,7 +70,7 @@ class SubscriptionScheduleCreateParamsBillingMode(TypedDict):
class SubscriptionScheduleCreateParamsBillingModeFlexible(TypedDict):
- proration_discounts: NotRequired[Literal["included", "itemized"]]
+ proration_discounts: NotRequired["Literal['included', 'itemized']|str"]
"""
Controls how invoices and invoice items display proration amounts and discount amounts.
"""
@@ -87,7 +87,9 @@ class SubscriptionScheduleCreateParamsDefaultSettings(TypedDict):
"""
Default settings for automatic tax computation.
"""
- billing_cycle_anchor: NotRequired[Literal["automatic", "phase_start"]]
+ billing_cycle_anchor: NotRequired[
+ "Literal['automatic', 'phase_start']|str"
+ ]
"""
Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -98,7 +100,7 @@ class SubscriptionScheduleCreateParamsDefaultSettings(TypedDict):
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -246,7 +248,9 @@ class SubscriptionScheduleCreateParamsPhase(TypedDict):
"""
Automatic tax settings for this phase.
"""
- billing_cycle_anchor: NotRequired[Literal["automatic", "phase_start"]]
+ billing_cycle_anchor: NotRequired[
+ "Literal['automatic', 'phase_start']|str"
+ ]
"""
Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -257,7 +261,7 @@ class SubscriptionScheduleCreateParamsPhase(TypedDict):
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -434,7 +438,9 @@ class SubscriptionScheduleCreateParamsPhaseAddInvoiceItemPriceData(TypedDict):
"""
The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -499,7 +505,7 @@ class SubscriptionScheduleCreateParamsPhaseDiscount(TypedDict):
class SubscriptionScheduleCreateParamsPhaseDuration(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies phase duration. Either `day`, `week`, `month` or `year`.
"""
@@ -640,7 +646,9 @@ class SubscriptionScheduleCreateParamsPhaseItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -655,7 +663,7 @@ class SubscriptionScheduleCreateParamsPhaseItemPriceData(TypedDict):
class SubscriptionScheduleCreateParamsPhaseItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_subscription_schedule_modify_params.py b/stripe/params/_subscription_schedule_modify_params.py
index 10ec6ca64..4bf865c57 100644
--- a/stripe/params/_subscription_schedule_modify_params.py
+++ b/stripe/params/_subscription_schedule_modify_params.py
@@ -53,7 +53,9 @@ class SubscriptionScheduleModifyParamsDefaultSettings(TypedDict):
"""
Default settings for automatic tax computation.
"""
- billing_cycle_anchor: NotRequired[Literal["automatic", "phase_start"]]
+ billing_cycle_anchor: NotRequired[
+ "Literal['automatic', 'phase_start']|str"
+ ]
"""
Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -64,7 +66,7 @@ class SubscriptionScheduleModifyParamsDefaultSettings(TypedDict):
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -212,7 +214,9 @@ class SubscriptionScheduleModifyParamsPhase(TypedDict):
"""
Automatic tax settings for this phase.
"""
- billing_cycle_anchor: NotRequired[Literal["automatic", "phase_start"]]
+ billing_cycle_anchor: NotRequired[
+ "Literal['automatic', 'phase_start']|str"
+ ]
"""
Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -223,7 +227,7 @@ class SubscriptionScheduleModifyParamsPhase(TypedDict):
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -404,7 +408,9 @@ class SubscriptionScheduleModifyParamsPhaseAddInvoiceItemPriceData(TypedDict):
"""
The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -469,7 +475,7 @@ class SubscriptionScheduleModifyParamsPhaseDiscount(TypedDict):
class SubscriptionScheduleModifyParamsPhaseDuration(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies phase duration. Either `day`, `week`, `month` or `year`.
"""
@@ -610,7 +616,9 @@ class SubscriptionScheduleModifyParamsPhaseItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -625,7 +633,7 @@ class SubscriptionScheduleModifyParamsPhaseItemPriceData(TypedDict):
class SubscriptionScheduleModifyParamsPhaseItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_subscription_schedule_update_params.py b/stripe/params/_subscription_schedule_update_params.py
index 51b975cc9..e363a54f3 100644
--- a/stripe/params/_subscription_schedule_update_params.py
+++ b/stripe/params/_subscription_schedule_update_params.py
@@ -52,7 +52,9 @@ class SubscriptionScheduleUpdateParamsDefaultSettings(TypedDict):
"""
Default settings for automatic tax computation.
"""
- billing_cycle_anchor: NotRequired[Literal["automatic", "phase_start"]]
+ billing_cycle_anchor: NotRequired[
+ "Literal['automatic', 'phase_start']|str"
+ ]
"""
Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -63,7 +65,7 @@ class SubscriptionScheduleUpdateParamsDefaultSettings(TypedDict):
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -211,7 +213,9 @@ class SubscriptionScheduleUpdateParamsPhase(TypedDict):
"""
Automatic tax settings for this phase.
"""
- billing_cycle_anchor: NotRequired[Literal["automatic", "phase_start"]]
+ billing_cycle_anchor: NotRequired[
+ "Literal['automatic', 'phase_start']|str"
+ ]
"""
Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -222,7 +226,7 @@ class SubscriptionScheduleUpdateParamsPhase(TypedDict):
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
@@ -403,7 +407,9 @@ class SubscriptionScheduleUpdateParamsPhaseAddInvoiceItemPriceData(TypedDict):
"""
The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -468,7 +474,7 @@ class SubscriptionScheduleUpdateParamsPhaseDiscount(TypedDict):
class SubscriptionScheduleUpdateParamsPhaseDuration(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies phase duration. Either `day`, `week`, `month` or `year`.
"""
@@ -609,7 +615,9 @@ class SubscriptionScheduleUpdateParamsPhaseItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -624,7 +632,7 @@ class SubscriptionScheduleUpdateParamsPhaseItemPriceData(TypedDict):
class SubscriptionScheduleUpdateParamsPhaseItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py
index 0e5ee5a4a..a76150bab 100644
--- a/stripe/params/_subscription_update_params.py
+++ b/stripe/params/_subscription_update_params.py
@@ -21,7 +21,7 @@ class SubscriptionUpdateParams(TypedDict):
"""
Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
"""
- billing_cycle_anchor: NotRequired[Literal["now", "unchanged"]]
+ billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"]
"""
Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -29,7 +29,7 @@ class SubscriptionUpdateParams(TypedDict):
"Literal['']|List[SubscriptionUpdateParamsBillingSchedule]"
]
"""
- Sets the billing schedules for the subscription.
+ An array of billing schedules, which allow you to bill customers in advance for multiple service periods. Requires flexible billing mode and API version 2026-05-27.dahlia or later. Learn more about [prebilling](https://docs.stripe.com/billing/subscriptions/prebilling).
"""
billing_thresholds: NotRequired[
"Literal['']|SubscriptionUpdateParamsBillingThresholds"
@@ -54,7 +54,7 @@ class SubscriptionUpdateParams(TypedDict):
Details about why this subscription was cancelled
"""
collection_method: NotRequired[
- Literal["charge_automatically", "send_invoice"]
+ "Literal['charge_automatically', 'send_invoice']|str"
]
"""
Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically`.
@@ -118,12 +118,7 @@ class SubscriptionUpdateParams(TypedDict):
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
"""
payment_behavior: NotRequired[
- Literal[
- "allow_incomplete",
- "default_incomplete",
- "error_if_incomplete",
- "pending_if_incomplete",
- ]
+ "Literal['allow_incomplete', 'default_incomplete', 'error_if_incomplete', 'pending_if_incomplete']|str"
]
"""
Controls how Stripe handles payment when a subscription update requires payment and `collection_method=charge_automatically`.
@@ -262,7 +257,9 @@ class SubscriptionUpdateParamsAddInvoiceItemPriceData(TypedDict):
"""
The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -307,7 +304,7 @@ class SubscriptionUpdateParamsBillingSchedule(TypedDict):
"""
bill_until: NotRequired["SubscriptionUpdateParamsBillingScheduleBillUntil"]
"""
- The end date for the billing schedule.
+ The end date for the billing schedule. You must not set this earlier than current period end for every applicable subscription item.
"""
key: NotRequired[str]
"""
@@ -344,7 +341,7 @@ class SubscriptionUpdateParamsBillingScheduleBillUntil(TypedDict):
class SubscriptionUpdateParamsBillingScheduleBillUntilDuration(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing duration. Either `day`, `week`, `month` or `year`.
"""
@@ -376,6 +373,10 @@ class SubscriptionUpdateParamsCancellationDetails(TypedDict):
"""
The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user.
"""
+ feedback_option: NotRequired[str]
+ """
+ Customized feedback options that provide deeper insight into why the subscription was canceled, if the subscription was canceled explicitly by the user.
+ """
class SubscriptionUpdateParamsDiscount(TypedDict):
@@ -528,7 +529,9 @@ class SubscriptionUpdateParamsItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -543,7 +546,7 @@ class SubscriptionUpdateParamsItemPriceData(TypedDict):
class SubscriptionUpdateParamsItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
@@ -554,7 +557,9 @@ class SubscriptionUpdateParamsItemPriceDataRecurring(TypedDict):
class SubscriptionUpdateParamsPauseCollection(TypedDict):
- behavior: Literal["keep_as_draft", "mark_uncollectible", "void"]
+ behavior: Union[
+ Literal["keep_as_draft", "mark_uncollectible", "void"], str
+ ]
"""
The payment collection behavior for this subscription while paused.
"""
@@ -572,7 +577,7 @@ class SubscriptionUpdateParamsPaymentSettings(TypedDict):
Payment-method-specific configuration to provide to invoices created by the subscription.
"""
payment_method_types: NotRequired[
- "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
+ "Literal['']|List[Union[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'alipay', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'revolut_pay', 'satispay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay'], str]]"
]
"""
The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration
@@ -598,6 +603,12 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
"""
This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
"""
+ billie: NotRequired[
+ "Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillie"
+ ]
+ """
+ This sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
+ """
card: NotRequired[
"Literal['']|SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard"
]
@@ -683,6 +694,12 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact(
"""
+class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBillie(
+ TypedDict,
+):
+ pass
+
+
class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard(
TypedDict,
):
@@ -693,21 +710,7 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsCard(
Configuration options for setting up an eMandate for cards issued in India.
"""
network: NotRequired[
- Literal[
- "amex",
- "cartes_bancaires",
- "diners",
- "discover",
- "eftpos_au",
- "girocard",
- "interac",
- "jcb",
- "link",
- "mastercard",
- "unionpay",
- "unknown",
- "visa",
- ]
+ "Literal['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']|str"
]
"""
Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time.
@@ -912,7 +915,12 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi
"""
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -938,7 +946,7 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi
class SubscriptionUpdateParamsPendingInvoiceItemInterval(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/_tax_id_create_params.py b/stripe/params/_tax_id_create_params.py
index c526f282e..d2e45e779 100644
--- a/stripe/params/_tax_id_create_params.py
+++ b/stripe/params/_tax_id_create_params.py
@@ -14,124 +14,127 @@ class TaxIdCreateParams(RequestOptions):
"""
The account or customer the tax ID belongs to. Defaults to `owner[type]=self`.
"""
- type: Literal[
- "ad_nrt",
- "ae_trn",
- "al_tin",
- "am_tin",
- "ao_tin",
- "ar_cuit",
- "au_abn",
- "au_arn",
- "aw_tin",
- "az_tin",
- "ba_tin",
- "bb_tin",
- "bd_bin",
- "bf_ifu",
- "bg_uic",
- "bh_vat",
- "bj_ifu",
- "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",
- "cm_niu",
- "cn_tin",
- "co_nit",
- "cr_tin",
- "cv_nif",
- "de_stn",
- "do_rcn",
- "ec_ruc",
- "eg_tin",
- "es_cif",
- "et_tin",
- "eu_oss_vat",
- "eu_vat",
- "fo_vat",
- "gb_vat",
- "ge_vat",
- "gi_tin",
- "gn_nif",
- "hk_br",
- "hr_oib",
- "hu_tin",
- "ic_nif",
- "id_npwp",
- "il_vat",
- "in_gst",
- "is_vat",
- "it_cf",
- "jp_cn",
- "jp_rn",
- "jp_trn",
- "ke_pin",
- "kg_tin",
- "kh_tin",
- "kr_brn",
- "kz_bin",
- "la_tin",
- "li_uid",
- "li_vat",
- "lk_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",
- "pl_nip",
- "py_ruc",
- "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",
- "zw_tin",
+ type: Union[
+ Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "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",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "fo_vat",
+ "gb_vat",
+ "ge_vat",
+ "gi_tin",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "ic_nif",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "it_cf",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "lk_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",
+ "pl_nip",
+ "py_ruc",
+ "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",
+ "zw_tin",
+ ],
+ str,
]
"""
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `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`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `ic_nif`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_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`, `pl_nip`, `py_ruc`, `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`
diff --git a/stripe/params/_token_create_params.py b/stripe/params/_token_create_params.py
index 58e99785c..c12dbfaae 100644
--- a/stripe/params/_token_create_params.py
+++ b/stripe/params/_token_create_params.py
@@ -78,6 +78,9 @@ class TokenCreateParamsAccountCompany(TypedDict):
administrative_address: NotRequired[
"TokenCreateParamsAccountCompanyAdministrativeAddress"
]
+ """
+ The location where the business is administered.
+ """
directors_provided: NotRequired[bool]
"""
Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
@@ -139,6 +142,9 @@ class TokenCreateParamsAccountCompany(TypedDict):
principal_place_of_business: NotRequired[
"TokenCreateParamsAccountCompanyPrincipalPlaceOfBusiness"
]
+ """
+ The primary location where the business conducts operations.
+ """
registration_date: NotRequired[
"Literal['']|TokenCreateParamsAccountCompanyRegistrationDate"
]
@@ -703,7 +709,7 @@ class TokenCreateParamsBankAccount(TypedDict):
"""
The name of the person or business that owns the bank account. This field is required when attaching the bank account to a `Customer` object.
"""
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
"""
@@ -711,7 +717,9 @@ class TokenCreateParamsBankAccount(TypedDict):
"""
The account number for the bank account, in string form. Must be a checking account.
"""
- account_type: NotRequired[Literal["checking", "futsu", "savings", "toza"]]
+ account_type: NotRequired[
+ "Literal['checking', 'futsu', 'savings', 'toza']|str"
+ ]
"""
The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
"""
diff --git a/stripe/params/_topup_list_params.py b/stripe/params/_topup_list_params.py
index 1bac955d2..93a8fcef2 100644
--- a/stripe/params/_topup_list_params.py
+++ b/stripe/params/_topup_list_params.py
@@ -30,7 +30,9 @@ class TopupListParams(RequestOptions):
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
- status: NotRequired[Literal["canceled", "failed", "pending", "succeeded"]]
+ status: NotRequired[
+ "Literal['canceled', 'failed', 'pending', 'succeeded']|str"
+ ]
"""
Only return top-ups that have the given status. One of `canceled`, `failed`, `pending` or `succeeded`.
"""
diff --git a/stripe/params/_transfer_create_params.py b/stripe/params/_transfer_create_params.py
index 175817604..6bcf46a41 100644
--- a/stripe/params/_transfer_create_params.py
+++ b/stripe/params/_transfer_create_params.py
@@ -35,7 +35,7 @@ class TransferCreateParams(RequestOptions):
"""
You can use this parameter to transfer funds from a charge before they are added to your available balance. A pending balance will transfer immediately but the funds will not become available until the original charge becomes available. [See the Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-availability) for details.
"""
- source_type: NotRequired[Literal["bank_account", "card", "fpx"]]
+ source_type: NotRequired["Literal['bank_account', 'card', 'fpx']|str"]
"""
The source balance to use for this transfer. One of `bank_account`, `card`, or `fpx`. For most users, this will default to `card`.
"""
diff --git a/stripe/params/_webhook_endpoint_create_params.py b/stripe/params/_webhook_endpoint_create_params.py
index 785ab1c1c..0cf10fcfd 100644
--- a/stripe/params/_webhook_endpoint_create_params.py
+++ b/stripe/params/_webhook_endpoint_create_params.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List, Union
+from typing import Dict, List
from typing_extensions import Literal, NotRequired
@@ -135,6 +135,7 @@ class WebhookEndpointCreateParams(RequestOptions):
"2026-05-27.dahlia",
"2026-06-24.dahlia",
"2026-07-29.dahlia",
+ "2026-08-26.dahlia",
]
]
"""
@@ -149,276 +150,273 @@ class WebhookEndpointCreateParams(RequestOptions):
An optional description of what the webhook is used for.
"""
enabled_events: List[
- Union[
- Literal[
- "*",
- "account.application.authorized",
- "account.application.deauthorized",
- "account.external_account.created",
- "account.external_account.deleted",
- "account.external_account.updated",
- "account.updated",
- "application_fee.created",
- "application_fee.refund.updated",
- "application_fee.refunded",
- "balance.available",
- "balance_settings.updated",
- "billing.alert.triggered",
- "billing.credit_balance_transaction.created",
- "billing.credit_grant.created",
- "billing.credit_grant.updated",
- "billing.meter.created",
- "billing.meter.deactivated",
- "billing.meter.reactivated",
- "billing.meter.updated",
- "billing_portal.configuration.created",
- "billing_portal.configuration.updated",
- "billing_portal.session.created",
- "capability.updated",
- "cash_balance.funds_available",
- "charge.captured",
- "charge.dispute.closed",
- "charge.dispute.created",
- "charge.dispute.funds_reinstated",
- "charge.dispute.funds_withdrawn",
- "charge.dispute.updated",
- "charge.expired",
- "charge.failed",
- "charge.pending",
- "charge.refund.updated",
- "charge.refunded",
- "charge.succeeded",
- "charge.updated",
- "checkout.session.async_payment_failed",
- "checkout.session.async_payment_succeeded",
- "checkout.session.completed",
- "checkout.session.expired",
- "climate.order.canceled",
- "climate.order.created",
- "climate.order.delayed",
- "climate.order.delivered",
- "climate.order.product_substituted",
- "climate.product.created",
- "climate.product.pricing_updated",
- "coupon.created",
- "coupon.deleted",
- "coupon.updated",
- "credit_note.created",
- "credit_note.updated",
- "credit_note.voided",
- "customer.created",
- "customer.deleted",
- "customer.discount.created",
- "customer.discount.deleted",
- "customer.discount.updated",
- "customer.source.created",
- "customer.source.deleted",
- "customer.source.expiring",
- "customer.source.updated",
- "customer.subscription.created",
- "customer.subscription.deleted",
- "customer.subscription.paused",
- "customer.subscription.pending_update_applied",
- "customer.subscription.pending_update_expired",
- "customer.subscription.resumed",
- "customer.subscription.trial_will_end",
- "customer.subscription.updated",
- "customer.tax_id.created",
- "customer.tax_id.deleted",
- "customer.tax_id.updated",
- "customer.updated",
- "customer_cash_balance_transaction.created",
- "entitlements.active_entitlement_summary.updated",
- "file.created",
- "financial_connections.account.account_numbers_updated",
- "financial_connections.account.created",
- "financial_connections.account.deactivated",
- "financial_connections.account.disconnected",
- "financial_connections.account.expected_deactivation_date_updated",
- "financial_connections.account.reactivated",
- "financial_connections.account.refreshed_balance",
- "financial_connections.account.refreshed_ownership",
- "financial_connections.account.refreshed_transactions",
- "financial_connections.account.supported_payment_method_types_updated",
- "financial_connections.account.upcoming_account_number_expiry",
- "financial_connections.account.upcoming_deactivation",
- "financial_connections.authorization.expected_deactivation_date_updated",
- "financial_connections.authorization.upcoming_deactivation",
- "identity.verification_session.canceled",
- "identity.verification_session.created",
- "identity.verification_session.processing",
- "identity.verification_session.redacted",
- "identity.verification_session.requires_input",
- "identity.verification_session.verified",
- "invoice.created",
- "invoice.deleted",
- "invoice.finalization_failed",
- "invoice.finalized",
- "invoice.marked_uncollectible",
- "invoice.overdue",
- "invoice.overpaid",
- "invoice.paid",
- "invoice.payment_action_required",
- "invoice.payment_attempt_required",
- "invoice.payment_failed",
- "invoice.payment_succeeded",
- "invoice.sent",
- "invoice.upcoming",
- "invoice.updated",
- "invoice.voided",
- "invoice.will_be_due",
- "invoice_payment.paid",
- "invoiceitem.created",
- "invoiceitem.deleted",
- "issuing_authorization.created",
- "issuing_authorization.request",
- "issuing_authorization.updated",
- "issuing_card.created",
- "issuing_card.updated",
- "issuing_cardholder.created",
- "issuing_cardholder.updated",
- "issuing_dispute.closed",
- "issuing_dispute.created",
- "issuing_dispute.funds_reinstated",
- "issuing_dispute.funds_rescinded",
- "issuing_dispute.submitted",
- "issuing_dispute.updated",
- "issuing_personalization_design.activated",
- "issuing_personalization_design.deactivated",
- "issuing_personalization_design.rejected",
- "issuing_personalization_design.updated",
- "issuing_token.created",
- "issuing_token.updated",
- "issuing_transaction.created",
- "issuing_transaction.purchase_details_receipt_updated",
- "issuing_transaction.updated",
- "mandate.updated",
- "payment_intent.amount_capturable_updated",
- "payment_intent.canceled",
- "payment_intent.created",
- "payment_intent.partially_funded",
- "payment_intent.payment_failed",
- "payment_intent.processing",
- "payment_intent.requires_action",
- "payment_intent.succeeded",
- "payment_link.created",
- "payment_link.updated",
- "payment_method.attached",
- "payment_method.automatically_updated",
- "payment_method.detached",
- "payment_method.updated",
- "payout.canceled",
- "payout.created",
- "payout.failed",
- "payout.paid",
- "payout.reconciliation_completed",
- "payout.updated",
- "person.created",
- "person.deleted",
- "person.updated",
- "plan.created",
- "plan.deleted",
- "plan.updated",
- "price.created",
- "price.deleted",
- "price.updated",
- "product.created",
- "product.deleted",
- "product.updated",
- "promotion_code.created",
- "promotion_code.updated",
- "quote.accepted",
- "quote.canceled",
- "quote.created",
- "quote.finalized",
- "radar.early_fraud_warning.created",
- "radar.early_fraud_warning.updated",
- "refund.created",
- "refund.failed",
- "refund.updated",
- "reporting.report_run.failed",
- "reporting.report_run.succeeded",
- "reporting.report_type.updated",
- "reserve.hold.created",
- "reserve.hold.updated",
- "reserve.plan.created",
- "reserve.plan.disabled",
- "reserve.plan.expired",
- "reserve.plan.updated",
- "reserve.release.created",
- "review.closed",
- "review.opened",
- "setup_intent.canceled",
- "setup_intent.created",
- "setup_intent.requires_action",
- "setup_intent.setup_failed",
- "setup_intent.succeeded",
- "sigma.scheduled_query_run.created",
- "source.canceled",
- "source.chargeable",
- "source.failed",
- "source.mandate_notification",
- "source.refund_attributes_required",
- "source.transaction.created",
- "source.transaction.updated",
- "subscription_schedule.aborted",
- "subscription_schedule.canceled",
- "subscription_schedule.completed",
- "subscription_schedule.created",
- "subscription_schedule.expiring",
- "subscription_schedule.released",
- "subscription_schedule.updated",
- "tax.settings.updated",
- "tax_rate.created",
- "tax_rate.updated",
- "terminal.reader.action_failed",
- "terminal.reader.action_succeeded",
- "terminal.reader.action_updated",
- "test_helpers.test_clock.advancing",
- "test_helpers.test_clock.created",
- "test_helpers.test_clock.deleted",
- "test_helpers.test_clock.internal_failure",
- "test_helpers.test_clock.ready",
- "topup.canceled",
- "topup.created",
- "topup.failed",
- "topup.reversed",
- "topup.succeeded",
- "transfer.created",
- "transfer.reversed",
- "transfer.updated",
- "treasury.credit_reversal.created",
- "treasury.credit_reversal.posted",
- "treasury.debit_reversal.completed",
- "treasury.debit_reversal.created",
- "treasury.debit_reversal.initial_credit_granted",
- "treasury.financial_account.closed",
- "treasury.financial_account.created",
- "treasury.financial_account.features_status_updated",
- "treasury.inbound_transfer.canceled",
- "treasury.inbound_transfer.created",
- "treasury.inbound_transfer.failed",
- "treasury.inbound_transfer.succeeded",
- "treasury.outbound_payment.canceled",
- "treasury.outbound_payment.created",
- "treasury.outbound_payment.expected_arrival_date_updated",
- "treasury.outbound_payment.failed",
- "treasury.outbound_payment.posted",
- "treasury.outbound_payment.returned",
- "treasury.outbound_payment.tracking_details_updated",
- "treasury.outbound_transfer.canceled",
- "treasury.outbound_transfer.created",
- "treasury.outbound_transfer.expected_arrival_date_updated",
- "treasury.outbound_transfer.failed",
- "treasury.outbound_transfer.posted",
- "treasury.outbound_transfer.returned",
- "treasury.outbound_transfer.tracking_details_updated",
- "treasury.received_credit.created",
- "treasury.received_credit.failed",
- "treasury.received_credit.succeeded",
- "treasury.received_debit.created",
- ],
- str,
+ Literal[
+ "*",
+ "account.application.authorized",
+ "account.application.deauthorized",
+ "account.external_account.created",
+ "account.external_account.deleted",
+ "account.external_account.updated",
+ "account.updated",
+ "application_fee.created",
+ "application_fee.refund.updated",
+ "application_fee.refunded",
+ "balance.available",
+ "balance_settings.updated",
+ "billing.alert.triggered",
+ "billing.credit_balance_transaction.created",
+ "billing.credit_grant.created",
+ "billing.credit_grant.updated",
+ "billing.meter.created",
+ "billing.meter.deactivated",
+ "billing.meter.reactivated",
+ "billing.meter.updated",
+ "billing_portal.configuration.created",
+ "billing_portal.configuration.updated",
+ "billing_portal.session.created",
+ "capability.updated",
+ "cash_balance.funds_available",
+ "charge.captured",
+ "charge.dispute.closed",
+ "charge.dispute.created",
+ "charge.dispute.funds_reinstated",
+ "charge.dispute.funds_withdrawn",
+ "charge.dispute.updated",
+ "charge.expired",
+ "charge.failed",
+ "charge.pending",
+ "charge.refund.updated",
+ "charge.refunded",
+ "charge.succeeded",
+ "charge.updated",
+ "checkout.session.async_payment_failed",
+ "checkout.session.async_payment_succeeded",
+ "checkout.session.completed",
+ "checkout.session.expired",
+ "climate.order.canceled",
+ "climate.order.created",
+ "climate.order.delayed",
+ "climate.order.delivered",
+ "climate.order.product_substituted",
+ "climate.product.created",
+ "climate.product.pricing_updated",
+ "coupon.created",
+ "coupon.deleted",
+ "coupon.updated",
+ "credit_note.created",
+ "credit_note.updated",
+ "credit_note.voided",
+ "customer.created",
+ "customer.deleted",
+ "customer.discount.created",
+ "customer.discount.deleted",
+ "customer.discount.updated",
+ "customer.source.created",
+ "customer.source.deleted",
+ "customer.source.expiring",
+ "customer.source.updated",
+ "customer.subscription.created",
+ "customer.subscription.deleted",
+ "customer.subscription.paused",
+ "customer.subscription.pending_update_applied",
+ "customer.subscription.pending_update_expired",
+ "customer.subscription.resumed",
+ "customer.subscription.trial_will_end",
+ "customer.subscription.updated",
+ "customer.tax_id.created",
+ "customer.tax_id.deleted",
+ "customer.tax_id.updated",
+ "customer.updated",
+ "customer_cash_balance_transaction.created",
+ "entitlements.active_entitlement_summary.updated",
+ "file.created",
+ "financial_connections.account.account_numbers_updated",
+ "financial_connections.account.created",
+ "financial_connections.account.deactivated",
+ "financial_connections.account.disconnected",
+ "financial_connections.account.expected_deactivation_date_updated",
+ "financial_connections.account.reactivated",
+ "financial_connections.account.refreshed_balance",
+ "financial_connections.account.refreshed_ownership",
+ "financial_connections.account.refreshed_transactions",
+ "financial_connections.account.supported_payment_method_types_updated",
+ "financial_connections.account.upcoming_account_number_expiry",
+ "financial_connections.account.upcoming_deactivation",
+ "financial_connections.authorization.expected_deactivation_date_updated",
+ "financial_connections.authorization.upcoming_deactivation",
+ "identity.verification_session.canceled",
+ "identity.verification_session.created",
+ "identity.verification_session.processing",
+ "identity.verification_session.redacted",
+ "identity.verification_session.requires_input",
+ "identity.verification_session.verified",
+ "invoice.created",
+ "invoice.deleted",
+ "invoice.finalization_failed",
+ "invoice.finalized",
+ "invoice.marked_uncollectible",
+ "invoice.overdue",
+ "invoice.overpaid",
+ "invoice.paid",
+ "invoice.payment_action_required",
+ "invoice.payment_attempt_required",
+ "invoice.payment_failed",
+ "invoice.payment_succeeded",
+ "invoice.sent",
+ "invoice.upcoming",
+ "invoice.updated",
+ "invoice.voided",
+ "invoice.will_be_due",
+ "invoice_payment.paid",
+ "invoiceitem.created",
+ "invoiceitem.deleted",
+ "issuing_authorization.created",
+ "issuing_authorization.request",
+ "issuing_authorization.updated",
+ "issuing_card.created",
+ "issuing_card.updated",
+ "issuing_cardholder.created",
+ "issuing_cardholder.updated",
+ "issuing_dispute.closed",
+ "issuing_dispute.created",
+ "issuing_dispute.funds_reinstated",
+ "issuing_dispute.funds_rescinded",
+ "issuing_dispute.submitted",
+ "issuing_dispute.updated",
+ "issuing_personalization_design.activated",
+ "issuing_personalization_design.deactivated",
+ "issuing_personalization_design.rejected",
+ "issuing_personalization_design.updated",
+ "issuing_token.created",
+ "issuing_token.updated",
+ "issuing_transaction.created",
+ "issuing_transaction.purchase_details_receipt_updated",
+ "issuing_transaction.updated",
+ "mandate.updated",
+ "payment_intent.amount_capturable_updated",
+ "payment_intent.canceled",
+ "payment_intent.created",
+ "payment_intent.partially_funded",
+ "payment_intent.payment_failed",
+ "payment_intent.processing",
+ "payment_intent.requires_action",
+ "payment_intent.succeeded",
+ "payment_link.created",
+ "payment_link.updated",
+ "payment_method.attached",
+ "payment_method.automatically_updated",
+ "payment_method.detached",
+ "payment_method.updated",
+ "payout.canceled",
+ "payout.created",
+ "payout.failed",
+ "payout.paid",
+ "payout.reconciliation_completed",
+ "payout.updated",
+ "person.created",
+ "person.deleted",
+ "person.updated",
+ "plan.created",
+ "plan.deleted",
+ "plan.updated",
+ "price.created",
+ "price.deleted",
+ "price.updated",
+ "product.created",
+ "product.deleted",
+ "product.updated",
+ "promotion_code.created",
+ "promotion_code.updated",
+ "quote.accepted",
+ "quote.canceled",
+ "quote.created",
+ "quote.finalized",
+ "radar.early_fraud_warning.created",
+ "radar.early_fraud_warning.updated",
+ "refund.created",
+ "refund.failed",
+ "refund.updated",
+ "reporting.report_run.failed",
+ "reporting.report_run.succeeded",
+ "reporting.report_type.updated",
+ "reserve.hold.created",
+ "reserve.hold.updated",
+ "reserve.plan.created",
+ "reserve.plan.disabled",
+ "reserve.plan.expired",
+ "reserve.plan.updated",
+ "reserve.release.created",
+ "review.closed",
+ "review.opened",
+ "setup_intent.canceled",
+ "setup_intent.created",
+ "setup_intent.requires_action",
+ "setup_intent.setup_failed",
+ "setup_intent.succeeded",
+ "sigma.scheduled_query_run.created",
+ "source.canceled",
+ "source.chargeable",
+ "source.failed",
+ "source.mandate_notification",
+ "source.refund_attributes_required",
+ "source.transaction.created",
+ "source.transaction.updated",
+ "subscription_schedule.aborted",
+ "subscription_schedule.canceled",
+ "subscription_schedule.completed",
+ "subscription_schedule.created",
+ "subscription_schedule.expiring",
+ "subscription_schedule.released",
+ "subscription_schedule.updated",
+ "tax.settings.updated",
+ "tax_rate.created",
+ "tax_rate.updated",
+ "terminal.reader.action_failed",
+ "terminal.reader.action_succeeded",
+ "terminal.reader.action_updated",
+ "test_helpers.test_clock.advancing",
+ "test_helpers.test_clock.created",
+ "test_helpers.test_clock.deleted",
+ "test_helpers.test_clock.internal_failure",
+ "test_helpers.test_clock.ready",
+ "topup.canceled",
+ "topup.created",
+ "topup.failed",
+ "topup.reversed",
+ "topup.succeeded",
+ "transfer.created",
+ "transfer.reversed",
+ "transfer.updated",
+ "treasury.credit_reversal.created",
+ "treasury.credit_reversal.posted",
+ "treasury.debit_reversal.completed",
+ "treasury.debit_reversal.created",
+ "treasury.debit_reversal.initial_credit_granted",
+ "treasury.financial_account.closed",
+ "treasury.financial_account.created",
+ "treasury.financial_account.features_status_updated",
+ "treasury.inbound_transfer.canceled",
+ "treasury.inbound_transfer.created",
+ "treasury.inbound_transfer.failed",
+ "treasury.inbound_transfer.succeeded",
+ "treasury.outbound_payment.canceled",
+ "treasury.outbound_payment.created",
+ "treasury.outbound_payment.expected_arrival_date_updated",
+ "treasury.outbound_payment.failed",
+ "treasury.outbound_payment.posted",
+ "treasury.outbound_payment.returned",
+ "treasury.outbound_payment.tracking_details_updated",
+ "treasury.outbound_transfer.canceled",
+ "treasury.outbound_transfer.created",
+ "treasury.outbound_transfer.expected_arrival_date_updated",
+ "treasury.outbound_transfer.failed",
+ "treasury.outbound_transfer.posted",
+ "treasury.outbound_transfer.returned",
+ "treasury.outbound_transfer.tracking_details_updated",
+ "treasury.received_credit.created",
+ "treasury.received_credit.failed",
+ "treasury.received_credit.succeeded",
+ "treasury.received_debit.created",
]
]
"""
diff --git a/stripe/params/_webhook_endpoint_modify_params.py b/stripe/params/_webhook_endpoint_modify_params.py
index d45d87e0a..80b294a40 100644
--- a/stripe/params/_webhook_endpoint_modify_params.py
+++ b/stripe/params/_webhook_endpoint_modify_params.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List, Union
+from typing import Dict, List
from typing_extensions import Literal, NotRequired
@@ -17,276 +17,273 @@ class WebhookEndpointModifyParams(RequestOptions):
"""
enabled_events: NotRequired[
List[
- Union[
- Literal[
- "*",
- "account.application.authorized",
- "account.application.deauthorized",
- "account.external_account.created",
- "account.external_account.deleted",
- "account.external_account.updated",
- "account.updated",
- "application_fee.created",
- "application_fee.refund.updated",
- "application_fee.refunded",
- "balance.available",
- "balance_settings.updated",
- "billing.alert.triggered",
- "billing.credit_balance_transaction.created",
- "billing.credit_grant.created",
- "billing.credit_grant.updated",
- "billing.meter.created",
- "billing.meter.deactivated",
- "billing.meter.reactivated",
- "billing.meter.updated",
- "billing_portal.configuration.created",
- "billing_portal.configuration.updated",
- "billing_portal.session.created",
- "capability.updated",
- "cash_balance.funds_available",
- "charge.captured",
- "charge.dispute.closed",
- "charge.dispute.created",
- "charge.dispute.funds_reinstated",
- "charge.dispute.funds_withdrawn",
- "charge.dispute.updated",
- "charge.expired",
- "charge.failed",
- "charge.pending",
- "charge.refund.updated",
- "charge.refunded",
- "charge.succeeded",
- "charge.updated",
- "checkout.session.async_payment_failed",
- "checkout.session.async_payment_succeeded",
- "checkout.session.completed",
- "checkout.session.expired",
- "climate.order.canceled",
- "climate.order.created",
- "climate.order.delayed",
- "climate.order.delivered",
- "climate.order.product_substituted",
- "climate.product.created",
- "climate.product.pricing_updated",
- "coupon.created",
- "coupon.deleted",
- "coupon.updated",
- "credit_note.created",
- "credit_note.updated",
- "credit_note.voided",
- "customer.created",
- "customer.deleted",
- "customer.discount.created",
- "customer.discount.deleted",
- "customer.discount.updated",
- "customer.source.created",
- "customer.source.deleted",
- "customer.source.expiring",
- "customer.source.updated",
- "customer.subscription.created",
- "customer.subscription.deleted",
- "customer.subscription.paused",
- "customer.subscription.pending_update_applied",
- "customer.subscription.pending_update_expired",
- "customer.subscription.resumed",
- "customer.subscription.trial_will_end",
- "customer.subscription.updated",
- "customer.tax_id.created",
- "customer.tax_id.deleted",
- "customer.tax_id.updated",
- "customer.updated",
- "customer_cash_balance_transaction.created",
- "entitlements.active_entitlement_summary.updated",
- "file.created",
- "financial_connections.account.account_numbers_updated",
- "financial_connections.account.created",
- "financial_connections.account.deactivated",
- "financial_connections.account.disconnected",
- "financial_connections.account.expected_deactivation_date_updated",
- "financial_connections.account.reactivated",
- "financial_connections.account.refreshed_balance",
- "financial_connections.account.refreshed_ownership",
- "financial_connections.account.refreshed_transactions",
- "financial_connections.account.supported_payment_method_types_updated",
- "financial_connections.account.upcoming_account_number_expiry",
- "financial_connections.account.upcoming_deactivation",
- "financial_connections.authorization.expected_deactivation_date_updated",
- "financial_connections.authorization.upcoming_deactivation",
- "identity.verification_session.canceled",
- "identity.verification_session.created",
- "identity.verification_session.processing",
- "identity.verification_session.redacted",
- "identity.verification_session.requires_input",
- "identity.verification_session.verified",
- "invoice.created",
- "invoice.deleted",
- "invoice.finalization_failed",
- "invoice.finalized",
- "invoice.marked_uncollectible",
- "invoice.overdue",
- "invoice.overpaid",
- "invoice.paid",
- "invoice.payment_action_required",
- "invoice.payment_attempt_required",
- "invoice.payment_failed",
- "invoice.payment_succeeded",
- "invoice.sent",
- "invoice.upcoming",
- "invoice.updated",
- "invoice.voided",
- "invoice.will_be_due",
- "invoice_payment.paid",
- "invoiceitem.created",
- "invoiceitem.deleted",
- "issuing_authorization.created",
- "issuing_authorization.request",
- "issuing_authorization.updated",
- "issuing_card.created",
- "issuing_card.updated",
- "issuing_cardholder.created",
- "issuing_cardholder.updated",
- "issuing_dispute.closed",
- "issuing_dispute.created",
- "issuing_dispute.funds_reinstated",
- "issuing_dispute.funds_rescinded",
- "issuing_dispute.submitted",
- "issuing_dispute.updated",
- "issuing_personalization_design.activated",
- "issuing_personalization_design.deactivated",
- "issuing_personalization_design.rejected",
- "issuing_personalization_design.updated",
- "issuing_token.created",
- "issuing_token.updated",
- "issuing_transaction.created",
- "issuing_transaction.purchase_details_receipt_updated",
- "issuing_transaction.updated",
- "mandate.updated",
- "payment_intent.amount_capturable_updated",
- "payment_intent.canceled",
- "payment_intent.created",
- "payment_intent.partially_funded",
- "payment_intent.payment_failed",
- "payment_intent.processing",
- "payment_intent.requires_action",
- "payment_intent.succeeded",
- "payment_link.created",
- "payment_link.updated",
- "payment_method.attached",
- "payment_method.automatically_updated",
- "payment_method.detached",
- "payment_method.updated",
- "payout.canceled",
- "payout.created",
- "payout.failed",
- "payout.paid",
- "payout.reconciliation_completed",
- "payout.updated",
- "person.created",
- "person.deleted",
- "person.updated",
- "plan.created",
- "plan.deleted",
- "plan.updated",
- "price.created",
- "price.deleted",
- "price.updated",
- "product.created",
- "product.deleted",
- "product.updated",
- "promotion_code.created",
- "promotion_code.updated",
- "quote.accepted",
- "quote.canceled",
- "quote.created",
- "quote.finalized",
- "radar.early_fraud_warning.created",
- "radar.early_fraud_warning.updated",
- "refund.created",
- "refund.failed",
- "refund.updated",
- "reporting.report_run.failed",
- "reporting.report_run.succeeded",
- "reporting.report_type.updated",
- "reserve.hold.created",
- "reserve.hold.updated",
- "reserve.plan.created",
- "reserve.plan.disabled",
- "reserve.plan.expired",
- "reserve.plan.updated",
- "reserve.release.created",
- "review.closed",
- "review.opened",
- "setup_intent.canceled",
- "setup_intent.created",
- "setup_intent.requires_action",
- "setup_intent.setup_failed",
- "setup_intent.succeeded",
- "sigma.scheduled_query_run.created",
- "source.canceled",
- "source.chargeable",
- "source.failed",
- "source.mandate_notification",
- "source.refund_attributes_required",
- "source.transaction.created",
- "source.transaction.updated",
- "subscription_schedule.aborted",
- "subscription_schedule.canceled",
- "subscription_schedule.completed",
- "subscription_schedule.created",
- "subscription_schedule.expiring",
- "subscription_schedule.released",
- "subscription_schedule.updated",
- "tax.settings.updated",
- "tax_rate.created",
- "tax_rate.updated",
- "terminal.reader.action_failed",
- "terminal.reader.action_succeeded",
- "terminal.reader.action_updated",
- "test_helpers.test_clock.advancing",
- "test_helpers.test_clock.created",
- "test_helpers.test_clock.deleted",
- "test_helpers.test_clock.internal_failure",
- "test_helpers.test_clock.ready",
- "topup.canceled",
- "topup.created",
- "topup.failed",
- "topup.reversed",
- "topup.succeeded",
- "transfer.created",
- "transfer.reversed",
- "transfer.updated",
- "treasury.credit_reversal.created",
- "treasury.credit_reversal.posted",
- "treasury.debit_reversal.completed",
- "treasury.debit_reversal.created",
- "treasury.debit_reversal.initial_credit_granted",
- "treasury.financial_account.closed",
- "treasury.financial_account.created",
- "treasury.financial_account.features_status_updated",
- "treasury.inbound_transfer.canceled",
- "treasury.inbound_transfer.created",
- "treasury.inbound_transfer.failed",
- "treasury.inbound_transfer.succeeded",
- "treasury.outbound_payment.canceled",
- "treasury.outbound_payment.created",
- "treasury.outbound_payment.expected_arrival_date_updated",
- "treasury.outbound_payment.failed",
- "treasury.outbound_payment.posted",
- "treasury.outbound_payment.returned",
- "treasury.outbound_payment.tracking_details_updated",
- "treasury.outbound_transfer.canceled",
- "treasury.outbound_transfer.created",
- "treasury.outbound_transfer.expected_arrival_date_updated",
- "treasury.outbound_transfer.failed",
- "treasury.outbound_transfer.posted",
- "treasury.outbound_transfer.returned",
- "treasury.outbound_transfer.tracking_details_updated",
- "treasury.received_credit.created",
- "treasury.received_credit.failed",
- "treasury.received_credit.succeeded",
- "treasury.received_debit.created",
- ],
- str,
+ Literal[
+ "*",
+ "account.application.authorized",
+ "account.application.deauthorized",
+ "account.external_account.created",
+ "account.external_account.deleted",
+ "account.external_account.updated",
+ "account.updated",
+ "application_fee.created",
+ "application_fee.refund.updated",
+ "application_fee.refunded",
+ "balance.available",
+ "balance_settings.updated",
+ "billing.alert.triggered",
+ "billing.credit_balance_transaction.created",
+ "billing.credit_grant.created",
+ "billing.credit_grant.updated",
+ "billing.meter.created",
+ "billing.meter.deactivated",
+ "billing.meter.reactivated",
+ "billing.meter.updated",
+ "billing_portal.configuration.created",
+ "billing_portal.configuration.updated",
+ "billing_portal.session.created",
+ "capability.updated",
+ "cash_balance.funds_available",
+ "charge.captured",
+ "charge.dispute.closed",
+ "charge.dispute.created",
+ "charge.dispute.funds_reinstated",
+ "charge.dispute.funds_withdrawn",
+ "charge.dispute.updated",
+ "charge.expired",
+ "charge.failed",
+ "charge.pending",
+ "charge.refund.updated",
+ "charge.refunded",
+ "charge.succeeded",
+ "charge.updated",
+ "checkout.session.async_payment_failed",
+ "checkout.session.async_payment_succeeded",
+ "checkout.session.completed",
+ "checkout.session.expired",
+ "climate.order.canceled",
+ "climate.order.created",
+ "climate.order.delayed",
+ "climate.order.delivered",
+ "climate.order.product_substituted",
+ "climate.product.created",
+ "climate.product.pricing_updated",
+ "coupon.created",
+ "coupon.deleted",
+ "coupon.updated",
+ "credit_note.created",
+ "credit_note.updated",
+ "credit_note.voided",
+ "customer.created",
+ "customer.deleted",
+ "customer.discount.created",
+ "customer.discount.deleted",
+ "customer.discount.updated",
+ "customer.source.created",
+ "customer.source.deleted",
+ "customer.source.expiring",
+ "customer.source.updated",
+ "customer.subscription.created",
+ "customer.subscription.deleted",
+ "customer.subscription.paused",
+ "customer.subscription.pending_update_applied",
+ "customer.subscription.pending_update_expired",
+ "customer.subscription.resumed",
+ "customer.subscription.trial_will_end",
+ "customer.subscription.updated",
+ "customer.tax_id.created",
+ "customer.tax_id.deleted",
+ "customer.tax_id.updated",
+ "customer.updated",
+ "customer_cash_balance_transaction.created",
+ "entitlements.active_entitlement_summary.updated",
+ "file.created",
+ "financial_connections.account.account_numbers_updated",
+ "financial_connections.account.created",
+ "financial_connections.account.deactivated",
+ "financial_connections.account.disconnected",
+ "financial_connections.account.expected_deactivation_date_updated",
+ "financial_connections.account.reactivated",
+ "financial_connections.account.refreshed_balance",
+ "financial_connections.account.refreshed_ownership",
+ "financial_connections.account.refreshed_transactions",
+ "financial_connections.account.supported_payment_method_types_updated",
+ "financial_connections.account.upcoming_account_number_expiry",
+ "financial_connections.account.upcoming_deactivation",
+ "financial_connections.authorization.expected_deactivation_date_updated",
+ "financial_connections.authorization.upcoming_deactivation",
+ "identity.verification_session.canceled",
+ "identity.verification_session.created",
+ "identity.verification_session.processing",
+ "identity.verification_session.redacted",
+ "identity.verification_session.requires_input",
+ "identity.verification_session.verified",
+ "invoice.created",
+ "invoice.deleted",
+ "invoice.finalization_failed",
+ "invoice.finalized",
+ "invoice.marked_uncollectible",
+ "invoice.overdue",
+ "invoice.overpaid",
+ "invoice.paid",
+ "invoice.payment_action_required",
+ "invoice.payment_attempt_required",
+ "invoice.payment_failed",
+ "invoice.payment_succeeded",
+ "invoice.sent",
+ "invoice.upcoming",
+ "invoice.updated",
+ "invoice.voided",
+ "invoice.will_be_due",
+ "invoice_payment.paid",
+ "invoiceitem.created",
+ "invoiceitem.deleted",
+ "issuing_authorization.created",
+ "issuing_authorization.request",
+ "issuing_authorization.updated",
+ "issuing_card.created",
+ "issuing_card.updated",
+ "issuing_cardholder.created",
+ "issuing_cardholder.updated",
+ "issuing_dispute.closed",
+ "issuing_dispute.created",
+ "issuing_dispute.funds_reinstated",
+ "issuing_dispute.funds_rescinded",
+ "issuing_dispute.submitted",
+ "issuing_dispute.updated",
+ "issuing_personalization_design.activated",
+ "issuing_personalization_design.deactivated",
+ "issuing_personalization_design.rejected",
+ "issuing_personalization_design.updated",
+ "issuing_token.created",
+ "issuing_token.updated",
+ "issuing_transaction.created",
+ "issuing_transaction.purchase_details_receipt_updated",
+ "issuing_transaction.updated",
+ "mandate.updated",
+ "payment_intent.amount_capturable_updated",
+ "payment_intent.canceled",
+ "payment_intent.created",
+ "payment_intent.partially_funded",
+ "payment_intent.payment_failed",
+ "payment_intent.processing",
+ "payment_intent.requires_action",
+ "payment_intent.succeeded",
+ "payment_link.created",
+ "payment_link.updated",
+ "payment_method.attached",
+ "payment_method.automatically_updated",
+ "payment_method.detached",
+ "payment_method.updated",
+ "payout.canceled",
+ "payout.created",
+ "payout.failed",
+ "payout.paid",
+ "payout.reconciliation_completed",
+ "payout.updated",
+ "person.created",
+ "person.deleted",
+ "person.updated",
+ "plan.created",
+ "plan.deleted",
+ "plan.updated",
+ "price.created",
+ "price.deleted",
+ "price.updated",
+ "product.created",
+ "product.deleted",
+ "product.updated",
+ "promotion_code.created",
+ "promotion_code.updated",
+ "quote.accepted",
+ "quote.canceled",
+ "quote.created",
+ "quote.finalized",
+ "radar.early_fraud_warning.created",
+ "radar.early_fraud_warning.updated",
+ "refund.created",
+ "refund.failed",
+ "refund.updated",
+ "reporting.report_run.failed",
+ "reporting.report_run.succeeded",
+ "reporting.report_type.updated",
+ "reserve.hold.created",
+ "reserve.hold.updated",
+ "reserve.plan.created",
+ "reserve.plan.disabled",
+ "reserve.plan.expired",
+ "reserve.plan.updated",
+ "reserve.release.created",
+ "review.closed",
+ "review.opened",
+ "setup_intent.canceled",
+ "setup_intent.created",
+ "setup_intent.requires_action",
+ "setup_intent.setup_failed",
+ "setup_intent.succeeded",
+ "sigma.scheduled_query_run.created",
+ "source.canceled",
+ "source.chargeable",
+ "source.failed",
+ "source.mandate_notification",
+ "source.refund_attributes_required",
+ "source.transaction.created",
+ "source.transaction.updated",
+ "subscription_schedule.aborted",
+ "subscription_schedule.canceled",
+ "subscription_schedule.completed",
+ "subscription_schedule.created",
+ "subscription_schedule.expiring",
+ "subscription_schedule.released",
+ "subscription_schedule.updated",
+ "tax.settings.updated",
+ "tax_rate.created",
+ "tax_rate.updated",
+ "terminal.reader.action_failed",
+ "terminal.reader.action_succeeded",
+ "terminal.reader.action_updated",
+ "test_helpers.test_clock.advancing",
+ "test_helpers.test_clock.created",
+ "test_helpers.test_clock.deleted",
+ "test_helpers.test_clock.internal_failure",
+ "test_helpers.test_clock.ready",
+ "topup.canceled",
+ "topup.created",
+ "topup.failed",
+ "topup.reversed",
+ "topup.succeeded",
+ "transfer.created",
+ "transfer.reversed",
+ "transfer.updated",
+ "treasury.credit_reversal.created",
+ "treasury.credit_reversal.posted",
+ "treasury.debit_reversal.completed",
+ "treasury.debit_reversal.created",
+ "treasury.debit_reversal.initial_credit_granted",
+ "treasury.financial_account.closed",
+ "treasury.financial_account.created",
+ "treasury.financial_account.features_status_updated",
+ "treasury.inbound_transfer.canceled",
+ "treasury.inbound_transfer.created",
+ "treasury.inbound_transfer.failed",
+ "treasury.inbound_transfer.succeeded",
+ "treasury.outbound_payment.canceled",
+ "treasury.outbound_payment.created",
+ "treasury.outbound_payment.expected_arrival_date_updated",
+ "treasury.outbound_payment.failed",
+ "treasury.outbound_payment.posted",
+ "treasury.outbound_payment.returned",
+ "treasury.outbound_payment.tracking_details_updated",
+ "treasury.outbound_transfer.canceled",
+ "treasury.outbound_transfer.created",
+ "treasury.outbound_transfer.expected_arrival_date_updated",
+ "treasury.outbound_transfer.failed",
+ "treasury.outbound_transfer.posted",
+ "treasury.outbound_transfer.returned",
+ "treasury.outbound_transfer.tracking_details_updated",
+ "treasury.received_credit.created",
+ "treasury.received_credit.failed",
+ "treasury.received_credit.succeeded",
+ "treasury.received_debit.created",
]
]
]
diff --git a/stripe/params/_webhook_endpoint_update_params.py b/stripe/params/_webhook_endpoint_update_params.py
index 03a6e176a..5c37f6f69 100644
--- a/stripe/params/_webhook_endpoint_update_params.py
+++ b/stripe/params/_webhook_endpoint_update_params.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List, Union
+from typing import Dict, List
from typing_extensions import Literal, NotRequired, TypedDict
@@ -16,276 +16,273 @@ class WebhookEndpointUpdateParams(TypedDict):
"""
enabled_events: NotRequired[
List[
- Union[
- Literal[
- "*",
- "account.application.authorized",
- "account.application.deauthorized",
- "account.external_account.created",
- "account.external_account.deleted",
- "account.external_account.updated",
- "account.updated",
- "application_fee.created",
- "application_fee.refund.updated",
- "application_fee.refunded",
- "balance.available",
- "balance_settings.updated",
- "billing.alert.triggered",
- "billing.credit_balance_transaction.created",
- "billing.credit_grant.created",
- "billing.credit_grant.updated",
- "billing.meter.created",
- "billing.meter.deactivated",
- "billing.meter.reactivated",
- "billing.meter.updated",
- "billing_portal.configuration.created",
- "billing_portal.configuration.updated",
- "billing_portal.session.created",
- "capability.updated",
- "cash_balance.funds_available",
- "charge.captured",
- "charge.dispute.closed",
- "charge.dispute.created",
- "charge.dispute.funds_reinstated",
- "charge.dispute.funds_withdrawn",
- "charge.dispute.updated",
- "charge.expired",
- "charge.failed",
- "charge.pending",
- "charge.refund.updated",
- "charge.refunded",
- "charge.succeeded",
- "charge.updated",
- "checkout.session.async_payment_failed",
- "checkout.session.async_payment_succeeded",
- "checkout.session.completed",
- "checkout.session.expired",
- "climate.order.canceled",
- "climate.order.created",
- "climate.order.delayed",
- "climate.order.delivered",
- "climate.order.product_substituted",
- "climate.product.created",
- "climate.product.pricing_updated",
- "coupon.created",
- "coupon.deleted",
- "coupon.updated",
- "credit_note.created",
- "credit_note.updated",
- "credit_note.voided",
- "customer.created",
- "customer.deleted",
- "customer.discount.created",
- "customer.discount.deleted",
- "customer.discount.updated",
- "customer.source.created",
- "customer.source.deleted",
- "customer.source.expiring",
- "customer.source.updated",
- "customer.subscription.created",
- "customer.subscription.deleted",
- "customer.subscription.paused",
- "customer.subscription.pending_update_applied",
- "customer.subscription.pending_update_expired",
- "customer.subscription.resumed",
- "customer.subscription.trial_will_end",
- "customer.subscription.updated",
- "customer.tax_id.created",
- "customer.tax_id.deleted",
- "customer.tax_id.updated",
- "customer.updated",
- "customer_cash_balance_transaction.created",
- "entitlements.active_entitlement_summary.updated",
- "file.created",
- "financial_connections.account.account_numbers_updated",
- "financial_connections.account.created",
- "financial_connections.account.deactivated",
- "financial_connections.account.disconnected",
- "financial_connections.account.expected_deactivation_date_updated",
- "financial_connections.account.reactivated",
- "financial_connections.account.refreshed_balance",
- "financial_connections.account.refreshed_ownership",
- "financial_connections.account.refreshed_transactions",
- "financial_connections.account.supported_payment_method_types_updated",
- "financial_connections.account.upcoming_account_number_expiry",
- "financial_connections.account.upcoming_deactivation",
- "financial_connections.authorization.expected_deactivation_date_updated",
- "financial_connections.authorization.upcoming_deactivation",
- "identity.verification_session.canceled",
- "identity.verification_session.created",
- "identity.verification_session.processing",
- "identity.verification_session.redacted",
- "identity.verification_session.requires_input",
- "identity.verification_session.verified",
- "invoice.created",
- "invoice.deleted",
- "invoice.finalization_failed",
- "invoice.finalized",
- "invoice.marked_uncollectible",
- "invoice.overdue",
- "invoice.overpaid",
- "invoice.paid",
- "invoice.payment_action_required",
- "invoice.payment_attempt_required",
- "invoice.payment_failed",
- "invoice.payment_succeeded",
- "invoice.sent",
- "invoice.upcoming",
- "invoice.updated",
- "invoice.voided",
- "invoice.will_be_due",
- "invoice_payment.paid",
- "invoiceitem.created",
- "invoiceitem.deleted",
- "issuing_authorization.created",
- "issuing_authorization.request",
- "issuing_authorization.updated",
- "issuing_card.created",
- "issuing_card.updated",
- "issuing_cardholder.created",
- "issuing_cardholder.updated",
- "issuing_dispute.closed",
- "issuing_dispute.created",
- "issuing_dispute.funds_reinstated",
- "issuing_dispute.funds_rescinded",
- "issuing_dispute.submitted",
- "issuing_dispute.updated",
- "issuing_personalization_design.activated",
- "issuing_personalization_design.deactivated",
- "issuing_personalization_design.rejected",
- "issuing_personalization_design.updated",
- "issuing_token.created",
- "issuing_token.updated",
- "issuing_transaction.created",
- "issuing_transaction.purchase_details_receipt_updated",
- "issuing_transaction.updated",
- "mandate.updated",
- "payment_intent.amount_capturable_updated",
- "payment_intent.canceled",
- "payment_intent.created",
- "payment_intent.partially_funded",
- "payment_intent.payment_failed",
- "payment_intent.processing",
- "payment_intent.requires_action",
- "payment_intent.succeeded",
- "payment_link.created",
- "payment_link.updated",
- "payment_method.attached",
- "payment_method.automatically_updated",
- "payment_method.detached",
- "payment_method.updated",
- "payout.canceled",
- "payout.created",
- "payout.failed",
- "payout.paid",
- "payout.reconciliation_completed",
- "payout.updated",
- "person.created",
- "person.deleted",
- "person.updated",
- "plan.created",
- "plan.deleted",
- "plan.updated",
- "price.created",
- "price.deleted",
- "price.updated",
- "product.created",
- "product.deleted",
- "product.updated",
- "promotion_code.created",
- "promotion_code.updated",
- "quote.accepted",
- "quote.canceled",
- "quote.created",
- "quote.finalized",
- "radar.early_fraud_warning.created",
- "radar.early_fraud_warning.updated",
- "refund.created",
- "refund.failed",
- "refund.updated",
- "reporting.report_run.failed",
- "reporting.report_run.succeeded",
- "reporting.report_type.updated",
- "reserve.hold.created",
- "reserve.hold.updated",
- "reserve.plan.created",
- "reserve.plan.disabled",
- "reserve.plan.expired",
- "reserve.plan.updated",
- "reserve.release.created",
- "review.closed",
- "review.opened",
- "setup_intent.canceled",
- "setup_intent.created",
- "setup_intent.requires_action",
- "setup_intent.setup_failed",
- "setup_intent.succeeded",
- "sigma.scheduled_query_run.created",
- "source.canceled",
- "source.chargeable",
- "source.failed",
- "source.mandate_notification",
- "source.refund_attributes_required",
- "source.transaction.created",
- "source.transaction.updated",
- "subscription_schedule.aborted",
- "subscription_schedule.canceled",
- "subscription_schedule.completed",
- "subscription_schedule.created",
- "subscription_schedule.expiring",
- "subscription_schedule.released",
- "subscription_schedule.updated",
- "tax.settings.updated",
- "tax_rate.created",
- "tax_rate.updated",
- "terminal.reader.action_failed",
- "terminal.reader.action_succeeded",
- "terminal.reader.action_updated",
- "test_helpers.test_clock.advancing",
- "test_helpers.test_clock.created",
- "test_helpers.test_clock.deleted",
- "test_helpers.test_clock.internal_failure",
- "test_helpers.test_clock.ready",
- "topup.canceled",
- "topup.created",
- "topup.failed",
- "topup.reversed",
- "topup.succeeded",
- "transfer.created",
- "transfer.reversed",
- "transfer.updated",
- "treasury.credit_reversal.created",
- "treasury.credit_reversal.posted",
- "treasury.debit_reversal.completed",
- "treasury.debit_reversal.created",
- "treasury.debit_reversal.initial_credit_granted",
- "treasury.financial_account.closed",
- "treasury.financial_account.created",
- "treasury.financial_account.features_status_updated",
- "treasury.inbound_transfer.canceled",
- "treasury.inbound_transfer.created",
- "treasury.inbound_transfer.failed",
- "treasury.inbound_transfer.succeeded",
- "treasury.outbound_payment.canceled",
- "treasury.outbound_payment.created",
- "treasury.outbound_payment.expected_arrival_date_updated",
- "treasury.outbound_payment.failed",
- "treasury.outbound_payment.posted",
- "treasury.outbound_payment.returned",
- "treasury.outbound_payment.tracking_details_updated",
- "treasury.outbound_transfer.canceled",
- "treasury.outbound_transfer.created",
- "treasury.outbound_transfer.expected_arrival_date_updated",
- "treasury.outbound_transfer.failed",
- "treasury.outbound_transfer.posted",
- "treasury.outbound_transfer.returned",
- "treasury.outbound_transfer.tracking_details_updated",
- "treasury.received_credit.created",
- "treasury.received_credit.failed",
- "treasury.received_credit.succeeded",
- "treasury.received_debit.created",
- ],
- str,
+ Literal[
+ "*",
+ "account.application.authorized",
+ "account.application.deauthorized",
+ "account.external_account.created",
+ "account.external_account.deleted",
+ "account.external_account.updated",
+ "account.updated",
+ "application_fee.created",
+ "application_fee.refund.updated",
+ "application_fee.refunded",
+ "balance.available",
+ "balance_settings.updated",
+ "billing.alert.triggered",
+ "billing.credit_balance_transaction.created",
+ "billing.credit_grant.created",
+ "billing.credit_grant.updated",
+ "billing.meter.created",
+ "billing.meter.deactivated",
+ "billing.meter.reactivated",
+ "billing.meter.updated",
+ "billing_portal.configuration.created",
+ "billing_portal.configuration.updated",
+ "billing_portal.session.created",
+ "capability.updated",
+ "cash_balance.funds_available",
+ "charge.captured",
+ "charge.dispute.closed",
+ "charge.dispute.created",
+ "charge.dispute.funds_reinstated",
+ "charge.dispute.funds_withdrawn",
+ "charge.dispute.updated",
+ "charge.expired",
+ "charge.failed",
+ "charge.pending",
+ "charge.refund.updated",
+ "charge.refunded",
+ "charge.succeeded",
+ "charge.updated",
+ "checkout.session.async_payment_failed",
+ "checkout.session.async_payment_succeeded",
+ "checkout.session.completed",
+ "checkout.session.expired",
+ "climate.order.canceled",
+ "climate.order.created",
+ "climate.order.delayed",
+ "climate.order.delivered",
+ "climate.order.product_substituted",
+ "climate.product.created",
+ "climate.product.pricing_updated",
+ "coupon.created",
+ "coupon.deleted",
+ "coupon.updated",
+ "credit_note.created",
+ "credit_note.updated",
+ "credit_note.voided",
+ "customer.created",
+ "customer.deleted",
+ "customer.discount.created",
+ "customer.discount.deleted",
+ "customer.discount.updated",
+ "customer.source.created",
+ "customer.source.deleted",
+ "customer.source.expiring",
+ "customer.source.updated",
+ "customer.subscription.created",
+ "customer.subscription.deleted",
+ "customer.subscription.paused",
+ "customer.subscription.pending_update_applied",
+ "customer.subscription.pending_update_expired",
+ "customer.subscription.resumed",
+ "customer.subscription.trial_will_end",
+ "customer.subscription.updated",
+ "customer.tax_id.created",
+ "customer.tax_id.deleted",
+ "customer.tax_id.updated",
+ "customer.updated",
+ "customer_cash_balance_transaction.created",
+ "entitlements.active_entitlement_summary.updated",
+ "file.created",
+ "financial_connections.account.account_numbers_updated",
+ "financial_connections.account.created",
+ "financial_connections.account.deactivated",
+ "financial_connections.account.disconnected",
+ "financial_connections.account.expected_deactivation_date_updated",
+ "financial_connections.account.reactivated",
+ "financial_connections.account.refreshed_balance",
+ "financial_connections.account.refreshed_ownership",
+ "financial_connections.account.refreshed_transactions",
+ "financial_connections.account.supported_payment_method_types_updated",
+ "financial_connections.account.upcoming_account_number_expiry",
+ "financial_connections.account.upcoming_deactivation",
+ "financial_connections.authorization.expected_deactivation_date_updated",
+ "financial_connections.authorization.upcoming_deactivation",
+ "identity.verification_session.canceled",
+ "identity.verification_session.created",
+ "identity.verification_session.processing",
+ "identity.verification_session.redacted",
+ "identity.verification_session.requires_input",
+ "identity.verification_session.verified",
+ "invoice.created",
+ "invoice.deleted",
+ "invoice.finalization_failed",
+ "invoice.finalized",
+ "invoice.marked_uncollectible",
+ "invoice.overdue",
+ "invoice.overpaid",
+ "invoice.paid",
+ "invoice.payment_action_required",
+ "invoice.payment_attempt_required",
+ "invoice.payment_failed",
+ "invoice.payment_succeeded",
+ "invoice.sent",
+ "invoice.upcoming",
+ "invoice.updated",
+ "invoice.voided",
+ "invoice.will_be_due",
+ "invoice_payment.paid",
+ "invoiceitem.created",
+ "invoiceitem.deleted",
+ "issuing_authorization.created",
+ "issuing_authorization.request",
+ "issuing_authorization.updated",
+ "issuing_card.created",
+ "issuing_card.updated",
+ "issuing_cardholder.created",
+ "issuing_cardholder.updated",
+ "issuing_dispute.closed",
+ "issuing_dispute.created",
+ "issuing_dispute.funds_reinstated",
+ "issuing_dispute.funds_rescinded",
+ "issuing_dispute.submitted",
+ "issuing_dispute.updated",
+ "issuing_personalization_design.activated",
+ "issuing_personalization_design.deactivated",
+ "issuing_personalization_design.rejected",
+ "issuing_personalization_design.updated",
+ "issuing_token.created",
+ "issuing_token.updated",
+ "issuing_transaction.created",
+ "issuing_transaction.purchase_details_receipt_updated",
+ "issuing_transaction.updated",
+ "mandate.updated",
+ "payment_intent.amount_capturable_updated",
+ "payment_intent.canceled",
+ "payment_intent.created",
+ "payment_intent.partially_funded",
+ "payment_intent.payment_failed",
+ "payment_intent.processing",
+ "payment_intent.requires_action",
+ "payment_intent.succeeded",
+ "payment_link.created",
+ "payment_link.updated",
+ "payment_method.attached",
+ "payment_method.automatically_updated",
+ "payment_method.detached",
+ "payment_method.updated",
+ "payout.canceled",
+ "payout.created",
+ "payout.failed",
+ "payout.paid",
+ "payout.reconciliation_completed",
+ "payout.updated",
+ "person.created",
+ "person.deleted",
+ "person.updated",
+ "plan.created",
+ "plan.deleted",
+ "plan.updated",
+ "price.created",
+ "price.deleted",
+ "price.updated",
+ "product.created",
+ "product.deleted",
+ "product.updated",
+ "promotion_code.created",
+ "promotion_code.updated",
+ "quote.accepted",
+ "quote.canceled",
+ "quote.created",
+ "quote.finalized",
+ "radar.early_fraud_warning.created",
+ "radar.early_fraud_warning.updated",
+ "refund.created",
+ "refund.failed",
+ "refund.updated",
+ "reporting.report_run.failed",
+ "reporting.report_run.succeeded",
+ "reporting.report_type.updated",
+ "reserve.hold.created",
+ "reserve.hold.updated",
+ "reserve.plan.created",
+ "reserve.plan.disabled",
+ "reserve.plan.expired",
+ "reserve.plan.updated",
+ "reserve.release.created",
+ "review.closed",
+ "review.opened",
+ "setup_intent.canceled",
+ "setup_intent.created",
+ "setup_intent.requires_action",
+ "setup_intent.setup_failed",
+ "setup_intent.succeeded",
+ "sigma.scheduled_query_run.created",
+ "source.canceled",
+ "source.chargeable",
+ "source.failed",
+ "source.mandate_notification",
+ "source.refund_attributes_required",
+ "source.transaction.created",
+ "source.transaction.updated",
+ "subscription_schedule.aborted",
+ "subscription_schedule.canceled",
+ "subscription_schedule.completed",
+ "subscription_schedule.created",
+ "subscription_schedule.expiring",
+ "subscription_schedule.released",
+ "subscription_schedule.updated",
+ "tax.settings.updated",
+ "tax_rate.created",
+ "tax_rate.updated",
+ "terminal.reader.action_failed",
+ "terminal.reader.action_succeeded",
+ "terminal.reader.action_updated",
+ "test_helpers.test_clock.advancing",
+ "test_helpers.test_clock.created",
+ "test_helpers.test_clock.deleted",
+ "test_helpers.test_clock.internal_failure",
+ "test_helpers.test_clock.ready",
+ "topup.canceled",
+ "topup.created",
+ "topup.failed",
+ "topup.reversed",
+ "topup.succeeded",
+ "transfer.created",
+ "transfer.reversed",
+ "transfer.updated",
+ "treasury.credit_reversal.created",
+ "treasury.credit_reversal.posted",
+ "treasury.debit_reversal.completed",
+ "treasury.debit_reversal.created",
+ "treasury.debit_reversal.initial_credit_granted",
+ "treasury.financial_account.closed",
+ "treasury.financial_account.created",
+ "treasury.financial_account.features_status_updated",
+ "treasury.inbound_transfer.canceled",
+ "treasury.inbound_transfer.created",
+ "treasury.inbound_transfer.failed",
+ "treasury.inbound_transfer.succeeded",
+ "treasury.outbound_payment.canceled",
+ "treasury.outbound_payment.created",
+ "treasury.outbound_payment.expected_arrival_date_updated",
+ "treasury.outbound_payment.failed",
+ "treasury.outbound_payment.posted",
+ "treasury.outbound_payment.returned",
+ "treasury.outbound_payment.tracking_details_updated",
+ "treasury.outbound_transfer.canceled",
+ "treasury.outbound_transfer.created",
+ "treasury.outbound_transfer.expected_arrival_date_updated",
+ "treasury.outbound_transfer.failed",
+ "treasury.outbound_transfer.posted",
+ "treasury.outbound_transfer.returned",
+ "treasury.outbound_transfer.tracking_details_updated",
+ "treasury.received_credit.created",
+ "treasury.received_credit.failed",
+ "treasury.received_credit.succeeded",
+ "treasury.received_debit.created",
]
]
]
diff --git a/stripe/params/billing/__init__.py b/stripe/params/billing/__init__.py
index 29df82a75..8bab30af2 100644
--- a/stripe/params/billing/__init__.py
+++ b/stripe/params/billing/__init__.py
@@ -62,6 +62,24 @@
from stripe.params.billing._credit_grant_void_grant_params import (
CreditGrantVoidGrantParams as CreditGrantVoidGrantParams,
)
+ from stripe.params.billing._feedback_option_create_params import (
+ FeedbackOptionCreateParams as FeedbackOptionCreateParams,
+ )
+ from stripe.params.billing._feedback_option_deactivate_params import (
+ FeedbackOptionDeactivateParams as FeedbackOptionDeactivateParams,
+ )
+ from stripe.params.billing._feedback_option_list_params import (
+ FeedbackOptionListParams as FeedbackOptionListParams,
+ )
+ from stripe.params.billing._feedback_option_modify_params import (
+ FeedbackOptionModifyParams as FeedbackOptionModifyParams,
+ )
+ from stripe.params.billing._feedback_option_retrieve_params import (
+ FeedbackOptionRetrieveParams as FeedbackOptionRetrieveParams,
+ )
+ from stripe.params.billing._feedback_option_update_params import (
+ FeedbackOptionUpdateParams as FeedbackOptionUpdateParams,
+ )
from stripe.params.billing._meter_create_params import (
MeterCreateParams as MeterCreateParams,
MeterCreateParamsCustomerMapping as MeterCreateParamsCustomerMapping,
@@ -200,6 +218,30 @@
"stripe.params.billing._credit_grant_void_grant_params",
False,
),
+ "FeedbackOptionCreateParams": (
+ "stripe.params.billing._feedback_option_create_params",
+ False,
+ ),
+ "FeedbackOptionDeactivateParams": (
+ "stripe.params.billing._feedback_option_deactivate_params",
+ False,
+ ),
+ "FeedbackOptionListParams": (
+ "stripe.params.billing._feedback_option_list_params",
+ False,
+ ),
+ "FeedbackOptionModifyParams": (
+ "stripe.params.billing._feedback_option_modify_params",
+ False,
+ ),
+ "FeedbackOptionRetrieveParams": (
+ "stripe.params.billing._feedback_option_retrieve_params",
+ False,
+ ),
+ "FeedbackOptionUpdateParams": (
+ "stripe.params.billing._feedback_option_update_params",
+ False,
+ ),
"MeterCreateParams": ("stripe.params.billing._meter_create_params", False),
"MeterCreateParamsCustomerMapping": (
"stripe.params.billing._meter_create_params",
diff --git a/stripe/params/billing/_feedback_option_create_params.py b/stripe/params/billing/_feedback_option_create_params.py
new file mode 100644
index 000000000..5676db13f
--- /dev/null
+++ b/stripe/params/billing/_feedback_option_create_params.py
@@ -0,0 +1,13 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FeedbackOptionCreateParams(RequestOptions):
+ description: str
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/billing/_feedback_option_deactivate_params.py b/stripe/params/billing/_feedback_option_deactivate_params.py
new file mode 100644
index 000000000..6dad454c8
--- /dev/null
+++ b/stripe/params/billing/_feedback_option_deactivate_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FeedbackOptionDeactivateParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/billing/_feedback_option_list_params.py b/stripe/params/billing/_feedback_option_list_params.py
new file mode 100644
index 000000000..9031f58d0
--- /dev/null
+++ b/stripe/params/billing/_feedback_option_list_params.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import Literal, NotRequired
+
+
+class FeedbackOptionListParams(RequestOptions):
+ ending_before: NotRequired[str]
+ """
+ A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
+ """
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
+ limit: NotRequired[int]
+ """
+ A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
+ """
+ starting_after: NotRequired[str]
+ """
+ A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
+ """
+ status: NotRequired[Literal["active", "inactive"]]
+ """
+ Filter results to only include feedback options with the given status.
+ """
diff --git a/stripe/params/billing/_feedback_option_modify_params.py b/stripe/params/billing/_feedback_option_modify_params.py
new file mode 100644
index 000000000..a84f24863
--- /dev/null
+++ b/stripe/params/billing/_feedback_option_modify_params.py
@@ -0,0 +1,13 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FeedbackOptionModifyParams(RequestOptions):
+ description: NotRequired[str]
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/billing/_feedback_option_retrieve_params.py b/stripe/params/billing/_feedback_option_retrieve_params.py
new file mode 100644
index 000000000..36bc95531
--- /dev/null
+++ b/stripe/params/billing/_feedback_option_retrieve_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from stripe._request_options import RequestOptions
+from typing import List
+from typing_extensions import NotRequired
+
+
+class FeedbackOptionRetrieveParams(RequestOptions):
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/billing/_feedback_option_update_params.py b/stripe/params/billing/_feedback_option_update_params.py
new file mode 100644
index 000000000..29704b4a7
--- /dev/null
+++ b/stripe/params/billing/_feedback_option_update_params.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# File generated from our OpenAPI spec
+from typing import List
+from typing_extensions import NotRequired, TypedDict
+
+
+class FeedbackOptionUpdateParams(TypedDict):
+ description: NotRequired[str]
+ expand: NotRequired[List[str]]
+ """
+ Specifies which fields in the response should be expanded.
+ """
diff --git a/stripe/params/billing_portal/_configuration_create_params.py b/stripe/params/billing_portal/_configuration_create_params.py
index 9ae894d2a..305b11dc0 100644
--- a/stripe/params/billing_portal/_configuration_create_params.py
+++ b/stripe/params/billing_portal/_configuration_create_params.py
@@ -132,7 +132,7 @@ class ConfigurationCreateParamsFeaturesSubscriptionCancel(TypedDict):
Whether to cancel subscriptions immediately or at the end of the billing period.
"""
proration_behavior: NotRequired[
- Literal["always_invoice", "create_prorations", "none"]
+ "Literal['always_invoice', 'create_prorations', 'none']|str"
]
"""
Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. Passing `always_invoice` will result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period.
@@ -146,6 +146,10 @@ class ConfigurationCreateParamsFeaturesSubscriptionCancelCancellationReason(
"""
Whether the feature is enabled.
"""
+ feedback_options: NotRequired["Literal['']|List[str]"]
+ """
+ The IDs of custom feedback options to use for this cancellation reason.
+ """
options: Union[
Literal[""],
List[
@@ -170,7 +174,7 @@ class ConfigurationCreateParamsFeaturesSubscriptionCancelCancellationReason(
class ConfigurationCreateParamsFeaturesSubscriptionUpdate(TypedDict):
- billing_cycle_anchor: NotRequired[Literal["now", "unchanged"]]
+ billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"]
"""
Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -191,7 +195,7 @@ class ConfigurationCreateParamsFeaturesSubscriptionUpdate(TypedDict):
The list of up to 10 products that support subscription updates.
"""
proration_behavior: NotRequired[
- Literal["always_invoice", "create_prorations", "none"]
+ "Literal['always_invoice', 'create_prorations', 'none']|str"
]
"""
Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
diff --git a/stripe/params/billing_portal/_configuration_modify_params.py b/stripe/params/billing_portal/_configuration_modify_params.py
index 39434ee1d..36fed1907 100644
--- a/stripe/params/billing_portal/_configuration_modify_params.py
+++ b/stripe/params/billing_portal/_configuration_modify_params.py
@@ -138,7 +138,7 @@ class ConfigurationModifyParamsFeaturesSubscriptionCancel(TypedDict):
Whether to cancel subscriptions immediately or at the end of the billing period.
"""
proration_behavior: NotRequired[
- Literal["always_invoice", "create_prorations", "none"]
+ "Literal['always_invoice', 'create_prorations', 'none']|str"
]
"""
Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. Passing `always_invoice` will result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period.
@@ -152,6 +152,10 @@ class ConfigurationModifyParamsFeaturesSubscriptionCancelCancellationReason(
"""
Whether the feature is enabled.
"""
+ feedback_options: NotRequired["Literal['']|List[str]"]
+ """
+ The IDs of custom feedback options to use for this cancellation reason.
+ """
options: NotRequired[
"Literal['']|List[Union[Literal['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused'], str]]"
]
@@ -161,7 +165,7 @@ class ConfigurationModifyParamsFeaturesSubscriptionCancelCancellationReason(
class ConfigurationModifyParamsFeaturesSubscriptionUpdate(TypedDict):
- billing_cycle_anchor: NotRequired[Literal["now", "unchanged"]]
+ billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"]
"""
Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -182,7 +186,7 @@ class ConfigurationModifyParamsFeaturesSubscriptionUpdate(TypedDict):
The list of up to 10 products that support subscription updates.
"""
proration_behavior: NotRequired[
- Literal["always_invoice", "create_prorations", "none"]
+ "Literal['always_invoice', 'create_prorations', 'none']|str"
]
"""
Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
diff --git a/stripe/params/billing_portal/_configuration_update_params.py b/stripe/params/billing_portal/_configuration_update_params.py
index 51d4f28be..a0baba565 100644
--- a/stripe/params/billing_portal/_configuration_update_params.py
+++ b/stripe/params/billing_portal/_configuration_update_params.py
@@ -137,7 +137,7 @@ class ConfigurationUpdateParamsFeaturesSubscriptionCancel(TypedDict):
Whether to cancel subscriptions immediately or at the end of the billing period.
"""
proration_behavior: NotRequired[
- Literal["always_invoice", "create_prorations", "none"]
+ "Literal['always_invoice', 'create_prorations', 'none']|str"
]
"""
Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. Passing `always_invoice` will result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period.
@@ -151,6 +151,10 @@ class ConfigurationUpdateParamsFeaturesSubscriptionCancelCancellationReason(
"""
Whether the feature is enabled.
"""
+ feedback_options: NotRequired["Literal['']|List[str]"]
+ """
+ The IDs of custom feedback options to use for this cancellation reason.
+ """
options: NotRequired[
"Literal['']|List[Union[Literal['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused'], str]]"
]
@@ -160,7 +164,7 @@ class ConfigurationUpdateParamsFeaturesSubscriptionCancelCancellationReason(
class ConfigurationUpdateParamsFeaturesSubscriptionUpdate(TypedDict):
- billing_cycle_anchor: NotRequired[Literal["now", "unchanged"]]
+ billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"]
"""
Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
"""
@@ -181,7 +185,7 @@ class ConfigurationUpdateParamsFeaturesSubscriptionUpdate(TypedDict):
The list of up to 10 products that support subscription updates.
"""
proration_behavior: NotRequired[
- Literal["always_invoice", "create_prorations", "none"]
+ "Literal['always_invoice', 'create_prorations', 'none']|str"
]
"""
Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
diff --git a/stripe/params/billing_portal/_session_create_params.py b/stripe/params/billing_portal/_session_create_params.py
index 3d35c999a..6e712458a 100644
--- a/stripe/params/billing_portal/_session_create_params.py
+++ b/stripe/params/billing_portal/_session_create_params.py
@@ -67,6 +67,7 @@ class SessionCreateParamsFlowData(TypedDict):
"""
type: Union[
Literal[
+ "customer_update",
"payment_method_update",
"subscription_cancel",
"subscription_update",
diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py
index b6c10e552..bb1904127 100644
--- a/stripe/params/checkout/_session_create_params.py
+++ b/stripe/params/checkout/_session_create_params.py
@@ -605,7 +605,7 @@ class SessionCreateParamsCustomField(TypedDict):
class SessionCreateParamsCustomFieldDropdown(TypedDict):
default_value: NotRequired[str]
"""
- The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
+ The value that pre-fills the field on the payment page. Must match a `value` in the `options` array.
"""
options: List["SessionCreateParamsCustomFieldDropdownOption"]
"""
@@ -816,7 +816,7 @@ class SessionCreateParamsInvoiceCreationInvoiceDataIssuer(TypedDict):
class SessionCreateParamsInvoiceCreationInvoiceDataRenderingOptions(TypedDict):
amount_tax_display: NotRequired[
- "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
+ "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']|str"
]
"""
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
@@ -890,7 +890,9 @@ class SessionCreateParamsLineItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -932,7 +934,7 @@ class SessionCreateParamsLineItemPriceDataProductData(TypedDict):
class SessionCreateParamsLineItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
@@ -1045,26 +1047,17 @@ class SessionCreateParamsPaymentIntentData(TypedDict):
"""
setup_future_usage: NotRequired["Literal['off_session', 'on_session']|str"]
"""
- Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment
- method collected by this Checkout Session.
+ Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment method collected by this Checkout Session.
- When setting this to `on_session`, Checkout will show a notice to the
- customer that their payment details will be saved.
+ When setting this to `on_session`, Checkout will show a notice to the customer that their payment details will be saved.
- When setting this to `off_session`, Checkout will show a notice to the
- customer that their payment details will be saved and used for future
- payments.
+ When setting this to `off_session`, Checkout will show a notice to the customer that their payment details will be saved and used for future payments.
- If a Customer has been provided or Checkout creates a new Customer,
- Checkout will attach the payment method to the Customer.
+ If a Customer has been provided or Checkout creates a new Customer, Checkout will attach the payment method to the Customer.
- If Checkout does not create a Customer, the payment method is not attached
- to a Customer. To reuse the payment method, you can retrieve it from the
- Checkout Session's PaymentIntent.
+ If Checkout does not create a Customer, the payment method is not attached to a Customer. To reuse the payment method, you can retrieve it from the Checkout Session's PaymentIntent.
- When processing card payments, Checkout also uses `setup_future_usage`
- to dynamically optimize your payment flow and comply with regional
- legislation and network rules, such as SCA.
+ When processing card payments, Checkout also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.
"""
shipping: NotRequired["SessionCreateParamsPaymentIntentDataShipping"]
"""
@@ -1698,6 +1691,12 @@ class SessionCreateParamsPaymentMethodOptionsCardRestrictions(TypedDict):
"""
The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment.
"""
+ funding_types_blocked: NotRequired[
+ List[Union[Literal["credit", "debit", "prepaid"], str]]
+ ]
+ """
+ Card funding types to block for this Checkout Session. Supported values are `credit`, `debit`, and `prepaid`.
+ """
class SessionCreateParamsPaymentMethodOptionsCashapp(TypedDict):
@@ -2481,7 +2480,12 @@ class SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
):
permissions: NotRequired[
List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal[
+ "balances", "ownership", "payment_method", "transactions"
+ ],
+ str,
+ ]
]
]
"""
@@ -2500,7 +2504,7 @@ class SessionCreateParamsPaymentMethodOptionsWechatPay(TypedDict):
"""
The app ID registered with WeChat Pay. Only required when client is ios or android.
"""
- client: Literal["android", "ios", "web"]
+ client: Union[Literal["android", "ios", "web"], str]
"""
The client type that the end customer will pay from
"""
@@ -2525,7 +2529,7 @@ class SessionCreateParamsPermissions(TypedDict):
Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
- When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
+ This parameter is only supported when `ui_mode=elements`.
"""
@@ -2856,7 +2860,9 @@ class SessionCreateParamsShippingOptionShippingRateData(TypedDict):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
@@ -2937,7 +2943,9 @@ class SessionCreateParamsShippingOptionShippingRateDataFixedAmountCurrencyOption
"""
A non-negative integer in cents representing how much to charge.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
@@ -3057,7 +3065,7 @@ class SessionCreateParamsSubscriptionDataBillingMode(TypedDict):
class SessionCreateParamsSubscriptionDataBillingModeFlexible(TypedDict):
- proration_discounts: NotRequired[Literal["included", "itemized"]]
+ proration_discounts: NotRequired["Literal['included', 'itemized']|str"]
"""
Controls how invoices and invoice items display proration amounts and discount amounts.
"""
@@ -3084,7 +3092,7 @@ class SessionCreateParamsSubscriptionDataInvoiceSettingsIssuer(TypedDict):
class SessionCreateParamsSubscriptionDataPendingInvoiceItemInterval(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.
"""
diff --git a/stripe/params/checkout/_session_list_params.py b/stripe/params/checkout/_session_list_params.py
index 1bd82256d..504972ae5 100644
--- a/stripe/params/checkout/_session_list_params.py
+++ b/stripe/params/checkout/_session_list_params.py
@@ -46,7 +46,7 @@ class SessionListParams(RequestOptions):
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
- status: NotRequired[Literal["complete", "expired", "open"]]
+ status: NotRequired["Literal['complete', 'expired', 'open']|str"]
"""
Only return the Checkout Sessions matching the given status.
"""
diff --git a/stripe/params/checkout/_session_modify_params.py b/stripe/params/checkout/_session_modify_params.py
index 368c52bc3..15156068e 100644
--- a/stripe/params/checkout/_session_modify_params.py
+++ b/stripe/params/checkout/_session_modify_params.py
@@ -164,7 +164,9 @@ class SessionModifyParamsLineItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -206,7 +208,7 @@ class SessionModifyParamsLineItemPriceDataProductData(TypedDict):
class SessionModifyParamsLineItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
@@ -250,7 +252,9 @@ class SessionModifyParamsShippingOptionShippingRateData(TypedDict):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
@@ -331,7 +335,9 @@ class SessionModifyParamsShippingOptionShippingRateDataFixedAmountCurrencyOption
"""
A non-negative integer in cents representing how much to charge.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
diff --git a/stripe/params/checkout/_session_update_params.py b/stripe/params/checkout/_session_update_params.py
index 672489ef4..f00cb9a73 100644
--- a/stripe/params/checkout/_session_update_params.py
+++ b/stripe/params/checkout/_session_update_params.py
@@ -163,7 +163,9 @@ class SessionUpdateParamsLineItemPriceData(TypedDict):
"""
The recurring components of a price such as `interval` and `interval_count`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
"""
@@ -205,7 +207,7 @@ class SessionUpdateParamsLineItemPriceDataProductData(TypedDict):
class SessionUpdateParamsLineItemPriceDataRecurring(TypedDict):
- interval: Literal["day", "month", "week", "year"]
+ interval: Union[Literal["day", "month", "week", "year"], str]
"""
Specifies billing frequency. Either `day`, `week`, `month` or `year`.
"""
@@ -249,7 +251,9 @@ class SessionUpdateParamsShippingOptionShippingRateData(TypedDict):
"""
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
@@ -330,7 +334,9 @@ class SessionUpdateParamsShippingOptionShippingRateDataFixedAmountCurrencyOption
"""
A non-negative integer in cents representing how much to charge.
"""
- tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
+ tax_behavior: NotRequired[
+ "Literal['exclusive', 'inclusive', 'unspecified']|str"
+ ]
"""
Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
"""
diff --git a/stripe/params/financial_connections/_session_create_params.py b/stripe/params/financial_connections/_session_create_params.py
index 281ebf716..79c8747af 100644
--- a/stripe/params/financial_connections/_session_create_params.py
+++ b/stripe/params/financial_connections/_session_create_params.py
@@ -27,7 +27,10 @@ class SessionCreateParams(RequestOptions):
Customize manual entry behavior
"""
permissions: List[
- Literal["balances", "ownership", "payment_method", "transactions"]
+ Union[
+ Literal["balances", "ownership", "payment_method", "transactions"],
+ str,
+ ]
]
"""
List of data features that you would like to request access to.
diff --git a/stripe/params/issuing/_authorization_capture_params.py b/stripe/params/issuing/_authorization_capture_params.py
index bd426a9e2..1434f53c8 100644
--- a/stripe/params/issuing/_authorization_capture_params.py
+++ b/stripe/params/issuing/_authorization_capture_params.py
@@ -62,9 +62,7 @@ class AuthorizationCaptureParamsPurchaseDetailsFleet(TypedDict):
Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
"""
purchase_type: NotRequired[
- Literal[
- "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
- ]
+ "Literal['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']|str"
]
"""
The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
@@ -76,7 +74,7 @@ class AuthorizationCaptureParamsPurchaseDetailsFleet(TypedDict):
More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
"""
service_type: NotRequired[
- Literal["full_service", "non_fuel_transaction", "self_service"]
+ "Literal['full_service', 'non_fuel_transaction', 'self_service']|str"
]
"""
The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
@@ -224,28 +222,13 @@ class AuthorizationCaptureParamsPurchaseDetailsFuel(TypedDict):
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
- Literal[
- "diesel",
- "other",
- "unleaded_plus",
- "unleaded_regular",
- "unleaded_super",
- ]
+ "Literal['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']|str"
]
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[
- Literal[
- "charging_minute",
- "imperial_gallon",
- "kilogram",
- "kilowatt_hour",
- "liter",
- "other",
- "pound",
- "us_gallon",
- ]
+ "Literal['charging_minute', 'imperial_gallon', 'kilogram', 'kilowatt_hour', 'liter', 'other', 'pound', 'us_gallon']|str"
]
"""
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
diff --git a/stripe/params/issuing/_authorization_create_params.py b/stripe/params/issuing/_authorization_create_params.py
index 3e9b7451f..fb0d7989c 100644
--- a/stripe/params/issuing/_authorization_create_params.py
+++ b/stripe/params/issuing/_authorization_create_params.py
@@ -102,9 +102,7 @@ class AuthorizationCreateParamsFleet(TypedDict):
Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
"""
purchase_type: NotRequired[
- Literal[
- "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
- ]
+ "Literal['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']|str"
]
"""
The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
@@ -116,7 +114,7 @@ class AuthorizationCreateParamsFleet(TypedDict):
More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
"""
service_type: NotRequired[
- Literal["full_service", "non_fuel_transaction", "self_service"]
+ "Literal['full_service', 'non_fuel_transaction', 'self_service']|str"
]
"""
The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
@@ -198,28 +196,13 @@ class AuthorizationCreateParamsFuel(TypedDict):
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
- Literal[
- "diesel",
- "other",
- "unleaded_plus",
- "unleaded_regular",
- "unleaded_super",
- ]
+ "Literal['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']|str"
]
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[
- Literal[
- "charging_minute",
- "imperial_gallon",
- "kilogram",
- "kilowatt_hour",
- "liter",
- "other",
- "pound",
- "us_gallon",
- ]
+ "Literal['charging_minute', 'imperial_gallon', 'kilogram', 'kilowatt_hour', 'liter', 'other', 'pound', 'us_gallon']|str"
]
"""
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
@@ -232,302 +215,7 @@ class AuthorizationCreateParamsFuel(TypedDict):
class AuthorizationCreateParamsMerchantData(TypedDict):
category: NotRequired[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
- ]
+ "Literal['ac_refrigeration_repair', 'accounting_bookkeeping_services', 'advertising_services', 'agricultural_cooperative', 'airlines_air_carriers', 'airports_flying_fields', 'ambulance_services', 'amusement_parks_carnivals', 'antique_reproductions', 'antique_shops', 'aquariums', 'architectural_surveying_services', 'art_dealers_and_galleries', 'artists_supply_and_craft_shops', 'auto_and_home_supply_stores', 'auto_body_repair_shops', 'auto_paint_shops', 'auto_service_shops', 'automated_cash_disburse', 'automated_fuel_dispensers', 'automobile_associations', 'automotive_parts_and_accessories_stores', 'automotive_tire_stores', 'bail_and_bond_payments', 'bakeries', 'bands_orchestras', 'barber_and_beauty_shops', 'betting_casino_gambling', 'bicycle_shops', 'billiard_pool_establishments', 'boat_dealers', 'boat_rentals_and_leases', 'book_stores', 'books_periodicals_and_newspapers', 'bowling_alleys', 'bus_lines', 'business_secretarial_schools', 'buying_shopping_services', 'cable_satellite_and_other_pay_television_and_radio', 'camera_and_photographic_supply_stores', 'candy_nut_and_confectionery_stores', 'car_and_truck_dealers_new_used', 'car_and_truck_dealers_used_only', 'car_rental_agencies', 'car_washes', 'carpentry_services', 'carpet_upholstery_cleaning', 'caterers', 'charitable_and_social_service_organizations_fundraising', 'chemicals_and_allied_products', 'child_care_services', 'childrens_and_infants_wear_stores', 'chiropodists_podiatrists', 'chiropractors', 'cigar_stores_and_stands', 'civic_social_fraternal_associations', 'cleaning_and_maintenance', 'clothing_rental', 'colleges_universities', 'commercial_equipment', 'commercial_footwear', 'commercial_photography_art_and_graphics', 'commuter_transport_and_ferries', 'computer_network_services', 'computer_programming', 'computer_repair', 'computer_software_stores', 'computers_peripherals_and_software', 'concrete_work_services', 'construction_materials', 'consulting_public_relations', 'correspondence_schools', 'cosmetic_stores', 'counseling_services', 'country_clubs', 'courier_services', 'court_costs', 'credit_reporting_agencies', 'cruise_lines', 'dairy_products_stores', 'dance_hall_studios_schools', 'dating_escort_services', 'dentists_orthodontists', 'department_stores', 'detective_agencies', 'digital_goods_applications', 'digital_goods_games', 'digital_goods_large_volume', 'digital_goods_media', 'direct_marketing_catalog_merchant', 'direct_marketing_combination_catalog_and_retail_merchant', 'direct_marketing_inbound_telemarketing', 'direct_marketing_insurance_services', 'direct_marketing_other', 'direct_marketing_outbound_telemarketing', 'direct_marketing_subscription', 'direct_marketing_travel', 'discount_stores', 'doctors', 'door_to_door_sales', 'drapery_window_covering_and_upholstery_stores', 'drinking_places', 'drug_stores_and_pharmacies', 'drugs_drug_proprietaries_and_druggist_sundries', 'dry_cleaners', 'durable_goods', 'duty_free_stores', 'eating_places_restaurants', 'educational_services', 'electric_razor_stores', 'electric_vehicle_charging', 'electrical_parts_and_equipment', 'electrical_services', 'electronics_repair_shops', 'electronics_stores', 'elementary_secondary_schools', 'emergency_services_gcas_visa_use_only', 'employment_temp_agencies', 'equipment_rental', 'exterminating_services', 'family_clothing_stores', 'fast_food_restaurants', 'financial_institutions', 'fines_government_administrative_entities', 'fireplace_fireplace_screens_and_accessories_stores', 'floor_covering_stores', 'florists', 'florists_supplies_nursery_stock_and_flowers', 'freezer_and_locker_meat_provisioners', 'fuel_dealers_non_automotive', 'funeral_services_crematories', 'furniture_home_furnishings_and_equipment_stores_except_appliances', 'furniture_repair_refinishing', 'furriers_and_fur_shops', 'general_services', 'gift_card_novelty_and_souvenir_shops', 'glass_paint_and_wallpaper_stores', 'glassware_crystal_stores', 'golf_courses_public', 'government_licensed_horse_dog_racing_us_region_only', 'government_licensed_online_casions_online_gambling_us_region_only', 'government_owned_lotteries_non_us_region', 'government_owned_lotteries_us_region_only', 'government_services', 'grocery_stores_supermarkets', 'hardware_equipment_and_supplies', 'hardware_stores', 'health_and_beauty_spas', 'hearing_aids_sales_and_supplies', 'heating_plumbing_a_c', 'hobby_toy_and_game_shops', 'home_supply_warehouse_stores', 'hospitals', 'hotels_motels_and_resorts', 'household_appliance_stores', 'industrial_supplies', 'information_retrieval_services', 'insurance_default', 'insurance_underwriting_premiums', 'intra_company_purchases', 'jewelry_stores_watches_clocks_and_silverware_stores', 'landscaping_services', 'laundries', 'laundry_cleaning_services', 'legal_services_attorneys', 'luggage_and_leather_goods_stores', 'lumber_building_materials_stores', 'manual_cash_disburse', 'marinas_service_and_supplies', 'marketplaces', 'masonry_stonework_and_plaster', 'massage_parlors', 'medical_and_dental_labs', 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies', 'medical_services', 'membership_organizations', 'mens_and_boys_clothing_and_accessories_stores', 'mens_womens_clothing_stores', 'metal_service_centers', 'miscellaneous_apparel_and_accessory_shops', 'miscellaneous_auto_dealers', 'miscellaneous_business_services', 'miscellaneous_food_stores', 'miscellaneous_general_merchandise', 'miscellaneous_general_services', 'miscellaneous_home_furnishing_specialty_stores', 'miscellaneous_publishing_and_printing', 'miscellaneous_recreation_services', 'miscellaneous_repair_shops', 'miscellaneous_specialty_retail', 'mobile_home_dealers', 'motion_picture_theaters', 'motor_freight_carriers_and_trucking', 'motor_homes_dealers', 'motor_vehicle_supplies_and_new_parts', 'motorcycle_shops_and_dealers', 'motorcycle_shops_dealers', 'music_stores_musical_instruments_pianos_and_sheet_music', 'news_dealers_and_newsstands', 'non_fi_money_orders', 'non_fi_stored_value_card_purchase_load', 'nondurable_goods', 'nurseries_lawn_and_garden_supply_stores', 'nursing_personal_care', 'office_and_commercial_furniture', 'opticians_eyeglasses', 'optometrists_ophthalmologist', 'orthopedic_goods_prosthetic_devices', 'osteopaths', 'package_stores_beer_wine_and_liquor', 'paints_varnishes_and_supplies', 'parking_lots_garages', 'passenger_railways', 'pawn_shops', 'pet_shops_pet_food_and_supplies', 'petroleum_and_petroleum_products', 'photo_developing', 'photographic_photocopy_microfilm_equipment_and_supplies', 'photographic_studios', 'picture_video_production', 'piece_goods_notions_and_other_dry_goods', 'plumbing_heating_equipment_and_supplies', 'political_organizations', 'postal_services_government_only', 'precious_stones_and_metals_watches_and_jewelry', 'professional_services', 'public_warehousing_and_storage', 'quick_copy_repro_and_blueprint', 'railroads', 'real_estate_agents_and_managers_rentals', 'record_stores', 'recreational_vehicle_rentals', 'religious_goods_stores', 'religious_organizations', 'roofing_siding_sheet_metal', 'secretarial_support_services', 'security_brokers_dealers', 'service_stations', 'sewing_needlework_fabric_and_piece_goods_stores', 'shoe_repair_hat_cleaning', 'shoe_stores', 'small_appliance_repair', 'snowmobile_dealers', 'special_trade_services', 'specialty_cleaning', 'sporting_goods_stores', 'sporting_recreation_camps', 'sports_and_riding_apparel_stores', 'sports_clubs_fields', 'stamp_and_coin_stores', 'stationary_office_supplies_printing_and_writing_paper', 'stationery_stores_office_and_school_supply_stores', 'swimming_pools_sales', 't_ui_travel_germany', 'tailors_alterations', 'tax_payments_government_agencies', 'tax_preparation_services', 'taxicabs_limousines', 'telecommunication_equipment_and_telephone_sales', 'telecommunication_services', 'telegraph_services', 'tent_and_awning_shops', 'testing_laboratories', 'theatrical_ticket_agencies', 'timeshares', 'tire_retreading_and_repair', 'tolls_bridge_fees', 'tourist_attractions_and_exhibits', 'towing_services', 'trailer_parks_campgrounds', 'transportation_services', 'travel_agencies_tour_operators', 'truck_stop_iteration', 'truck_utility_trailer_rentals', 'typesetting_plate_making_and_related_services', 'typewriter_stores', 'u_s_federal_government_agencies_or_departments', 'uniforms_commercial_clothing', 'used_merchandise_and_secondhand_stores', 'utilities', 'variety_stores', 'veterinary_services', 'video_amusement_game_supplies', 'video_game_arcades', 'video_tape_rental_stores', 'vocational_trade_schools', 'watch_jewelry_repair', 'welding_repair', 'wholesale_clubs', 'wig_and_toupee_stores', 'wires_money_orders', 'womens_accessory_and_specialty_shops', 'womens_ready_to_wear_stores', 'wrecking_and_salvage_yards']|str"
]
"""
A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
diff --git a/stripe/params/issuing/_authorization_finalize_amount_params.py b/stripe/params/issuing/_authorization_finalize_amount_params.py
index ca996cd86..9a68f192d 100644
--- a/stripe/params/issuing/_authorization_finalize_amount_params.py
+++ b/stripe/params/issuing/_authorization_finalize_amount_params.py
@@ -33,9 +33,7 @@ class AuthorizationFinalizeAmountParamsFleet(TypedDict):
Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
"""
purchase_type: NotRequired[
- Literal[
- "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
- ]
+ "Literal['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']|str"
]
"""
The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
@@ -47,7 +45,7 @@ class AuthorizationFinalizeAmountParamsFleet(TypedDict):
More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
"""
service_type: NotRequired[
- Literal["full_service", "non_fuel_transaction", "self_service"]
+ "Literal['full_service', 'non_fuel_transaction', 'self_service']|str"
]
"""
The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
@@ -135,28 +133,13 @@ class AuthorizationFinalizeAmountParamsFuel(TypedDict):
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
- Literal[
- "diesel",
- "other",
- "unleaded_plus",
- "unleaded_regular",
- "unleaded_super",
- ]
+ "Literal['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']|str"
]
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[
- Literal[
- "charging_minute",
- "imperial_gallon",
- "kilogram",
- "kilowatt_hour",
- "liter",
- "other",
- "pound",
- "us_gallon",
- ]
+ "Literal['charging_minute', 'imperial_gallon', 'kilogram', 'kilowatt_hour', 'liter', 'other', 'pound', 'us_gallon']|str"
]
"""
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
diff --git a/stripe/params/issuing/_card_create_params.py b/stripe/params/issuing/_card_create_params.py
index 680e769eb..0dcaa9b3a 100644
--- a/stripe/params/issuing/_card_create_params.py
+++ b/stripe/params/issuing/_card_create_params.py
@@ -189,309 +189,312 @@ class CardCreateParamsShippingCustoms(TypedDict):
class CardCreateParamsSpendingControls(TypedDict):
allowed_card_presences: NotRequired[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control.
"""
allowed_categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -503,309 +506,312 @@ class CardCreateParamsSpendingControls(TypedDict):
Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control.
"""
blocked_card_presences: NotRequired[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control.
"""
blocked_categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -831,302 +837,305 @@ class CardCreateParamsSpendingControlsSpendingLimit(TypedDict):
"""
categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
diff --git a/stripe/params/issuing/_card_modify_params.py b/stripe/params/issuing/_card_modify_params.py
index edd2819a4..83b4f4caf 100644
--- a/stripe/params/issuing/_card_modify_params.py
+++ b/stripe/params/issuing/_card_modify_params.py
@@ -136,309 +136,312 @@ class CardModifyParamsShippingCustoms(TypedDict):
class CardModifyParamsSpendingControls(TypedDict):
allowed_card_presences: NotRequired[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control.
"""
allowed_categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -450,309 +453,312 @@ class CardModifyParamsSpendingControls(TypedDict):
Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control.
"""
blocked_card_presences: NotRequired[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control.
"""
blocked_categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -778,302 +784,305 @@ class CardModifyParamsSpendingControlsSpendingLimit(TypedDict):
"""
categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
diff --git a/stripe/params/issuing/_card_update_params.py b/stripe/params/issuing/_card_update_params.py
index f39474bbd..82e82f003 100644
--- a/stripe/params/issuing/_card_update_params.py
+++ b/stripe/params/issuing/_card_update_params.py
@@ -135,309 +135,312 @@ class CardUpdateParamsShippingCustoms(TypedDict):
class CardUpdateParamsSpendingControls(TypedDict):
allowed_card_presences: NotRequired[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control.
"""
allowed_categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -449,309 +452,312 @@ class CardUpdateParamsSpendingControls(TypedDict):
Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control.
"""
blocked_card_presences: NotRequired[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control.
"""
blocked_categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -777,302 +783,305 @@ class CardUpdateParamsSpendingControlsSpendingLimit(TypedDict):
"""
categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
diff --git a/stripe/params/issuing/_cardholder_create_params.py b/stripe/params/issuing/_cardholder_create_params.py
index 26e8fd8df..e20d2baa8 100644
--- a/stripe/params/issuing/_cardholder_create_params.py
+++ b/stripe/params/issuing/_cardholder_create_params.py
@@ -43,7 +43,7 @@ class CardholderCreateParams(RequestOptions):
List[Union[Literal["de", "en", "es", "fr", "it"], str]]
]
"""
- The cardholder's preferred locales (languages), ordered by preference. Locales can be `da`, `de`, `en`, `es`, `fr`, `it`, `pl`, or `sv`.
+ The cardholder's preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
This changes the language of the [3D Secure flow](https://docs.stripe.com/issuing/3d-secure) and one-time password messages sent to the cardholder.
"""
spending_controls: NotRequired["CardholderCreateParamsSpendingControls"]
@@ -129,7 +129,7 @@ class CardholderCreateParamsIndividualCardIssuing(TypedDict):
"CardholderCreateParamsIndividualCardIssuingUserTermsAcceptance"
]
"""
- Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). Required for cards backed by a Celtic program.
+ Information about cardholder acceptance of Celtic [Authorized User Terms](https://docs.stripe.com/issuing/compliance-us#issuing-terms). Required for cards backed by a Celtic program.
"""
@@ -187,309 +187,312 @@ class CardholderCreateParamsIndividualVerificationDocument(TypedDict):
class CardholderCreateParamsSpendingControls(TypedDict):
allowed_card_presences: NotRequired[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control.
"""
allowed_categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -501,309 +504,312 @@ class CardholderCreateParamsSpendingControls(TypedDict):
Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control.
"""
blocked_card_presences: NotRequired[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control.
"""
blocked_categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -833,302 +839,305 @@ class CardholderCreateParamsSpendingControlsSpendingLimit(TypedDict):
"""
categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
diff --git a/stripe/params/issuing/_cardholder_modify_params.py b/stripe/params/issuing/_cardholder_modify_params.py
index d50b09e3b..0965a2c61 100644
--- a/stripe/params/issuing/_cardholder_modify_params.py
+++ b/stripe/params/issuing/_cardholder_modify_params.py
@@ -39,7 +39,7 @@ class CardholderModifyParams(RequestOptions):
List[Union[Literal["de", "en", "es", "fr", "it"], str]]
]
"""
- The cardholder's preferred locales (languages), ordered by preference. Locales can be `da`, `de`, `en`, `es`, `fr`, `it`, `pl`, or `sv`.
+ The cardholder's preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
This changes the language of the [3D Secure flow](https://docs.stripe.com/issuing/3d-secure) and one-time password messages sent to the cardholder.
"""
spending_controls: NotRequired["CardholderModifyParamsSpendingControls"]
@@ -121,7 +121,7 @@ class CardholderModifyParamsIndividualCardIssuing(TypedDict):
"CardholderModifyParamsIndividualCardIssuingUserTermsAcceptance"
]
"""
- Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). Required for cards backed by a Celtic program.
+ Information about cardholder acceptance of Celtic [Authorized User Terms](https://docs.stripe.com/issuing/compliance-us#issuing-terms). Required for cards backed by a Celtic program.
"""
@@ -179,309 +179,312 @@ class CardholderModifyParamsIndividualVerificationDocument(TypedDict):
class CardholderModifyParamsSpendingControls(TypedDict):
allowed_card_presences: NotRequired[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control.
"""
allowed_categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -493,309 +496,312 @@ class CardholderModifyParamsSpendingControls(TypedDict):
Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control.
"""
blocked_card_presences: NotRequired[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control.
"""
blocked_categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -825,302 +831,305 @@ class CardholderModifyParamsSpendingControlsSpendingLimit(TypedDict):
"""
categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
diff --git a/stripe/params/issuing/_cardholder_update_params.py b/stripe/params/issuing/_cardholder_update_params.py
index 30195becf..4bb2ad334 100644
--- a/stripe/params/issuing/_cardholder_update_params.py
+++ b/stripe/params/issuing/_cardholder_update_params.py
@@ -38,7 +38,7 @@ class CardholderUpdateParams(TypedDict):
List[Union[Literal["de", "en", "es", "fr", "it"], str]]
]
"""
- The cardholder's preferred locales (languages), ordered by preference. Locales can be `da`, `de`, `en`, `es`, `fr`, `it`, `pl`, or `sv`.
+ The cardholder's preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
This changes the language of the [3D Secure flow](https://docs.stripe.com/issuing/3d-secure) and one-time password messages sent to the cardholder.
"""
spending_controls: NotRequired["CardholderUpdateParamsSpendingControls"]
@@ -120,7 +120,7 @@ class CardholderUpdateParamsIndividualCardIssuing(TypedDict):
"CardholderUpdateParamsIndividualCardIssuingUserTermsAcceptance"
]
"""
- Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). Required for cards backed by a Celtic program.
+ Information about cardholder acceptance of Celtic [Authorized User Terms](https://docs.stripe.com/issuing/compliance-us#issuing-terms). Required for cards backed by a Celtic program.
"""
@@ -178,309 +178,312 @@ class CardholderUpdateParamsIndividualVerificationDocument(TypedDict):
class CardholderUpdateParamsSpendingControls(TypedDict):
allowed_card_presences: NotRequired[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control.
"""
allowed_categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -492,309 +495,312 @@ class CardholderUpdateParamsSpendingControls(TypedDict):
Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control.
"""
blocked_card_presences: NotRequired[
- List[Literal["not_present", "present"]]
+ List[Union[Literal["not_present", "present"], str]]
]
"""
Array of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control.
"""
blocked_categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
@@ -824,302 +830,305 @@ class CardholderUpdateParamsSpendingControlsSpendingLimit(TypedDict):
"""
categories: NotRequired[
List[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
+ Union[
+ Literal[
+ "ac_refrigeration_repair",
+ "accounting_bookkeeping_services",
+ "advertising_services",
+ "agricultural_cooperative",
+ "airlines_air_carriers",
+ "airports_flying_fields",
+ "ambulance_services",
+ "amusement_parks_carnivals",
+ "antique_reproductions",
+ "antique_shops",
+ "aquariums",
+ "architectural_surveying_services",
+ "art_dealers_and_galleries",
+ "artists_supply_and_craft_shops",
+ "auto_and_home_supply_stores",
+ "auto_body_repair_shops",
+ "auto_paint_shops",
+ "auto_service_shops",
+ "automated_cash_disburse",
+ "automated_fuel_dispensers",
+ "automobile_associations",
+ "automotive_parts_and_accessories_stores",
+ "automotive_tire_stores",
+ "bail_and_bond_payments",
+ "bakeries",
+ "bands_orchestras",
+ "barber_and_beauty_shops",
+ "betting_casino_gambling",
+ "bicycle_shops",
+ "billiard_pool_establishments",
+ "boat_dealers",
+ "boat_rentals_and_leases",
+ "book_stores",
+ "books_periodicals_and_newspapers",
+ "bowling_alleys",
+ "bus_lines",
+ "business_secretarial_schools",
+ "buying_shopping_services",
+ "cable_satellite_and_other_pay_television_and_radio",
+ "camera_and_photographic_supply_stores",
+ "candy_nut_and_confectionery_stores",
+ "car_and_truck_dealers_new_used",
+ "car_and_truck_dealers_used_only",
+ "car_rental_agencies",
+ "car_washes",
+ "carpentry_services",
+ "carpet_upholstery_cleaning",
+ "caterers",
+ "charitable_and_social_service_organizations_fundraising",
+ "chemicals_and_allied_products",
+ "child_care_services",
+ "childrens_and_infants_wear_stores",
+ "chiropodists_podiatrists",
+ "chiropractors",
+ "cigar_stores_and_stands",
+ "civic_social_fraternal_associations",
+ "cleaning_and_maintenance",
+ "clothing_rental",
+ "colleges_universities",
+ "commercial_equipment",
+ "commercial_footwear",
+ "commercial_photography_art_and_graphics",
+ "commuter_transport_and_ferries",
+ "computer_network_services",
+ "computer_programming",
+ "computer_repair",
+ "computer_software_stores",
+ "computers_peripherals_and_software",
+ "concrete_work_services",
+ "construction_materials",
+ "consulting_public_relations",
+ "correspondence_schools",
+ "cosmetic_stores",
+ "counseling_services",
+ "country_clubs",
+ "courier_services",
+ "court_costs",
+ "credit_reporting_agencies",
+ "cruise_lines",
+ "dairy_products_stores",
+ "dance_hall_studios_schools",
+ "dating_escort_services",
+ "dentists_orthodontists",
+ "department_stores",
+ "detective_agencies",
+ "digital_goods_applications",
+ "digital_goods_games",
+ "digital_goods_large_volume",
+ "digital_goods_media",
+ "direct_marketing_catalog_merchant",
+ "direct_marketing_combination_catalog_and_retail_merchant",
+ "direct_marketing_inbound_telemarketing",
+ "direct_marketing_insurance_services",
+ "direct_marketing_other",
+ "direct_marketing_outbound_telemarketing",
+ "direct_marketing_subscription",
+ "direct_marketing_travel",
+ "discount_stores",
+ "doctors",
+ "door_to_door_sales",
+ "drapery_window_covering_and_upholstery_stores",
+ "drinking_places",
+ "drug_stores_and_pharmacies",
+ "drugs_drug_proprietaries_and_druggist_sundries",
+ "dry_cleaners",
+ "durable_goods",
+ "duty_free_stores",
+ "eating_places_restaurants",
+ "educational_services",
+ "electric_razor_stores",
+ "electric_vehicle_charging",
+ "electrical_parts_and_equipment",
+ "electrical_services",
+ "electronics_repair_shops",
+ "electronics_stores",
+ "elementary_secondary_schools",
+ "emergency_services_gcas_visa_use_only",
+ "employment_temp_agencies",
+ "equipment_rental",
+ "exterminating_services",
+ "family_clothing_stores",
+ "fast_food_restaurants",
+ "financial_institutions",
+ "fines_government_administrative_entities",
+ "fireplace_fireplace_screens_and_accessories_stores",
+ "floor_covering_stores",
+ "florists",
+ "florists_supplies_nursery_stock_and_flowers",
+ "freezer_and_locker_meat_provisioners",
+ "fuel_dealers_non_automotive",
+ "funeral_services_crematories",
+ "furniture_home_furnishings_and_equipment_stores_except_appliances",
+ "furniture_repair_refinishing",
+ "furriers_and_fur_shops",
+ "general_services",
+ "gift_card_novelty_and_souvenir_shops",
+ "glass_paint_and_wallpaper_stores",
+ "glassware_crystal_stores",
+ "golf_courses_public",
+ "government_licensed_horse_dog_racing_us_region_only",
+ "government_licensed_online_casions_online_gambling_us_region_only",
+ "government_owned_lotteries_non_us_region",
+ "government_owned_lotteries_us_region_only",
+ "government_services",
+ "grocery_stores_supermarkets",
+ "hardware_equipment_and_supplies",
+ "hardware_stores",
+ "health_and_beauty_spas",
+ "hearing_aids_sales_and_supplies",
+ "heating_plumbing_a_c",
+ "hobby_toy_and_game_shops",
+ "home_supply_warehouse_stores",
+ "hospitals",
+ "hotels_motels_and_resorts",
+ "household_appliance_stores",
+ "industrial_supplies",
+ "information_retrieval_services",
+ "insurance_default",
+ "insurance_underwriting_premiums",
+ "intra_company_purchases",
+ "jewelry_stores_watches_clocks_and_silverware_stores",
+ "landscaping_services",
+ "laundries",
+ "laundry_cleaning_services",
+ "legal_services_attorneys",
+ "luggage_and_leather_goods_stores",
+ "lumber_building_materials_stores",
+ "manual_cash_disburse",
+ "marinas_service_and_supplies",
+ "marketplaces",
+ "masonry_stonework_and_plaster",
+ "massage_parlors",
+ "medical_and_dental_labs",
+ "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
+ "medical_services",
+ "membership_organizations",
+ "mens_and_boys_clothing_and_accessories_stores",
+ "mens_womens_clothing_stores",
+ "metal_service_centers",
+ "miscellaneous",
+ "miscellaneous_apparel_and_accessory_shops",
+ "miscellaneous_auto_dealers",
+ "miscellaneous_business_services",
+ "miscellaneous_food_stores",
+ "miscellaneous_general_merchandise",
+ "miscellaneous_general_services",
+ "miscellaneous_home_furnishing_specialty_stores",
+ "miscellaneous_publishing_and_printing",
+ "miscellaneous_recreation_services",
+ "miscellaneous_repair_shops",
+ "miscellaneous_specialty_retail",
+ "mobile_home_dealers",
+ "motion_picture_theaters",
+ "motor_freight_carriers_and_trucking",
+ "motor_homes_dealers",
+ "motor_vehicle_supplies_and_new_parts",
+ "motorcycle_shops_and_dealers",
+ "motorcycle_shops_dealers",
+ "music_stores_musical_instruments_pianos_and_sheet_music",
+ "news_dealers_and_newsstands",
+ "non_fi_money_orders",
+ "non_fi_stored_value_card_purchase_load",
+ "nondurable_goods",
+ "nurseries_lawn_and_garden_supply_stores",
+ "nursing_personal_care",
+ "office_and_commercial_furniture",
+ "opticians_eyeglasses",
+ "optometrists_ophthalmologist",
+ "orthopedic_goods_prosthetic_devices",
+ "osteopaths",
+ "package_stores_beer_wine_and_liquor",
+ "paints_varnishes_and_supplies",
+ "parking_lots_garages",
+ "passenger_railways",
+ "pawn_shops",
+ "pet_shops_pet_food_and_supplies",
+ "petroleum_and_petroleum_products",
+ "photo_developing",
+ "photographic_photocopy_microfilm_equipment_and_supplies",
+ "photographic_studios",
+ "picture_video_production",
+ "piece_goods_notions_and_other_dry_goods",
+ "plumbing_heating_equipment_and_supplies",
+ "political_organizations",
+ "postal_services_government_only",
+ "precious_stones_and_metals_watches_and_jewelry",
+ "professional_services",
+ "public_warehousing_and_storage",
+ "quick_copy_repro_and_blueprint",
+ "railroads",
+ "real_estate_agents_and_managers_rentals",
+ "record_stores",
+ "recreational_vehicle_rentals",
+ "religious_goods_stores",
+ "religious_organizations",
+ "roofing_siding_sheet_metal",
+ "secretarial_support_services",
+ "security_brokers_dealers",
+ "service_stations",
+ "sewing_needlework_fabric_and_piece_goods_stores",
+ "shoe_repair_hat_cleaning",
+ "shoe_stores",
+ "small_appliance_repair",
+ "snowmobile_dealers",
+ "special_trade_services",
+ "specialty_cleaning",
+ "sporting_goods_stores",
+ "sporting_recreation_camps",
+ "sports_and_riding_apparel_stores",
+ "sports_clubs_fields",
+ "stamp_and_coin_stores",
+ "stationary_office_supplies_printing_and_writing_paper",
+ "stationery_stores_office_and_school_supply_stores",
+ "swimming_pools_sales",
+ "t_ui_travel_germany",
+ "tailors_alterations",
+ "tax_payments_government_agencies",
+ "tax_preparation_services",
+ "taxicabs_limousines",
+ "telecommunication_equipment_and_telephone_sales",
+ "telecommunication_services",
+ "telegraph_services",
+ "tent_and_awning_shops",
+ "testing_laboratories",
+ "theatrical_ticket_agencies",
+ "timeshares",
+ "tire_retreading_and_repair",
+ "tolls_bridge_fees",
+ "tourist_attractions_and_exhibits",
+ "towing_services",
+ "trailer_parks_campgrounds",
+ "transportation_services",
+ "travel_agencies_tour_operators",
+ "truck_stop_iteration",
+ "truck_utility_trailer_rentals",
+ "typesetting_plate_making_and_related_services",
+ "typewriter_stores",
+ "u_s_federal_government_agencies_or_departments",
+ "uniforms_commercial_clothing",
+ "used_merchandise_and_secondhand_stores",
+ "utilities",
+ "variety_stores",
+ "veterinary_services",
+ "video_amusement_game_supplies",
+ "video_game_arcades",
+ "video_tape_rental_stores",
+ "vocational_trade_schools",
+ "watch_jewelry_repair",
+ "welding_repair",
+ "wholesale_clubs",
+ "wig_and_toupee_stores",
+ "wires_money_orders",
+ "womens_accessory_and_specialty_shops",
+ "womens_ready_to_wear_stores",
+ "wrecking_and_salvage_yards",
+ ],
+ str,
]
]
]
diff --git a/stripe/params/issuing/_transaction_create_force_capture_params.py b/stripe/params/issuing/_transaction_create_force_capture_params.py
index b11e620e8..98e01fdea 100644
--- a/stripe/params/issuing/_transaction_create_force_capture_params.py
+++ b/stripe/params/issuing/_transaction_create_force_capture_params.py
@@ -39,302 +39,7 @@ class TransactionCreateForceCaptureParams(RequestOptions):
class TransactionCreateForceCaptureParamsMerchantData(TypedDict):
category: NotRequired[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
- ]
+ "Literal['ac_refrigeration_repair', 'accounting_bookkeeping_services', 'advertising_services', 'agricultural_cooperative', 'airlines_air_carriers', 'airports_flying_fields', 'ambulance_services', 'amusement_parks_carnivals', 'antique_reproductions', 'antique_shops', 'aquariums', 'architectural_surveying_services', 'art_dealers_and_galleries', 'artists_supply_and_craft_shops', 'auto_and_home_supply_stores', 'auto_body_repair_shops', 'auto_paint_shops', 'auto_service_shops', 'automated_cash_disburse', 'automated_fuel_dispensers', 'automobile_associations', 'automotive_parts_and_accessories_stores', 'automotive_tire_stores', 'bail_and_bond_payments', 'bakeries', 'bands_orchestras', 'barber_and_beauty_shops', 'betting_casino_gambling', 'bicycle_shops', 'billiard_pool_establishments', 'boat_dealers', 'boat_rentals_and_leases', 'book_stores', 'books_periodicals_and_newspapers', 'bowling_alleys', 'bus_lines', 'business_secretarial_schools', 'buying_shopping_services', 'cable_satellite_and_other_pay_television_and_radio', 'camera_and_photographic_supply_stores', 'candy_nut_and_confectionery_stores', 'car_and_truck_dealers_new_used', 'car_and_truck_dealers_used_only', 'car_rental_agencies', 'car_washes', 'carpentry_services', 'carpet_upholstery_cleaning', 'caterers', 'charitable_and_social_service_organizations_fundraising', 'chemicals_and_allied_products', 'child_care_services', 'childrens_and_infants_wear_stores', 'chiropodists_podiatrists', 'chiropractors', 'cigar_stores_and_stands', 'civic_social_fraternal_associations', 'cleaning_and_maintenance', 'clothing_rental', 'colleges_universities', 'commercial_equipment', 'commercial_footwear', 'commercial_photography_art_and_graphics', 'commuter_transport_and_ferries', 'computer_network_services', 'computer_programming', 'computer_repair', 'computer_software_stores', 'computers_peripherals_and_software', 'concrete_work_services', 'construction_materials', 'consulting_public_relations', 'correspondence_schools', 'cosmetic_stores', 'counseling_services', 'country_clubs', 'courier_services', 'court_costs', 'credit_reporting_agencies', 'cruise_lines', 'dairy_products_stores', 'dance_hall_studios_schools', 'dating_escort_services', 'dentists_orthodontists', 'department_stores', 'detective_agencies', 'digital_goods_applications', 'digital_goods_games', 'digital_goods_large_volume', 'digital_goods_media', 'direct_marketing_catalog_merchant', 'direct_marketing_combination_catalog_and_retail_merchant', 'direct_marketing_inbound_telemarketing', 'direct_marketing_insurance_services', 'direct_marketing_other', 'direct_marketing_outbound_telemarketing', 'direct_marketing_subscription', 'direct_marketing_travel', 'discount_stores', 'doctors', 'door_to_door_sales', 'drapery_window_covering_and_upholstery_stores', 'drinking_places', 'drug_stores_and_pharmacies', 'drugs_drug_proprietaries_and_druggist_sundries', 'dry_cleaners', 'durable_goods', 'duty_free_stores', 'eating_places_restaurants', 'educational_services', 'electric_razor_stores', 'electric_vehicle_charging', 'electrical_parts_and_equipment', 'electrical_services', 'electronics_repair_shops', 'electronics_stores', 'elementary_secondary_schools', 'emergency_services_gcas_visa_use_only', 'employment_temp_agencies', 'equipment_rental', 'exterminating_services', 'family_clothing_stores', 'fast_food_restaurants', 'financial_institutions', 'fines_government_administrative_entities', 'fireplace_fireplace_screens_and_accessories_stores', 'floor_covering_stores', 'florists', 'florists_supplies_nursery_stock_and_flowers', 'freezer_and_locker_meat_provisioners', 'fuel_dealers_non_automotive', 'funeral_services_crematories', 'furniture_home_furnishings_and_equipment_stores_except_appliances', 'furniture_repair_refinishing', 'furriers_and_fur_shops', 'general_services', 'gift_card_novelty_and_souvenir_shops', 'glass_paint_and_wallpaper_stores', 'glassware_crystal_stores', 'golf_courses_public', 'government_licensed_horse_dog_racing_us_region_only', 'government_licensed_online_casions_online_gambling_us_region_only', 'government_owned_lotteries_non_us_region', 'government_owned_lotteries_us_region_only', 'government_services', 'grocery_stores_supermarkets', 'hardware_equipment_and_supplies', 'hardware_stores', 'health_and_beauty_spas', 'hearing_aids_sales_and_supplies', 'heating_plumbing_a_c', 'hobby_toy_and_game_shops', 'home_supply_warehouse_stores', 'hospitals', 'hotels_motels_and_resorts', 'household_appliance_stores', 'industrial_supplies', 'information_retrieval_services', 'insurance_default', 'insurance_underwriting_premiums', 'intra_company_purchases', 'jewelry_stores_watches_clocks_and_silverware_stores', 'landscaping_services', 'laundries', 'laundry_cleaning_services', 'legal_services_attorneys', 'luggage_and_leather_goods_stores', 'lumber_building_materials_stores', 'manual_cash_disburse', 'marinas_service_and_supplies', 'marketplaces', 'masonry_stonework_and_plaster', 'massage_parlors', 'medical_and_dental_labs', 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies', 'medical_services', 'membership_organizations', 'mens_and_boys_clothing_and_accessories_stores', 'mens_womens_clothing_stores', 'metal_service_centers', 'miscellaneous_apparel_and_accessory_shops', 'miscellaneous_auto_dealers', 'miscellaneous_business_services', 'miscellaneous_food_stores', 'miscellaneous_general_merchandise', 'miscellaneous_general_services', 'miscellaneous_home_furnishing_specialty_stores', 'miscellaneous_publishing_and_printing', 'miscellaneous_recreation_services', 'miscellaneous_repair_shops', 'miscellaneous_specialty_retail', 'mobile_home_dealers', 'motion_picture_theaters', 'motor_freight_carriers_and_trucking', 'motor_homes_dealers', 'motor_vehicle_supplies_and_new_parts', 'motorcycle_shops_and_dealers', 'motorcycle_shops_dealers', 'music_stores_musical_instruments_pianos_and_sheet_music', 'news_dealers_and_newsstands', 'non_fi_money_orders', 'non_fi_stored_value_card_purchase_load', 'nondurable_goods', 'nurseries_lawn_and_garden_supply_stores', 'nursing_personal_care', 'office_and_commercial_furniture', 'opticians_eyeglasses', 'optometrists_ophthalmologist', 'orthopedic_goods_prosthetic_devices', 'osteopaths', 'package_stores_beer_wine_and_liquor', 'paints_varnishes_and_supplies', 'parking_lots_garages', 'passenger_railways', 'pawn_shops', 'pet_shops_pet_food_and_supplies', 'petroleum_and_petroleum_products', 'photo_developing', 'photographic_photocopy_microfilm_equipment_and_supplies', 'photographic_studios', 'picture_video_production', 'piece_goods_notions_and_other_dry_goods', 'plumbing_heating_equipment_and_supplies', 'political_organizations', 'postal_services_government_only', 'precious_stones_and_metals_watches_and_jewelry', 'professional_services', 'public_warehousing_and_storage', 'quick_copy_repro_and_blueprint', 'railroads', 'real_estate_agents_and_managers_rentals', 'record_stores', 'recreational_vehicle_rentals', 'religious_goods_stores', 'religious_organizations', 'roofing_siding_sheet_metal', 'secretarial_support_services', 'security_brokers_dealers', 'service_stations', 'sewing_needlework_fabric_and_piece_goods_stores', 'shoe_repair_hat_cleaning', 'shoe_stores', 'small_appliance_repair', 'snowmobile_dealers', 'special_trade_services', 'specialty_cleaning', 'sporting_goods_stores', 'sporting_recreation_camps', 'sports_and_riding_apparel_stores', 'sports_clubs_fields', 'stamp_and_coin_stores', 'stationary_office_supplies_printing_and_writing_paper', 'stationery_stores_office_and_school_supply_stores', 'swimming_pools_sales', 't_ui_travel_germany', 'tailors_alterations', 'tax_payments_government_agencies', 'tax_preparation_services', 'taxicabs_limousines', 'telecommunication_equipment_and_telephone_sales', 'telecommunication_services', 'telegraph_services', 'tent_and_awning_shops', 'testing_laboratories', 'theatrical_ticket_agencies', 'timeshares', 'tire_retreading_and_repair', 'tolls_bridge_fees', 'tourist_attractions_and_exhibits', 'towing_services', 'trailer_parks_campgrounds', 'transportation_services', 'travel_agencies_tour_operators', 'truck_stop_iteration', 'truck_utility_trailer_rentals', 'typesetting_plate_making_and_related_services', 'typewriter_stores', 'u_s_federal_government_agencies_or_departments', 'uniforms_commercial_clothing', 'used_merchandise_and_secondhand_stores', 'utilities', 'variety_stores', 'veterinary_services', 'video_amusement_game_supplies', 'video_game_arcades', 'video_tape_rental_stores', 'vocational_trade_schools', 'watch_jewelry_repair', 'welding_repair', 'wholesale_clubs', 'wig_and_toupee_stores', 'wires_money_orders', 'womens_accessory_and_specialty_shops', 'womens_ready_to_wear_stores', 'wrecking_and_salvage_yards']|str"
]
"""
A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
@@ -416,9 +121,7 @@ class TransactionCreateForceCaptureParamsPurchaseDetailsFleet(TypedDict):
Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
"""
purchase_type: NotRequired[
- Literal[
- "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
- ]
+ "Literal['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']|str"
]
"""
The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
@@ -430,7 +133,7 @@ class TransactionCreateForceCaptureParamsPurchaseDetailsFleet(TypedDict):
More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
"""
service_type: NotRequired[
- Literal["full_service", "non_fuel_transaction", "self_service"]
+ "Literal['full_service', 'non_fuel_transaction', 'self_service']|str"
]
"""
The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
@@ -580,28 +283,13 @@ class TransactionCreateForceCaptureParamsPurchaseDetailsFuel(TypedDict):
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
- Literal[
- "diesel",
- "other",
- "unleaded_plus",
- "unleaded_regular",
- "unleaded_super",
- ]
+ "Literal['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']|str"
]
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[
- Literal[
- "charging_minute",
- "imperial_gallon",
- "kilogram",
- "kilowatt_hour",
- "liter",
- "other",
- "pound",
- "us_gallon",
- ]
+ "Literal['charging_minute', 'imperial_gallon', 'kilogram', 'kilowatt_hour', 'liter', 'other', 'pound', 'us_gallon']|str"
]
"""
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
diff --git a/stripe/params/issuing/_transaction_create_unlinked_refund_params.py b/stripe/params/issuing/_transaction_create_unlinked_refund_params.py
index 90ca23416..84f9c51db 100644
--- a/stripe/params/issuing/_transaction_create_unlinked_refund_params.py
+++ b/stripe/params/issuing/_transaction_create_unlinked_refund_params.py
@@ -39,302 +39,7 @@ class TransactionCreateUnlinkedRefundParams(RequestOptions):
class TransactionCreateUnlinkedRefundParamsMerchantData(TypedDict):
category: NotRequired[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
- ]
+ "Literal['ac_refrigeration_repair', 'accounting_bookkeeping_services', 'advertising_services', 'agricultural_cooperative', 'airlines_air_carriers', 'airports_flying_fields', 'ambulance_services', 'amusement_parks_carnivals', 'antique_reproductions', 'antique_shops', 'aquariums', 'architectural_surveying_services', 'art_dealers_and_galleries', 'artists_supply_and_craft_shops', 'auto_and_home_supply_stores', 'auto_body_repair_shops', 'auto_paint_shops', 'auto_service_shops', 'automated_cash_disburse', 'automated_fuel_dispensers', 'automobile_associations', 'automotive_parts_and_accessories_stores', 'automotive_tire_stores', 'bail_and_bond_payments', 'bakeries', 'bands_orchestras', 'barber_and_beauty_shops', 'betting_casino_gambling', 'bicycle_shops', 'billiard_pool_establishments', 'boat_dealers', 'boat_rentals_and_leases', 'book_stores', 'books_periodicals_and_newspapers', 'bowling_alleys', 'bus_lines', 'business_secretarial_schools', 'buying_shopping_services', 'cable_satellite_and_other_pay_television_and_radio', 'camera_and_photographic_supply_stores', 'candy_nut_and_confectionery_stores', 'car_and_truck_dealers_new_used', 'car_and_truck_dealers_used_only', 'car_rental_agencies', 'car_washes', 'carpentry_services', 'carpet_upholstery_cleaning', 'caterers', 'charitable_and_social_service_organizations_fundraising', 'chemicals_and_allied_products', 'child_care_services', 'childrens_and_infants_wear_stores', 'chiropodists_podiatrists', 'chiropractors', 'cigar_stores_and_stands', 'civic_social_fraternal_associations', 'cleaning_and_maintenance', 'clothing_rental', 'colleges_universities', 'commercial_equipment', 'commercial_footwear', 'commercial_photography_art_and_graphics', 'commuter_transport_and_ferries', 'computer_network_services', 'computer_programming', 'computer_repair', 'computer_software_stores', 'computers_peripherals_and_software', 'concrete_work_services', 'construction_materials', 'consulting_public_relations', 'correspondence_schools', 'cosmetic_stores', 'counseling_services', 'country_clubs', 'courier_services', 'court_costs', 'credit_reporting_agencies', 'cruise_lines', 'dairy_products_stores', 'dance_hall_studios_schools', 'dating_escort_services', 'dentists_orthodontists', 'department_stores', 'detective_agencies', 'digital_goods_applications', 'digital_goods_games', 'digital_goods_large_volume', 'digital_goods_media', 'direct_marketing_catalog_merchant', 'direct_marketing_combination_catalog_and_retail_merchant', 'direct_marketing_inbound_telemarketing', 'direct_marketing_insurance_services', 'direct_marketing_other', 'direct_marketing_outbound_telemarketing', 'direct_marketing_subscription', 'direct_marketing_travel', 'discount_stores', 'doctors', 'door_to_door_sales', 'drapery_window_covering_and_upholstery_stores', 'drinking_places', 'drug_stores_and_pharmacies', 'drugs_drug_proprietaries_and_druggist_sundries', 'dry_cleaners', 'durable_goods', 'duty_free_stores', 'eating_places_restaurants', 'educational_services', 'electric_razor_stores', 'electric_vehicle_charging', 'electrical_parts_and_equipment', 'electrical_services', 'electronics_repair_shops', 'electronics_stores', 'elementary_secondary_schools', 'emergency_services_gcas_visa_use_only', 'employment_temp_agencies', 'equipment_rental', 'exterminating_services', 'family_clothing_stores', 'fast_food_restaurants', 'financial_institutions', 'fines_government_administrative_entities', 'fireplace_fireplace_screens_and_accessories_stores', 'floor_covering_stores', 'florists', 'florists_supplies_nursery_stock_and_flowers', 'freezer_and_locker_meat_provisioners', 'fuel_dealers_non_automotive', 'funeral_services_crematories', 'furniture_home_furnishings_and_equipment_stores_except_appliances', 'furniture_repair_refinishing', 'furriers_and_fur_shops', 'general_services', 'gift_card_novelty_and_souvenir_shops', 'glass_paint_and_wallpaper_stores', 'glassware_crystal_stores', 'golf_courses_public', 'government_licensed_horse_dog_racing_us_region_only', 'government_licensed_online_casions_online_gambling_us_region_only', 'government_owned_lotteries_non_us_region', 'government_owned_lotteries_us_region_only', 'government_services', 'grocery_stores_supermarkets', 'hardware_equipment_and_supplies', 'hardware_stores', 'health_and_beauty_spas', 'hearing_aids_sales_and_supplies', 'heating_plumbing_a_c', 'hobby_toy_and_game_shops', 'home_supply_warehouse_stores', 'hospitals', 'hotels_motels_and_resorts', 'household_appliance_stores', 'industrial_supplies', 'information_retrieval_services', 'insurance_default', 'insurance_underwriting_premiums', 'intra_company_purchases', 'jewelry_stores_watches_clocks_and_silverware_stores', 'landscaping_services', 'laundries', 'laundry_cleaning_services', 'legal_services_attorneys', 'luggage_and_leather_goods_stores', 'lumber_building_materials_stores', 'manual_cash_disburse', 'marinas_service_and_supplies', 'marketplaces', 'masonry_stonework_and_plaster', 'massage_parlors', 'medical_and_dental_labs', 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies', 'medical_services', 'membership_organizations', 'mens_and_boys_clothing_and_accessories_stores', 'mens_womens_clothing_stores', 'metal_service_centers', 'miscellaneous_apparel_and_accessory_shops', 'miscellaneous_auto_dealers', 'miscellaneous_business_services', 'miscellaneous_food_stores', 'miscellaneous_general_merchandise', 'miscellaneous_general_services', 'miscellaneous_home_furnishing_specialty_stores', 'miscellaneous_publishing_and_printing', 'miscellaneous_recreation_services', 'miscellaneous_repair_shops', 'miscellaneous_specialty_retail', 'mobile_home_dealers', 'motion_picture_theaters', 'motor_freight_carriers_and_trucking', 'motor_homes_dealers', 'motor_vehicle_supplies_and_new_parts', 'motorcycle_shops_and_dealers', 'motorcycle_shops_dealers', 'music_stores_musical_instruments_pianos_and_sheet_music', 'news_dealers_and_newsstands', 'non_fi_money_orders', 'non_fi_stored_value_card_purchase_load', 'nondurable_goods', 'nurseries_lawn_and_garden_supply_stores', 'nursing_personal_care', 'office_and_commercial_furniture', 'opticians_eyeglasses', 'optometrists_ophthalmologist', 'orthopedic_goods_prosthetic_devices', 'osteopaths', 'package_stores_beer_wine_and_liquor', 'paints_varnishes_and_supplies', 'parking_lots_garages', 'passenger_railways', 'pawn_shops', 'pet_shops_pet_food_and_supplies', 'petroleum_and_petroleum_products', 'photo_developing', 'photographic_photocopy_microfilm_equipment_and_supplies', 'photographic_studios', 'picture_video_production', 'piece_goods_notions_and_other_dry_goods', 'plumbing_heating_equipment_and_supplies', 'political_organizations', 'postal_services_government_only', 'precious_stones_and_metals_watches_and_jewelry', 'professional_services', 'public_warehousing_and_storage', 'quick_copy_repro_and_blueprint', 'railroads', 'real_estate_agents_and_managers_rentals', 'record_stores', 'recreational_vehicle_rentals', 'religious_goods_stores', 'religious_organizations', 'roofing_siding_sheet_metal', 'secretarial_support_services', 'security_brokers_dealers', 'service_stations', 'sewing_needlework_fabric_and_piece_goods_stores', 'shoe_repair_hat_cleaning', 'shoe_stores', 'small_appliance_repair', 'snowmobile_dealers', 'special_trade_services', 'specialty_cleaning', 'sporting_goods_stores', 'sporting_recreation_camps', 'sports_and_riding_apparel_stores', 'sports_clubs_fields', 'stamp_and_coin_stores', 'stationary_office_supplies_printing_and_writing_paper', 'stationery_stores_office_and_school_supply_stores', 'swimming_pools_sales', 't_ui_travel_germany', 'tailors_alterations', 'tax_payments_government_agencies', 'tax_preparation_services', 'taxicabs_limousines', 'telecommunication_equipment_and_telephone_sales', 'telecommunication_services', 'telegraph_services', 'tent_and_awning_shops', 'testing_laboratories', 'theatrical_ticket_agencies', 'timeshares', 'tire_retreading_and_repair', 'tolls_bridge_fees', 'tourist_attractions_and_exhibits', 'towing_services', 'trailer_parks_campgrounds', 'transportation_services', 'travel_agencies_tour_operators', 'truck_stop_iteration', 'truck_utility_trailer_rentals', 'typesetting_plate_making_and_related_services', 'typewriter_stores', 'u_s_federal_government_agencies_or_departments', 'uniforms_commercial_clothing', 'used_merchandise_and_secondhand_stores', 'utilities', 'variety_stores', 'veterinary_services', 'video_amusement_game_supplies', 'video_game_arcades', 'video_tape_rental_stores', 'vocational_trade_schools', 'watch_jewelry_repair', 'welding_repair', 'wholesale_clubs', 'wig_and_toupee_stores', 'wires_money_orders', 'womens_accessory_and_specialty_shops', 'womens_ready_to_wear_stores', 'wrecking_and_salvage_yards']|str"
]
"""
A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
@@ -418,9 +123,7 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleet(TypedDict):
Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
"""
purchase_type: NotRequired[
- Literal[
- "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
- ]
+ "Literal['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']|str"
]
"""
The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
@@ -432,7 +135,7 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleet(TypedDict):
More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
"""
service_type: NotRequired[
- Literal["full_service", "non_fuel_transaction", "self_service"]
+ "Literal['full_service', 'non_fuel_transaction', 'self_service']|str"
]
"""
The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
@@ -584,28 +287,13 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel(TypedDict):
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
- Literal[
- "diesel",
- "other",
- "unleaded_plus",
- "unleaded_regular",
- "unleaded_super",
- ]
+ "Literal['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']|str"
]
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[
- Literal[
- "charging_minute",
- "imperial_gallon",
- "kilogram",
- "kilowatt_hour",
- "liter",
- "other",
- "pound",
- "us_gallon",
- ]
+ "Literal['charging_minute', 'imperial_gallon', 'kilogram', 'kilowatt_hour', 'liter', 'other', 'pound', 'us_gallon']|str"
]
"""
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
diff --git a/stripe/params/radar/_value_list_create_params.py b/stripe/params/radar/_value_list_create_params.py
index b91242561..b4feebd2b 100644
--- a/stripe/params/radar/_value_list_create_params.py
+++ b/stripe/params/radar/_value_list_create_params.py
@@ -16,20 +16,7 @@ class ValueListCreateParams(RequestOptions):
Specifies which fields in the response should be expanded.
"""
item_type: NotRequired[
- Literal[
- "account",
- "card_bin",
- "card_fingerprint",
- "case_sensitive_string",
- "country",
- "crypto_fingerprint",
- "customer_id",
- "email",
- "ip_address",
- "sepa_debit_fingerprint",
- "string",
- "us_bank_account_fingerprint",
- ]
+ "Literal['account', 'card_bin', 'card_fingerprint', 'case_sensitive_string', 'country', 'crypto_fingerprint', 'customer_id', 'email', 'ip_address', 'sepa_debit_fingerprint', 'string', 'us_bank_account_fingerprint']|str"
]
"""
Type of the items in the value list. One of `card_fingerprint`, `card_bin`, `crypto_fingerprint`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `account`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. Use `string` if the item type is unknown or mixed.
diff --git a/stripe/params/reporting/_report_run_create_params.py b/stripe/params/reporting/_report_run_create_params.py
index 2cbc5af43..d18cd5cea 100644
--- a/stripe/params/reporting/_report_run_create_params.py
+++ b/stripe/params/reporting/_report_run_create_params.py
@@ -46,651 +46,13 @@ class ReportRunCreateParamsParameters(TypedDict):
Payout ID by which to filter the report run.
"""
reporting_category: NotRequired[
- Literal[
- "advance",
- "advance_funding",
- "anticipation_repayment",
- "charge",
- "charge_failure",
- "climate_order_purchase",
- "climate_order_refund",
- "connect_collection_transfer",
- "connect_reserved_funds",
- "contribution",
- "dispute",
- "dispute_reversal",
- "fee",
- "financing_paydown",
- "financing_paydown_reversal",
- "financing_payout",
- "financing_payout_reversal",
- "issuing_authorization_hold",
- "issuing_authorization_release",
- "issuing_dispute",
- "issuing_transaction",
- "network_cost",
- "other_adjustment",
- "partial_capture_reversal",
- "payout",
- "payout_reversal",
- "platform_earning",
- "platform_earning_refund",
- "refund",
- "refund_failure",
- "risk_reserved_funds",
- "tax",
- "topup",
- "topup_reversal",
- "transfer",
- "transfer_reversal",
- "unreconciled_customer_funds",
- ]
+ "Literal['advance', 'advance_funding', 'anticipation_repayment', 'charge', 'charge_failure', 'climate_order_purchase', 'climate_order_refund', 'connect_collection_transfer', 'connect_reserved_funds', 'contribution', 'dispute', 'dispute_reversal', 'fee', 'financing_paydown', 'financing_paydown_reversal', 'financing_payout', 'financing_payout_reversal', 'issuing_authorization_hold', 'issuing_authorization_release', 'issuing_dispute', 'issuing_transaction', 'network_cost', 'other_adjustment', 'partial_capture_reversal', 'payout', 'payout_reversal', 'platform_earning', 'platform_earning_refund', 'refund', 'refund_failure', 'risk_reserved_funds', 'tax', 'topup', 'topup_reversal', 'transfer', 'transfer_reversal', 'unreconciled_customer_funds']|str"
]
"""
Category of balance transactions to be included in the report run.
"""
timezone: NotRequired[
- Literal[
- "Africa/Abidjan",
- "Africa/Accra",
- "Africa/Addis_Ababa",
- "Africa/Algiers",
- "Africa/Asmara",
- "Africa/Asmera",
- "Africa/Bamako",
- "Africa/Bangui",
- "Africa/Banjul",
- "Africa/Bissau",
- "Africa/Blantyre",
- "Africa/Brazzaville",
- "Africa/Bujumbura",
- "Africa/Cairo",
- "Africa/Casablanca",
- "Africa/Ceuta",
- "Africa/Conakry",
- "Africa/Dakar",
- "Africa/Dar_es_Salaam",
- "Africa/Djibouti",
- "Africa/Douala",
- "Africa/El_Aaiun",
- "Africa/Freetown",
- "Africa/Gaborone",
- "Africa/Harare",
- "Africa/Johannesburg",
- "Africa/Juba",
- "Africa/Kampala",
- "Africa/Khartoum",
- "Africa/Kigali",
- "Africa/Kinshasa",
- "Africa/Lagos",
- "Africa/Libreville",
- "Africa/Lome",
- "Africa/Luanda",
- "Africa/Lubumbashi",
- "Africa/Lusaka",
- "Africa/Malabo",
- "Africa/Maputo",
- "Africa/Maseru",
- "Africa/Mbabane",
- "Africa/Mogadishu",
- "Africa/Monrovia",
- "Africa/Nairobi",
- "Africa/Ndjamena",
- "Africa/Niamey",
- "Africa/Nouakchott",
- "Africa/Ouagadougou",
- "Africa/Porto-Novo",
- "Africa/Sao_Tome",
- "Africa/Timbuktu",
- "Africa/Tripoli",
- "Africa/Tunis",
- "Africa/Windhoek",
- "America/Adak",
- "America/Anchorage",
- "America/Anguilla",
- "America/Antigua",
- "America/Araguaina",
- "America/Argentina/Buenos_Aires",
- "America/Argentina/Catamarca",
- "America/Argentina/ComodRivadavia",
- "America/Argentina/Cordoba",
- "America/Argentina/Jujuy",
- "America/Argentina/La_Rioja",
- "America/Argentina/Mendoza",
- "America/Argentina/Rio_Gallegos",
- "America/Argentina/Salta",
- "America/Argentina/San_Juan",
- "America/Argentina/San_Luis",
- "America/Argentina/Tucuman",
- "America/Argentina/Ushuaia",
- "America/Aruba",
- "America/Asuncion",
- "America/Atikokan",
- "America/Atka",
- "America/Bahia",
- "America/Bahia_Banderas",
- "America/Barbados",
- "America/Belem",
- "America/Belize",
- "America/Blanc-Sablon",
- "America/Boa_Vista",
- "America/Bogota",
- "America/Boise",
- "America/Buenos_Aires",
- "America/Cambridge_Bay",
- "America/Campo_Grande",
- "America/Cancun",
- "America/Caracas",
- "America/Catamarca",
- "America/Cayenne",
- "America/Cayman",
- "America/Chicago",
- "America/Chihuahua",
- "America/Ciudad_Juarez",
- "America/Coral_Harbour",
- "America/Cordoba",
- "America/Costa_Rica",
- "America/Coyhaique",
- "America/Creston",
- "America/Cuiaba",
- "America/Curacao",
- "America/Danmarkshavn",
- "America/Dawson",
- "America/Dawson_Creek",
- "America/Denver",
- "America/Detroit",
- "America/Dominica",
- "America/Edmonton",
- "America/Eirunepe",
- "America/El_Salvador",
- "America/Ensenada",
- "America/Fort_Nelson",
- "America/Fort_Wayne",
- "America/Fortaleza",
- "America/Glace_Bay",
- "America/Godthab",
- "America/Goose_Bay",
- "America/Grand_Turk",
- "America/Grenada",
- "America/Guadeloupe",
- "America/Guatemala",
- "America/Guayaquil",
- "America/Guyana",
- "America/Halifax",
- "America/Havana",
- "America/Hermosillo",
- "America/Indiana/Indianapolis",
- "America/Indiana/Knox",
- "America/Indiana/Marengo",
- "America/Indiana/Petersburg",
- "America/Indiana/Tell_City",
- "America/Indiana/Vevay",
- "America/Indiana/Vincennes",
- "America/Indiana/Winamac",
- "America/Indianapolis",
- "America/Inuvik",
- "America/Iqaluit",
- "America/Jamaica",
- "America/Jujuy",
- "America/Juneau",
- "America/Kentucky/Louisville",
- "America/Kentucky/Monticello",
- "America/Knox_IN",
- "America/Kralendijk",
- "America/La_Paz",
- "America/Lima",
- "America/Los_Angeles",
- "America/Louisville",
- "America/Lower_Princes",
- "America/Maceio",
- "America/Managua",
- "America/Manaus",
- "America/Marigot",
- "America/Martinique",
- "America/Matamoros",
- "America/Mazatlan",
- "America/Mendoza",
- "America/Menominee",
- "America/Merida",
- "America/Metlakatla",
- "America/Mexico_City",
- "America/Miquelon",
- "America/Moncton",
- "America/Monterrey",
- "America/Montevideo",
- "America/Montreal",
- "America/Montserrat",
- "America/Nassau",
- "America/New_York",
- "America/Nipigon",
- "America/Nome",
- "America/Noronha",
- "America/North_Dakota/Beulah",
- "America/North_Dakota/Center",
- "America/North_Dakota/New_Salem",
- "America/Nuuk",
- "America/Ojinaga",
- "America/Panama",
- "America/Pangnirtung",
- "America/Paramaribo",
- "America/Phoenix",
- "America/Port-au-Prince",
- "America/Port_of_Spain",
- "America/Porto_Acre",
- "America/Porto_Velho",
- "America/Puerto_Rico",
- "America/Punta_Arenas",
- "America/Rainy_River",
- "America/Rankin_Inlet",
- "America/Recife",
- "America/Regina",
- "America/Resolute",
- "America/Rio_Branco",
- "America/Rosario",
- "America/Santa_Isabel",
- "America/Santarem",
- "America/Santiago",
- "America/Santo_Domingo",
- "America/Sao_Paulo",
- "America/Scoresbysund",
- "America/Shiprock",
- "America/Sitka",
- "America/St_Barthelemy",
- "America/St_Johns",
- "America/St_Kitts",
- "America/St_Lucia",
- "America/St_Thomas",
- "America/St_Vincent",
- "America/Swift_Current",
- "America/Tegucigalpa",
- "America/Thule",
- "America/Thunder_Bay",
- "America/Tijuana",
- "America/Toronto",
- "America/Tortola",
- "America/Vancouver",
- "America/Virgin",
- "America/Whitehorse",
- "America/Winnipeg",
- "America/Yakutat",
- "America/Yellowknife",
- "Antarctica/Casey",
- "Antarctica/Davis",
- "Antarctica/DumontDUrville",
- "Antarctica/Macquarie",
- "Antarctica/Mawson",
- "Antarctica/McMurdo",
- "Antarctica/Palmer",
- "Antarctica/Rothera",
- "Antarctica/South_Pole",
- "Antarctica/Syowa",
- "Antarctica/Troll",
- "Antarctica/Vostok",
- "Arctic/Longyearbyen",
- "Asia/Aden",
- "Asia/Almaty",
- "Asia/Amman",
- "Asia/Anadyr",
- "Asia/Aqtau",
- "Asia/Aqtobe",
- "Asia/Ashgabat",
- "Asia/Ashkhabad",
- "Asia/Atyrau",
- "Asia/Baghdad",
- "Asia/Bahrain",
- "Asia/Baku",
- "Asia/Bangkok",
- "Asia/Barnaul",
- "Asia/Beirut",
- "Asia/Bishkek",
- "Asia/Brunei",
- "Asia/Calcutta",
- "Asia/Chita",
- "Asia/Choibalsan",
- "Asia/Chongqing",
- "Asia/Chungking",
- "Asia/Colombo",
- "Asia/Dacca",
- "Asia/Damascus",
- "Asia/Dhaka",
- "Asia/Dili",
- "Asia/Dubai",
- "Asia/Dushanbe",
- "Asia/Famagusta",
- "Asia/Gaza",
- "Asia/Harbin",
- "Asia/Hebron",
- "Asia/Ho_Chi_Minh",
- "Asia/Hong_Kong",
- "Asia/Hovd",
- "Asia/Irkutsk",
- "Asia/Istanbul",
- "Asia/Jakarta",
- "Asia/Jayapura",
- "Asia/Jerusalem",
- "Asia/Kabul",
- "Asia/Kamchatka",
- "Asia/Karachi",
- "Asia/Kashgar",
- "Asia/Kathmandu",
- "Asia/Katmandu",
- "Asia/Khandyga",
- "Asia/Kolkata",
- "Asia/Krasnoyarsk",
- "Asia/Kuala_Lumpur",
- "Asia/Kuching",
- "Asia/Kuwait",
- "Asia/Macao",
- "Asia/Macau",
- "Asia/Magadan",
- "Asia/Makassar",
- "Asia/Manila",
- "Asia/Muscat",
- "Asia/Nicosia",
- "Asia/Novokuznetsk",
- "Asia/Novosibirsk",
- "Asia/Omsk",
- "Asia/Oral",
- "Asia/Phnom_Penh",
- "Asia/Pontianak",
- "Asia/Pyongyang",
- "Asia/Qatar",
- "Asia/Qostanay",
- "Asia/Qyzylorda",
- "Asia/Rangoon",
- "Asia/Riyadh",
- "Asia/Saigon",
- "Asia/Sakhalin",
- "Asia/Samarkand",
- "Asia/Seoul",
- "Asia/Shanghai",
- "Asia/Singapore",
- "Asia/Srednekolymsk",
- "Asia/Taipei",
- "Asia/Tashkent",
- "Asia/Tbilisi",
- "Asia/Tehran",
- "Asia/Tel_Aviv",
- "Asia/Thimbu",
- "Asia/Thimphu",
- "Asia/Tokyo",
- "Asia/Tomsk",
- "Asia/Ujung_Pandang",
- "Asia/Ulaanbaatar",
- "Asia/Ulan_Bator",
- "Asia/Urumqi",
- "Asia/Ust-Nera",
- "Asia/Vientiane",
- "Asia/Vladivostok",
- "Asia/Yakutsk",
- "Asia/Yangon",
- "Asia/Yekaterinburg",
- "Asia/Yerevan",
- "Atlantic/Azores",
- "Atlantic/Bermuda",
- "Atlantic/Canary",
- "Atlantic/Cape_Verde",
- "Atlantic/Faeroe",
- "Atlantic/Faroe",
- "Atlantic/Jan_Mayen",
- "Atlantic/Madeira",
- "Atlantic/Reykjavik",
- "Atlantic/South_Georgia",
- "Atlantic/St_Helena",
- "Atlantic/Stanley",
- "Australia/ACT",
- "Australia/Adelaide",
- "Australia/Brisbane",
- "Australia/Broken_Hill",
- "Australia/Canberra",
- "Australia/Currie",
- "Australia/Darwin",
- "Australia/Eucla",
- "Australia/Hobart",
- "Australia/LHI",
- "Australia/Lindeman",
- "Australia/Lord_Howe",
- "Australia/Melbourne",
- "Australia/NSW",
- "Australia/North",
- "Australia/Perth",
- "Australia/Queensland",
- "Australia/South",
- "Australia/Sydney",
- "Australia/Tasmania",
- "Australia/Victoria",
- "Australia/West",
- "Australia/Yancowinna",
- "Brazil/Acre",
- "Brazil/DeNoronha",
- "Brazil/East",
- "Brazil/West",
- "CET",
- "CST6CDT",
- "Canada/Atlantic",
- "Canada/Central",
- "Canada/Eastern",
- "Canada/Mountain",
- "Canada/Newfoundland",
- "Canada/Pacific",
- "Canada/Saskatchewan",
- "Canada/Yukon",
- "Chile/Continental",
- "Chile/EasterIsland",
- "Cuba",
- "EET",
- "EST",
- "EST5EDT",
- "Egypt",
- "Eire",
- "Etc/GMT",
- "Etc/GMT+0",
- "Etc/GMT+1",
- "Etc/GMT+10",
- "Etc/GMT+11",
- "Etc/GMT+12",
- "Etc/GMT+2",
- "Etc/GMT+3",
- "Etc/GMT+4",
- "Etc/GMT+5",
- "Etc/GMT+6",
- "Etc/GMT+7",
- "Etc/GMT+8",
- "Etc/GMT+9",
- "Etc/GMT-0",
- "Etc/GMT-1",
- "Etc/GMT-10",
- "Etc/GMT-11",
- "Etc/GMT-12",
- "Etc/GMT-13",
- "Etc/GMT-14",
- "Etc/GMT-2",
- "Etc/GMT-3",
- "Etc/GMT-4",
- "Etc/GMT-5",
- "Etc/GMT-6",
- "Etc/GMT-7",
- "Etc/GMT-8",
- "Etc/GMT-9",
- "Etc/GMT0",
- "Etc/Greenwich",
- "Etc/UCT",
- "Etc/UTC",
- "Etc/Universal",
- "Etc/Zulu",
- "Europe/Amsterdam",
- "Europe/Andorra",
- "Europe/Astrakhan",
- "Europe/Athens",
- "Europe/Belfast",
- "Europe/Belgrade",
- "Europe/Berlin",
- "Europe/Bratislava",
- "Europe/Brussels",
- "Europe/Bucharest",
- "Europe/Budapest",
- "Europe/Busingen",
- "Europe/Chisinau",
- "Europe/Copenhagen",
- "Europe/Dublin",
- "Europe/Gibraltar",
- "Europe/Guernsey",
- "Europe/Helsinki",
- "Europe/Isle_of_Man",
- "Europe/Istanbul",
- "Europe/Jersey",
- "Europe/Kaliningrad",
- "Europe/Kiev",
- "Europe/Kirov",
- "Europe/Kyiv",
- "Europe/Lisbon",
- "Europe/Ljubljana",
- "Europe/London",
- "Europe/Luxembourg",
- "Europe/Madrid",
- "Europe/Malta",
- "Europe/Mariehamn",
- "Europe/Minsk",
- "Europe/Monaco",
- "Europe/Moscow",
- "Europe/Nicosia",
- "Europe/Oslo",
- "Europe/Paris",
- "Europe/Podgorica",
- "Europe/Prague",
- "Europe/Riga",
- "Europe/Rome",
- "Europe/Samara",
- "Europe/San_Marino",
- "Europe/Sarajevo",
- "Europe/Saratov",
- "Europe/Simferopol",
- "Europe/Skopje",
- "Europe/Sofia",
- "Europe/Stockholm",
- "Europe/Tallinn",
- "Europe/Tirane",
- "Europe/Tiraspol",
- "Europe/Ulyanovsk",
- "Europe/Uzhgorod",
- "Europe/Vaduz",
- "Europe/Vatican",
- "Europe/Vienna",
- "Europe/Vilnius",
- "Europe/Volgograd",
- "Europe/Warsaw",
- "Europe/Zagreb",
- "Europe/Zaporozhye",
- "Europe/Zurich",
- "Factory",
- "GB",
- "GB-Eire",
- "GMT",
- "GMT+0",
- "GMT-0",
- "GMT0",
- "Greenwich",
- "HST",
- "Hongkong",
- "Iceland",
- "Indian/Antananarivo",
- "Indian/Chagos",
- "Indian/Christmas",
- "Indian/Cocos",
- "Indian/Comoro",
- "Indian/Kerguelen",
- "Indian/Mahe",
- "Indian/Maldives",
- "Indian/Mauritius",
- "Indian/Mayotte",
- "Indian/Reunion",
- "Iran",
- "Israel",
- "Jamaica",
- "Japan",
- "Kwajalein",
- "Libya",
- "MET",
- "MST",
- "MST7MDT",
- "Mexico/BajaNorte",
- "Mexico/BajaSur",
- "Mexico/General",
- "NZ",
- "NZ-CHAT",
- "Navajo",
- "PRC",
- "PST8PDT",
- "Pacific/Apia",
- "Pacific/Auckland",
- "Pacific/Bougainville",
- "Pacific/Chatham",
- "Pacific/Chuuk",
- "Pacific/Easter",
- "Pacific/Efate",
- "Pacific/Enderbury",
- "Pacific/Fakaofo",
- "Pacific/Fiji",
- "Pacific/Funafuti",
- "Pacific/Galapagos",
- "Pacific/Gambier",
- "Pacific/Guadalcanal",
- "Pacific/Guam",
- "Pacific/Honolulu",
- "Pacific/Johnston",
- "Pacific/Kanton",
- "Pacific/Kiritimati",
- "Pacific/Kosrae",
- "Pacific/Kwajalein",
- "Pacific/Majuro",
- "Pacific/Marquesas",
- "Pacific/Midway",
- "Pacific/Nauru",
- "Pacific/Niue",
- "Pacific/Norfolk",
- "Pacific/Noumea",
- "Pacific/Pago_Pago",
- "Pacific/Palau",
- "Pacific/Pitcairn",
- "Pacific/Pohnpei",
- "Pacific/Ponape",
- "Pacific/Port_Moresby",
- "Pacific/Rarotonga",
- "Pacific/Saipan",
- "Pacific/Samoa",
- "Pacific/Tahiti",
- "Pacific/Tarawa",
- "Pacific/Tongatapu",
- "Pacific/Truk",
- "Pacific/Wake",
- "Pacific/Wallis",
- "Pacific/Yap",
- "Poland",
- "Portugal",
- "ROC",
- "ROK",
- "Singapore",
- "Turkey",
- "UCT",
- "US/Alaska",
- "US/Aleutian",
- "US/Arizona",
- "US/Central",
- "US/East-Indiana",
- "US/Eastern",
- "US/Hawaii",
- "US/Indiana-Starke",
- "US/Michigan",
- "US/Mountain",
- "US/Pacific",
- "US/Pacific-New",
- "US/Samoa",
- "UTC",
- "Universal",
- "W-SU",
- "WET",
- "Zulu",
- ]
+ "Literal['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Asmera', 'Africa/Bamako', 'Africa/Bangui', 'Africa/Banjul', 'Africa/Bissau', 'Africa/Blantyre', 'Africa/Brazzaville', 'Africa/Bujumbura', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Ceuta', 'Africa/Conakry', 'Africa/Dakar', 'Africa/Dar_es_Salaam', 'Africa/Djibouti', 'Africa/Douala', 'Africa/El_Aaiun', 'Africa/Freetown', 'Africa/Gaborone', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Juba', 'Africa/Kampala', 'Africa/Khartoum', 'Africa/Kigali', 'Africa/Kinshasa', 'Africa/Lagos', 'Africa/Libreville', 'Africa/Lome', 'Africa/Luanda', 'Africa/Lubumbashi', 'Africa/Lusaka', 'Africa/Malabo', 'Africa/Maputo', 'Africa/Maseru', 'Africa/Mbabane', 'Africa/Mogadishu', 'Africa/Monrovia', 'Africa/Nairobi', 'Africa/Ndjamena', 'Africa/Niamey', 'Africa/Nouakchott', 'Africa/Ouagadougou', 'Africa/Porto-Novo', 'Africa/Sao_Tome', 'Africa/Timbuktu', 'Africa/Tripoli', 'Africa/Tunis', 'Africa/Windhoek', 'America/Adak', 'America/Anchorage', 'America/Anguilla', 'America/Antigua', 'America/Araguaina', 'America/Argentina/Buenos_Aires', 'America/Argentina/Catamarca', 'America/Argentina/ComodRivadavia', 'America/Argentina/Cordoba', 'America/Argentina/Jujuy', 'America/Argentina/La_Rioja', 'America/Argentina/Mendoza', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Salta', 'America/Argentina/San_Juan', 'America/Argentina/San_Luis', 'America/Argentina/Tucuman', 'America/Argentina/Ushuaia', 'America/Aruba', 'America/Asuncion', 'America/Atikokan', 'America/Atka', 'America/Bahia', 'America/Bahia_Banderas', 'America/Barbados', 'America/Belem', 'America/Belize', 'America/Blanc-Sablon', 'America/Boa_Vista', 'America/Bogota', 'America/Boise', 'America/Buenos_Aires', 'America/Cambridge_Bay', 'America/Campo_Grande', 'America/Cancun', 'America/Caracas', 'America/Catamarca', 'America/Cayenne', 'America/Cayman', 'America/Chicago', 'America/Chihuahua', 'America/Ciudad_Juarez', 'America/Coral_Harbour', 'America/Cordoba', 'America/Costa_Rica', 'America/Coyhaique', 'America/Creston', 'America/Cuiaba', 'America/Curacao', 'America/Danmarkshavn', 'America/Dawson', 'America/Dawson_Creek', 'America/Denver', 'America/Detroit', 'America/Dominica', 'America/Edmonton', 'America/Eirunepe', 'America/El_Salvador', 'America/Ensenada', 'America/Fort_Nelson', 'America/Fort_Wayne', 'America/Fortaleza', 'America/Glace_Bay', 'America/Godthab', 'America/Goose_Bay', 'America/Grand_Turk', 'America/Grenada', 'America/Guadeloupe', 'America/Guatemala', 'America/Guayaquil', 'America/Guyana', 'America/Halifax', 'America/Havana', 'America/Hermosillo', 'America/Indiana/Indianapolis', 'America/Indiana/Knox', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Tell_City', 'America/Indiana/Vevay', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indianapolis', 'America/Inuvik', 'America/Iqaluit', 'America/Jamaica', 'America/Jujuy', 'America/Juneau', 'America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Knox_IN', 'America/Kralendijk', 'America/La_Paz', 'America/Lima', 'America/Los_Angeles', 'America/Louisville', 'America/Lower_Princes', 'America/Maceio', 'America/Managua', 'America/Manaus', 'America/Marigot', 'America/Martinique', 'America/Matamoros', 'America/Mazatlan', 'America/Mendoza', 'America/Menominee', 'America/Merida', 'America/Metlakatla', 'America/Mexico_City', 'America/Miquelon', 'America/Moncton', 'America/Monterrey', 'America/Montevideo', 'America/Montreal', 'America/Montserrat', 'America/Nassau', 'America/New_York', 'America/Nipigon', 'America/Nome', 'America/Noronha', 'America/North_Dakota/Beulah', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/Nuuk', 'America/Ojinaga', 'America/Panama', 'America/Pangnirtung', 'America/Paramaribo', 'America/Phoenix', 'America/Port-au-Prince', 'America/Port_of_Spain', 'America/Porto_Acre', 'America/Porto_Velho', 'America/Puerto_Rico', 'America/Punta_Arenas', 'America/Rainy_River', 'America/Rankin_Inlet', 'America/Recife', 'America/Regina', 'America/Resolute', 'America/Rio_Branco', 'America/Rosario', 'America/Santa_Isabel', 'America/Santarem', 'America/Santiago', 'America/Santo_Domingo', 'America/Sao_Paulo', 'America/Scoresbysund', 'America/Shiprock', 'America/Sitka', 'America/St_Barthelemy', 'America/St_Johns', 'America/St_Kitts', 'America/St_Lucia', 'America/St_Thomas', 'America/St_Vincent', 'America/Swift_Current', 'America/Tegucigalpa', 'America/Thule', 'America/Thunder_Bay', 'America/Tijuana', 'America/Toronto', 'America/Tortola', 'America/Vancouver', 'America/Virgin', 'America/Whitehorse', 'America/Winnipeg', 'America/Yakutat', 'America/Yellowknife', 'Antarctica/Casey', 'Antarctica/Davis', 'Antarctica/DumontDUrville', 'Antarctica/Macquarie', 'Antarctica/Mawson', 'Antarctica/McMurdo', 'Antarctica/Palmer', 'Antarctica/Rothera', 'Antarctica/South_Pole', 'Antarctica/Syowa', 'Antarctica/Troll', 'Antarctica/Vostok', 'Arctic/Longyearbyen', 'Asia/Aden', 'Asia/Almaty', 'Asia/Amman', 'Asia/Anadyr', 'Asia/Aqtau', 'Asia/Aqtobe', 'Asia/Ashgabat', 'Asia/Ashkhabad', 'Asia/Atyrau', 'Asia/Baghdad', 'Asia/Bahrain', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Barnaul', 'Asia/Beirut', 'Asia/Bishkek', 'Asia/Brunei', 'Asia/Calcutta', 'Asia/Chita', 'Asia/Choibalsan', 'Asia/Chongqing', 'Asia/Chungking', 'Asia/Colombo', 'Asia/Dacca', 'Asia/Damascus', 'Asia/Dhaka', 'Asia/Dili', 'Asia/Dubai', 'Asia/Dushanbe', 'Asia/Famagusta', 'Asia/Gaza', 'Asia/Harbin', 'Asia/Hebron', 'Asia/Ho_Chi_Minh', 'Asia/Hong_Kong', 'Asia/Hovd', 'Asia/Irkutsk', 'Asia/Istanbul', 'Asia/Jakarta', 'Asia/Jayapura', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Kashgar', 'Asia/Kathmandu', 'Asia/Katmandu', 'Asia/Khandyga', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuching', 'Asia/Kuwait', 'Asia/Macao', 'Asia/Macau', 'Asia/Magadan', 'Asia/Makassar', 'Asia/Manila', 'Asia/Muscat', 'Asia/Nicosia', 'Asia/Novokuznetsk', 'Asia/Novosibirsk', 'Asia/Omsk', 'Asia/Oral', 'Asia/Phnom_Penh', 'Asia/Pontianak', 'Asia/Pyongyang', 'Asia/Qatar', 'Asia/Qostanay', 'Asia/Qyzylorda', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Saigon', 'Asia/Sakhalin', 'Asia/Samarkand', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tel_Aviv', 'Asia/Thimbu', 'Asia/Thimphu', 'Asia/Tokyo', 'Asia/Tomsk', 'Asia/Ujung_Pandang', 'Asia/Ulaanbaatar', 'Asia/Ulan_Bator', 'Asia/Urumqi', 'Asia/Ust-Nera', 'Asia/Vientiane', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yangon', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Bermuda', 'Atlantic/Canary', 'Atlantic/Cape_Verde', 'Atlantic/Faeroe', 'Atlantic/Faroe', 'Atlantic/Jan_Mayen', 'Atlantic/Madeira', 'Atlantic/Reykjavik', 'Atlantic/South_Georgia', 'Atlantic/St_Helena', 'Atlantic/Stanley', 'Australia/ACT', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Broken_Hill', 'Australia/Canberra', 'Australia/Currie', 'Australia/Darwin', 'Australia/Eucla', 'Australia/Hobart', 'Australia/LHI', 'Australia/Lindeman', 'Australia/Lord_Howe', 'Australia/Melbourne', 'Australia/NSW', 'Australia/North', 'Australia/Perth', 'Australia/Queensland', 'Australia/South', 'Australia/Sydney', 'Australia/Tasmania', 'Australia/Victoria', 'Australia/West', 'Australia/Yancowinna', 'Brazil/Acre', 'Brazil/DeNoronha', 'Brazil/East', 'Brazil/West', 'CET', 'CST6CDT', 'Canada/Atlantic', 'Canada/Central', 'Canada/Eastern', 'Canada/Mountain', 'Canada/Newfoundland', 'Canada/Pacific', 'Canada/Saskatchewan', 'Canada/Yukon', 'Chile/Continental', 'Chile/EasterIsland', 'Cuba', 'EET', 'EST', 'EST5EDT', 'Egypt', 'Eire', 'Etc/GMT', 'Etc/GMT+0', 'Etc/GMT+1', 'Etc/GMT+10', 'Etc/GMT+11', 'Etc/GMT+12', 'Etc/GMT+2', 'Etc/GMT+3', 'Etc/GMT+4', 'Etc/GMT+5', 'Etc/GMT+6', 'Etc/GMT+7', 'Etc/GMT+8', 'Etc/GMT+9', 'Etc/GMT-0', 'Etc/GMT-1', 'Etc/GMT-10', 'Etc/GMT-11', 'Etc/GMT-12', 'Etc/GMT-13', 'Etc/GMT-14', 'Etc/GMT-2', 'Etc/GMT-3', 'Etc/GMT-4', 'Etc/GMT-5', 'Etc/GMT-6', 'Etc/GMT-7', 'Etc/GMT-8', 'Etc/GMT-9', 'Etc/GMT0', 'Etc/Greenwich', 'Etc/UCT', 'Etc/UTC', 'Etc/Universal', 'Etc/Zulu', 'Europe/Amsterdam', 'Europe/Andorra', 'Europe/Astrakhan', 'Europe/Athens', 'Europe/Belfast', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Busingen', 'Europe/Chisinau', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Gibraltar', 'Europe/Guernsey', 'Europe/Helsinki', 'Europe/Isle_of_Man', 'Europe/Istanbul', 'Europe/Jersey', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Kirov', 'Europe/Kyiv', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/Luxembourg', 'Europe/Madrid', 'Europe/Malta', 'Europe/Mariehamn', 'Europe/Minsk', 'Europe/Monaco', 'Europe/Moscow', 'Europe/Nicosia', 'Europe/Oslo', 'Europe/Paris', 'Europe/Podgorica', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/San_Marino', 'Europe/Sarajevo', 'Europe/Saratov', 'Europe/Simferopol', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Tirane', 'Europe/Tiraspol', 'Europe/Ulyanovsk', 'Europe/Uzhgorod', 'Europe/Vaduz', 'Europe/Vatican', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Europe/Zaporozhye', 'Europe/Zurich', 'Factory', 'GB', 'GB-Eire', 'GMT', 'GMT+0', 'GMT-0', 'GMT0', 'Greenwich', 'HST', 'Hongkong', 'Iceland', 'Indian/Antananarivo', 'Indian/Chagos', 'Indian/Christmas', 'Indian/Cocos', 'Indian/Comoro', 'Indian/Kerguelen', 'Indian/Mahe', 'Indian/Maldives', 'Indian/Mauritius', 'Indian/Mayotte', 'Indian/Reunion', 'Iran', 'Israel', 'Jamaica', 'Japan', 'Kwajalein', 'Libya', 'MET', 'MST', 'MST7MDT', 'Mexico/BajaNorte', 'Mexico/BajaSur', 'Mexico/General', 'NZ', 'NZ-CHAT', 'Navajo', 'PRC', 'PST8PDT', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Bougainville', 'Pacific/Chatham', 'Pacific/Chuuk', 'Pacific/Easter', 'Pacific/Efate', 'Pacific/Enderbury', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Funafuti', 'Pacific/Galapagos', 'Pacific/Gambier', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Johnston', 'Pacific/Kanton', 'Pacific/Kiritimati', 'Pacific/Kosrae', 'Pacific/Kwajalein', 'Pacific/Majuro', 'Pacific/Marquesas', 'Pacific/Midway', 'Pacific/Nauru', 'Pacific/Niue', 'Pacific/Norfolk', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Palau', 'Pacific/Pitcairn', 'Pacific/Pohnpei', 'Pacific/Ponape', 'Pacific/Port_Moresby', 'Pacific/Rarotonga', 'Pacific/Saipan', 'Pacific/Samoa', 'Pacific/Tahiti', 'Pacific/Tarawa', 'Pacific/Tongatapu', 'Pacific/Truk', 'Pacific/Wake', 'Pacific/Wallis', 'Pacific/Yap', 'Poland', 'Portugal', 'ROC', 'ROK', 'Singapore', 'Turkey', 'UCT', 'US/Alaska', 'US/Aleutian', 'US/Arizona', 'US/Central', 'US/East-Indiana', 'US/Eastern', 'US/Hawaii', 'US/Indiana-Starke', 'US/Michigan', 'US/Mountain', 'US/Pacific', 'US/Pacific-New', 'US/Samoa', 'UTC', 'Universal', 'W-SU', 'WET', 'Zulu']|str"
]
"""
Defaults to `Etc/UTC`. The output timezone for all timestamps in the report. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones). Has no effect on `interval_start` or `interval_end`.
diff --git a/stripe/params/tax/__init__.py b/stripe/params/tax/__init__.py
index 95aa6dc67..bb07a15ce 100644
--- a/stripe/params/tax/__init__.py
+++ b/stripe/params/tax/__init__.py
@@ -37,6 +37,7 @@
RegistrationCreateParamsCountryOptionsAo as RegistrationCreateParamsCountryOptionsAo,
RegistrationCreateParamsCountryOptionsAoStandard as RegistrationCreateParamsCountryOptionsAoStandard,
RegistrationCreateParamsCountryOptionsAt as RegistrationCreateParamsCountryOptionsAt,
+ RegistrationCreateParamsCountryOptionsAtIgic as RegistrationCreateParamsCountryOptionsAtIgic,
RegistrationCreateParamsCountryOptionsAtStandard as RegistrationCreateParamsCountryOptionsAtStandard,
RegistrationCreateParamsCountryOptionsAu as RegistrationCreateParamsCountryOptionsAu,
RegistrationCreateParamsCountryOptionsAuStandard as RegistrationCreateParamsCountryOptionsAuStandard,
@@ -50,10 +51,12 @@
RegistrationCreateParamsCountryOptionsBd as RegistrationCreateParamsCountryOptionsBd,
RegistrationCreateParamsCountryOptionsBdStandard as RegistrationCreateParamsCountryOptionsBdStandard,
RegistrationCreateParamsCountryOptionsBe as RegistrationCreateParamsCountryOptionsBe,
+ RegistrationCreateParamsCountryOptionsBeIgic as RegistrationCreateParamsCountryOptionsBeIgic,
RegistrationCreateParamsCountryOptionsBeStandard as RegistrationCreateParamsCountryOptionsBeStandard,
RegistrationCreateParamsCountryOptionsBf as RegistrationCreateParamsCountryOptionsBf,
RegistrationCreateParamsCountryOptionsBfStandard as RegistrationCreateParamsCountryOptionsBfStandard,
RegistrationCreateParamsCountryOptionsBg as RegistrationCreateParamsCountryOptionsBg,
+ RegistrationCreateParamsCountryOptionsBgIgic as RegistrationCreateParamsCountryOptionsBgIgic,
RegistrationCreateParamsCountryOptionsBgStandard as RegistrationCreateParamsCountryOptionsBgStandard,
RegistrationCreateParamsCountryOptionsBh as RegistrationCreateParamsCountryOptionsBh,
RegistrationCreateParamsCountryOptionsBhStandard as RegistrationCreateParamsCountryOptionsBhStandard,
@@ -73,24 +76,32 @@
RegistrationCreateParamsCountryOptionsCr as RegistrationCreateParamsCountryOptionsCr,
RegistrationCreateParamsCountryOptionsCv as RegistrationCreateParamsCountryOptionsCv,
RegistrationCreateParamsCountryOptionsCy as RegistrationCreateParamsCountryOptionsCy,
+ RegistrationCreateParamsCountryOptionsCyIgic as RegistrationCreateParamsCountryOptionsCyIgic,
RegistrationCreateParamsCountryOptionsCyStandard as RegistrationCreateParamsCountryOptionsCyStandard,
RegistrationCreateParamsCountryOptionsCz as RegistrationCreateParamsCountryOptionsCz,
+ RegistrationCreateParamsCountryOptionsCzIgic as RegistrationCreateParamsCountryOptionsCzIgic,
RegistrationCreateParamsCountryOptionsCzStandard as RegistrationCreateParamsCountryOptionsCzStandard,
RegistrationCreateParamsCountryOptionsDe as RegistrationCreateParamsCountryOptionsDe,
+ RegistrationCreateParamsCountryOptionsDeIgic as RegistrationCreateParamsCountryOptionsDeIgic,
RegistrationCreateParamsCountryOptionsDeStandard as RegistrationCreateParamsCountryOptionsDeStandard,
RegistrationCreateParamsCountryOptionsDk as RegistrationCreateParamsCountryOptionsDk,
+ RegistrationCreateParamsCountryOptionsDkIgic as RegistrationCreateParamsCountryOptionsDkIgic,
RegistrationCreateParamsCountryOptionsDkStandard as RegistrationCreateParamsCountryOptionsDkStandard,
RegistrationCreateParamsCountryOptionsEc as RegistrationCreateParamsCountryOptionsEc,
RegistrationCreateParamsCountryOptionsEe as RegistrationCreateParamsCountryOptionsEe,
+ RegistrationCreateParamsCountryOptionsEeIgic as RegistrationCreateParamsCountryOptionsEeIgic,
RegistrationCreateParamsCountryOptionsEeStandard as RegistrationCreateParamsCountryOptionsEeStandard,
RegistrationCreateParamsCountryOptionsEg as RegistrationCreateParamsCountryOptionsEg,
RegistrationCreateParamsCountryOptionsEs as RegistrationCreateParamsCountryOptionsEs,
+ RegistrationCreateParamsCountryOptionsEsIgic as RegistrationCreateParamsCountryOptionsEsIgic,
RegistrationCreateParamsCountryOptionsEsStandard as RegistrationCreateParamsCountryOptionsEsStandard,
RegistrationCreateParamsCountryOptionsEt as RegistrationCreateParamsCountryOptionsEt,
RegistrationCreateParamsCountryOptionsEtStandard as RegistrationCreateParamsCountryOptionsEtStandard,
RegistrationCreateParamsCountryOptionsFi as RegistrationCreateParamsCountryOptionsFi,
+ RegistrationCreateParamsCountryOptionsFiIgic as RegistrationCreateParamsCountryOptionsFiIgic,
RegistrationCreateParamsCountryOptionsFiStandard as RegistrationCreateParamsCountryOptionsFiStandard,
RegistrationCreateParamsCountryOptionsFr as RegistrationCreateParamsCountryOptionsFr,
+ RegistrationCreateParamsCountryOptionsFrIgic as RegistrationCreateParamsCountryOptionsFrIgic,
RegistrationCreateParamsCountryOptionsFrStandard as RegistrationCreateParamsCountryOptionsFrStandard,
RegistrationCreateParamsCountryOptionsGb as RegistrationCreateParamsCountryOptionsGb,
RegistrationCreateParamsCountryOptionsGbStandard as RegistrationCreateParamsCountryOptionsGbStandard,
@@ -98,18 +109,23 @@
RegistrationCreateParamsCountryOptionsGn as RegistrationCreateParamsCountryOptionsGn,
RegistrationCreateParamsCountryOptionsGnStandard as RegistrationCreateParamsCountryOptionsGnStandard,
RegistrationCreateParamsCountryOptionsGr as RegistrationCreateParamsCountryOptionsGr,
+ RegistrationCreateParamsCountryOptionsGrIgic as RegistrationCreateParamsCountryOptionsGrIgic,
RegistrationCreateParamsCountryOptionsGrStandard as RegistrationCreateParamsCountryOptionsGrStandard,
RegistrationCreateParamsCountryOptionsHr as RegistrationCreateParamsCountryOptionsHr,
+ RegistrationCreateParamsCountryOptionsHrIgic as RegistrationCreateParamsCountryOptionsHrIgic,
RegistrationCreateParamsCountryOptionsHrStandard as RegistrationCreateParamsCountryOptionsHrStandard,
RegistrationCreateParamsCountryOptionsHu as RegistrationCreateParamsCountryOptionsHu,
+ RegistrationCreateParamsCountryOptionsHuIgic as RegistrationCreateParamsCountryOptionsHuIgic,
RegistrationCreateParamsCountryOptionsHuStandard as RegistrationCreateParamsCountryOptionsHuStandard,
RegistrationCreateParamsCountryOptionsId as RegistrationCreateParamsCountryOptionsId,
RegistrationCreateParamsCountryOptionsIe as RegistrationCreateParamsCountryOptionsIe,
+ RegistrationCreateParamsCountryOptionsIeIgic as RegistrationCreateParamsCountryOptionsIeIgic,
RegistrationCreateParamsCountryOptionsIeStandard as RegistrationCreateParamsCountryOptionsIeStandard,
RegistrationCreateParamsCountryOptionsIn as RegistrationCreateParamsCountryOptionsIn,
RegistrationCreateParamsCountryOptionsIs as RegistrationCreateParamsCountryOptionsIs,
RegistrationCreateParamsCountryOptionsIsStandard as RegistrationCreateParamsCountryOptionsIsStandard,
RegistrationCreateParamsCountryOptionsIt as RegistrationCreateParamsCountryOptionsIt,
+ RegistrationCreateParamsCountryOptionsItIgic as RegistrationCreateParamsCountryOptionsItIgic,
RegistrationCreateParamsCountryOptionsItStandard as RegistrationCreateParamsCountryOptionsItStandard,
RegistrationCreateParamsCountryOptionsJp as RegistrationCreateParamsCountryOptionsJp,
RegistrationCreateParamsCountryOptionsJpStandard as RegistrationCreateParamsCountryOptionsJpStandard,
@@ -121,10 +137,13 @@
RegistrationCreateParamsCountryOptionsLa as RegistrationCreateParamsCountryOptionsLa,
RegistrationCreateParamsCountryOptionsLk as RegistrationCreateParamsCountryOptionsLk,
RegistrationCreateParamsCountryOptionsLt as RegistrationCreateParamsCountryOptionsLt,
+ RegistrationCreateParamsCountryOptionsLtIgic as RegistrationCreateParamsCountryOptionsLtIgic,
RegistrationCreateParamsCountryOptionsLtStandard as RegistrationCreateParamsCountryOptionsLtStandard,
RegistrationCreateParamsCountryOptionsLu as RegistrationCreateParamsCountryOptionsLu,
+ RegistrationCreateParamsCountryOptionsLuIgic as RegistrationCreateParamsCountryOptionsLuIgic,
RegistrationCreateParamsCountryOptionsLuStandard as RegistrationCreateParamsCountryOptionsLuStandard,
RegistrationCreateParamsCountryOptionsLv as RegistrationCreateParamsCountryOptionsLv,
+ RegistrationCreateParamsCountryOptionsLvIgic as RegistrationCreateParamsCountryOptionsLvIgic,
RegistrationCreateParamsCountryOptionsLvStandard as RegistrationCreateParamsCountryOptionsLvStandard,
RegistrationCreateParamsCountryOptionsMa as RegistrationCreateParamsCountryOptionsMa,
RegistrationCreateParamsCountryOptionsMd as RegistrationCreateParamsCountryOptionsMd,
@@ -135,11 +154,13 @@
RegistrationCreateParamsCountryOptionsMr as RegistrationCreateParamsCountryOptionsMr,
RegistrationCreateParamsCountryOptionsMrStandard as RegistrationCreateParamsCountryOptionsMrStandard,
RegistrationCreateParamsCountryOptionsMt as RegistrationCreateParamsCountryOptionsMt,
+ RegistrationCreateParamsCountryOptionsMtIgic as RegistrationCreateParamsCountryOptionsMtIgic,
RegistrationCreateParamsCountryOptionsMtStandard as RegistrationCreateParamsCountryOptionsMtStandard,
RegistrationCreateParamsCountryOptionsMx as RegistrationCreateParamsCountryOptionsMx,
RegistrationCreateParamsCountryOptionsMy as RegistrationCreateParamsCountryOptionsMy,
RegistrationCreateParamsCountryOptionsNg as RegistrationCreateParamsCountryOptionsNg,
RegistrationCreateParamsCountryOptionsNl as RegistrationCreateParamsCountryOptionsNl,
+ RegistrationCreateParamsCountryOptionsNlIgic as RegistrationCreateParamsCountryOptionsNlIgic,
RegistrationCreateParamsCountryOptionsNlStandard as RegistrationCreateParamsCountryOptionsNlStandard,
RegistrationCreateParamsCountryOptionsNo as RegistrationCreateParamsCountryOptionsNo,
RegistrationCreateParamsCountryOptionsNoStandard as RegistrationCreateParamsCountryOptionsNoStandard,
@@ -151,22 +172,28 @@
RegistrationCreateParamsCountryOptionsPe as RegistrationCreateParamsCountryOptionsPe,
RegistrationCreateParamsCountryOptionsPh as RegistrationCreateParamsCountryOptionsPh,
RegistrationCreateParamsCountryOptionsPl as RegistrationCreateParamsCountryOptionsPl,
+ RegistrationCreateParamsCountryOptionsPlIgic as RegistrationCreateParamsCountryOptionsPlIgic,
RegistrationCreateParamsCountryOptionsPlStandard as RegistrationCreateParamsCountryOptionsPlStandard,
RegistrationCreateParamsCountryOptionsPt as RegistrationCreateParamsCountryOptionsPt,
+ RegistrationCreateParamsCountryOptionsPtIgic as RegistrationCreateParamsCountryOptionsPtIgic,
RegistrationCreateParamsCountryOptionsPtStandard as RegistrationCreateParamsCountryOptionsPtStandard,
RegistrationCreateParamsCountryOptionsRo as RegistrationCreateParamsCountryOptionsRo,
+ RegistrationCreateParamsCountryOptionsRoIgic as RegistrationCreateParamsCountryOptionsRoIgic,
RegistrationCreateParamsCountryOptionsRoStandard as RegistrationCreateParamsCountryOptionsRoStandard,
RegistrationCreateParamsCountryOptionsRs as RegistrationCreateParamsCountryOptionsRs,
RegistrationCreateParamsCountryOptionsRsStandard as RegistrationCreateParamsCountryOptionsRsStandard,
RegistrationCreateParamsCountryOptionsRu as RegistrationCreateParamsCountryOptionsRu,
RegistrationCreateParamsCountryOptionsSa as RegistrationCreateParamsCountryOptionsSa,
RegistrationCreateParamsCountryOptionsSe as RegistrationCreateParamsCountryOptionsSe,
+ RegistrationCreateParamsCountryOptionsSeIgic as RegistrationCreateParamsCountryOptionsSeIgic,
RegistrationCreateParamsCountryOptionsSeStandard as RegistrationCreateParamsCountryOptionsSeStandard,
RegistrationCreateParamsCountryOptionsSg as RegistrationCreateParamsCountryOptionsSg,
RegistrationCreateParamsCountryOptionsSgStandard as RegistrationCreateParamsCountryOptionsSgStandard,
RegistrationCreateParamsCountryOptionsSi as RegistrationCreateParamsCountryOptionsSi,
+ RegistrationCreateParamsCountryOptionsSiIgic as RegistrationCreateParamsCountryOptionsSiIgic,
RegistrationCreateParamsCountryOptionsSiStandard as RegistrationCreateParamsCountryOptionsSiStandard,
RegistrationCreateParamsCountryOptionsSk as RegistrationCreateParamsCountryOptionsSk,
+ RegistrationCreateParamsCountryOptionsSkIgic as RegistrationCreateParamsCountryOptionsSkIgic,
RegistrationCreateParamsCountryOptionsSkStandard as RegistrationCreateParamsCountryOptionsSkStandard,
RegistrationCreateParamsCountryOptionsSn as RegistrationCreateParamsCountryOptionsSn,
RegistrationCreateParamsCountryOptionsSr as RegistrationCreateParamsCountryOptionsSr,
@@ -330,6 +357,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsAtIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsAtStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -382,6 +413,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsBeIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsBeStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -398,6 +433,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsBgIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsBgStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -474,6 +513,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsCyIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsCyStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -482,6 +525,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsCzIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsCzStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -490,6 +537,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsDeIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsDeStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -498,6 +549,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsDkIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsDkStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -510,6 +565,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsEeIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsEeStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -522,6 +581,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsEsIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsEsStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -538,6 +601,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsFiIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsFiStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -546,6 +613,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsFrIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsFrStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -574,6 +645,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsGrIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsGrStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -582,6 +657,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsHrIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsHrStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -590,6 +669,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsHuIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsHuStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -602,6 +685,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsIeIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsIeStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -622,6 +709,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsItIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsItStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -666,6 +757,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsLtIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsLtStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -674,6 +769,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsLuIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsLuStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -682,6 +781,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsLvIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsLvStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -722,6 +825,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsMtIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsMtStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -742,6 +849,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsNlIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsNlStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -786,6 +897,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsPlIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsPlStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -794,6 +909,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsPtIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsPtStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -802,6 +921,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsRoIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsRoStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -826,6 +949,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsSeIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsSeStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -842,6 +969,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsSiIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsSiStandard": (
"stripe.params.tax._registration_create_params",
False,
@@ -850,6 +981,10 @@
"stripe.params.tax._registration_create_params",
False,
),
+ "RegistrationCreateParamsCountryOptionsSkIgic": (
+ "stripe.params.tax._registration_create_params",
+ False,
+ ),
"RegistrationCreateParamsCountryOptionsSkStandard": (
"stripe.params.tax._registration_create_params",
False,
diff --git a/stripe/params/tax/_calculation_create_params.py b/stripe/params/tax/_calculation_create_params.py
index da7d1af28..59e5c3e13 100644
--- a/stripe/params/tax/_calculation_create_params.py
+++ b/stripe/params/tax/_calculation_create_params.py
@@ -2,7 +2,7 @@
# File generated from our OpenAPI spec
from stripe._request_options import RequestOptions
from stripe._stripe_object import UntypedStripeObject
-from typing import Dict, List
+from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
@@ -25,7 +25,7 @@ class CalculationCreateParams(RequestOptions):
"""
line_items: List["CalculationCreateParamsLineItem"]
"""
- A list of items the customer is purchasing.
+ A list of items the customer is purchasing. You can pass up to 100 line items, or 1,000 if your account has an increased limit.
"""
ship_from_details: NotRequired["CalculationCreateParamsShipFromDetails"]
"""
@@ -94,124 +94,127 @@ class CalculationCreateParamsCustomerDetailsAddress(TypedDict):
class CalculationCreateParamsCustomerDetailsTaxId(TypedDict):
- type: Literal[
- "ad_nrt",
- "ae_trn",
- "al_tin",
- "am_tin",
- "ao_tin",
- "ar_cuit",
- "au_abn",
- "au_arn",
- "aw_tin",
- "az_tin",
- "ba_tin",
- "bb_tin",
- "bd_bin",
- "bf_ifu",
- "bg_uic",
- "bh_vat",
- "bj_ifu",
- "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",
- "cm_niu",
- "cn_tin",
- "co_nit",
- "cr_tin",
- "cv_nif",
- "de_stn",
- "do_rcn",
- "ec_ruc",
- "eg_tin",
- "es_cif",
- "et_tin",
- "eu_oss_vat",
- "eu_vat",
- "fo_vat",
- "gb_vat",
- "ge_vat",
- "gi_tin",
- "gn_nif",
- "hk_br",
- "hr_oib",
- "hu_tin",
- "ic_nif",
- "id_npwp",
- "il_vat",
- "in_gst",
- "is_vat",
- "it_cf",
- "jp_cn",
- "jp_rn",
- "jp_trn",
- "ke_pin",
- "kg_tin",
- "kh_tin",
- "kr_brn",
- "kz_bin",
- "la_tin",
- "li_uid",
- "li_vat",
- "lk_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",
- "pl_nip",
- "py_ruc",
- "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",
- "zw_tin",
+ type: Union[
+ Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "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",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "fo_vat",
+ "gb_vat",
+ "ge_vat",
+ "gi_tin",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "ic_nif",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "it_cf",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "lk_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",
+ "pl_nip",
+ "py_ruc",
+ "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",
+ "zw_tin",
+ ],
+ str,
]
"""
Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `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`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `fo_vat`, `gb_vat`, `ge_vat`, `gi_tin`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `ic_nif`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `it_cf`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_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`, `pl_nip`, `py_ruc`, `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`
diff --git a/stripe/params/tax/_registration_create_params.py b/stripe/params/tax/_registration_create_params.py
index 75df663bf..54501d240 100644
--- a/stripe/params/tax/_registration_create_params.py
+++ b/stripe/params/tax/_registration_create_params.py
@@ -506,6 +506,10 @@ class RegistrationCreateParamsCountryOptionsAoStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsAt(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsAtIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsAtStandard"]
"""
Options for the standard registration.
@@ -516,6 +520,13 @@ class RegistrationCreateParamsCountryOptionsAt(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsAtIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsAtStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -633,6 +644,10 @@ class RegistrationCreateParamsCountryOptionsBdStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsBe(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsBeIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsBeStandard"]
"""
Options for the standard registration.
@@ -643,6 +658,13 @@ class RegistrationCreateParamsCountryOptionsBe(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsBeIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsBeStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -673,6 +695,10 @@ class RegistrationCreateParamsCountryOptionsBfStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsBg(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsBgIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsBgStandard"]
"""
Options for the standard registration.
@@ -683,6 +709,13 @@ class RegistrationCreateParamsCountryOptionsBg(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsBgIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsBgStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -842,6 +875,10 @@ class RegistrationCreateParamsCountryOptionsCv(TypedDict):
class RegistrationCreateParamsCountryOptionsCy(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsCyIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsCyStandard"]
"""
Options for the standard registration.
@@ -852,6 +889,13 @@ class RegistrationCreateParamsCountryOptionsCy(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsCyIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsCyStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -862,6 +906,10 @@ class RegistrationCreateParamsCountryOptionsCyStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsCz(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsCzIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsCzStandard"]
"""
Options for the standard registration.
@@ -872,6 +920,13 @@ class RegistrationCreateParamsCountryOptionsCz(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsCzIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsCzStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -882,6 +937,10 @@ class RegistrationCreateParamsCountryOptionsCzStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsDe(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsDeIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsDeStandard"]
"""
Options for the standard registration.
@@ -892,6 +951,13 @@ class RegistrationCreateParamsCountryOptionsDe(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsDeIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsDeStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -902,6 +968,10 @@ class RegistrationCreateParamsCountryOptionsDeStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsDk(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsDkIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsDkStandard"]
"""
Options for the standard registration.
@@ -912,6 +982,13 @@ class RegistrationCreateParamsCountryOptionsDk(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsDkIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsDkStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -929,6 +1006,10 @@ class RegistrationCreateParamsCountryOptionsEc(TypedDict):
class RegistrationCreateParamsCountryOptionsEe(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsEeIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsEeStandard"]
"""
Options for the standard registration.
@@ -939,6 +1020,13 @@ class RegistrationCreateParamsCountryOptionsEe(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsEeIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsEeStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -956,6 +1044,10 @@ class RegistrationCreateParamsCountryOptionsEg(TypedDict):
class RegistrationCreateParamsCountryOptionsEs(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsEsIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsEsStandard"]
"""
Options for the standard registration.
@@ -966,6 +1058,13 @@ class RegistrationCreateParamsCountryOptionsEs(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsEsIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsEsStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -996,6 +1095,10 @@ class RegistrationCreateParamsCountryOptionsEtStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsFi(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsFiIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsFiStandard"]
"""
Options for the standard registration.
@@ -1006,6 +1109,13 @@ class RegistrationCreateParamsCountryOptionsFi(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsFiIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsFiStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1016,6 +1126,10 @@ class RegistrationCreateParamsCountryOptionsFiStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsFr(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsFrIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsFrStandard"]
"""
Options for the standard registration.
@@ -1026,6 +1140,13 @@ class RegistrationCreateParamsCountryOptionsFr(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsFrIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsFrStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1083,6 +1204,10 @@ class RegistrationCreateParamsCountryOptionsGnStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsGr(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsGrIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsGrStandard"]
"""
Options for the standard registration.
@@ -1093,6 +1218,13 @@ class RegistrationCreateParamsCountryOptionsGr(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsGrIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsGrStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1103,6 +1235,10 @@ class RegistrationCreateParamsCountryOptionsGrStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsHr(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsHrIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsHrStandard"]
"""
Options for the standard registration.
@@ -1113,6 +1249,13 @@ class RegistrationCreateParamsCountryOptionsHr(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsHrIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsHrStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1123,6 +1266,10 @@ class RegistrationCreateParamsCountryOptionsHrStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsHu(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsHuIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsHuStandard"]
"""
Options for the standard registration.
@@ -1133,6 +1280,13 @@ class RegistrationCreateParamsCountryOptionsHu(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsHuIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsHuStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1150,6 +1304,10 @@ class RegistrationCreateParamsCountryOptionsId(TypedDict):
class RegistrationCreateParamsCountryOptionsIe(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsIeIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsIeStandard"]
"""
Options for the standard registration.
@@ -1160,6 +1318,13 @@ class RegistrationCreateParamsCountryOptionsIe(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsIeIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsIeStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1197,6 +1362,10 @@ class RegistrationCreateParamsCountryOptionsIsStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsIt(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsItIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsItStandard"]
"""
Options for the standard registration.
@@ -1207,6 +1376,13 @@ class RegistrationCreateParamsCountryOptionsIt(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsItIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsItStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1286,6 +1462,10 @@ class RegistrationCreateParamsCountryOptionsLk(TypedDict):
class RegistrationCreateParamsCountryOptionsLt(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsLtIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsLtStandard"]
"""
Options for the standard registration.
@@ -1296,6 +1476,13 @@ class RegistrationCreateParamsCountryOptionsLt(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsLtIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsLtStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1306,6 +1493,10 @@ class RegistrationCreateParamsCountryOptionsLtStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsLu(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsLuIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsLuStandard"]
"""
Options for the standard registration.
@@ -1316,6 +1507,13 @@ class RegistrationCreateParamsCountryOptionsLu(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsLuIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsLuStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1326,6 +1524,10 @@ class RegistrationCreateParamsCountryOptionsLuStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsLv(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsLvIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsLvStandard"]
"""
Options for the standard registration.
@@ -1336,6 +1538,13 @@ class RegistrationCreateParamsCountryOptionsLv(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsLvIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsLvStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1420,6 +1629,10 @@ class RegistrationCreateParamsCountryOptionsMrStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsMt(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsMtIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsMtStandard"]
"""
Options for the standard registration.
@@ -1430,6 +1643,13 @@ class RegistrationCreateParamsCountryOptionsMt(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsMtIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsMtStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1461,6 +1681,10 @@ class RegistrationCreateParamsCountryOptionsNg(TypedDict):
class RegistrationCreateParamsCountryOptionsNl(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsNlIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsNlStandard"]
"""
Options for the standard registration.
@@ -1471,6 +1695,13 @@ class RegistrationCreateParamsCountryOptionsNl(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsNlIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsNlStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1562,6 +1793,10 @@ class RegistrationCreateParamsCountryOptionsPh(TypedDict):
class RegistrationCreateParamsCountryOptionsPl(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsPlIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsPlStandard"]
"""
Options for the standard registration.
@@ -1572,6 +1807,13 @@ class RegistrationCreateParamsCountryOptionsPl(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsPlIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsPlStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1582,6 +1824,10 @@ class RegistrationCreateParamsCountryOptionsPlStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsPt(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsPtIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsPtStandard"]
"""
Options for the standard registration.
@@ -1592,6 +1838,13 @@ class RegistrationCreateParamsCountryOptionsPt(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsPtIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsPtStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1602,6 +1855,10 @@ class RegistrationCreateParamsCountryOptionsPtStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsRo(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsRoIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsRoStandard"]
"""
Options for the standard registration.
@@ -1612,6 +1869,13 @@ class RegistrationCreateParamsCountryOptionsRo(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsRoIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsRoStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1656,6 +1920,10 @@ class RegistrationCreateParamsCountryOptionsSa(TypedDict):
class RegistrationCreateParamsCountryOptionsSe(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsSeIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsSeStandard"]
"""
Options for the standard registration.
@@ -1666,6 +1934,13 @@ class RegistrationCreateParamsCountryOptionsSe(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsSeIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsSeStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1696,6 +1971,10 @@ class RegistrationCreateParamsCountryOptionsSgStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsSi(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsSiIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsSiStandard"]
"""
Options for the standard registration.
@@ -1706,6 +1985,13 @@ class RegistrationCreateParamsCountryOptionsSi(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsSiIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsSiStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1716,6 +2002,10 @@ class RegistrationCreateParamsCountryOptionsSiStandard(TypedDict):
class RegistrationCreateParamsCountryOptionsSk(TypedDict):
+ igic: NotRequired["RegistrationCreateParamsCountryOptionsSkIgic"]
+ """
+ Options for the IGIC registration.
+ """
standard: NotRequired["RegistrationCreateParamsCountryOptionsSkStandard"]
"""
Options for the standard registration.
@@ -1726,6 +2016,13 @@ class RegistrationCreateParamsCountryOptionsSk(TypedDict):
"""
+class RegistrationCreateParamsCountryOptionsSkIgic(TypedDict):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
+
class RegistrationCreateParamsCountryOptionsSkStandard(TypedDict):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -1846,14 +2143,17 @@ class RegistrationCreateParamsCountryOptionsUs(TypedDict):
"""
Options for the state sales tax registration.
"""
- type: Literal[
- "local_amusement_tax",
- "local_lease_tax",
- "mass_transit_parking_tax",
- "parking_tax",
- "state_communications_tax",
- "state_retail_delivery_fee",
- "state_sales_tax",
+ type: Union[
+ Literal[
+ "local_amusement_tax",
+ "local_lease_tax",
+ "mass_transit_parking_tax",
+ "parking_tax",
+ "state_communications_tax",
+ "state_retail_delivery_fee",
+ "state_sales_tax",
+ ],
+ str,
]
"""
Type of registration to be created in the US.
diff --git a/stripe/params/tax/_settings_modify_params.py b/stripe/params/tax/_settings_modify_params.py
index 29f661810..c89a823e0 100644
--- a/stripe/params/tax/_settings_modify_params.py
+++ b/stripe/params/tax/_settings_modify_params.py
@@ -22,7 +22,7 @@ class SettingsModifyParams(RequestOptions):
class SettingsModifyParamsDefaults(TypedDict):
tax_behavior: NotRequired[
- Literal["exclusive", "inclusive", "inferred_by_currency"]
+ "Literal['exclusive', 'inclusive', 'inferred_by_currency']|str"
]
"""
Specifies the default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) to be used when the item's price has unspecified tax behavior. One of inclusive, exclusive, or inferred_by_currency. Once specified, it cannot be changed back to null.
diff --git a/stripe/params/tax/_settings_update_params.py b/stripe/params/tax/_settings_update_params.py
index af11f83fb..964418578 100644
--- a/stripe/params/tax/_settings_update_params.py
+++ b/stripe/params/tax/_settings_update_params.py
@@ -21,7 +21,7 @@ class SettingsUpdateParams(TypedDict):
class SettingsUpdateParamsDefaults(TypedDict):
tax_behavior: NotRequired[
- Literal["exclusive", "inclusive", "inferred_by_currency"]
+ "Literal['exclusive', 'inclusive', 'inferred_by_currency']|str"
]
"""
Specifies the default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) to be used when the item's price has unspecified tax behavior. One of inclusive, exclusive, or inferred_by_currency. Once specified, it cannot be changed back to null.
diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py
index d66417632..490c475b6 100644
--- a/stripe/params/test_helpers/_confirmation_token_create_params.py
+++ b/stripe/params/test_helpers/_confirmation_token_create_params.py
@@ -548,36 +548,7 @@ class ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance(TypedDict):
class ConfirmationTokenCreateParamsPaymentMethodDataEps(TypedDict):
bank: NotRequired[
- Literal[
- "arzte_und_apotheker_bank",
- "austrian_anadi_bank_ag",
- "bank_austria",
- "bankhaus_carl_spangler",
- "bankhaus_schelhammer_und_schattera_ag",
- "bawag_psk_ag",
- "bks_bank_ag",
- "brull_kallmus_bank_ag",
- "btv_vier_lander_bank",
- "capital_bank_grawe_gruppe_ag",
- "deutsche_bank_ag",
- "dolomitenbank",
- "easybank_ag",
- "erste_bank_und_sparkassen",
- "hypo_alpeadriabank_international_ag",
- "hypo_bank_burgenland_aktiengesellschaft",
- "hypo_noe_lb_fur_niederosterreich_u_wien",
- "hypo_oberosterreich_salzburg_steiermark",
- "hypo_tirol_bank_ag",
- "hypo_vorarlberg_bank_ag",
- "marchfelder_bank",
- "oberbank_ag",
- "raiffeisen_bankengruppe_osterreich",
- "schoellerbank_ag",
- "sparda_bank_wien",
- "volksbank_gruppe",
- "volkskreditbank_ag",
- "vr_bank_braunau",
- ]
+ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str"
]
"""
The customer's bank.
@@ -585,36 +556,39 @@ class ConfirmationTokenCreateParamsPaymentMethodDataEps(TypedDict):
class ConfirmationTokenCreateParamsPaymentMethodDataFpx(TypedDict):
- account_holder_type: NotRequired[Literal["company", "individual"]]
+ account_holder_type: NotRequired["Literal['company', 'individual']|str"]
"""
Account holder type for FPX transaction
"""
- bank: Literal[
- "affin_bank",
- "agrobank",
- "alliance_bank",
- "ambank",
- "bank_islam",
- "bank_muamalat",
- "bank_of_china",
- "bank_rakyat",
- "bnp_paribas",
- "bsn",
- "cimb",
- "citibank",
- "deutsche_bank",
- "hong_leong_bank",
- "hsbc",
- "kfh",
- "maybank2e",
- "maybank2u",
- "mbsb_bank",
- "ocbc",
- "pb_enterprise",
- "public_bank",
- "rhb",
- "standard_chartered",
- "uob",
+ bank: Union[
+ Literal[
+ "affin_bank",
+ "agrobank",
+ "alliance_bank",
+ "ambank",
+ "bank_islam",
+ "bank_muamalat",
+ "bank_of_china",
+ "bank_rakyat",
+ "bnp_paribas",
+ "bsn",
+ "cimb",
+ "citibank",
+ "deutsche_bank",
+ "hong_leong_bank",
+ "hsbc",
+ "kfh",
+ "maybank2e",
+ "maybank2u",
+ "mbsb_bank",
+ "ocbc",
+ "pb_enterprise",
+ "public_bank",
+ "rhb",
+ "standard_chartered",
+ "uob",
+ ],
+ str,
]
"""
The customer's bank.
@@ -631,28 +605,7 @@ class ConfirmationTokenCreateParamsPaymentMethodDataGrabpay(TypedDict):
class ConfirmationTokenCreateParamsPaymentMethodDataIdeal(TypedDict):
bank: NotRequired[
- Literal[
- "abn_amro",
- "adyen",
- "asn_bank",
- "bunq",
- "buut",
- "finom",
- "handelsbanken",
- "ing",
- "knab",
- "mollie",
- "moneyou",
- "n26",
- "nn",
- "rabobank",
- "regiobank",
- "revolut",
- "sns_bank",
- "triodos_bank",
- "van_lanschot",
- "yoursafe",
- ]
+ "Literal['abn_amro', 'adyen', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'mollie', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']|str"
]
"""
The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
diff --git a/stripe/params/test_helpers/issuing/_authorization_capture_params.py b/stripe/params/test_helpers/issuing/_authorization_capture_params.py
index 2aa56bb7e..570d0a642 100644
--- a/stripe/params/test_helpers/issuing/_authorization_capture_params.py
+++ b/stripe/params/test_helpers/issuing/_authorization_capture_params.py
@@ -61,9 +61,7 @@ class AuthorizationCaptureParamsPurchaseDetailsFleet(TypedDict):
Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
"""
purchase_type: NotRequired[
- Literal[
- "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
- ]
+ "Literal['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']|str"
]
"""
The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
@@ -75,7 +73,7 @@ class AuthorizationCaptureParamsPurchaseDetailsFleet(TypedDict):
More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
"""
service_type: NotRequired[
- Literal["full_service", "non_fuel_transaction", "self_service"]
+ "Literal['full_service', 'non_fuel_transaction', 'self_service']|str"
]
"""
The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
@@ -223,28 +221,13 @@ class AuthorizationCaptureParamsPurchaseDetailsFuel(TypedDict):
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
- Literal[
- "diesel",
- "other",
- "unleaded_plus",
- "unleaded_regular",
- "unleaded_super",
- ]
+ "Literal['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']|str"
]
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[
- Literal[
- "charging_minute",
- "imperial_gallon",
- "kilogram",
- "kilowatt_hour",
- "liter",
- "other",
- "pound",
- "us_gallon",
- ]
+ "Literal['charging_minute', 'imperial_gallon', 'kilogram', 'kilowatt_hour', 'liter', 'other', 'pound', 'us_gallon']|str"
]
"""
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
diff --git a/stripe/params/test_helpers/issuing/_authorization_create_params.py b/stripe/params/test_helpers/issuing/_authorization_create_params.py
index f521f5fe3..81a1fe876 100644
--- a/stripe/params/test_helpers/issuing/_authorization_create_params.py
+++ b/stripe/params/test_helpers/issuing/_authorization_create_params.py
@@ -101,9 +101,7 @@ class AuthorizationCreateParamsFleet(TypedDict):
Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
"""
purchase_type: NotRequired[
- Literal[
- "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
- ]
+ "Literal['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']|str"
]
"""
The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
@@ -115,7 +113,7 @@ class AuthorizationCreateParamsFleet(TypedDict):
More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
"""
service_type: NotRequired[
- Literal["full_service", "non_fuel_transaction", "self_service"]
+ "Literal['full_service', 'non_fuel_transaction', 'self_service']|str"
]
"""
The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
@@ -197,28 +195,13 @@ class AuthorizationCreateParamsFuel(TypedDict):
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
- Literal[
- "diesel",
- "other",
- "unleaded_plus",
- "unleaded_regular",
- "unleaded_super",
- ]
+ "Literal['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']|str"
]
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[
- Literal[
- "charging_minute",
- "imperial_gallon",
- "kilogram",
- "kilowatt_hour",
- "liter",
- "other",
- "pound",
- "us_gallon",
- ]
+ "Literal['charging_minute', 'imperial_gallon', 'kilogram', 'kilowatt_hour', 'liter', 'other', 'pound', 'us_gallon']|str"
]
"""
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
@@ -231,302 +214,7 @@ class AuthorizationCreateParamsFuel(TypedDict):
class AuthorizationCreateParamsMerchantData(TypedDict):
category: NotRequired[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
- ]
+ "Literal['ac_refrigeration_repair', 'accounting_bookkeeping_services', 'advertising_services', 'agricultural_cooperative', 'airlines_air_carriers', 'airports_flying_fields', 'ambulance_services', 'amusement_parks_carnivals', 'antique_reproductions', 'antique_shops', 'aquariums', 'architectural_surveying_services', 'art_dealers_and_galleries', 'artists_supply_and_craft_shops', 'auto_and_home_supply_stores', 'auto_body_repair_shops', 'auto_paint_shops', 'auto_service_shops', 'automated_cash_disburse', 'automated_fuel_dispensers', 'automobile_associations', 'automotive_parts_and_accessories_stores', 'automotive_tire_stores', 'bail_and_bond_payments', 'bakeries', 'bands_orchestras', 'barber_and_beauty_shops', 'betting_casino_gambling', 'bicycle_shops', 'billiard_pool_establishments', 'boat_dealers', 'boat_rentals_and_leases', 'book_stores', 'books_periodicals_and_newspapers', 'bowling_alleys', 'bus_lines', 'business_secretarial_schools', 'buying_shopping_services', 'cable_satellite_and_other_pay_television_and_radio', 'camera_and_photographic_supply_stores', 'candy_nut_and_confectionery_stores', 'car_and_truck_dealers_new_used', 'car_and_truck_dealers_used_only', 'car_rental_agencies', 'car_washes', 'carpentry_services', 'carpet_upholstery_cleaning', 'caterers', 'charitable_and_social_service_organizations_fundraising', 'chemicals_and_allied_products', 'child_care_services', 'childrens_and_infants_wear_stores', 'chiropodists_podiatrists', 'chiropractors', 'cigar_stores_and_stands', 'civic_social_fraternal_associations', 'cleaning_and_maintenance', 'clothing_rental', 'colleges_universities', 'commercial_equipment', 'commercial_footwear', 'commercial_photography_art_and_graphics', 'commuter_transport_and_ferries', 'computer_network_services', 'computer_programming', 'computer_repair', 'computer_software_stores', 'computers_peripherals_and_software', 'concrete_work_services', 'construction_materials', 'consulting_public_relations', 'correspondence_schools', 'cosmetic_stores', 'counseling_services', 'country_clubs', 'courier_services', 'court_costs', 'credit_reporting_agencies', 'cruise_lines', 'dairy_products_stores', 'dance_hall_studios_schools', 'dating_escort_services', 'dentists_orthodontists', 'department_stores', 'detective_agencies', 'digital_goods_applications', 'digital_goods_games', 'digital_goods_large_volume', 'digital_goods_media', 'direct_marketing_catalog_merchant', 'direct_marketing_combination_catalog_and_retail_merchant', 'direct_marketing_inbound_telemarketing', 'direct_marketing_insurance_services', 'direct_marketing_other', 'direct_marketing_outbound_telemarketing', 'direct_marketing_subscription', 'direct_marketing_travel', 'discount_stores', 'doctors', 'door_to_door_sales', 'drapery_window_covering_and_upholstery_stores', 'drinking_places', 'drug_stores_and_pharmacies', 'drugs_drug_proprietaries_and_druggist_sundries', 'dry_cleaners', 'durable_goods', 'duty_free_stores', 'eating_places_restaurants', 'educational_services', 'electric_razor_stores', 'electric_vehicle_charging', 'electrical_parts_and_equipment', 'electrical_services', 'electronics_repair_shops', 'electronics_stores', 'elementary_secondary_schools', 'emergency_services_gcas_visa_use_only', 'employment_temp_agencies', 'equipment_rental', 'exterminating_services', 'family_clothing_stores', 'fast_food_restaurants', 'financial_institutions', 'fines_government_administrative_entities', 'fireplace_fireplace_screens_and_accessories_stores', 'floor_covering_stores', 'florists', 'florists_supplies_nursery_stock_and_flowers', 'freezer_and_locker_meat_provisioners', 'fuel_dealers_non_automotive', 'funeral_services_crematories', 'furniture_home_furnishings_and_equipment_stores_except_appliances', 'furniture_repair_refinishing', 'furriers_and_fur_shops', 'general_services', 'gift_card_novelty_and_souvenir_shops', 'glass_paint_and_wallpaper_stores', 'glassware_crystal_stores', 'golf_courses_public', 'government_licensed_horse_dog_racing_us_region_only', 'government_licensed_online_casions_online_gambling_us_region_only', 'government_owned_lotteries_non_us_region', 'government_owned_lotteries_us_region_only', 'government_services', 'grocery_stores_supermarkets', 'hardware_equipment_and_supplies', 'hardware_stores', 'health_and_beauty_spas', 'hearing_aids_sales_and_supplies', 'heating_plumbing_a_c', 'hobby_toy_and_game_shops', 'home_supply_warehouse_stores', 'hospitals', 'hotels_motels_and_resorts', 'household_appliance_stores', 'industrial_supplies', 'information_retrieval_services', 'insurance_default', 'insurance_underwriting_premiums', 'intra_company_purchases', 'jewelry_stores_watches_clocks_and_silverware_stores', 'landscaping_services', 'laundries', 'laundry_cleaning_services', 'legal_services_attorneys', 'luggage_and_leather_goods_stores', 'lumber_building_materials_stores', 'manual_cash_disburse', 'marinas_service_and_supplies', 'marketplaces', 'masonry_stonework_and_plaster', 'massage_parlors', 'medical_and_dental_labs', 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies', 'medical_services', 'membership_organizations', 'mens_and_boys_clothing_and_accessories_stores', 'mens_womens_clothing_stores', 'metal_service_centers', 'miscellaneous_apparel_and_accessory_shops', 'miscellaneous_auto_dealers', 'miscellaneous_business_services', 'miscellaneous_food_stores', 'miscellaneous_general_merchandise', 'miscellaneous_general_services', 'miscellaneous_home_furnishing_specialty_stores', 'miscellaneous_publishing_and_printing', 'miscellaneous_recreation_services', 'miscellaneous_repair_shops', 'miscellaneous_specialty_retail', 'mobile_home_dealers', 'motion_picture_theaters', 'motor_freight_carriers_and_trucking', 'motor_homes_dealers', 'motor_vehicle_supplies_and_new_parts', 'motorcycle_shops_and_dealers', 'motorcycle_shops_dealers', 'music_stores_musical_instruments_pianos_and_sheet_music', 'news_dealers_and_newsstands', 'non_fi_money_orders', 'non_fi_stored_value_card_purchase_load', 'nondurable_goods', 'nurseries_lawn_and_garden_supply_stores', 'nursing_personal_care', 'office_and_commercial_furniture', 'opticians_eyeglasses', 'optometrists_ophthalmologist', 'orthopedic_goods_prosthetic_devices', 'osteopaths', 'package_stores_beer_wine_and_liquor', 'paints_varnishes_and_supplies', 'parking_lots_garages', 'passenger_railways', 'pawn_shops', 'pet_shops_pet_food_and_supplies', 'petroleum_and_petroleum_products', 'photo_developing', 'photographic_photocopy_microfilm_equipment_and_supplies', 'photographic_studios', 'picture_video_production', 'piece_goods_notions_and_other_dry_goods', 'plumbing_heating_equipment_and_supplies', 'political_organizations', 'postal_services_government_only', 'precious_stones_and_metals_watches_and_jewelry', 'professional_services', 'public_warehousing_and_storage', 'quick_copy_repro_and_blueprint', 'railroads', 'real_estate_agents_and_managers_rentals', 'record_stores', 'recreational_vehicle_rentals', 'religious_goods_stores', 'religious_organizations', 'roofing_siding_sheet_metal', 'secretarial_support_services', 'security_brokers_dealers', 'service_stations', 'sewing_needlework_fabric_and_piece_goods_stores', 'shoe_repair_hat_cleaning', 'shoe_stores', 'small_appliance_repair', 'snowmobile_dealers', 'special_trade_services', 'specialty_cleaning', 'sporting_goods_stores', 'sporting_recreation_camps', 'sports_and_riding_apparel_stores', 'sports_clubs_fields', 'stamp_and_coin_stores', 'stationary_office_supplies_printing_and_writing_paper', 'stationery_stores_office_and_school_supply_stores', 'swimming_pools_sales', 't_ui_travel_germany', 'tailors_alterations', 'tax_payments_government_agencies', 'tax_preparation_services', 'taxicabs_limousines', 'telecommunication_equipment_and_telephone_sales', 'telecommunication_services', 'telegraph_services', 'tent_and_awning_shops', 'testing_laboratories', 'theatrical_ticket_agencies', 'timeshares', 'tire_retreading_and_repair', 'tolls_bridge_fees', 'tourist_attractions_and_exhibits', 'towing_services', 'trailer_parks_campgrounds', 'transportation_services', 'travel_agencies_tour_operators', 'truck_stop_iteration', 'truck_utility_trailer_rentals', 'typesetting_plate_making_and_related_services', 'typewriter_stores', 'u_s_federal_government_agencies_or_departments', 'uniforms_commercial_clothing', 'used_merchandise_and_secondhand_stores', 'utilities', 'variety_stores', 'veterinary_services', 'video_amusement_game_supplies', 'video_game_arcades', 'video_tape_rental_stores', 'vocational_trade_schools', 'watch_jewelry_repair', 'welding_repair', 'wholesale_clubs', 'wig_and_toupee_stores', 'wires_money_orders', 'womens_accessory_and_specialty_shops', 'womens_ready_to_wear_stores', 'wrecking_and_salvage_yards']|str"
]
"""
A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
diff --git a/stripe/params/test_helpers/issuing/_authorization_finalize_amount_params.py b/stripe/params/test_helpers/issuing/_authorization_finalize_amount_params.py
index da369c851..b42382839 100644
--- a/stripe/params/test_helpers/issuing/_authorization_finalize_amount_params.py
+++ b/stripe/params/test_helpers/issuing/_authorization_finalize_amount_params.py
@@ -32,9 +32,7 @@ class AuthorizationFinalizeAmountParamsFleet(TypedDict):
Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
"""
purchase_type: NotRequired[
- Literal[
- "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
- ]
+ "Literal['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']|str"
]
"""
The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
@@ -46,7 +44,7 @@ class AuthorizationFinalizeAmountParamsFleet(TypedDict):
More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
"""
service_type: NotRequired[
- Literal["full_service", "non_fuel_transaction", "self_service"]
+ "Literal['full_service', 'non_fuel_transaction', 'self_service']|str"
]
"""
The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
@@ -134,28 +132,13 @@ class AuthorizationFinalizeAmountParamsFuel(TypedDict):
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
- Literal[
- "diesel",
- "other",
- "unleaded_plus",
- "unleaded_regular",
- "unleaded_super",
- ]
+ "Literal['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']|str"
]
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[
- Literal[
- "charging_minute",
- "imperial_gallon",
- "kilogram",
- "kilowatt_hour",
- "liter",
- "other",
- "pound",
- "us_gallon",
- ]
+ "Literal['charging_minute', 'imperial_gallon', 'kilogram', 'kilowatt_hour', 'liter', 'other', 'pound', 'us_gallon']|str"
]
"""
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
diff --git a/stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py b/stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py
index 99ed6710a..7cdad71eb 100644
--- a/stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py
+++ b/stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py
@@ -38,302 +38,7 @@ class TransactionCreateForceCaptureParams(TypedDict):
class TransactionCreateForceCaptureParamsMerchantData(TypedDict):
category: NotRequired[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
- ]
+ "Literal['ac_refrigeration_repair', 'accounting_bookkeeping_services', 'advertising_services', 'agricultural_cooperative', 'airlines_air_carriers', 'airports_flying_fields', 'ambulance_services', 'amusement_parks_carnivals', 'antique_reproductions', 'antique_shops', 'aquariums', 'architectural_surveying_services', 'art_dealers_and_galleries', 'artists_supply_and_craft_shops', 'auto_and_home_supply_stores', 'auto_body_repair_shops', 'auto_paint_shops', 'auto_service_shops', 'automated_cash_disburse', 'automated_fuel_dispensers', 'automobile_associations', 'automotive_parts_and_accessories_stores', 'automotive_tire_stores', 'bail_and_bond_payments', 'bakeries', 'bands_orchestras', 'barber_and_beauty_shops', 'betting_casino_gambling', 'bicycle_shops', 'billiard_pool_establishments', 'boat_dealers', 'boat_rentals_and_leases', 'book_stores', 'books_periodicals_and_newspapers', 'bowling_alleys', 'bus_lines', 'business_secretarial_schools', 'buying_shopping_services', 'cable_satellite_and_other_pay_television_and_radio', 'camera_and_photographic_supply_stores', 'candy_nut_and_confectionery_stores', 'car_and_truck_dealers_new_used', 'car_and_truck_dealers_used_only', 'car_rental_agencies', 'car_washes', 'carpentry_services', 'carpet_upholstery_cleaning', 'caterers', 'charitable_and_social_service_organizations_fundraising', 'chemicals_and_allied_products', 'child_care_services', 'childrens_and_infants_wear_stores', 'chiropodists_podiatrists', 'chiropractors', 'cigar_stores_and_stands', 'civic_social_fraternal_associations', 'cleaning_and_maintenance', 'clothing_rental', 'colleges_universities', 'commercial_equipment', 'commercial_footwear', 'commercial_photography_art_and_graphics', 'commuter_transport_and_ferries', 'computer_network_services', 'computer_programming', 'computer_repair', 'computer_software_stores', 'computers_peripherals_and_software', 'concrete_work_services', 'construction_materials', 'consulting_public_relations', 'correspondence_schools', 'cosmetic_stores', 'counseling_services', 'country_clubs', 'courier_services', 'court_costs', 'credit_reporting_agencies', 'cruise_lines', 'dairy_products_stores', 'dance_hall_studios_schools', 'dating_escort_services', 'dentists_orthodontists', 'department_stores', 'detective_agencies', 'digital_goods_applications', 'digital_goods_games', 'digital_goods_large_volume', 'digital_goods_media', 'direct_marketing_catalog_merchant', 'direct_marketing_combination_catalog_and_retail_merchant', 'direct_marketing_inbound_telemarketing', 'direct_marketing_insurance_services', 'direct_marketing_other', 'direct_marketing_outbound_telemarketing', 'direct_marketing_subscription', 'direct_marketing_travel', 'discount_stores', 'doctors', 'door_to_door_sales', 'drapery_window_covering_and_upholstery_stores', 'drinking_places', 'drug_stores_and_pharmacies', 'drugs_drug_proprietaries_and_druggist_sundries', 'dry_cleaners', 'durable_goods', 'duty_free_stores', 'eating_places_restaurants', 'educational_services', 'electric_razor_stores', 'electric_vehicle_charging', 'electrical_parts_and_equipment', 'electrical_services', 'electronics_repair_shops', 'electronics_stores', 'elementary_secondary_schools', 'emergency_services_gcas_visa_use_only', 'employment_temp_agencies', 'equipment_rental', 'exterminating_services', 'family_clothing_stores', 'fast_food_restaurants', 'financial_institutions', 'fines_government_administrative_entities', 'fireplace_fireplace_screens_and_accessories_stores', 'floor_covering_stores', 'florists', 'florists_supplies_nursery_stock_and_flowers', 'freezer_and_locker_meat_provisioners', 'fuel_dealers_non_automotive', 'funeral_services_crematories', 'furniture_home_furnishings_and_equipment_stores_except_appliances', 'furniture_repair_refinishing', 'furriers_and_fur_shops', 'general_services', 'gift_card_novelty_and_souvenir_shops', 'glass_paint_and_wallpaper_stores', 'glassware_crystal_stores', 'golf_courses_public', 'government_licensed_horse_dog_racing_us_region_only', 'government_licensed_online_casions_online_gambling_us_region_only', 'government_owned_lotteries_non_us_region', 'government_owned_lotteries_us_region_only', 'government_services', 'grocery_stores_supermarkets', 'hardware_equipment_and_supplies', 'hardware_stores', 'health_and_beauty_spas', 'hearing_aids_sales_and_supplies', 'heating_plumbing_a_c', 'hobby_toy_and_game_shops', 'home_supply_warehouse_stores', 'hospitals', 'hotels_motels_and_resorts', 'household_appliance_stores', 'industrial_supplies', 'information_retrieval_services', 'insurance_default', 'insurance_underwriting_premiums', 'intra_company_purchases', 'jewelry_stores_watches_clocks_and_silverware_stores', 'landscaping_services', 'laundries', 'laundry_cleaning_services', 'legal_services_attorneys', 'luggage_and_leather_goods_stores', 'lumber_building_materials_stores', 'manual_cash_disburse', 'marinas_service_and_supplies', 'marketplaces', 'masonry_stonework_and_plaster', 'massage_parlors', 'medical_and_dental_labs', 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies', 'medical_services', 'membership_organizations', 'mens_and_boys_clothing_and_accessories_stores', 'mens_womens_clothing_stores', 'metal_service_centers', 'miscellaneous_apparel_and_accessory_shops', 'miscellaneous_auto_dealers', 'miscellaneous_business_services', 'miscellaneous_food_stores', 'miscellaneous_general_merchandise', 'miscellaneous_general_services', 'miscellaneous_home_furnishing_specialty_stores', 'miscellaneous_publishing_and_printing', 'miscellaneous_recreation_services', 'miscellaneous_repair_shops', 'miscellaneous_specialty_retail', 'mobile_home_dealers', 'motion_picture_theaters', 'motor_freight_carriers_and_trucking', 'motor_homes_dealers', 'motor_vehicle_supplies_and_new_parts', 'motorcycle_shops_and_dealers', 'motorcycle_shops_dealers', 'music_stores_musical_instruments_pianos_and_sheet_music', 'news_dealers_and_newsstands', 'non_fi_money_orders', 'non_fi_stored_value_card_purchase_load', 'nondurable_goods', 'nurseries_lawn_and_garden_supply_stores', 'nursing_personal_care', 'office_and_commercial_furniture', 'opticians_eyeglasses', 'optometrists_ophthalmologist', 'orthopedic_goods_prosthetic_devices', 'osteopaths', 'package_stores_beer_wine_and_liquor', 'paints_varnishes_and_supplies', 'parking_lots_garages', 'passenger_railways', 'pawn_shops', 'pet_shops_pet_food_and_supplies', 'petroleum_and_petroleum_products', 'photo_developing', 'photographic_photocopy_microfilm_equipment_and_supplies', 'photographic_studios', 'picture_video_production', 'piece_goods_notions_and_other_dry_goods', 'plumbing_heating_equipment_and_supplies', 'political_organizations', 'postal_services_government_only', 'precious_stones_and_metals_watches_and_jewelry', 'professional_services', 'public_warehousing_and_storage', 'quick_copy_repro_and_blueprint', 'railroads', 'real_estate_agents_and_managers_rentals', 'record_stores', 'recreational_vehicle_rentals', 'religious_goods_stores', 'religious_organizations', 'roofing_siding_sheet_metal', 'secretarial_support_services', 'security_brokers_dealers', 'service_stations', 'sewing_needlework_fabric_and_piece_goods_stores', 'shoe_repair_hat_cleaning', 'shoe_stores', 'small_appliance_repair', 'snowmobile_dealers', 'special_trade_services', 'specialty_cleaning', 'sporting_goods_stores', 'sporting_recreation_camps', 'sports_and_riding_apparel_stores', 'sports_clubs_fields', 'stamp_and_coin_stores', 'stationary_office_supplies_printing_and_writing_paper', 'stationery_stores_office_and_school_supply_stores', 'swimming_pools_sales', 't_ui_travel_germany', 'tailors_alterations', 'tax_payments_government_agencies', 'tax_preparation_services', 'taxicabs_limousines', 'telecommunication_equipment_and_telephone_sales', 'telecommunication_services', 'telegraph_services', 'tent_and_awning_shops', 'testing_laboratories', 'theatrical_ticket_agencies', 'timeshares', 'tire_retreading_and_repair', 'tolls_bridge_fees', 'tourist_attractions_and_exhibits', 'towing_services', 'trailer_parks_campgrounds', 'transportation_services', 'travel_agencies_tour_operators', 'truck_stop_iteration', 'truck_utility_trailer_rentals', 'typesetting_plate_making_and_related_services', 'typewriter_stores', 'u_s_federal_government_agencies_or_departments', 'uniforms_commercial_clothing', 'used_merchandise_and_secondhand_stores', 'utilities', 'variety_stores', 'veterinary_services', 'video_amusement_game_supplies', 'video_game_arcades', 'video_tape_rental_stores', 'vocational_trade_schools', 'watch_jewelry_repair', 'welding_repair', 'wholesale_clubs', 'wig_and_toupee_stores', 'wires_money_orders', 'womens_accessory_and_specialty_shops', 'womens_ready_to_wear_stores', 'wrecking_and_salvage_yards']|str"
]
"""
A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
@@ -415,9 +120,7 @@ class TransactionCreateForceCaptureParamsPurchaseDetailsFleet(TypedDict):
Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
"""
purchase_type: NotRequired[
- Literal[
- "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
- ]
+ "Literal['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']|str"
]
"""
The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
@@ -429,7 +132,7 @@ class TransactionCreateForceCaptureParamsPurchaseDetailsFleet(TypedDict):
More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
"""
service_type: NotRequired[
- Literal["full_service", "non_fuel_transaction", "self_service"]
+ "Literal['full_service', 'non_fuel_transaction', 'self_service']|str"
]
"""
The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
@@ -579,28 +282,13 @@ class TransactionCreateForceCaptureParamsPurchaseDetailsFuel(TypedDict):
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
- Literal[
- "diesel",
- "other",
- "unleaded_plus",
- "unleaded_regular",
- "unleaded_super",
- ]
+ "Literal['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']|str"
]
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[
- Literal[
- "charging_minute",
- "imperial_gallon",
- "kilogram",
- "kilowatt_hour",
- "liter",
- "other",
- "pound",
- "us_gallon",
- ]
+ "Literal['charging_minute', 'imperial_gallon', 'kilogram', 'kilowatt_hour', 'liter', 'other', 'pound', 'us_gallon']|str"
]
"""
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
diff --git a/stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_params.py b/stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_params.py
index 9dfd90711..37ee9300a 100644
--- a/stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_params.py
+++ b/stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_params.py
@@ -38,302 +38,7 @@ class TransactionCreateUnlinkedRefundParams(TypedDict):
class TransactionCreateUnlinkedRefundParamsMerchantData(TypedDict):
category: NotRequired[
- Literal[
- "ac_refrigeration_repair",
- "accounting_bookkeeping_services",
- "advertising_services",
- "agricultural_cooperative",
- "airlines_air_carriers",
- "airports_flying_fields",
- "ambulance_services",
- "amusement_parks_carnivals",
- "antique_reproductions",
- "antique_shops",
- "aquariums",
- "architectural_surveying_services",
- "art_dealers_and_galleries",
- "artists_supply_and_craft_shops",
- "auto_and_home_supply_stores",
- "auto_body_repair_shops",
- "auto_paint_shops",
- "auto_service_shops",
- "automated_cash_disburse",
- "automated_fuel_dispensers",
- "automobile_associations",
- "automotive_parts_and_accessories_stores",
- "automotive_tire_stores",
- "bail_and_bond_payments",
- "bakeries",
- "bands_orchestras",
- "barber_and_beauty_shops",
- "betting_casino_gambling",
- "bicycle_shops",
- "billiard_pool_establishments",
- "boat_dealers",
- "boat_rentals_and_leases",
- "book_stores",
- "books_periodicals_and_newspapers",
- "bowling_alleys",
- "bus_lines",
- "business_secretarial_schools",
- "buying_shopping_services",
- "cable_satellite_and_other_pay_television_and_radio",
- "camera_and_photographic_supply_stores",
- "candy_nut_and_confectionery_stores",
- "car_and_truck_dealers_new_used",
- "car_and_truck_dealers_used_only",
- "car_rental_agencies",
- "car_washes",
- "carpentry_services",
- "carpet_upholstery_cleaning",
- "caterers",
- "charitable_and_social_service_organizations_fundraising",
- "chemicals_and_allied_products",
- "child_care_services",
- "childrens_and_infants_wear_stores",
- "chiropodists_podiatrists",
- "chiropractors",
- "cigar_stores_and_stands",
- "civic_social_fraternal_associations",
- "cleaning_and_maintenance",
- "clothing_rental",
- "colleges_universities",
- "commercial_equipment",
- "commercial_footwear",
- "commercial_photography_art_and_graphics",
- "commuter_transport_and_ferries",
- "computer_network_services",
- "computer_programming",
- "computer_repair",
- "computer_software_stores",
- "computers_peripherals_and_software",
- "concrete_work_services",
- "construction_materials",
- "consulting_public_relations",
- "correspondence_schools",
- "cosmetic_stores",
- "counseling_services",
- "country_clubs",
- "courier_services",
- "court_costs",
- "credit_reporting_agencies",
- "cruise_lines",
- "dairy_products_stores",
- "dance_hall_studios_schools",
- "dating_escort_services",
- "dentists_orthodontists",
- "department_stores",
- "detective_agencies",
- "digital_goods_applications",
- "digital_goods_games",
- "digital_goods_large_volume",
- "digital_goods_media",
- "direct_marketing_catalog_merchant",
- "direct_marketing_combination_catalog_and_retail_merchant",
- "direct_marketing_inbound_telemarketing",
- "direct_marketing_insurance_services",
- "direct_marketing_other",
- "direct_marketing_outbound_telemarketing",
- "direct_marketing_subscription",
- "direct_marketing_travel",
- "discount_stores",
- "doctors",
- "door_to_door_sales",
- "drapery_window_covering_and_upholstery_stores",
- "drinking_places",
- "drug_stores_and_pharmacies",
- "drugs_drug_proprietaries_and_druggist_sundries",
- "dry_cleaners",
- "durable_goods",
- "duty_free_stores",
- "eating_places_restaurants",
- "educational_services",
- "electric_razor_stores",
- "electric_vehicle_charging",
- "electrical_parts_and_equipment",
- "electrical_services",
- "electronics_repair_shops",
- "electronics_stores",
- "elementary_secondary_schools",
- "emergency_services_gcas_visa_use_only",
- "employment_temp_agencies",
- "equipment_rental",
- "exterminating_services",
- "family_clothing_stores",
- "fast_food_restaurants",
- "financial_institutions",
- "fines_government_administrative_entities",
- "fireplace_fireplace_screens_and_accessories_stores",
- "floor_covering_stores",
- "florists",
- "florists_supplies_nursery_stock_and_flowers",
- "freezer_and_locker_meat_provisioners",
- "fuel_dealers_non_automotive",
- "funeral_services_crematories",
- "furniture_home_furnishings_and_equipment_stores_except_appliances",
- "furniture_repair_refinishing",
- "furriers_and_fur_shops",
- "general_services",
- "gift_card_novelty_and_souvenir_shops",
- "glass_paint_and_wallpaper_stores",
- "glassware_crystal_stores",
- "golf_courses_public",
- "government_licensed_horse_dog_racing_us_region_only",
- "government_licensed_online_casions_online_gambling_us_region_only",
- "government_owned_lotteries_non_us_region",
- "government_owned_lotteries_us_region_only",
- "government_services",
- "grocery_stores_supermarkets",
- "hardware_equipment_and_supplies",
- "hardware_stores",
- "health_and_beauty_spas",
- "hearing_aids_sales_and_supplies",
- "heating_plumbing_a_c",
- "hobby_toy_and_game_shops",
- "home_supply_warehouse_stores",
- "hospitals",
- "hotels_motels_and_resorts",
- "household_appliance_stores",
- "industrial_supplies",
- "information_retrieval_services",
- "insurance_default",
- "insurance_underwriting_premiums",
- "intra_company_purchases",
- "jewelry_stores_watches_clocks_and_silverware_stores",
- "landscaping_services",
- "laundries",
- "laundry_cleaning_services",
- "legal_services_attorneys",
- "luggage_and_leather_goods_stores",
- "lumber_building_materials_stores",
- "manual_cash_disburse",
- "marinas_service_and_supplies",
- "marketplaces",
- "masonry_stonework_and_plaster",
- "massage_parlors",
- "medical_and_dental_labs",
- "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
- "medical_services",
- "membership_organizations",
- "mens_and_boys_clothing_and_accessories_stores",
- "mens_womens_clothing_stores",
- "metal_service_centers",
- "miscellaneous_apparel_and_accessory_shops",
- "miscellaneous_auto_dealers",
- "miscellaneous_business_services",
- "miscellaneous_food_stores",
- "miscellaneous_general_merchandise",
- "miscellaneous_general_services",
- "miscellaneous_home_furnishing_specialty_stores",
- "miscellaneous_publishing_and_printing",
- "miscellaneous_recreation_services",
- "miscellaneous_repair_shops",
- "miscellaneous_specialty_retail",
- "mobile_home_dealers",
- "motion_picture_theaters",
- "motor_freight_carriers_and_trucking",
- "motor_homes_dealers",
- "motor_vehicle_supplies_and_new_parts",
- "motorcycle_shops_and_dealers",
- "motorcycle_shops_dealers",
- "music_stores_musical_instruments_pianos_and_sheet_music",
- "news_dealers_and_newsstands",
- "non_fi_money_orders",
- "non_fi_stored_value_card_purchase_load",
- "nondurable_goods",
- "nurseries_lawn_and_garden_supply_stores",
- "nursing_personal_care",
- "office_and_commercial_furniture",
- "opticians_eyeglasses",
- "optometrists_ophthalmologist",
- "orthopedic_goods_prosthetic_devices",
- "osteopaths",
- "package_stores_beer_wine_and_liquor",
- "paints_varnishes_and_supplies",
- "parking_lots_garages",
- "passenger_railways",
- "pawn_shops",
- "pet_shops_pet_food_and_supplies",
- "petroleum_and_petroleum_products",
- "photo_developing",
- "photographic_photocopy_microfilm_equipment_and_supplies",
- "photographic_studios",
- "picture_video_production",
- "piece_goods_notions_and_other_dry_goods",
- "plumbing_heating_equipment_and_supplies",
- "political_organizations",
- "postal_services_government_only",
- "precious_stones_and_metals_watches_and_jewelry",
- "professional_services",
- "public_warehousing_and_storage",
- "quick_copy_repro_and_blueprint",
- "railroads",
- "real_estate_agents_and_managers_rentals",
- "record_stores",
- "recreational_vehicle_rentals",
- "religious_goods_stores",
- "religious_organizations",
- "roofing_siding_sheet_metal",
- "secretarial_support_services",
- "security_brokers_dealers",
- "service_stations",
- "sewing_needlework_fabric_and_piece_goods_stores",
- "shoe_repair_hat_cleaning",
- "shoe_stores",
- "small_appliance_repair",
- "snowmobile_dealers",
- "special_trade_services",
- "specialty_cleaning",
- "sporting_goods_stores",
- "sporting_recreation_camps",
- "sports_and_riding_apparel_stores",
- "sports_clubs_fields",
- "stamp_and_coin_stores",
- "stationary_office_supplies_printing_and_writing_paper",
- "stationery_stores_office_and_school_supply_stores",
- "swimming_pools_sales",
- "t_ui_travel_germany",
- "tailors_alterations",
- "tax_payments_government_agencies",
- "tax_preparation_services",
- "taxicabs_limousines",
- "telecommunication_equipment_and_telephone_sales",
- "telecommunication_services",
- "telegraph_services",
- "tent_and_awning_shops",
- "testing_laboratories",
- "theatrical_ticket_agencies",
- "timeshares",
- "tire_retreading_and_repair",
- "tolls_bridge_fees",
- "tourist_attractions_and_exhibits",
- "towing_services",
- "trailer_parks_campgrounds",
- "transportation_services",
- "travel_agencies_tour_operators",
- "truck_stop_iteration",
- "truck_utility_trailer_rentals",
- "typesetting_plate_making_and_related_services",
- "typewriter_stores",
- "u_s_federal_government_agencies_or_departments",
- "uniforms_commercial_clothing",
- "used_merchandise_and_secondhand_stores",
- "utilities",
- "variety_stores",
- "veterinary_services",
- "video_amusement_game_supplies",
- "video_game_arcades",
- "video_tape_rental_stores",
- "vocational_trade_schools",
- "watch_jewelry_repair",
- "welding_repair",
- "wholesale_clubs",
- "wig_and_toupee_stores",
- "wires_money_orders",
- "womens_accessory_and_specialty_shops",
- "womens_ready_to_wear_stores",
- "wrecking_and_salvage_yards",
- ]
+ "Literal['ac_refrigeration_repair', 'accounting_bookkeeping_services', 'advertising_services', 'agricultural_cooperative', 'airlines_air_carriers', 'airports_flying_fields', 'ambulance_services', 'amusement_parks_carnivals', 'antique_reproductions', 'antique_shops', 'aquariums', 'architectural_surveying_services', 'art_dealers_and_galleries', 'artists_supply_and_craft_shops', 'auto_and_home_supply_stores', 'auto_body_repair_shops', 'auto_paint_shops', 'auto_service_shops', 'automated_cash_disburse', 'automated_fuel_dispensers', 'automobile_associations', 'automotive_parts_and_accessories_stores', 'automotive_tire_stores', 'bail_and_bond_payments', 'bakeries', 'bands_orchestras', 'barber_and_beauty_shops', 'betting_casino_gambling', 'bicycle_shops', 'billiard_pool_establishments', 'boat_dealers', 'boat_rentals_and_leases', 'book_stores', 'books_periodicals_and_newspapers', 'bowling_alleys', 'bus_lines', 'business_secretarial_schools', 'buying_shopping_services', 'cable_satellite_and_other_pay_television_and_radio', 'camera_and_photographic_supply_stores', 'candy_nut_and_confectionery_stores', 'car_and_truck_dealers_new_used', 'car_and_truck_dealers_used_only', 'car_rental_agencies', 'car_washes', 'carpentry_services', 'carpet_upholstery_cleaning', 'caterers', 'charitable_and_social_service_organizations_fundraising', 'chemicals_and_allied_products', 'child_care_services', 'childrens_and_infants_wear_stores', 'chiropodists_podiatrists', 'chiropractors', 'cigar_stores_and_stands', 'civic_social_fraternal_associations', 'cleaning_and_maintenance', 'clothing_rental', 'colleges_universities', 'commercial_equipment', 'commercial_footwear', 'commercial_photography_art_and_graphics', 'commuter_transport_and_ferries', 'computer_network_services', 'computer_programming', 'computer_repair', 'computer_software_stores', 'computers_peripherals_and_software', 'concrete_work_services', 'construction_materials', 'consulting_public_relations', 'correspondence_schools', 'cosmetic_stores', 'counseling_services', 'country_clubs', 'courier_services', 'court_costs', 'credit_reporting_agencies', 'cruise_lines', 'dairy_products_stores', 'dance_hall_studios_schools', 'dating_escort_services', 'dentists_orthodontists', 'department_stores', 'detective_agencies', 'digital_goods_applications', 'digital_goods_games', 'digital_goods_large_volume', 'digital_goods_media', 'direct_marketing_catalog_merchant', 'direct_marketing_combination_catalog_and_retail_merchant', 'direct_marketing_inbound_telemarketing', 'direct_marketing_insurance_services', 'direct_marketing_other', 'direct_marketing_outbound_telemarketing', 'direct_marketing_subscription', 'direct_marketing_travel', 'discount_stores', 'doctors', 'door_to_door_sales', 'drapery_window_covering_and_upholstery_stores', 'drinking_places', 'drug_stores_and_pharmacies', 'drugs_drug_proprietaries_and_druggist_sundries', 'dry_cleaners', 'durable_goods', 'duty_free_stores', 'eating_places_restaurants', 'educational_services', 'electric_razor_stores', 'electric_vehicle_charging', 'electrical_parts_and_equipment', 'electrical_services', 'electronics_repair_shops', 'electronics_stores', 'elementary_secondary_schools', 'emergency_services_gcas_visa_use_only', 'employment_temp_agencies', 'equipment_rental', 'exterminating_services', 'family_clothing_stores', 'fast_food_restaurants', 'financial_institutions', 'fines_government_administrative_entities', 'fireplace_fireplace_screens_and_accessories_stores', 'floor_covering_stores', 'florists', 'florists_supplies_nursery_stock_and_flowers', 'freezer_and_locker_meat_provisioners', 'fuel_dealers_non_automotive', 'funeral_services_crematories', 'furniture_home_furnishings_and_equipment_stores_except_appliances', 'furniture_repair_refinishing', 'furriers_and_fur_shops', 'general_services', 'gift_card_novelty_and_souvenir_shops', 'glass_paint_and_wallpaper_stores', 'glassware_crystal_stores', 'golf_courses_public', 'government_licensed_horse_dog_racing_us_region_only', 'government_licensed_online_casions_online_gambling_us_region_only', 'government_owned_lotteries_non_us_region', 'government_owned_lotteries_us_region_only', 'government_services', 'grocery_stores_supermarkets', 'hardware_equipment_and_supplies', 'hardware_stores', 'health_and_beauty_spas', 'hearing_aids_sales_and_supplies', 'heating_plumbing_a_c', 'hobby_toy_and_game_shops', 'home_supply_warehouse_stores', 'hospitals', 'hotels_motels_and_resorts', 'household_appliance_stores', 'industrial_supplies', 'information_retrieval_services', 'insurance_default', 'insurance_underwriting_premiums', 'intra_company_purchases', 'jewelry_stores_watches_clocks_and_silverware_stores', 'landscaping_services', 'laundries', 'laundry_cleaning_services', 'legal_services_attorneys', 'luggage_and_leather_goods_stores', 'lumber_building_materials_stores', 'manual_cash_disburse', 'marinas_service_and_supplies', 'marketplaces', 'masonry_stonework_and_plaster', 'massage_parlors', 'medical_and_dental_labs', 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies', 'medical_services', 'membership_organizations', 'mens_and_boys_clothing_and_accessories_stores', 'mens_womens_clothing_stores', 'metal_service_centers', 'miscellaneous_apparel_and_accessory_shops', 'miscellaneous_auto_dealers', 'miscellaneous_business_services', 'miscellaneous_food_stores', 'miscellaneous_general_merchandise', 'miscellaneous_general_services', 'miscellaneous_home_furnishing_specialty_stores', 'miscellaneous_publishing_and_printing', 'miscellaneous_recreation_services', 'miscellaneous_repair_shops', 'miscellaneous_specialty_retail', 'mobile_home_dealers', 'motion_picture_theaters', 'motor_freight_carriers_and_trucking', 'motor_homes_dealers', 'motor_vehicle_supplies_and_new_parts', 'motorcycle_shops_and_dealers', 'motorcycle_shops_dealers', 'music_stores_musical_instruments_pianos_and_sheet_music', 'news_dealers_and_newsstands', 'non_fi_money_orders', 'non_fi_stored_value_card_purchase_load', 'nondurable_goods', 'nurseries_lawn_and_garden_supply_stores', 'nursing_personal_care', 'office_and_commercial_furniture', 'opticians_eyeglasses', 'optometrists_ophthalmologist', 'orthopedic_goods_prosthetic_devices', 'osteopaths', 'package_stores_beer_wine_and_liquor', 'paints_varnishes_and_supplies', 'parking_lots_garages', 'passenger_railways', 'pawn_shops', 'pet_shops_pet_food_and_supplies', 'petroleum_and_petroleum_products', 'photo_developing', 'photographic_photocopy_microfilm_equipment_and_supplies', 'photographic_studios', 'picture_video_production', 'piece_goods_notions_and_other_dry_goods', 'plumbing_heating_equipment_and_supplies', 'political_organizations', 'postal_services_government_only', 'precious_stones_and_metals_watches_and_jewelry', 'professional_services', 'public_warehousing_and_storage', 'quick_copy_repro_and_blueprint', 'railroads', 'real_estate_agents_and_managers_rentals', 'record_stores', 'recreational_vehicle_rentals', 'religious_goods_stores', 'religious_organizations', 'roofing_siding_sheet_metal', 'secretarial_support_services', 'security_brokers_dealers', 'service_stations', 'sewing_needlework_fabric_and_piece_goods_stores', 'shoe_repair_hat_cleaning', 'shoe_stores', 'small_appliance_repair', 'snowmobile_dealers', 'special_trade_services', 'specialty_cleaning', 'sporting_goods_stores', 'sporting_recreation_camps', 'sports_and_riding_apparel_stores', 'sports_clubs_fields', 'stamp_and_coin_stores', 'stationary_office_supplies_printing_and_writing_paper', 'stationery_stores_office_and_school_supply_stores', 'swimming_pools_sales', 't_ui_travel_germany', 'tailors_alterations', 'tax_payments_government_agencies', 'tax_preparation_services', 'taxicabs_limousines', 'telecommunication_equipment_and_telephone_sales', 'telecommunication_services', 'telegraph_services', 'tent_and_awning_shops', 'testing_laboratories', 'theatrical_ticket_agencies', 'timeshares', 'tire_retreading_and_repair', 'tolls_bridge_fees', 'tourist_attractions_and_exhibits', 'towing_services', 'trailer_parks_campgrounds', 'transportation_services', 'travel_agencies_tour_operators', 'truck_stop_iteration', 'truck_utility_trailer_rentals', 'typesetting_plate_making_and_related_services', 'typewriter_stores', 'u_s_federal_government_agencies_or_departments', 'uniforms_commercial_clothing', 'used_merchandise_and_secondhand_stores', 'utilities', 'variety_stores', 'veterinary_services', 'video_amusement_game_supplies', 'video_game_arcades', 'video_tape_rental_stores', 'vocational_trade_schools', 'watch_jewelry_repair', 'welding_repair', 'wholesale_clubs', 'wig_and_toupee_stores', 'wires_money_orders', 'womens_accessory_and_specialty_shops', 'womens_ready_to_wear_stores', 'wrecking_and_salvage_yards']|str"
]
"""
A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
@@ -417,9 +122,7 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleet(TypedDict):
Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
"""
purchase_type: NotRequired[
- Literal[
- "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
- ]
+ "Literal['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']|str"
]
"""
The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
@@ -431,7 +134,7 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleet(TypedDict):
More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
"""
service_type: NotRequired[
- Literal["full_service", "non_fuel_transaction", "self_service"]
+ "Literal['full_service', 'non_fuel_transaction', 'self_service']|str"
]
"""
The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
@@ -583,28 +286,13 @@ class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel(TypedDict):
The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
"""
type: NotRequired[
- Literal[
- "diesel",
- "other",
- "unleaded_plus",
- "unleaded_regular",
- "unleaded_super",
- ]
+ "Literal['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']|str"
]
"""
The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
"""
unit: NotRequired[
- Literal[
- "charging_minute",
- "imperial_gallon",
- "kilogram",
- "kilowatt_hour",
- "liter",
- "other",
- "pound",
- "us_gallon",
- ]
+ "Literal['charging_minute', 'imperial_gallon', 'kilogram', 'kilowatt_hour', 'liter', 'other', 'pound', 'us_gallon']|str"
]
"""
The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
diff --git a/stripe/params/v2/core/_account_create_params.py b/stripe/params/v2/core/_account_create_params.py
index f1a2e7cf2..2b3a9ed70 100644
--- a/stripe/params/v2/core/_account_create_params.py
+++ b/stripe/params/v2/core/_account_create_params.py
@@ -107,7 +107,7 @@ class AccountCreateParamsConfigurationCustomer(TypedDict):
class AccountCreateParamsConfigurationCustomerAutomaticIndirectTax(TypedDict):
exempt: NotRequired[Literal["exempt", "none", "reverse"]]
"""
- Describes the customer's tax exemption status, which is `none`, `exempt`, or `reverse`. When set to reverse, invoice and receipt PDFs include the following text: “Reverse charge”.
+ Describes the customer's tax exemption status, which is `none`, `exempt`, or `reverse`. When set to reverse, invoice and receipt PDFs include the following text: "Reverse charge".
"""
ip_address: NotRequired[str]
"""
diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py
index 86408f148..0365c797b 100644
--- a/stripe/radar/_payment_evaluation.py
+++ b/stripe/radar/_payment_evaluation.py
@@ -480,13 +480,16 @@ class FraudulentPayment(StripeObject):
"""
The time when this signal was evaluated.
"""
- risk_level: Literal[
- "elevated",
- "highest",
- "low",
- "normal",
- "not_assessed",
- "unknown",
+ risk_level: Union[
+ Literal[
+ "elevated",
+ "highest",
+ "low",
+ "normal",
+ "not_assessed",
+ "unknown",
+ ],
+ str,
]
"""
Risk level of this signal, based on the score.
diff --git a/stripe/tax/_calculation.py b/stripe/tax/_calculation.py
index f59cfb2c0..4d89418b9 100644
--- a/stripe/tax/_calculation.py
+++ b/stripe/tax/_calculation.py
@@ -57,125 +57,128 @@ class Address(StripeObject):
"""
class TaxId(StripeObject):
- type: Literal[
- "ad_nrt",
- "ae_trn",
- "al_tin",
- "am_tin",
- "ao_tin",
- "ar_cuit",
- "au_abn",
- "au_arn",
- "aw_tin",
- "az_tin",
- "ba_tin",
- "bb_tin",
- "bd_bin",
- "bf_ifu",
- "bg_uic",
- "bh_vat",
- "bj_ifu",
- "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",
- "cm_niu",
- "cn_tin",
- "co_nit",
- "cr_tin",
- "cv_nif",
- "de_stn",
- "do_rcn",
- "ec_ruc",
- "eg_tin",
- "es_cif",
- "et_tin",
- "eu_oss_vat",
- "eu_vat",
- "fo_vat",
- "gb_vat",
- "ge_vat",
- "gi_tin",
- "gn_nif",
- "hk_br",
- "hr_oib",
- "hu_tin",
- "ic_nif",
- "id_npwp",
- "il_vat",
- "in_gst",
- "is_vat",
- "it_cf",
- "jp_cn",
- "jp_rn",
- "jp_trn",
- "ke_pin",
- "kg_tin",
- "kh_tin",
- "kr_brn",
- "kz_bin",
- "la_tin",
- "li_uid",
- "li_vat",
- "lk_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",
- "pl_nip",
- "py_ruc",
- "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",
- "unknown",
- "us_ein",
- "uy_ruc",
- "uz_tin",
- "uz_vat",
- "ve_rif",
- "vn_tin",
- "za_vat",
- "zm_tin",
- "zw_tin",
+ type: Union[
+ Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "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",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "fo_vat",
+ "gb_vat",
+ "ge_vat",
+ "gi_tin",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "ic_nif",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "it_cf",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "lk_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",
+ "pl_nip",
+ "py_ruc",
+ "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",
+ "unknown",
+ "us_ein",
+ "uy_ruc",
+ "uz_tin",
+ "uz_vat",
+ "ve_rif",
+ "vn_tin",
+ "za_vat",
+ "zm_tin",
+ "zw_tin",
+ ],
+ str,
]
"""
The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, or `unknown`
@@ -271,23 +274,26 @@ class TaxRateDetails(StripeObject):
"""
The tax rate percentage as a string. For example, 8.5% is represented as "8.5".
"""
- tax_type: Literal[
- "amusement_tax",
- "communications_tax",
- "gst",
- "hst",
- "igst",
- "jct",
- "lease_tax",
- "mass_transit_parking_tax",
- "parking_tax",
- "pst",
- "qst",
- "retail_delivery_fee",
- "rst",
- "sales_tax",
- "service_tax",
- "vat",
+ tax_type: Union[
+ Literal[
+ "amusement_tax",
+ "communications_tax",
+ "gst",
+ "hst",
+ "igst",
+ "jct",
+ "lease_tax",
+ "mass_transit_parking_tax",
+ "parking_tax",
+ "pst",
+ "qst",
+ "retail_delivery_fee",
+ "rst",
+ "sales_tax",
+ "service_tax",
+ "vat",
+ ],
+ str,
]
"""
The tax type, such as `vat` or `sales_tax`.
@@ -298,7 +304,7 @@ class TaxRateDetails(StripeObject):
The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
jurisdiction: Jurisdiction
- sourcing: Literal["destination", "origin"]
+ sourcing: Union[Literal["destination", "origin"], str]
"""
Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address).
"""
@@ -399,23 +405,26 @@ class FlatAmount(StripeObject):
State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""
tax_type: Optional[
- Literal[
- "amusement_tax",
- "communications_tax",
- "gst",
- "hst",
- "igst",
- "jct",
- "lease_tax",
- "mass_transit_parking_tax",
- "parking_tax",
- "pst",
- "qst",
- "retail_delivery_fee",
- "rst",
- "sales_tax",
- "service_tax",
- "vat",
+ Union[
+ Literal[
+ "amusement_tax",
+ "communications_tax",
+ "gst",
+ "hst",
+ "igst",
+ "jct",
+ "lease_tax",
+ "mass_transit_parking_tax",
+ "parking_tax",
+ "pst",
+ "qst",
+ "retail_delivery_fee",
+ "rst",
+ "sales_tax",
+ "service_tax",
+ "vat",
+ ],
+ str,
]
]
"""
diff --git a/stripe/tax/_calculation_line_item.py b/stripe/tax/_calculation_line_item.py
index cd06d2f7a..ffd33e618 100644
--- a/stripe/tax/_calculation_line_item.py
+++ b/stripe/tax/_calculation_line_item.py
@@ -40,23 +40,26 @@ class TaxRateDetails(StripeObject):
"""
The tax rate percentage as a string. For example, 8.5% is represented as "8.5".
"""
- tax_type: Literal[
- "amusement_tax",
- "communications_tax",
- "gst",
- "hst",
- "igst",
- "jct",
- "lease_tax",
- "mass_transit_parking_tax",
- "parking_tax",
- "pst",
- "qst",
- "retail_delivery_fee",
- "rst",
- "sales_tax",
- "service_tax",
- "vat",
+ tax_type: Union[
+ Literal[
+ "amusement_tax",
+ "communications_tax",
+ "gst",
+ "hst",
+ "igst",
+ "jct",
+ "lease_tax",
+ "mass_transit_parking_tax",
+ "parking_tax",
+ "pst",
+ "qst",
+ "retail_delivery_fee",
+ "rst",
+ "sales_tax",
+ "service_tax",
+ "vat",
+ ],
+ str,
]
"""
The tax type, such as `vat` or `sales_tax`.
@@ -67,7 +70,7 @@ class TaxRateDetails(StripeObject):
The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
jurisdiction: Jurisdiction
- sourcing: Literal["destination", "origin"]
+ sourcing: Union[Literal["destination", "origin"], str]
"""
Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address).
"""
diff --git a/stripe/tax/_registration.py b/stripe/tax/_registration.py
index 2f61d663c..cb01a9d1b 100644
--- a/stripe/tax/_registration.py
+++ b/stripe/tax/_registration.py
@@ -75,6 +75,12 @@ class Ao(StripeObject):
"""
class At(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -83,6 +89,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -90,7 +97,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Au(StripeObject):
class Standard(StripeObject):
@@ -139,6 +146,12 @@ class Bd(StripeObject):
"""
class Be(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -147,6 +160,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -154,7 +168,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Bf(StripeObject):
type: Literal["standard"]
@@ -163,6 +177,12 @@ class Bf(StripeObject):
"""
class Bg(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -171,6 +191,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -178,7 +199,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Bh(StripeObject):
type: Literal["standard"]
@@ -273,6 +294,12 @@ class Cv(StripeObject):
"""
class Cy(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -281,6 +308,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -288,9 +316,15 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Cz(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -299,6 +333,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -306,9 +341,15 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class De(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -317,6 +358,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -324,9 +366,15 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Dk(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -335,6 +383,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -342,7 +391,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Ec(StripeObject):
type: Literal["simplified"]
@@ -351,6 +400,12 @@ class Ec(StripeObject):
"""
class Ee(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -359,6 +414,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -366,7 +422,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Eg(StripeObject):
type: Literal["simplified"]
@@ -375,6 +431,12 @@ class Eg(StripeObject):
"""
class Es(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -383,6 +445,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -390,7 +453,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Et(StripeObject):
type: Literal["standard"]
@@ -399,6 +462,12 @@ class Et(StripeObject):
"""
class Fi(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -407,6 +476,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -414,9 +484,15 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Fr(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -425,6 +501,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -432,7 +509,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Gb(StripeObject):
class Standard(StripeObject):
@@ -463,6 +540,12 @@ class Gn(StripeObject):
"""
class Gr(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -471,6 +554,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -478,9 +562,15 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Hr(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -489,6 +579,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -496,9 +587,15 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Hu(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -507,6 +604,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -514,7 +612,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Id(StripeObject):
type: Literal["simplified"]
@@ -523,6 +621,12 @@ class Id(StripeObject):
"""
class Ie(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -531,6 +635,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -538,7 +643,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class In(StripeObject):
type: Literal["simplified"]
@@ -553,6 +658,12 @@ class Is(StripeObject):
"""
class It(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -561,6 +672,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -568,7 +680,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Jp(StripeObject):
class Standard(StripeObject):
@@ -629,6 +741,12 @@ class Lk(StripeObject):
"""
class Lt(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -637,6 +755,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -644,9 +763,15 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Lu(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -655,6 +780,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -662,9 +788,15 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Lv(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -673,6 +805,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -680,7 +813,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Ma(StripeObject):
type: Literal["simplified"]
@@ -713,6 +846,12 @@ class Mr(StripeObject):
"""
class Mt(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -721,6 +860,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -728,7 +868,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Mx(StripeObject):
type: Literal["simplified"]
@@ -749,6 +889,12 @@ class Ng(StripeObject):
"""
class Nl(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -757,6 +903,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -764,7 +911,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class No(StripeObject):
class Standard(StripeObject):
@@ -823,6 +970,12 @@ class Ph(StripeObject):
"""
class Pl(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -831,6 +984,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -838,9 +992,15 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Pt(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -849,6 +1009,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -856,9 +1017,15 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Ro(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -867,6 +1034,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -874,7 +1042,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Rs(StripeObject):
type: Literal["standard"]
@@ -895,6 +1063,12 @@ class Sa(StripeObject):
"""
class Se(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -903,6 +1077,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -910,7 +1085,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Sg(StripeObject):
class Standard(StripeObject):
@@ -929,6 +1104,12 @@ class Standard(StripeObject):
_inner_class_types = {"standard": Standard}
class Si(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -937,6 +1118,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -944,9 +1126,15 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Sk(StripeObject):
+ class Igic(StripeObject):
+ place_of_supply_scheme: Literal["inbound_goods", "standard"]
+ """
+ Place of supply scheme used in an IGIC registration.
+ """
+
class Standard(StripeObject):
place_of_supply_scheme: Union[
Literal["inbound_goods", "small_seller", "standard"], str
@@ -955,6 +1143,7 @@ class Standard(StripeObject):
Place of supply scheme used in an EU standard registration.
"""
+ igic: Optional[Igic]
standard: Optional[Standard]
type: Union[
Literal["ioss", "oss_non_union", "oss_union", "standard"], str
@@ -962,7 +1151,7 @@ class Standard(StripeObject):
"""
Type of registration in an EU country.
"""
- _inner_class_types = {"standard": Standard}
+ _inner_class_types = {"igic": Igic, "standard": Standard}
class Sn(StripeObject):
type: Literal["simplified"]
@@ -1076,14 +1265,17 @@ class Election(StripeObject):
Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
"""
state_sales_tax: Optional[StateSalesTax]
- type: Literal[
- "local_amusement_tax",
- "local_lease_tax",
- "mass_transit_parking_tax",
- "parking_tax",
- "state_communications_tax",
- "state_retail_delivery_fee",
- "state_sales_tax",
+ type: Union[
+ Literal[
+ "local_amusement_tax",
+ "local_lease_tax",
+ "mass_transit_parking_tax",
+ "parking_tax",
+ "state_communications_tax",
+ "state_retail_delivery_fee",
+ "state_sales_tax",
+ ],
+ str,
]
"""
Type of registration in the US.
diff --git a/stripe/tax/_transaction.py b/stripe/tax/_transaction.py
index 0542888bc..726d0d33c 100644
--- a/stripe/tax/_transaction.py
+++ b/stripe/tax/_transaction.py
@@ -60,125 +60,128 @@ class Address(StripeObject):
"""
class TaxId(StripeObject):
- type: Literal[
- "ad_nrt",
- "ae_trn",
- "al_tin",
- "am_tin",
- "ao_tin",
- "ar_cuit",
- "au_abn",
- "au_arn",
- "aw_tin",
- "az_tin",
- "ba_tin",
- "bb_tin",
- "bd_bin",
- "bf_ifu",
- "bg_uic",
- "bh_vat",
- "bj_ifu",
- "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",
- "cm_niu",
- "cn_tin",
- "co_nit",
- "cr_tin",
- "cv_nif",
- "de_stn",
- "do_rcn",
- "ec_ruc",
- "eg_tin",
- "es_cif",
- "et_tin",
- "eu_oss_vat",
- "eu_vat",
- "fo_vat",
- "gb_vat",
- "ge_vat",
- "gi_tin",
- "gn_nif",
- "hk_br",
- "hr_oib",
- "hu_tin",
- "ic_nif",
- "id_npwp",
- "il_vat",
- "in_gst",
- "is_vat",
- "it_cf",
- "jp_cn",
- "jp_rn",
- "jp_trn",
- "ke_pin",
- "kg_tin",
- "kh_tin",
- "kr_brn",
- "kz_bin",
- "la_tin",
- "li_uid",
- "li_vat",
- "lk_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",
- "pl_nip",
- "py_ruc",
- "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",
- "unknown",
- "us_ein",
- "uy_ruc",
- "uz_tin",
- "uz_vat",
- "ve_rif",
- "vn_tin",
- "za_vat",
- "zm_tin",
- "zw_tin",
+ type: Union[
+ Literal[
+ "ad_nrt",
+ "ae_trn",
+ "al_tin",
+ "am_tin",
+ "ao_tin",
+ "ar_cuit",
+ "au_abn",
+ "au_arn",
+ "aw_tin",
+ "az_tin",
+ "ba_tin",
+ "bb_tin",
+ "bd_bin",
+ "bf_ifu",
+ "bg_uic",
+ "bh_vat",
+ "bj_ifu",
+ "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",
+ "cm_niu",
+ "cn_tin",
+ "co_nit",
+ "cr_tin",
+ "cv_nif",
+ "de_stn",
+ "do_rcn",
+ "ec_ruc",
+ "eg_tin",
+ "es_cif",
+ "et_tin",
+ "eu_oss_vat",
+ "eu_vat",
+ "fo_vat",
+ "gb_vat",
+ "ge_vat",
+ "gi_tin",
+ "gn_nif",
+ "hk_br",
+ "hr_oib",
+ "hu_tin",
+ "ic_nif",
+ "id_npwp",
+ "il_vat",
+ "in_gst",
+ "is_vat",
+ "it_cf",
+ "jp_cn",
+ "jp_rn",
+ "jp_trn",
+ "ke_pin",
+ "kg_tin",
+ "kh_tin",
+ "kr_brn",
+ "kz_bin",
+ "la_tin",
+ "li_uid",
+ "li_vat",
+ "lk_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",
+ "pl_nip",
+ "py_ruc",
+ "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",
+ "unknown",
+ "us_ein",
+ "uy_ruc",
+ "uz_tin",
+ "uz_vat",
+ "ve_rif",
+ "vn_tin",
+ "za_vat",
+ "zm_tin",
+ "zw_tin",
+ ],
+ str,
]
"""
The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, or `unknown`
@@ -280,23 +283,26 @@ class TaxRateDetails(StripeObject):
"""
The tax rate percentage as a string. For example, 8.5% is represented as "8.5".
"""
- tax_type: Literal[
- "amusement_tax",
- "communications_tax",
- "gst",
- "hst",
- "igst",
- "jct",
- "lease_tax",
- "mass_transit_parking_tax",
- "parking_tax",
- "pst",
- "qst",
- "retail_delivery_fee",
- "rst",
- "sales_tax",
- "service_tax",
- "vat",
+ tax_type: Union[
+ Literal[
+ "amusement_tax",
+ "communications_tax",
+ "gst",
+ "hst",
+ "igst",
+ "jct",
+ "lease_tax",
+ "mass_transit_parking_tax",
+ "parking_tax",
+ "pst",
+ "qst",
+ "retail_delivery_fee",
+ "rst",
+ "sales_tax",
+ "service_tax",
+ "vat",
+ ],
+ str,
]
"""
The tax type, such as `vat` or `sales_tax`.
@@ -307,7 +313,7 @@ class TaxRateDetails(StripeObject):
The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
"""
jurisdiction: Jurisdiction
- sourcing: Literal["destination", "origin"]
+ sourcing: Union[Literal["destination", "origin"], str]
"""
Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address).
"""
diff --git a/stripe/terminal/_reader.py b/stripe/terminal/_reader.py
index 8a5e90839..ff383ac78 100644
--- a/stripe/terminal/_reader.py
+++ b/stripe/terminal/_reader.py
@@ -90,202 +90,211 @@ class ApiError(StripeObject):
For card errors, the ID of the failed charge.
"""
code: Optional[
- Literal[
- "account_closed",
- "account_country_invalid_address",
- "account_error_country_change_requires_additional_steps",
- "account_information_mismatch",
- "account_invalid",
- "account_number_invalid",
- "account_token_required_for_v2_account",
- "acss_debit_session_incomplete",
- "action_blocked",
- "alipay_upgrade_required",
- "amount_too_large",
- "amount_too_small",
- "anomalous_money_movement_request",
- "api_key_expired",
- "application_fees_not_allowed",
- "approval_required",
- "authentication_required",
- "balance_insufficient",
- "balance_invalid_parameter",
- "bank_account_bad_routing_numbers",
- "bank_account_declined",
- "bank_account_exists",
- "bank_account_restricted",
- "bank_account_unusable",
- "bank_account_unverified",
- "bank_account_verification_failed",
- "billing_invalid_mandate",
- "bitcoin_upgrade_required",
- "capture_charge_authorization_expired",
- "capture_unauthorized_payment",
- "card_decline_rate_limit_exceeded",
- "card_declined",
- "cardholder_phone_number_required",
- "charge_already_captured",
- "charge_already_refunded",
- "charge_disputed",
- "charge_exceeds_source_limit",
- "charge_exceeds_transaction_limit",
- "charge_expired_for_capture",
- "charge_invalid_parameter",
- "charge_not_refundable",
- "clearing_code_unsupported",
- "country_code_invalid",
- "country_unsupported",
- "coupon_expired",
- "customer_max_payment_methods",
- "customer_max_subscriptions",
- "customer_session_expired",
- "customer_tax_location_invalid",
- "debit_not_authorized",
- "email_invalid",
- "expired_card",
- "failed_tax_calculation",
- "financial_account_balance_does_not_support_currency",
- "financial_account_capability_not_enabled",
- "financial_account_capability_restricted",
- "financial_connections_account_inactive",
- "financial_connections_account_pending_account_numbers",
- "financial_connections_account_unavailable_account_numbers",
- "financial_connections_no_successful_transaction_refresh",
- "forwarding_api_inactive",
- "forwarding_api_invalid_parameter",
- "forwarding_api_retryable_upstream_error",
- "forwarding_api_upstream_connection_error",
- "forwarding_api_upstream_connection_timeout",
- "forwarding_api_upstream_error",
- "idempotency_key_in_use",
- "incorrect_address",
- "incorrect_cvc",
- "incorrect_number",
- "incorrect_zip",
- "india_recurring_payment_mandate_canceled",
- "instant_payouts_config_disabled",
- "instant_payouts_currency_disabled",
- "instant_payouts_limit_exceeded",
- "instant_payouts_unsupported",
- "insufficient_funds",
- "intent_invalid_state",
- "intent_verification_method_missing",
- "invalid_card_type",
- "invalid_characters",
- "invalid_charge_amount",
- "invalid_cvc",
- "invalid_expiry_month",
- "invalid_expiry_year",
- "invalid_mandate_reference_prefix_format",
- "invalid_number",
- "invalid_source_usage",
- "invalid_tax_location",
- "invoice_no_customer_line_items",
- "invoice_no_payment_method_types",
- "invoice_no_subscription_line_items",
- "invoice_not_editable",
- "invoice_on_behalf_of_not_editable",
- "invoice_payment_intent_requires_action",
- "invoice_upcoming_none",
- "livemode_mismatch",
- "lock_timeout",
- "missing",
- "no_account",
- "not_allowed_on_standard_account",
- "out_of_inventory",
- "ownership_declaration_not_allowed",
- "parameter_invalid_empty",
- "parameter_invalid_integer",
- "parameter_invalid_string_blank",
- "parameter_invalid_string_empty",
- "parameter_missing",
- "parameter_unknown",
- "parameters_exclusive",
- "payment_intent_action_required",
- "payment_intent_authentication_failure",
- "payment_intent_incompatible_payment_method",
- "payment_intent_invalid_parameter",
- "payment_intent_konbini_rejected_confirmation_number",
- "payment_intent_mandate_invalid",
- "payment_intent_payment_attempt_expired",
- "payment_intent_payment_attempt_failed",
- "payment_intent_rate_limit_exceeded",
- "payment_intent_unexpected_state",
- "payment_method_bank_account_already_verified",
- "payment_method_bank_account_blocked",
- "payment_method_billing_details_address_missing",
- "payment_method_configuration_failures",
- "payment_method_currency_mismatch",
- "payment_method_customer_decline",
- "payment_method_invalid_parameter",
- "payment_method_invalid_parameter_testmode",
- "payment_method_microdeposit_failed",
- "payment_method_microdeposit_processing_error",
- "payment_method_microdeposit_verification_amounts_invalid",
- "payment_method_microdeposit_verification_amounts_mismatch",
- "payment_method_microdeposit_verification_attempts_exceeded",
- "payment_method_microdeposit_verification_descriptor_code_mismatch",
- "payment_method_microdeposit_verification_timeout",
- "payment_method_not_available",
- "payment_method_provider_decline",
- "payment_method_provider_timeout",
- "payment_method_unactivated",
- "payment_method_unexpected_state",
- "payment_method_unsupported_type",
- "payout_reconciliation_not_ready",
- "payouts_limit_exceeded",
- "payouts_not_allowed",
- "platform_account_required",
- "platform_api_key_expired",
- "postal_code_invalid",
- "processing_error",
- "product_inactive",
- "progressive_onboarding_limit_exceeded",
- "rate_limit",
- "refer_to_customer",
- "refund_disputed_payment",
- "request_blocked",
- "resource_already_exists",
- "resource_missing",
- "return_intent_already_processed",
- "routing_number_invalid",
- "secret_key_required",
- "sepa_unsupported_account",
- "service_period_coupon_with_metered_tiered_item_unsupported",
- "setup_attempt_failed",
- "setup_intent_authentication_failure",
- "setup_intent_invalid_parameter",
- "setup_intent_mandate_invalid",
- "setup_intent_mobile_wallet_unsupported",
- "setup_intent_setup_attempt_expired",
- "setup_intent_unexpected_state",
- "shipping_address_invalid",
- "shipping_calculation_failed",
- "siret_invalid",
- "sku_inactive",
- "state_unsupported",
- "status_transition_invalid",
- "storer_capability_missing",
- "storer_capability_not_active",
- "stripe_tax_inactive",
- "tax_id_invalid",
- "tax_id_prohibited",
- "taxes_calculation_failed",
- "terminal_location_country_unsupported",
- "terminal_reader_busy",
- "terminal_reader_hardware_fault",
- "terminal_reader_invalid_location_for_activation",
- "terminal_reader_invalid_location_for_payment",
- "terminal_reader_offline",
- "terminal_reader_timeout",
- "testmode_charges_only",
- "tls_version_unsupported",
- "token_already_used",
- "token_card_network_invalid",
- "token_in_use",
- "transfer_source_balance_parameters_mismatch",
- "transfers_not_allowed",
- "url_invalid",
+ Union[
+ Literal[
+ "account_closed",
+ "account_country_invalid_address",
+ "account_error_country_change_requires_additional_steps",
+ "account_information_mismatch",
+ "account_invalid",
+ "account_number_invalid",
+ "account_token_required_for_v2_account",
+ "acss_debit_session_incomplete",
+ "action_blocked",
+ "alipay_upgrade_required",
+ "amount_too_large",
+ "amount_too_small",
+ "anomalous_money_movement_request",
+ "api_key_expired",
+ "application_fees_not_allowed",
+ "approval_required",
+ "authentication_failure",
+ "authentication_required",
+ "balance_insufficient",
+ "balance_invalid_parameter",
+ "bank_account_bad_routing_numbers",
+ "bank_account_declined",
+ "bank_account_exists",
+ "bank_account_restricted",
+ "bank_account_unusable",
+ "bank_account_unverified",
+ "bank_account_verification_failed",
+ "billing_invalid_mandate",
+ "bitcoin_upgrade_required",
+ "capability_not_active",
+ "capture_charge_authorization_expired",
+ "capture_unauthorized_payment",
+ "card_decline_rate_limit_exceeded",
+ "card_declined",
+ "cardholder_phone_number_required",
+ "charge_already_captured",
+ "charge_already_refunded",
+ "charge_disputed",
+ "charge_exceeds_source_limit",
+ "charge_exceeds_transaction_limit",
+ "charge_expired_for_capture",
+ "charge_invalid_parameter",
+ "charge_not_refundable",
+ "clearing_code_unsupported",
+ "country_code_invalid",
+ "country_unsupported",
+ "coupon_expired",
+ "customer_max_payment_methods",
+ "customer_max_subscriptions",
+ "customer_session_expired",
+ "customer_tax_location_invalid",
+ "debit_not_authorized",
+ "email_invalid",
+ "expired_card",
+ "expired_payment_method",
+ "failed_tax_calculation",
+ "financial_account_balance_does_not_support_currency",
+ "financial_account_capability_not_enabled",
+ "financial_account_capability_restricted",
+ "financial_connections_account_inactive",
+ "financial_connections_account_pending_account_numbers",
+ "financial_connections_account_unavailable_account_numbers",
+ "financial_connections_no_successful_transaction_refresh",
+ "forwarding_api_inactive",
+ "forwarding_api_invalid_parameter",
+ "forwarding_api_retryable_upstream_error",
+ "forwarding_api_upstream_connection_error",
+ "forwarding_api_upstream_connection_timeout",
+ "forwarding_api_upstream_error",
+ "idempotency_key_in_use",
+ "incorrect_address",
+ "incorrect_cvc",
+ "incorrect_number",
+ "incorrect_postal_code",
+ "incorrect_zip",
+ "india_recurring_payment_mandate_canceled",
+ "instant_payouts_config_disabled",
+ "instant_payouts_currency_disabled",
+ "instant_payouts_limit_exceeded",
+ "instant_payouts_unsupported",
+ "insufficient_funds",
+ "intent_invalid_state",
+ "intent_verification_method_missing",
+ "invalid_canceled_subscription_fields",
+ "invalid_card_type",
+ "invalid_characters",
+ "invalid_charge_amount",
+ "invalid_cvc",
+ "invalid_expiry_month",
+ "invalid_expiry_year",
+ "invalid_mandate_reference_prefix_format",
+ "invalid_number",
+ "invalid_source_usage",
+ "invalid_tax_location",
+ "invoice_no_customer_line_items",
+ "invoice_no_payment_method_types",
+ "invoice_no_subscription_line_items",
+ "invoice_not_editable",
+ "invoice_on_behalf_of_not_editable",
+ "invoice_payment_intent_requires_action",
+ "invoice_upcoming_none",
+ "livemode_mismatch",
+ "lock_timeout",
+ "missing",
+ "no_account",
+ "not_allowed_on_standard_account",
+ "out_of_inventory",
+ "ownership_declaration_not_allowed",
+ "parameter_invalid_empty",
+ "parameter_invalid_integer",
+ "parameter_invalid_string_blank",
+ "parameter_invalid_string_empty",
+ "parameter_missing",
+ "parameter_unknown",
+ "parameters_exclusive",
+ "payment_intent_action_required",
+ "payment_intent_authentication_failure",
+ "payment_intent_incompatible_payment_method",
+ "payment_intent_invalid_parameter",
+ "payment_intent_konbini_rejected_confirmation_number",
+ "payment_intent_mandate_invalid",
+ "payment_intent_payment_attempt_expired",
+ "payment_intent_payment_attempt_failed",
+ "payment_intent_rate_limit_exceeded",
+ "payment_intent_unexpected_state",
+ "payment_method_bank_account_already_verified",
+ "payment_method_bank_account_blocked",
+ "payment_method_billing_details_address_missing",
+ "payment_method_configuration_failures",
+ "payment_method_currency_mismatch",
+ "payment_method_customer_decline",
+ "payment_method_invalid_parameter",
+ "payment_method_invalid_parameter_testmode",
+ "payment_method_microdeposit_failed",
+ "payment_method_microdeposit_processing_error",
+ "payment_method_microdeposit_verification_amounts_invalid",
+ "payment_method_microdeposit_verification_amounts_mismatch",
+ "payment_method_microdeposit_verification_attempts_exceeded",
+ "payment_method_microdeposit_verification_descriptor_code_mismatch",
+ "payment_method_microdeposit_verification_timeout",
+ "payment_method_not_available",
+ "payment_method_provider_decline",
+ "payment_method_provider_timeout",
+ "payment_method_restricted",
+ "payment_method_unactivated",
+ "payment_method_unexpected_state",
+ "payment_method_unsupported_type",
+ "payout_reconciliation_not_ready",
+ "payouts_limit_exceeded",
+ "payouts_not_allowed",
+ "platform_account_required",
+ "platform_api_key_expired",
+ "postal_code_invalid",
+ "processing_error",
+ "product_inactive",
+ "progressive_onboarding_limit_exceeded",
+ "rate_limit",
+ "refer_to_customer",
+ "refund_disputed_payment",
+ "request_blocked",
+ "resource_already_exists",
+ "resource_missing",
+ "return_intent_already_processed",
+ "routing_number_invalid",
+ "secret_key_required",
+ "sepa_unsupported_account",
+ "service_period_coupon_with_metered_tiered_item_unsupported",
+ "setup_attempt_failed",
+ "setup_intent_authentication_failure",
+ "setup_intent_invalid_parameter",
+ "setup_intent_mandate_invalid",
+ "setup_intent_mobile_wallet_unsupported",
+ "setup_intent_setup_attempt_expired",
+ "setup_intent_unexpected_state",
+ "shipping_address_invalid",
+ "shipping_calculation_failed",
+ "siret_invalid",
+ "sku_inactive",
+ "state_unsupported",
+ "status_transition_invalid",
+ "storer_capability_missing",
+ "storer_capability_not_active",
+ "stripe_tax_inactive",
+ "tax_id_invalid",
+ "tax_id_prohibited",
+ "taxes_calculation_failed",
+ "terminal_location_country_unsupported",
+ "terminal_reader_busy",
+ "terminal_reader_hardware_fault",
+ "terminal_reader_invalid_location_for_activation",
+ "terminal_reader_invalid_location_for_payment",
+ "terminal_reader_offline",
+ "terminal_reader_timeout",
+ "testmode_charges_only",
+ "tls_version_unsupported",
+ "token_already_used",
+ "token_card_network_invalid",
+ "token_in_use",
+ "transfer_source_balance_parameters_mismatch",
+ "transfers_not_allowed",
+ "url_invalid",
+ ],
+ str,
]
]
"""
@@ -370,11 +379,14 @@ class ApiError(StripeObject):
Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
"""
source: Optional[Union["Account", "BankAccount", "Card", "Source"]]
- type: Literal[
- "api_error",
- "card_error",
- "idempotency_error",
- "invalid_request_error",
+ type: Union[
+ Literal[
+ "api_error",
+ "card_error",
+ "idempotency_error",
+ "invalid_request_error",
+ ],
+ str,
]
"""
The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
@@ -521,13 +533,16 @@ class Toggle(StripeObject):
"""
List of toggles being collected. Values are present if collection is complete.
"""
- type: Literal[
- "email",
- "numeric",
- "phone",
- "selection",
- "signature",
- "text",
+ type: Union[
+ Literal[
+ "email",
+ "numeric",
+ "phone",
+ "selection",
+ "signature",
+ "text",
+ ],
+ str,
]
"""
Type of input being collected.
@@ -720,7 +735,12 @@ class RefundPaymentConfig(StripeObject):
Payment intent that is being refunded.
"""
reason: Optional[
- Literal["duplicate", "fraudulent", "requested_by_customer"]
+ Union[
+ Literal[
+ "duplicate", "fraudulent", "requested_by_customer"
+ ],
+ str,
+ ]
]
"""
The reason for the refund.
@@ -938,7 +958,7 @@ class LineItem(StripeObject):
"""
Serial number of the reader.
"""
- status: Optional[Literal["offline", "online"]]
+ status: Optional[Union[Literal["offline", "online"], str]]
"""
The networking status of the reader. We do not recommend using this field in flows that may block taking payments.
"""
diff --git a/stripe/treasury/_financial_account.py b/stripe/treasury/_financial_account.py
index ac18c60e7..fbc26f3b5 100644
--- a/stripe/treasury/_financial_account.py
+++ b/stripe/treasury/_financial_account.py
@@ -42,8 +42,8 @@ class FinancialAccount(
UpdateableAPIResource["FinancialAccount"],
):
"""
- Stripe Treasury provides users with a container for money called a FinancialAccount that is separate from their Payments balance.
- FinancialAccounts serve as the source and destination of Treasury's money movement APIs.
+ Stripe Treasury for Platforms provides users with a container for money called a FinancialAccount that is separate from their Payments balance.
+ FinancialAccounts serve as the source and destination of Treasury for Platform's money movement APIs.
"""
OBJECT_NAME: ClassVar[Literal["treasury.financial_account"]] = (
diff --git a/stripe/v2/core/_account.py b/stripe/v2/core/_account.py
index e00567930..84fabf29f 100644
--- a/stripe/v2/core/_account.py
+++ b/stripe/v2/core/_account.py
@@ -4003,7 +4003,7 @@ class Kanji(StripeObject):
"""
legal_gender: Optional[Union[Literal["female", "male"], str]]
"""
- The individual's gender (International regulations require either "male” or "female").
+ The individual's gender (International regulations require either "male" or "female").
"""
metadata: Optional[UntypedStripeObject[str]]
"""
diff --git a/stripe/v2/core/_account_service.py b/stripe/v2/core/_account_service.py
index 055a76fb0..c10dd2364 100644
--- a/stripe/v2/core/_account_service.py
+++ b/stripe/v2/core/_account_service.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
+from stripe._encode import _coerce_v2_params
from stripe._stripe_service import StripeService
from stripe._util import sanitize_id
from typing import Optional, cast
@@ -110,7 +111,18 @@ def create(
"post",
"/v2/core/accounts",
base_address="api",
- params=params,
+ params=_coerce_v2_params(
+ params,
+ {
+ "identity": {
+ "individual": {
+ "relationship": {
+ "percent_ownership": "decimal_string",
+ },
+ },
+ },
+ },
+ ),
options=options,
),
)
@@ -129,7 +141,18 @@ async def create_async(
"post",
"/v2/core/accounts",
base_address="api",
- params=params,
+ params=_coerce_v2_params(
+ params,
+ {
+ "identity": {
+ "individual": {
+ "relationship": {
+ "percent_ownership": "decimal_string",
+ },
+ },
+ },
+ },
+ ),
options=options,
),
)
@@ -189,7 +212,18 @@ def update(
"post",
"/v2/core/accounts/{id}".format(id=sanitize_id(id)),
base_address="api",
- params=params,
+ params=_coerce_v2_params(
+ params,
+ {
+ "identity": {
+ "individual": {
+ "relationship": {
+ "percent_ownership": "decimal_string",
+ },
+ },
+ },
+ },
+ ),
options=options,
),
)
@@ -209,7 +243,18 @@ async def update_async(
"post",
"/v2/core/accounts/{id}".format(id=sanitize_id(id)),
base_address="api",
- params=params,
+ params=_coerce_v2_params(
+ params,
+ {
+ "identity": {
+ "individual": {
+ "relationship": {
+ "percent_ownership": "decimal_string",
+ },
+ },
+ },
+ },
+ ),
options=options,
),
)
diff --git a/stripe/v2/core/_account_token_service.py b/stripe/v2/core/_account_token_service.py
index 2eea9c98f..1278bb729 100644
--- a/stripe/v2/core/_account_token_service.py
+++ b/stripe/v2/core/_account_token_service.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
+from stripe._encode import _coerce_v2_params
from stripe._stripe_service import StripeService
from stripe._util import sanitize_id
from typing import Optional, cast
@@ -35,7 +36,18 @@ def create(
"post",
"/v2/core/account_tokens",
base_address="api",
- params=params,
+ params=_coerce_v2_params(
+ params,
+ {
+ "identity": {
+ "individual": {
+ "relationship": {
+ "percent_ownership": "decimal_string",
+ },
+ },
+ },
+ },
+ ),
options=options,
),
)
@@ -58,7 +70,18 @@ async def create_async(
"post",
"/v2/core/account_tokens",
base_address="api",
- params=params,
+ params=_coerce_v2_params(
+ params,
+ {
+ "identity": {
+ "individual": {
+ "relationship": {
+ "percent_ownership": "decimal_string",
+ },
+ },
+ },
+ },
+ ),
options=options,
),
)
diff --git a/stripe/v2/core/accounts/_person_service.py b/stripe/v2/core/accounts/_person_service.py
index 0d99f5344..60bd385d1 100644
--- a/stripe/v2/core/accounts/_person_service.py
+++ b/stripe/v2/core/accounts/_person_service.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
+from stripe._encode import _coerce_v2_params
from stripe._stripe_service import StripeService
from stripe._util import sanitize_id
from typing import Optional, cast
@@ -89,7 +90,10 @@ def create(
account_id=sanitize_id(account_id),
),
base_address="api",
- params=params,
+ params=_coerce_v2_params(
+ params,
+ {"relationship": {"percent_ownership": "decimal_string"}},
+ ),
options=options,
),
)
@@ -111,7 +115,10 @@ async def create_async(
account_id=sanitize_id(account_id),
),
base_address="api",
- params=params,
+ params=_coerce_v2_params(
+ params,
+ {"relationship": {"percent_ownership": "decimal_string"}},
+ ),
options=options,
),
)
@@ -231,7 +238,10 @@ def update(
id=sanitize_id(id),
),
base_address="api",
- params=params,
+ params=_coerce_v2_params(
+ params,
+ {"relationship": {"percent_ownership": "decimal_string"}},
+ ),
options=options,
),
)
@@ -255,7 +265,10 @@ async def update_async(
id=sanitize_id(id),
),
base_address="api",
- params=params,
+ params=_coerce_v2_params(
+ params,
+ {"relationship": {"percent_ownership": "decimal_string"}},
+ ),
options=options,
),
)
diff --git a/stripe/v2/core/accounts/_person_token_service.py b/stripe/v2/core/accounts/_person_token_service.py
index 66d9498e8..a9f6ca4b2 100644
--- a/stripe/v2/core/accounts/_person_token_service.py
+++ b/stripe/v2/core/accounts/_person_token_service.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
+from stripe._encode import _coerce_v2_params
from stripe._stripe_service import StripeService
from stripe._util import sanitize_id
from typing import Optional, cast
@@ -35,7 +36,10 @@ def create(
account_id=sanitize_id(account_id),
),
base_address="api",
- params=params,
+ params=_coerce_v2_params(
+ params,
+ {"relationship": {"percent_ownership": "decimal_string"}},
+ ),
options=options,
),
)
@@ -58,7 +62,10 @@ async def create_async(
account_id=sanitize_id(account_id),
),
base_address="api",
- params=params,
+ params=_coerce_v2_params(
+ params,
+ {"relationship": {"percent_ownership": "decimal_string"}},
+ ),
options=options,
),
)
diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py
index 68ba9136b..9bd59b488 100644
--- a/tests/test_generated_examples.py
+++ b/tests/test_generated_examples.py
@@ -26921,24 +26921,24 @@ def test_setup_intents_post_service_non_namespaced(
http_client=http_client_mock.get_mock_http_client(),
)
- client.setup_intents.create({"payment_method_types": ["card"]})
+ client.setup_intents.create({"allowed_payment_method_types": ["card"]})
http_client_mock.assert_requested(
"post",
path="/v1/setup_intents",
query_string="",
api_base="https://api.stripe.com",
- post_data="payment_method_types[0]=card",
+ post_data="allowed_payment_method_types[0]=card",
)
def test_setup_intents_post(
self, http_client_mock: HTTPClientMock
) -> None:
- stripe.SetupIntent.create(payment_method_types=["card"])
+ stripe.SetupIntent.create(allowed_payment_method_types=["card"])
http_client_mock.assert_requested(
"post",
path="/v1/setup_intents",
query_string="",
- post_data="payment_method_types[0]=card",
+ post_data="allowed_payment_method_types[0]=card",
)
def test_setup_intents_post_service(
@@ -26953,25 +26953,31 @@ def test_setup_intents_post_service(
http_client=http_client_mock.get_mock_http_client(),
)
- client.v1.setup_intents.create({"payment_method_types": ["card"]})
+ client.v1.setup_intents.create(
+ {
+ "allowed_payment_method_types": ["card"],
+ }
+ )
http_client_mock.assert_requested(
"post",
path="/v1/setup_intents",
query_string="",
api_base="https://api.stripe.com",
- post_data="payment_method_types[0]=card",
+ post_data="allowed_payment_method_types[0]=card",
)
@pytest.mark.anyio
async def test_setup_intents_post_async(
self, http_client_mock: HTTPClientMock
) -> None:
- await stripe.SetupIntent.create_async(payment_method_types=["card"])
+ await stripe.SetupIntent.create_async(
+ allowed_payment_method_types=["card"],
+ )
http_client_mock.assert_requested(
"post",
path="/v1/setup_intents",
query_string="",
- post_data="payment_method_types[0]=card",
+ post_data="allowed_payment_method_types[0]=card",
)
@pytest.mark.anyio
@@ -26989,7 +26995,7 @@ async def test_setup_intents_post_service_async(
await client.v1.setup_intents.create_async(
{
- "payment_method_types": ["card"],
+ "allowed_payment_method_types": ["card"],
}
)
http_client_mock.assert_requested(
@@ -26997,7 +27003,7 @@ async def test_setup_intents_post_service_async(
path="/v1/setup_intents",
query_string="",
api_base="https://api.stripe.com",
- post_data="payment_method_types[0]=card",
+ post_data="allowed_payment_method_types[0]=card",
)
def test_setup_intents_post_2_service_non_namespaced(
From 761354d82246d63d39805d30b4f5a8a45c5a008e Mon Sep 17 00:00:00 2001
From: David Brownman
Date: Wed, 26 Aug 2026 21:07:37 -0700
Subject: [PATCH 2/9] Bump version to 15.6.0
---
CHANGELOG.md | 35 +++++++++++++++++++++++++++++++++++
VERSION | 2 +-
pyproject.toml | 2 +-
stripe/_version.py | 2 +-
4 files changed, 38 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0bcc00340..53d5ab774 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,38 @@
+## 15.6.0 - 2026-08-26
+This release changes the pinned API version to 2026-08-26.dahlia.
+
+* [#1881](https://github.com/stripe/stripe-python/pull/1881) Add new `EventNotificationHandler` class for better thin event management
+
+ - We've been putting a lot of time into rethinking the event handling experience in the SDKs. This new class is the culmination [of that effort](https://stripe.dev/blog/event-notification-handlers-thin-events).
+ - They're designed for a tight coupling with both `StripeClient` and the fully-typed nature of [thin events](https://docs.stripe.com/event-destinations#thin-events). This delivers painless event destination upgrades, in-editor checks for common mistakes, and better code modularity.
+ - Now that we've released [thin event notifications for v1 objects](https://docs.stripe.com/changelog#2026-08-26.dahlia), these new handlers are our recommended path for all integrations using thin event notifications.
+ - See more detailed docs here: https://docs.stripe.com/webhooks/event-notification-handlers
+ - As part of this work, we've widened some of the types our webhook-related methods take so they play more nicely with the types commonly returned by popular web frameworks ([#1888](https://github.com/stripe/stripe-python/pull/1888))
+
+* [#1876](https://github.com/stripe/stripe-python/pull/1876) Update generated code
+ * Add support for new resource `billing.FeedbackOption`
+ * Add support for `create`, `deactivate`, `list`, `modify`, and `retrieve` methods on resource `billing.FeedbackOption`
+ * Add support for `payment_method_settings` on `AccountSession.Component` and `AccountSessionCreateParamsComponent`
+ * Add support for `feedback_options` on `BillingPortal.Configuration.Feature.SubscriptionCancel.CancellationReason`, `billing_portal.ConfigurationCreateParamsFeatureSubscriptionCancelCancellationReason`, and `billing_portal.ConfigurationModifyParamsFeatureSubscriptionCancelCancellationReason`
+ * Add support for new value `customer_update` on enums `BillingPortal.Session.Flow.type` and `billing_portal.SessionCreateParamsFlowDatum.type`
+ * Add support for `customer_update` on `BillingPortal.Session.Flow`
+ * Add support for `funding_source_group` on `Charge.PaymentMethodDetail.Card.Wallet.Link` and `Charge.PaymentMethodDetail.Link`
+ * Add support for `funding_types_blocked` on `Checkout.Session.PaymentMethodOption.Card.Restriction` and `checkout.SessionCreateParamsPaymentMethodOptionCardRestriction`
+ * Add support for `metadata` on `ConfirmationToken`
+ * Add support for `active_entitlements` and `customer_portal` on `CustomerSession.Component` and `CustomerSessionCreateParamsComponent`
+ * Add support for `country` on `FinancialConnections.Session.Filter`
+ * Add support for `frozen_fields` on `InvoiceItem`
+ * Add support for `billie` on `Invoice.PaymentSetting.PaymentMethodOption`, `InvoiceCreateParamsPaymentSettingPaymentMethodOption`, `InvoiceModifyParamsPaymentSettingPaymentMethodOption`, `Subscription.PaymentSetting.PaymentMethodOption`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOption`, and `SubscriptionModifyParamsPaymentSettingPaymentMethodOption`
+ * Add support for new value `billie` on enums `Invoice.PaymentSetting.payment_method_types`, `InvoiceCreateParamsPaymentSetting.payment_method_types`, `InvoiceModifyParamsPaymentSetting.payment_method_types`, `Subscription.PaymentSetting.payment_method_types`, `SubscriptionCreateParamsPaymentSetting.payment_method_types`, and `SubscriptionModifyParamsPaymentSetting.payment_method_types`
+ * ⚠️ Remove support for `cryptogram` on `PaymentAttemptRecord.PaymentMethodDetail.Card.ThreeDSecure` and `PaymentRecord.PaymentMethodDetail.Card.ThreeDSecure`
+ * Add support for new value `touch_n_go` on enums `PaymentIntent.allowed_payment_method_types`, `PaymentIntentConfirmParams.allowed_payment_method_types`, `PaymentIntentCreateParams.allowed_payment_method_types`, `PaymentIntentModifyParams.allowed_payment_method_types`, `SetupIntent.allowed_payment_method_types`, `SetupIntentConfirmParams.allowed_payment_method_types`, `SetupIntentCreateParams.allowed_payment_method_types`, and `SetupIntentModifyParams.allowed_payment_method_types`
+ * Change `PaymentIntent.allowed_payment_method_types` and `SetupIntent.allowed_payment_method_types` to be required
+ * Add support for `application_fee_amount`, `application_fee_percent`, `on_behalf_of`, and `transfer_data` on `PaymentLinkModifyParams`
+ * Add support for `feedback_option` on `Subscription.CancellationDetail`, `SubscriptionCancelParamsCancellationDetail`, and `SubscriptionModifyParamsCancellationDetail`
+ * Add support for `igic` on `Tax.Registration.CountryOption.At`, `Tax.Registration.CountryOption.Be`, `Tax.Registration.CountryOption.Bg`, `Tax.Registration.CountryOption.Cy`, `Tax.Registration.CountryOption.Cz`, `Tax.Registration.CountryOption.De`, `Tax.Registration.CountryOption.Dk`, `Tax.Registration.CountryOption.E`, `Tax.Registration.CountryOption.Ee`, `Tax.Registration.CountryOption.Fi`, `Tax.Registration.CountryOption.Fr`, `Tax.Registration.CountryOption.Gr`, `Tax.Registration.CountryOption.Hr`, `Tax.Registration.CountryOption.Hu`, `Tax.Registration.CountryOption.Ie`, `Tax.Registration.CountryOption.It`, `Tax.Registration.CountryOption.Lt`, `Tax.Registration.CountryOption.Lu`, `Tax.Registration.CountryOption.Lv`, `Tax.Registration.CountryOption.Mt`, `Tax.Registration.CountryOption.Nl`, `Tax.Registration.CountryOption.Pl`, `Tax.Registration.CountryOption.Pt`, `Tax.Registration.CountryOption.Ro`, `Tax.Registration.CountryOption.Se`, `Tax.Registration.CountryOption.Si`, `Tax.Registration.CountryOption.Sk`, `tax.RegistrationCreateParamsCountryOptionAt`, `tax.RegistrationCreateParamsCountryOptionBe`, `tax.RegistrationCreateParamsCountryOptionBg`, `tax.RegistrationCreateParamsCountryOptionCy`, `tax.RegistrationCreateParamsCountryOptionCz`, `tax.RegistrationCreateParamsCountryOptionDe`, `tax.RegistrationCreateParamsCountryOptionDk`, `tax.RegistrationCreateParamsCountryOptionE`, `tax.RegistrationCreateParamsCountryOptionEe`, `tax.RegistrationCreateParamsCountryOptionFi`, `tax.RegistrationCreateParamsCountryOptionFr`, `tax.RegistrationCreateParamsCountryOptionGr`, `tax.RegistrationCreateParamsCountryOptionHr`, `tax.RegistrationCreateParamsCountryOptionHu`, `tax.RegistrationCreateParamsCountryOptionIe`, `tax.RegistrationCreateParamsCountryOptionIt`, `tax.RegistrationCreateParamsCountryOptionLt`, `tax.RegistrationCreateParamsCountryOptionLu`, `tax.RegistrationCreateParamsCountryOptionLv`, `tax.RegistrationCreateParamsCountryOptionMt`, `tax.RegistrationCreateParamsCountryOptionNl`, `tax.RegistrationCreateParamsCountryOptionPl`, `tax.RegistrationCreateParamsCountryOptionPt`, `tax.RegistrationCreateParamsCountryOptionRo`, `tax.RegistrationCreateParamsCountryOptionSe`, `tax.RegistrationCreateParamsCountryOptionSi`, and `tax.RegistrationCreateParamsCountryOptionSk`
+ * Add support for new value `2026-08-26.dahlia` on enum `WebhookEndpointCreateParams.api_version`
+ * Add support for error codes `authentication_failure`, `capability_not_active`, `expired_payment_method`, `incorrect_postal_code`, `invalid_canceled_subscription_fields`, and `payment_method_restricted` on `Invoice.LastFinalizationError`, `PaymentIntent.LastPaymentError`, `SetupAttempt.SetupError`, `SetupIntent.LastSetupError`, `StripeError`, and `Terminal.Reader.Action.ApiError`
+
## 15.5.1 - 2026-08-18
* [#1879](https://github.com/stripe/stripe-python/pull/1879) better document `StripeObject`'s `to_dict` behavior
diff --git a/VERSION b/VERSION
index 2e0b428c4..9f6d8f2fd 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-15.5.1
+15.6.0
diff --git a/pyproject.toml b/pyproject.toml
index 8d88eba7b..0a20a5240 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "stripe"
-version = "15.5.1"
+version = "15.6.0"
readme = "README.md"
description = "Python bindings for the Stripe API"
authors = [{ name = "Stripe", email = "support@stripe.com" }]
diff --git a/stripe/_version.py b/stripe/_version.py
index ee2c80728..8fd39a3e3 100644
--- a/stripe/_version.py
+++ b/stripe/_version.py
@@ -1 +1 @@
-VERSION = "15.5.1"
+VERSION = "15.6.0"
From 98a1e87bdb8174b228873ca85196b0932616ff7e Mon Sep 17 00:00:00 2001
From: jar-stripe
Date: Thu, 27 Aug 2026 15:10:54 -0700
Subject: [PATCH 3/9] Pin and modernize GitHub Actions references (#1891)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Add zizmor config scoping the ref-pin policy to the stripe namespace
Actions under stripe/* are first-party and tracked on a branch on purpose,
so requiring a commit hash for them would be churn without a security gain.
Scoping the policy to that namespace keeps the blanket hash requirement in
force for every third-party action.
This lands before the pins so the auto-fixer honours the policy and leaves
stripe/openapi/actions/* alone rather than hash-pinning them for a revert.
Committed-By-Agent: claude
* Pin GitHub Actions references to commit hashes
A tag is a mutable pointer, so any action referenced by tag can change what
CI executes without a commit here. Pinning to a full commit hash makes the
reference immutable and the version comment auditable.
Thirteen of the fourteen pins came from the auto-fixer; every hash was then
resolved against its claimed tag through the GitHub API before committing.
pypa/gh-action-pypi-publish was pinned by hand because the auto-fixer cannot
resolve a version for a branch reference. It tracked release/v1, whose head is
currently tag v1.14.2, so the pin is both immutable and current. Dependabot
would be the mechanism to keep it moving.
Also sets persist-credentials: false on all three checkouts. The default leaves
the workflow token in .git/config for the rest of the job, where any later step
can read it; none of these jobs push, so nothing needs it retained.
Committed-By-Agent: claude
* Upgrade pinned actions off end-of-life runtimes
Pinning froze these at the versions master happened to reference, and four of
the five were on a Node runtime GitHub force-migrates, which every job warns
about today:
extractions/setup-just v2.0.0 -> v4.0.0
actions/checkout v3.7.0 -> v7.0.1 (node16 -> node24)
actions/setup-python v4.9.1 -> v7.0.0 (node16 -> node24)
actions/upload-artifact v4.6.2 -> v7.0.1 (node20 -> node24)
actions/download-artifact v4.3.0 -> v8.0.1 (node20 -> node24)
The artifact pair moves together on purpose: build uploads dist and publish
downloads it, and upload v7 / download v8 are the majors upstream ships as a
pair. download-artifact v5's breaking change is scoped to downloads by ID; this
one downloads by name, so it does not apply. v8 skips decompression based on
Content-Type, which only diverges when the uploader sets archive: false, and
this workflow does not.
setup-python's cache input has no default in v7, unlike setup-node's
package-manager-cache from v5 onward, so the upgrade adds no cache surface to
audit. v7 drops the pip-install input, which this workflow never set.
All five majors require Actions runner 2.327.1 or later, which the
GitHub-hosted runners this workflow uses already satisfy.
Committed-By-Agent: claude
* document download-artifact v8 digest-mismatch behavior
v8 fails the job on an artifact digest mismatch where v4 only logged a
warning. The publish job is tag-gated, so CI never exercises it — the
first person to see this failure will be mid-release, and the escape
hatch should be next to the code rather than in a PR body.
Committed-By-Agent: claude
* Add zizmor workflow security check
Committed-By-Agent: codex
Co-authored-by: codex
* Add temporary release workflow probe
Committed-By-Agent: codex
Co-authored-by: codex
* Remove temporary release workflow probe
Committed-By-Agent: codex
Co-authored-by: codex
---------
Co-authored-by: codex
---
.github/workflows/ci.yml | 33 +++++++++++++++++++++------------
.github/workflows/zizmor.yml | 21 +++++++++++++++++++++
.github/zizmor.yml | 8 ++++++++
3 files changed, 50 insertions(+), 12 deletions(-)
create mode 100644 .github/workflows/zizmor.yml
create mode 100644 .github/zizmor.yml
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9f3f7ad1c..2407e5b55 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -27,10 +27,12 @@ jobs:
permissions:
contents: read
steps:
- - uses: extractions/setup-just@v2
- - uses: actions/checkout@v3
+ - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Set up Python 3
- uses: actions/setup-python@v4
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.13"
- name: check examples w/ mypy (against python@3.13)
@@ -54,11 +56,13 @@ jobs:
permissions:
contents: read
steps:
- - uses: extractions/setup-just@v2
- - uses: actions/checkout@v3
+ - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Set up Python 3
- uses: actions/setup-python@v4
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.10"
@@ -67,7 +71,7 @@ jobs:
just build
- name: "Upload Artifact"
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: dist
path: dist/
@@ -100,10 +104,12 @@ jobs:
# use any modern-ish version
python_version: "3.14"
steps:
- - uses: extractions/setup-just@v2
- - uses: actions/checkout@v3
+ - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Set up Python ${{ matrix.python_version }}
- uses: actions/setup-python@v4
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python_version }}
- uses: stripe/openapi/actions/stripe-mock@master
@@ -127,12 +133,15 @@ jobs:
id-token: write
steps:
- name: Download all workflow run artifacts
- uses: actions/download-artifact@v4
+ # v8 errors on an artifact digest mismatch; v4 only warned. A mismatch
+ # means the artifact `test` gated on isn't the one reaching PyPI, so
+ # failing is right — set `digest-mismatch: warn` if it ever misfires.
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: dist
path: dist
- name: Publish packages to PyPI
- uses: pypa/gh-action-pypi-publish@release/v1
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
with:
packages-dir: dist/
- uses: stripe/openapi/actions/notify-release@master
diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml
new file mode 100644
index 000000000..b9b202bee
--- /dev/null
+++ b/.github/workflows/zizmor.yml
@@ -0,0 +1,21 @@
+on: [push, pull_request]
+name: Workflow security
+
+permissions: {}
+
+jobs:
+ zizmor:
+ name: zizmor
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
+ with:
+ advanced-security: false
+ annotations: true
+ min-severity: high
+ version: 1.29.0
diff --git a/.github/zizmor.yml b/.github/zizmor.yml
new file mode 100644
index 000000000..25cd8201c
--- /dev/null
+++ b/.github/zizmor.yml
@@ -0,0 +1,8 @@
+# Actions under the stripe namespace are unpinned on purpose.
+# This is deliberately scoped to that namespace so that other actions
+# still require a full commit hash.
+rules:
+ unpinned-uses:
+ config:
+ policies:
+ "stripe/openapi/*": ref-pin
From f7823b48436be080bca3174af499b3669ca3c787 Mon Sep 17 00:00:00 2001
From: jar-stripe
Date: Fri, 28 Aug 2026 09:43:48 -0700
Subject: [PATCH 4/9] Dispatch discriminated union fields to their variant
class (#1860)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Add discriminated union serialization tests
Tests discriminated union type shapes for both request-side (TypedDict
params with Literal discriminator) and response-side (StripeObject
deserialization), covering standalone and inline variants.
Co-Authored-By: Claude Opus 4.6
Committed-By-Agent: claude
* Clarify test docstring scope and dict() comment
The module docstring now explicitly states these tests exercise runtime
semantics (dict construction, field access, round-trip), not static type
narrowing. The dict() comment explains what it's actually testing.
Co-Authored-By: Claude Opus 4.6
Committed-By-Agent: claude
* Rewrite DU tests: correct inline pattern + route through _api_encode
Inline union tests now use the flattened TypedDict pattern (discriminator
and per-variant payload fields on the parent) rather than the incorrect
per-variant TypedDicts-with-type-field pattern that was there before.
Request-side tests now exercise `_api_encode` so they verify real SDK
encoding behavior (bracket notation, nested dicts) rather than just dict
construction and key lookup.
Co-Authored-By: Claude Sonnet 4.6
Committed-By-Agent: claude
* Dispatch discriminated union fields to their variant class
A discriminated union field arrived as a dict with no class attached, so it
became a bare StripeObject. That object carries no `_field_encodings`, so an
int64 or decimal field inside a variant stayed a string — `luminance` came
back as "1500" rather than 1500.
Codegen already emits `_inner_class_union_variant_types` on the parent
(`{"color": ("model", {"rgb": RgbColor, ...})}`); nothing read it. Consume it
in `_update_attributes` so the discriminator inside the value selects the
variant class, which then applies its own encodings.
Mirrors stripe-ruby#1923. Falls back to a plain StripeObject when the
discriminator is absent, is not a string, or names a variant this release
does not know, so a variant the API adds later still deserializes.
Rewrites tests/test_discriminated_unions.py, which could not detect any of
this: every response-side test ran `StripeObject.construct_from` on the base
class with no variant map, so all seven passed identically against `{"foo":
1}`. The fixtures now mirror the generated shape — two color variants with
*different* encodings — so identical wire bytes hydrate differently based
only on the discriminator. Seven of the 24 tests fail with the dispatch line
reverted.
The request side moves from `_api_encode` to `_coerce_v2_params`.
`_api_encode` is v1 form encoding, which treats any dict identically and so
asserted nothing about unions; v2 requests coerce through the method-level
schema. One test pins the generator's deliberate flattening of variants into
one field-name-keyed map.
Co-Authored-By: Claude Opus 5
Committed-By-Agent: claude
---------
Co-authored-by: Claude Opus 4.6
---
stripe/_stripe_object.py | 34 +++-
tests/test_discriminated_unions.py | 309 +++++++++++++++++++++++++++++
2 files changed, 342 insertions(+), 1 deletion(-)
create mode 100644 tests/test_discriminated_unions.py
diff --git a/stripe/_stripe_object.py b/stripe/_stripe_object.py
index f29bbce42..b37075ab1 100644
--- a/stripe/_stripe_object.py
+++ b/stripe/_stripe_object.py
@@ -413,7 +413,9 @@ def _refresh_from(
for k, v in values.items():
# Apply field encoding coercion (e.g. int64_string: str → int)
v = self._coerce_field_value(k, v)
- inner_class = self._get_inner_class_type(k)
+ inner_class = self._get_union_variant_class(
+ k, v
+ ) or self._get_inner_class_type(k)
is_dict = self._get_inner_class_is_beneath_dict(k)
if is_dict:
obj = {
@@ -682,11 +684,41 @@ def __deepcopy__(self, memo: Dict[int, Any]) -> "StripeObject":
_inner_class_dicts: ClassVar[List[str]] = []
_field_encodings: ClassVar[Dict[str, str]] = {}
+ # Maps a discriminated-union field to (discriminator, {value: class}). Generated
+ # subclasses override this; every other object keeps the empty default so the
+ # lookup in _update_attributes stays cheap.
+ _inner_class_union_variant_types: ClassVar[
+ Dict[str, Tuple[str, Dict[str, Type["StripeObject"]]]]
+ ] = {}
+
def _get_inner_class_type(
self, field_name: str
) -> Optional[Type["StripeObject"]]:
return self._inner_class_types.get(field_name)
+ def _get_union_variant_class(
+ self, field_name: str, value: Any
+ ) -> Optional[Type["StripeObject"]]:
+ """
+ Returns the variant class that a discriminated union field's value should
+ become, based on the discriminator carried in the value itself.
+
+ Returns None rather than raising when the discriminator is absent, is not a
+ string, or names a variant this version of the SDK does not know about. The
+ caller then converts without a class, so a variant the API adds after this
+ release still deserializes instead of blowing up.
+ """
+ union = self._inner_class_union_variant_types.get(field_name)
+ if union is None or not isinstance(value, dict):
+ return None
+
+ discriminator, variants = union
+ discriminator_value = cast(Dict[str, Any], value).get(discriminator)
+ if not isinstance(discriminator_value, str):
+ return None
+
+ return variants.get(discriminator_value)
+
def _get_inner_class_is_beneath_dict(self, field_name: str):
return field_name in self._inner_class_dicts
diff --git a/tests/test_discriminated_unions.py b/tests/test_discriminated_unions.py
new file mode 100644
index 000000000..ff20cc1a6
--- /dev/null
+++ b/tests/test_discriminated_unions.py
@@ -0,0 +1,309 @@
+"""
+Tests for discriminated union runtime behavior.
+
+A discriminated union field arrives as a plain JSON object, and the SDK has to
+pick the variant class out of the discriminator carried inside that object. The
+fixtures below mirror what codegen emits for the fake spec's `test.llama`
+resource, including the part that makes dispatch *observable*: the two color
+variants declare different `_field_encodings`, so identical wire bytes hydrate
+differently based only on the discriminator. Without dispatch the value becomes
+a bare StripeObject carrying no encodings, and every coercion assertion here
+fails.
+
+Static type narrowing (Literal discriminators, Union resolution) is checked by
+pyright, not here.
+"""
+
+from decimal import Decimal
+from typing import Any, Dict, Optional, Union
+
+from typing_extensions import Literal
+
+from stripe._encode import _coerce_v2_params
+from stripe._stripe_object import StripeObject
+
+
+# ---------------------------------------------------------------------------
+# Fixtures — shaped the way codegen emits them
+# ---------------------------------------------------------------------------
+
+
+class RgbColor(StripeObject):
+ luminance: Optional[int]
+ model: Literal["rgb"]
+ _field_encodings = {"luminance": "int64_string"}
+
+
+class HsvColor(StripeObject):
+ model: Literal["hsv"]
+ saturation_precision: Optional[Decimal]
+ _field_encodings = {"saturation_precision": "decimal_string"}
+
+
+class HslColor(StripeObject):
+ model: Literal["hsl"]
+
+
+class MagicLlama(StripeObject):
+ mana_cost: Optional[int]
+ _field_encodings = {"mana_cost": "int64_string"}
+
+
+class Llama(StripeObject):
+ """
+ Carries both union shapes the generator produces: a standalone `color`
+ union whose variants are separate classes, and an inline `magic_llama`
+ union whose discriminator lives on the parent and whose payload is a
+ plain inner class.
+ """
+
+ color: Union[RgbColor, HsvColor, HslColor]
+ magic_llama: Optional[MagicLlama]
+ name: str
+ type: Literal["earth_llama", "magic_llama"]
+ _inner_class_types = {"magic_llama": MagicLlama}
+ _inner_class_union_variant_types = {
+ "color": (
+ "model",
+ {"rgb": RgbColor, "hsv": HsvColor, "hsl": HslColor},
+ ),
+ }
+
+
+def _llama(**values: Any) -> Llama:
+ return Llama.construct_from(
+ {"name": "kuzco", **values}, key="sk_test", api_mode="V2"
+ )
+
+
+# Copied from the generated `LlamaService.create` call site. The generator
+# flattens every variant's fields into one map keyed by field name, so this
+# single schema covers both `luminance` (rgb) and `saturation_precision` (hsv).
+_COLOR_REQUEST_SCHEMA: Dict[str, Any] = {
+ "color": {
+ "luminance": "int64_string",
+ "saturation_precision": "decimal_string",
+ },
+}
+
+
+# ---------------------------------------------------------------------------
+# Response side — variant dispatch
+# ---------------------------------------------------------------------------
+
+
+class TestVariantDispatch:
+ """The discriminator selects the variant class, not the base."""
+
+ def test_dispatches_to_the_rgb_variant(self):
+ llama = _llama(color={"model": "rgb", "luminance": "1500"})
+ assert isinstance(llama.color, RgbColor)
+
+ def test_dispatches_to_the_hsv_variant(self):
+ llama = _llama(color={"model": "hsv", "saturation_precision": "0.125"})
+ assert isinstance(llama.color, HsvColor)
+
+ def test_dispatches_to_a_variant_with_no_payload_fields(self):
+ llama = _llama(color={"model": "hsl"})
+ assert isinstance(llama.color, HslColor)
+ assert llama.color.model == "hsl"
+
+ def test_the_variants_int64_encoding_applies(self):
+ llama = _llama(color={"model": "rgb", "luminance": "1500"})
+ assert llama.color.luminance == 1500
+ assert isinstance(llama.color.luminance, int)
+
+ def test_the_variants_decimal_encoding_applies(self):
+ llama = _llama(color={"model": "hsv", "saturation_precision": "0.125"})
+ assert llama.color.saturation_precision == Decimal("0.125")
+ assert isinstance(llama.color.saturation_precision, Decimal)
+
+ def test_only_the_discriminator_decides_which_field_coerces(self):
+ """
+ The sharpest statement of what dispatch buys: two payloads differing
+ in nothing but the discriminator coerce different fields, because each
+ variant class knows only its own encodings.
+ """
+ payload = {"luminance": "1500", "saturation_precision": "0.125"}
+
+ as_rgb = _llama(color={"model": "rgb", **payload}).color
+ assert as_rgb.luminance == 1500
+ assert as_rgb.saturation_precision == "0.125"
+
+ as_hsv = _llama(color={"model": "hsv", **payload}).color
+ assert as_hsv.luminance == "1500"
+ assert as_hsv.saturation_precision == Decimal("0.125")
+
+ def test_the_discriminator_itself_is_readable_on_the_variant(self):
+ llama = _llama(color={"model": "rgb", "luminance": "1"})
+ assert llama.color.model == "rgb"
+ assert llama.color["model"] == "rgb"
+
+
+# ---------------------------------------------------------------------------
+# Response side — fallback
+# ---------------------------------------------------------------------------
+
+
+class TestUnknownVariantFallback:
+ """
+ A variant the API adds after this release must still deserialize. The
+ fallback is a plain StripeObject: readable, but with no encodings, since
+ the SDK has no idea what the new variant's fields mean.
+ """
+
+ def test_an_unknown_discriminator_falls_back(self):
+ llama = _llama(color={"model": "cmyk", "cyan": "1"})
+ assert type(llama.color) is StripeObject
+ assert llama.color.model == "cmyk"
+ assert llama.color.cyan == "1"
+
+ def test_an_absent_discriminator_falls_back(self):
+ llama = _llama(color={"luminance": "1500"})
+ assert type(llama.color) is StripeObject
+ assert llama.color.luminance == "1500"
+
+ def test_a_non_string_discriminator_falls_back(self):
+ llama = _llama(color={"model": 7})
+ assert type(llama.color) is StripeObject
+
+ def test_a_null_union_value_stays_none(self):
+ assert _llama(color=None).color is None
+
+ def test_a_non_object_union_value_passes_through(self):
+ """
+ Not a shape the API produces, but the lookup must not raise on it —
+ the union field is read before anything has validated its type.
+ """
+ assert _llama(color="rgb").color == "rgb"
+
+
+# ---------------------------------------------------------------------------
+# Response side — inline unions are unaffected
+# ---------------------------------------------------------------------------
+
+
+class TestInlineUnionsUseInnerClassTypes:
+ """
+ Inline union variants are namespaced by field name, so they need no
+ discriminator lookup and keep going through `_inner_class_types`. These
+ pin that the union lookup did not displace it.
+ """
+
+ def test_the_inline_variant_gets_its_inner_class(self):
+ llama = _llama(type="magic_llama", magic_llama={"mana_cost": "42"})
+ assert isinstance(llama.magic_llama, MagicLlama)
+
+ def test_the_inline_variants_encoding_applies(self):
+ llama = _llama(type="magic_llama", magic_llama={"mana_cost": "42"})
+ assert llama.magic_llama.mana_cost == 42
+ assert isinstance(llama.magic_llama.mana_cost, int)
+
+ def test_the_non_selected_variant_is_not_fabricated(self):
+ llama = _llama(type="earth_llama")
+ assert llama.type == "earth_llama"
+ # `__getattr__` raises for a key absent from `_data`, so this is a
+ # real statement that nothing was materialized for the other variant.
+ assert not hasattr(llama, "magic_llama")
+
+
+# ---------------------------------------------------------------------------
+# Response side — serialization back out
+# ---------------------------------------------------------------------------
+
+
+class TestUnionValueSerialization:
+ def test_to_dict_recurses_into_the_variant(self):
+ llama = _llama(color={"model": "rgb", "luminance": "1500"})
+ assert llama.to_dict()["color"] == {
+ "model": "rgb",
+ "luminance": 1500,
+ }
+
+ def test_to_dict_for_json_restringifies_the_decimal(self):
+ """
+ The variant hydrates `saturation_precision` to a Decimal, which is not
+ JSON-serializable, so `for_json` has to put the string back.
+ """
+ llama = _llama(color={"model": "hsv", "saturation_precision": "0.125"})
+
+ plain = llama.to_dict()["color"]["saturation_precision"]
+ assert isinstance(plain, Decimal)
+
+ for_json = llama.to_dict(for_json=True)["color"]
+ assert for_json["saturation_precision"] == "0.125"
+ assert isinstance(for_json["saturation_precision"], str)
+
+ def test_to_dict_preserves_an_unknown_variant_verbatim(self):
+ llama = _llama(color={"model": "cmyk", "cyan": "1"})
+ assert llama.to_dict()["color"] == {"model": "cmyk", "cyan": "1"}
+
+
+# ---------------------------------------------------------------------------
+# Request side
+# ---------------------------------------------------------------------------
+
+
+class TestUnionRequestCoercion:
+ """
+ Outbound coercion runs off the method-level schema, which is keyed by
+ field name only — there is no discriminator in it.
+ """
+
+ def test_the_rgb_variants_int64_field_is_stringified(self):
+ result = _coerce_v2_params(
+ {"color": {"model": "rgb", "luminance": 1500}},
+ _COLOR_REQUEST_SCHEMA,
+ )
+ assert result == {"color": {"model": "rgb", "luminance": "1500"}}
+
+ def test_the_hsv_variants_decimal_field_is_stringified(self):
+ result = _coerce_v2_params(
+ {
+ "color": {
+ "model": "hsv",
+ "saturation_precision": Decimal("0.125"),
+ }
+ },
+ _COLOR_REQUEST_SCHEMA,
+ )
+ assert result == {
+ "color": {"model": "hsv", "saturation_precision": "0.125"}
+ }
+
+ def test_a_payload_free_variant_passes_through_untouched(self):
+ result = _coerce_v2_params(
+ {"color": {"model": "hsl"}}, _COLOR_REQUEST_SCHEMA
+ )
+ assert result == {"color": {"model": "hsl"}}
+
+ def test_coercion_is_by_field_name_not_by_variant(self):
+ """
+ Pins the generator's flattening decision: every variant's fields land
+ in one map, so a field is coerced whenever it appears, whatever the
+ discriminator says. Safe while variants do not share a field name with
+ conflicting encodings.
+ """
+ result = _coerce_v2_params(
+ {
+ "color": {
+ "model": "rgb",
+ "saturation_precision": Decimal("0.5"),
+ }
+ },
+ _COLOR_REQUEST_SCHEMA,
+ )
+ assert result == {
+ "color": {"model": "rgb", "saturation_precision": "0.5"}
+ }
+
+ def test_unknown_variant_fields_pass_through(self):
+ result = _coerce_v2_params(
+ {"color": {"model": "cmyk", "cyan": 1}},
+ _COLOR_REQUEST_SCHEMA,
+ )
+ assert result == {"color": {"model": "cmyk", "cyan": 1}}
+
+ def test_a_null_union_is_not_coerced(self):
+ result = _coerce_v2_params({"color": None}, _COLOR_REQUEST_SCHEMA)
+ assert result == {"color": None}
From 9f0feff4fcccfe8b3c91495a234e22029451cbc5 Mon Sep 17 00:00:00 2001
From: jar-stripe
Date: Fri, 28 Aug 2026 10:48:52 -0700
Subject: [PATCH 5/9] fix: show ruff parse errors on format failure (#1837)
Replace --quiet with stdout redirection. Ruff's --quiet flag suppresses
all output including parse errors (e.g. merge markers), making format
failures in CI impossible to diagnose. Redirecting stdout to /dev/null
suppresses the file list but lets errors (which go to stderr) through.
Committed-By-Agent: claude
Co-authored-by: Claude Sonnet 4.6
---
justfile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/justfile b/justfile
index a56d62314..c9a7a6800 100644
--- a/justfile
+++ b/justfile
@@ -35,11 +35,11 @@ typecheck: install-test-deps install-dev-deps
# ⭐ format all code
format: install-dev-deps
- ruff format . --quiet
+ ruff format . > /dev/null
# verify formatting, but don't modify files
format-check: install-dev-deps
- ruff format . --check --quiet
+ ruff format . --check > /dev/null
# remove venv & build artifacts
clean:
From c0282c71110a39a3ad598fa774839913243db43e Mon Sep 17 00:00:00 2001
From: jar-stripe
Date: Fri, 28 Aug 2026 16:01:08 -0700
Subject: [PATCH 6/9] Carry private-preview's CI workflow branch list on master
(#1897)
private-preview's ci.yml differs from master's by one additive hunk:
`private-preview` in `on.push.branches`.
Because that hunk lives only on private-preview, every merge of master into
private-preview yields a workflow blob matching neither parent. GitHub refuses a
push from a GitHub App lacking `workflows` permission when it introduces a
workflow blob that does not already exist in the repository, so the codegen repo's
Codegen job's push to latest-codegen-private-preview is rejected and a human has
to perform the merge by hand. Holding the hunk on master too means both sides of
the merge carry the same change, the merge result is byte-identical to master's
blob, and the App only ever carries an already-committed file forward.
The hunk is a no-op on master. For a push event the workflow file comes from the
pushed ref, so master's copy listing private-preview is never consulted for a
push to private-preview, and it cannot affect pushes to master or beta.
`on.pull_request.branches` already lists private-preview.
Committed-By-Agent: claude
Co-authored-by: Claude Opus 5
---
.github/workflows/ci.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2407e5b55..f59e56c82 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,6 +6,7 @@ on:
branches:
- master
- beta
+ - private-preview
- sdk-release/**
- feature/**
tags:
From 94f8c70678d10530576aa43c035f86c7c8025efe Mon Sep 17 00:00:00 2001
From: zacchua-stripe
Date: Mon, 31 Aug 2026 11:40:24 -0700
Subject: [PATCH 7/9] Add open vs closed enum section to README (#1877)
* Add open vs closed enum section to README
* Put type sig in code block
---
README.md | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/README.md b/README.md
index f6929e52c..8b40fd997 100644
--- a/README.md
+++ b/README.md
@@ -293,6 +293,17 @@ sends by default. If you are overriding `stripe.api_version` / `stripe_version`
[webhook endpoint](https://stripe.com/docs/webhooks#api-versions) tied to an older version,
be aware that the data you see at runtime may not match the types.
+### Open and Closed Enums
+
+Many of Stripe API enums are open, meaning Stripe may add new values even on older API versions.
+To reflect this, open enum fields are typed as `Union[Literal[...], str]` rather than a plain `Literal[...]`.
+This ensures the field has the correct type for both values known at SDK release time and other values that may be added later.
+
+A small number of enums are closed, meaning Stripe guarantees no new values will be added without an API version change.
+
+Refer to the [API Reference](https://docs.stripe.com) for the latest set of allowed values.
+
+
### Public Preview SDKs
Stripe has features in the [public preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `bX` suffix like `12.2.0b2`.
From 5231afbb0349542b384becceb5dfa6744917d809 Mon Sep 17 00:00:00 2001
From: David Brownman <1231935+xavdid@users.noreply.github.com>
Date: Mon, 31 Aug 2026 13:53:20 -0700
Subject: [PATCH 8/9] Use cryptographically secure boundaries for multipart
file uploads (#1898)
* swap to a secure multipart boundary
* use monkeypatch insteado of bare assignment
* remove unneded comments
---
stripe/_multipart_data_generator.py | 30 +++++++++++----
tests/api_resources/test_file.py | 12 ++++--
tests/api_resources/test_file_upload.py | 12 ++++--
tests/services/test_file_upload.py | 9 ++++-
tests/test_multipart_data_generator.py | 49 +++++++++++++++++++++++++
5 files changed, 97 insertions(+), 15 deletions(-)
diff --git a/stripe/_multipart_data_generator.py b/stripe/_multipart_data_generator.py
index 3151df83e..ec91d22b4 100644
--- a/stripe/_multipart_data_generator.py
+++ b/stripe/_multipart_data_generator.py
@@ -1,13 +1,29 @@
-import random
import io
+import secrets
from stripe._encode import _api_encode
+# Number of random bytes used to build the boundary, matching stripe-ruby's
+# `SecureRandom.hex(30)` and Go's mime/multipart. This must come from a CSPRNG:
+# multipart/form-data is only safe if the delimiter cannot be guessed by anyone
+# able to influence the content, since a value containing the delimiter gets
+# parsed as additional parts.
+BOUNDARY_BYTES = 30
+
+
+def _escape_header_value(value: str) -> str:
+ """Make a value safe to interpolate into a part header.
+
+ An unescaped quote would end the quoted-string early, and CR/LF would
+ introduce additional header lines or parts.
+ """
+ return value.replace('"', "%22").replace("\r", " ").replace("\n", " ")
+
class MultipartDataGenerator(object):
data: io.BytesIO
line_break: str
- boundary: int
+ boundary: str
chunk_size: int
def __init__(self, chunk_size: int = 1028):
@@ -36,9 +52,9 @@ def add_params(self, params):
filename = str(value.name)
self._write('Content-Disposition: form-data; name="')
- self._write(key)
+ self._write(_escape_header_value(key))
self._write('"; filename="')
- self._write(filename)
+ self._write(_escape_header_value(filename))
self._write('"')
self._write(self.line_break)
self._write("Content-Type: application/octet-stream")
@@ -48,7 +64,7 @@ def add_params(self, params):
self._write_file(value)
else:
self._write('Content-Disposition: form-data; name="')
- self._write(key)
+ self._write(_escape_header_value(key))
self._write('"')
self._write(self.line_break)
self._write(self.line_break)
@@ -83,5 +99,5 @@ def _write_file(self, f):
break
self._write(file_contents)
- def _initialize_boundary(self):
- return random.randint(0, 2**63)
+ def _initialize_boundary(self) -> str:
+ return secrets.token_hex(BOUNDARY_BYTES)
diff --git a/tests/api_resources/test_file.py b/tests/api_resources/test_file.py
index 4494f543e..fe7037961 100644
--- a/tests/api_resources/test_file.py
+++ b/tests/api_resources/test_file.py
@@ -32,8 +32,14 @@ def test_is_retrievable(self, http_client_mock):
)
assert isinstance(resource, stripe.File)
- def test_is_creatable(self, setup_upload_api_base, http_client_mock):
- MultipartDataGenerator._initialize_boundary = lambda self: 1234567890
+ def test_is_creatable(
+ self, setup_upload_api_base, http_client_mock, monkeypatch
+ ):
+ monkeypatch.setattr(
+ MultipartDataGenerator,
+ "_initialize_boundary",
+ lambda self: "abc123",
+ )
test_file = tempfile.TemporaryFile()
resource = stripe.File.create(
purpose="dispute_evidence",
@@ -44,7 +50,7 @@ def test_is_creatable(self, setup_upload_api_base, http_client_mock):
"post",
path="/v1/files",
api_base=stripe.upload_api_base,
- content_type="multipart/form-data; boundary=1234567890",
+ content_type="multipart/form-data; boundary=abc123",
)
assert isinstance(resource, stripe.File)
diff --git a/tests/api_resources/test_file_upload.py b/tests/api_resources/test_file_upload.py
index 8e52cf103..a2896a378 100644
--- a/tests/api_resources/test_file_upload.py
+++ b/tests/api_resources/test_file_upload.py
@@ -33,8 +33,14 @@ def test_is_retrievable(self, http_client_mock):
)
assert isinstance(resource, File)
- def test_is_creatable(self, setup_upload_api_base, http_client_mock):
- MultipartDataGenerator._initialize_boundary = lambda self: 1234567890
+ def test_is_creatable(
+ self, setup_upload_api_base, http_client_mock, monkeypatch
+ ):
+ monkeypatch.setattr(
+ MultipartDataGenerator,
+ "_initialize_boundary",
+ lambda self: "abc123",
+ )
test_file = tempfile.TemporaryFile()
resource = File.create(
purpose="dispute_evidence",
@@ -45,7 +51,7 @@ def test_is_creatable(self, setup_upload_api_base, http_client_mock):
"post",
api_base=stripe.upload_api_base,
path="/v1/files",
- content_type="multipart/form-data; boundary=1234567890",
+ content_type="multipart/form-data; boundary=abc123",
)
assert isinstance(resource, File)
diff --git a/tests/services/test_file_upload.py b/tests/services/test_file_upload.py
index cae1c79b7..fa671c1ff 100644
--- a/tests/services/test_file_upload.py
+++ b/tests/services/test_file_upload.py
@@ -28,8 +28,13 @@ def test_is_creatable(
self,
file_stripe_mock_stripe_client,
http_client_mock,
+ monkeypatch,
):
- MultipartDataGenerator._initialize_boundary = lambda self: 1234567890
+ monkeypatch.setattr(
+ MultipartDataGenerator,
+ "_initialize_boundary",
+ lambda self: "abc123",
+ )
test_file = tempfile.TemporaryFile()
# We create a new client here instead of re-using the stripe_mock_stripe_client fixture
@@ -46,6 +51,6 @@ def test_is_creatable(
"post",
api_base=stripe.upload_api_base,
path="/v1/files",
- content_type="multipart/form-data; boundary=1234567890",
+ content_type="multipart/form-data; boundary=abc123",
)
assert isinstance(resource, File)
diff --git a/tests/test_multipart_data_generator.py b/tests/test_multipart_data_generator.py
index b8f4fa738..0b9d5f93e 100644
--- a/tests/test_multipart_data_generator.py
+++ b/tests/test_multipart_data_generator.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
+import random
import re
import io
@@ -87,3 +88,51 @@ def test_multipart_data_unicode_file_name(self):
string = io.StringIO("foo")
string.name = "паспорт.png"
self.run_test_multipart_data_with_file(string)
+
+ def test_boundary_is_not_derived_from_the_random_module(self):
+ # Seeding the `random` module must not determine the boundary. A
+ # boundary an attacker can predict lets a caller-influenced value
+ # (including file bytes) inject additional parts.
+ random.seed(0)
+ first = MultipartDataGenerator().boundary
+ random.seed(0)
+ second = MultipartDataGenerator().boundary
+
+ assert first != second
+ assert re.fullmatch(r"[0-9a-f]{60}", first)
+ assert re.fullmatch(r"[0-9a-f]{60}", second)
+
+ @staticmethod
+ def lines_starting_with(http_body, prefix):
+ return [
+ line for line in http_body.split("\r\n") if line.startswith(prefix)
+ ]
+
+ def test_escapes_quotes_and_crlf_in_param_names(self):
+ injected = 'a\r\nContent-Disposition: form-data; name="purpose'
+ generator = MultipartDataGenerator()
+ generator.add_params({injected: "value"})
+ http_body = generator.get_post_data().decode("utf-8")
+
+ # The injected CRLF must not begin a second header line, and the
+ # injected quote must not end the quoted-string early.
+ assert self.lines_starting_with(http_body, "Content-Disposition:") == [
+ 'Content-Disposition: form-data; name="a Content-Disposition: '
+ 'form-data; name=%22purpose"'
+ ]
+ # One opening delimiter and one closing delimiter: a single part.
+ assert http_body.count("--%s" % generator.boundary) == 2
+
+ def test_escapes_quotes_and_crlf_in_file_names(self):
+ test_file = io.StringIO("foo")
+ test_file.name = 'a\r\nX-Injected: yes"b.png'
+ generator = MultipartDataGenerator()
+ generator.add_params({"file": test_file})
+ http_body = generator.get_post_data().decode("utf-8")
+
+ assert self.lines_starting_with(http_body, "Content-Disposition:") == [
+ 'Content-Disposition: form-data; name="file"; '
+ 'filename="a X-Injected: yes%22b.png"'
+ ]
+ assert self.lines_starting_with(http_body, "X-Injected:") == []
+ assert http_body.count("--%s" % generator.boundary) == 2
From a9e3979905054fa462c03a0584d3140ba93d8a2d Mon Sep 17 00:00:00 2001
From: David Brownman <1231935+xavdid@users.noreply.github.com>
Date: Mon, 31 Aug 2026 14:31:56 -0700
Subject: [PATCH 9/9] Harden API requestor code against malicious URLs (#1896)
* validate that incoming urls don't redirect requests
* shorten comments
---
stripe/_api_requestor.py | 2 +
stripe/_util.py | 38 +++++++++-
stripe/v2/core/_event.py | 6 +-
tests/test_api_requestor.py | 146 ++++++++++++++++++++++++++++++++++--
4 files changed, 178 insertions(+), 14 deletions(-)
diff --git a/stripe/_api_requestor.py b/stripe/_api_requestor.py
index 96f5e3c9b..e0f22186d 100644
--- a/stripe/_api_requestor.py
+++ b/stripe/_api_requestor.py
@@ -29,6 +29,7 @@
log_debug,
log_info,
dashboard_link,
+ validate_path,
_convert_to_stripe_object,
get_api_mode,
)
@@ -618,6 +619,7 @@ def _args_for_request_with_retries(
"questions."
)
+ validate_path(url)
abs_url = "%s%s" % (
self._options.base_addresses.get(base_address),
url,
diff --git a/stripe/_util.py b/stripe/_util.py
index 386894080..8b378c63c 100644
--- a/stripe/_util.py
+++ b/stripe/_util.py
@@ -7,7 +7,7 @@
from stripe._api_mode import ApiMode
-from urllib.parse import quote_plus
+from urllib.parse import quote_plus, urlsplit
from typing_extensions import Type, TYPE_CHECKING
from typing import (
@@ -260,8 +260,12 @@ def _convert_to_stripe_object(
klass = get_object_class(api_mode, klass_name)
# TODO: this is a horrible hack. The API needs
# to return something for `object` here.
-
- elif "data" in resp and "next_page_url" in resp:
+ #
+ # Gated on V2: this runs recursively over every nested value, so without
+ # the mode check any nested map in a v1 payload carrying `data` and
+ # `next_page_url` becomes an auto-paginating v2 collection. A malicious webhook
+ # could potentially choose the host of a subsequent authenticated request.
+ elif api_mode == "V2" and "data" in resp and "next_page_url" in resp:
klass = stripe.v2.ListObject
elif klass_ is not None:
klass = klass_
@@ -346,6 +350,34 @@ def sanitize_id(id):
return quotedId
+def validate_path(path: str) -> None:
+ """
+ Assert that a request path is origin-relative: that it begins with a single
+ "/" and carries no scheme, authority or userinfo.
+
+ The absolute URL is built by concatenating a base address onto this path, and
+ no base address ends in a slash. A path like "@evil.example/v1/x" or
+ ".evil.example/v1/x" would modify the resulting host and direct the request
+ (including the API key) to a non-Stripe host.
+
+ Because some relative urls arrive from potentially untrusted sources (like
+ webhook bodies), we have to be a little defensive.
+
+ So, we require that a path starts with a leading slash and that urlsplit
+ finds no scheme or authority in it.
+ """
+ if not path.startswith("/") or path.startswith("//"):
+ raise ValueError(
+ f'Request path must be a string beginning with a single "/", got: {path!r}'
+ )
+
+ parts = urlsplit(path)
+ if parts.scheme or parts.netloc:
+ raise ValueError(
+ f"Request path may not contain a scheme or authority, got: {path!r}"
+ )
+
+
def get_api_mode(url: str) -> ApiMode:
if url.startswith("/v2"):
return "V2"
diff --git a/stripe/v2/core/_event.py b/stripe/v2/core/_event.py
index 9f054f2fc..fe014db67 100644
--- a/stripe/v2/core/_event.py
+++ b/stripe/v2/core/_event.py
@@ -8,7 +8,7 @@
from typing_extensions import Literal, TYPE_CHECKING
from stripe._stripe_object import StripeObject, UntypedStripeObject
-from stripe._util import get_api_mode
+from stripe._util import get_api_mode, sanitize_id
from stripe._stripe_context import StripeContext
from stripe._webhook import WebhookPayload
@@ -219,7 +219,7 @@ def __repr__(self) -> str:
def fetch_event(self) -> Event:
response = self._client.raw_request(
"get",
- f"/v2/core/events/{self.id}",
+ f"/v2/core/events/{sanitize_id(self.id)}",
stripe_context=self.context,
headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["pushed_event_pull"],
@@ -229,7 +229,7 @@ def fetch_event(self) -> Event:
async def fetch_event_async(self) -> Event:
response = await self._client.raw_request_async(
"get",
- f"/v2/core/events/{self.id}",
+ f"/v2/core/events/{sanitize_id(self.id)}",
stripe_context=self.context,
headers={"Stripe-Request-Trigger": f"event={self.id}"},
usage=["pushed_event_pull", "pushed_event_pull_async"],
diff --git a/tests/test_api_requestor.py b/tests/test_api_requestor.py
index 84deff6b9..c49803c46 100644
--- a/tests/test_api_requestor.py
+++ b/tests/test_api_requestor.py
@@ -23,8 +23,13 @@
StripeStreamResponse,
StripeStreamResponseAsync,
)
+from stripe._util import (
+ validate_path,
+ _convert_to_stripe_object,
+)
from stripe.v2._deleted_object import DeletedObject
from tests.http_client_mock import HTTPClientMock
+from tests.test_webhook import generate_header
VALID_API_METHODS = ("get", "post", "delete")
@@ -175,10 +180,16 @@ def test_param_encoding(self, requestor, http_client_mock):
urlencode(expectation).replace("%5B", "[").replace("%5D", "]")
)
http_client_mock.stub_request(
- "get", query_string=query_string, rbody="{}", rcode=200
+ "get",
+ path=self.v1_path,
+ query_string=query_string,
+ rbody="{}",
+ rcode=200,
)
- requestor.request("get", "", self.ENCODE_INPUTS, base_address="api")
+ requestor.request(
+ "get", self.v1_path, self.ENCODE_INPUTS, base_address="api"
+ )
http_client_mock.assert_requested("get", query_string=query_string)
@@ -247,10 +258,11 @@ def test_ordereddict_encoding(self):
assert encoded[4][0] == "ordered[nested][b]"
def test_url_construction(self, requestor, http_client_mock):
+ # Paths must be origin-relative -- see validate_path.
CASES = (
- (f"{stripe.api_base}?foo=bar", "", {"foo": "bar"}),
- (f"{stripe.api_base}?foo=bar", "?", {"foo": "bar"}),
- (stripe.api_base, "", {}),
+ (f"{stripe.api_base}/v1/foo?foo=bar", "/v1/foo", {"foo": "bar"}),
+ (f"{stripe.api_base}/v1/foo?foo=bar", "/v1/foo?", {"foo": "bar"}),
+ (f"{stripe.api_base}/v1/foo", "/v1/foo", {}),
(
f"{stripe.api_base}/%20spaced?baz=5&foo=bar%24",
"/%20spaced?foo=bar%24",
@@ -258,8 +270,8 @@ def test_url_construction(self, requestor, http_client_mock):
),
# duplicate query params keys should be deduped
(
- f"{stripe.api_base}?foo=bar",
- "?foo=bar",
+ f"{stripe.api_base}/v1/foo?foo=bar",
+ "/v1/foo?foo=bar",
{"foo": "bar"},
),
)
@@ -982,7 +994,7 @@ def test_invalid_json(self, requestor, http_client_mock):
def test_invalid_method(self, requestor):
with pytest.raises(stripe.APIConnectionError):
- requestor.request("foo", "bar", base_address="api")
+ requestor.request("foo", self.v1_path, base_address="api")
def test_oauth_invalid_requestor_error(self, requestor, http_client_mock):
http_client_mock.stub_request(
@@ -1135,6 +1147,124 @@ def test_raw_request_with_file_param(self, requestor, http_client_mock):
)
assert supplied_headers["Content-Type"] == "multipart/form-data"
+ ORIGIN_RELATIVE_PATHS = [
+ "/v1/customers/cus_123",
+ "/v1/customers",
+ "/v2/core/accounts?page=page_123&limit=2",
+ # "@" is legal inside a path or query string -- it only opens an
+ # authority when it precedes the first "/".
+ "/v1/customers?email=user%40example.com",
+ "/v1/invoices/in_123@456",
+ # A backslash does not open an authority: the "/" already closed it.
+ "/v1/\\evil.example",
+ ]
+
+ HOSTILE_PATHS = [
+ # Concatenated onto a base address with no trailing slash, each of these
+ # moves the request's authority off api.stripe.com.
+ "@evil.example/v1/leak",
+ ":pw@evil.example/v1/leak",
+ ":80@evil.example/v1/leak",
+ # Extends the host into an attacker-owned subdomain
+ # (api.stripe.com.evil.example), which has a valid certificate.
+ ".evil.example/v1/leak",
+ "-evil.example/v1/leak",
+ "https://evil.example/v1/leak",
+ "//evil.example/v1/leak",
+ "",
+ "v1/customers",
+ ]
+
+ @pytest.mark.parametrize("path", ORIGIN_RELATIVE_PATHS)
+ def test_accepts_origin_relative_path(self, path):
+ validate_path(path)
+
+ @pytest.mark.parametrize("path", HOSTILE_PATHS)
+ def test_rejects_hostile_path(self, path):
+ with pytest.raises(ValueError):
+ validate_path(path)
+
+ @pytest.mark.parametrize("path", HOSTILE_PATHS)
+ def test_request_rejects_hostile_path_without_issuing_request(
+ self, path, requestor, http_client_mock
+ ):
+ with pytest.raises(ValueError):
+ requestor.request("get", path, base_address="api")
+
+ http_client_mock.assert_no_request()
+
+ def test_raw_request_rejects_hostile_path_without_issuing_request(
+ self, http_client_mock
+ ):
+ client = stripe.StripeClient(
+ "sk_test_123", http_client=http_client_mock.get_mock_http_client()
+ )
+
+ with pytest.raises(ValueError):
+ client.raw_request("get", "@evil.example/v1/leak")
+
+ http_client_mock.assert_no_request()
+
+ def test_fetch_related_object_rejects_hostile_url_without_issuing_request(
+ self, http_client_mock
+ ):
+ client = stripe.StripeClient(
+ "sk_test_123", http_client=http_client_mock.get_mock_http_client()
+ )
+ payload = json.dumps(
+ {
+ "id": "evt_123",
+ "object": "v2.core.event",
+ "type": "v2.core.account.created",
+ "created": "2026-01-01T00:00:00Z",
+ "related_object": {
+ "id": "acct_123",
+ "type": "account",
+ "url": "@evil.example/v1/leak",
+ },
+ }
+ )
+ secret = "whsec_test_secret"
+ header = generate_header(payload=payload, secret=secret)
+
+ notification = client.parse_event_notification(payload, header, secret)
+
+ with pytest.raises(ValueError):
+ notification.fetch_related_object()
+
+ http_client_mock.assert_no_request()
+
+ def test_v1_payload_does_not_produce_v2_list_object(self, requestor):
+ # A signature-verified v1 webhook body is attacker-shaped. Without the
+ # api_mode gate, `lines` here became an auto-paginating v2 collection
+ # whose next_page_url chose the host of the next authenticated request.
+ obj = _convert_to_stripe_object(
+ resp={
+ "id": "in_123",
+ "object": "invoice",
+ "lines": {
+ "data": [{"id": "il_123"}],
+ "next_page_url": "@evil.example/v1/leak",
+ },
+ },
+ requestor=requestor,
+ api_mode="V1",
+ )
+
+ assert not isinstance(obj["lines"], stripe.v2.ListObject)
+
+ def test_v2_response_still_produces_v2_list_object(self, requestor):
+ obj = _convert_to_stripe_object(
+ resp={
+ "data": [{"id": "acct_123"}],
+ "next_page_url": "/v2/core/accounts?page=page_123",
+ },
+ requestor=requestor,
+ api_mode="V2",
+ )
+
+ assert isinstance(obj, stripe.v2.ListObject)
+
class TestDefaultClient(object):
@pytest.fixture(autouse=True)