From 0c900c6446bb6c4913893b91dede1220f81b6aef Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sat, 15 Aug 2026 03:32:38 +0000 Subject: [PATCH] Update generated code for v2408 and 871c3a5fe73531f5b73a53721d7eb4aac41c4530 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- stripe/_account.py | 280 ++- stripe/_application_fee.py | 4 +- stripe/_balance_transaction.py | 105 +- stripe/_bank_account.py | 4 +- stripe/_card.py | 4 +- stripe/_cash_balance.py | 4 +- stripe/_charge.py | 314 +-- stripe/_confirmation_token.py | 233 ++- stripe/_credit_note.py | 4 +- stripe/_credit_note_line_item.py | 4 +- stripe/_customer.py | 2 +- stripe/_customer_session.py | 11 + stripe/_event.py | 619 +++--- stripe/_gift_card_operation.py | 21 +- stripe/_invoice.py | 711 +++---- stripe/_invoice_item.py | 14 +- 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 | 6 +- stripe/_order.py | 257 +-- stripe/_payment_attempt_record.py | 291 +-- stripe/_payment_intent.py | 517 ++--- stripe/_payment_link.py | 12 +- stripe/_payment_method.py | 233 ++- stripe/_payment_record.py | 291 +-- stripe/_plan.py | 4 +- stripe/_price.py | 12 +- stripe/_product.py | 2 +- stripe/_quote.py | 111 +- stripe/_quote_preview_invoice.py | 711 +++---- .../_quote_preview_subscription_schedule.py | 52 +- stripe/_review.py | 4 +- stripe/_setup_attempt.py | 522 ++--- stripe/_setup_intent.py | 476 ++--- stripe/_shipping_rate.py | 8 +- stripe/_source.py | 45 +- stripe/_source_transaction.py | 39 +- stripe/_subscription.py | 65 +- stripe/_subscription_schedule.py | 52 +- stripe/_tax_id.py | 245 +-- stripe/_tax_rate.py | 7 +- stripe/_topup.py | 8 +- stripe/billing/__init__.py | 6 +- ...eedback_options.py => _feedback_option.py} | 8 +- stripe/billing_portal/_configuration.py | 16 +- stripe/billing_portal/_session.py | 12 + stripe/capital/_financing_offer.py | 21 +- stripe/capital/_financing_summary.py | 17 +- stripe/checkout/_session.py | 574 +++--- stripe/crypto/_onramp_session.py | 11 +- stripe/financial_connections/_session.py | 2 +- stripe/identity/_blocklist_entry.py | 4 +- stripe/issuing/_authorization.py | 128 +- stripe/issuing/_card.py | 1253 ++++++------ stripe/issuing/_cardholder.py | 1253 ++++++------ stripe/issuing/_settlement.py | 2 +- stripe/params/__init__.py | 10 + ..._account_create_external_account_params.py | 2 +- stripe/params/_account_create_params.py | 18 +- ..._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 +- stripe/params/_account_update_params.py | 16 +- stripe/params/_charge_modify_params.py | 2 +- stripe/params/_charge_update_params.py | 2 +- .../_confirmation_token_create_params.py | 111 +- stripe/params/_coupon_create_params.py | 2 +- 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_tax_id_create_params.py | 241 +-- stripe/params/_customer_update_params.py | 8 +- .../params/_external_account_create_params.py | 2 +- .../params/_external_account_list_params.py | 2 +- .../params/_external_account_update_params.py | 6 +- stripe/params/_file_list_params.py | 24 +- stripe/params/_invoice_add_lines_params.py | 4 +- stripe/params/_invoice_create_params.py | 34 +- .../params/_invoice_create_preview_params.py | 299 +-- stripe/params/_invoice_item_create_params.py | 19 +- 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 | 23 +- ..._invoice_rendering_template_list_params.py | 2 +- stripe/params/_invoice_update_lines_params.py | 4 +- stripe/params/_invoice_update_params.py | 23 +- stripe/params/_order_create_params.py | 255 +-- stripe/params/_order_modify_params.py | 255 +-- stripe/params/_order_update_params.py | 255 +-- .../params/_payment_intent_cancel_params.py | 4 +- .../params/_payment_intent_confirm_params.py | 154 +- .../params/_payment_intent_create_params.py | 154 +- .../params/_payment_intent_modify_params.py | 150 +- .../params/_payment_intent_update_params.py | 150 +- stripe/params/_payment_link_create_params.py | 14 +- stripe/params/_payment_link_modify_params.py | 2 +- stripe/params/_payment_link_update_params.py | 2 +- .../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 | 44 +- stripe/params/_quote_modify_params.py | 42 +- stripe/params/_quote_update_params.py | 42 +- stripe/params/_refund_create_params.py | 2 +- stripe/params/_setup_intent_cancel_params.py | 2 +- stripe/params/_setup_intent_confirm_params.py | 148 +- stripe/params/_setup_intent_create_params.py | 148 +- stripe/params/_setup_intent_modify_params.py | 146 +- stripe/params/_setup_intent_update_params.py | 146 +- 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_create_params.py | 52 +- .../_subscription_item_create_params.py | 13 +- .../_subscription_item_delete_params.py | 7 +- .../_subscription_item_modify_params.py | 13 +- .../_subscription_item_update_params.py | 13 +- stripe/params/_subscription_list_params.py | 2 +- stripe/params/_subscription_migrate_params.py | 2 +- stripe/params/_subscription_modify_params.py | 56 +- stripe/params/_subscription_pause_params.py | 6 +- stripe/params/_subscription_resume_params.py | 2 +- .../_subscription_schedule_create_params.py | 48 +- .../_subscription_schedule_modify_params.py | 46 +- .../_subscription_schedule_update_params.py | 46 +- stripe/params/_subscription_update_params.py | 56 +- stripe/params/_tax_id_create_params.py | 239 +-- stripe/params/_token_create_params.py | 6 +- stripe/params/_topup_list_params.py | 4 +- stripe/params/_transfer_create_params.py | 2 +- .../params/_webhook_endpoint_create_params.py | 129 +- .../_alert_list_notifications_params.py | 2 +- .../_alert_notification_list_params.py | 2 +- .../analytics/_meter_usage_retrieve_params.py | 606 +----- .../_configuration_create_params.py | 6 +- .../_configuration_modify_params.py | 6 +- .../_configuration_update_params.py | 6 +- .../capital/_financing_offer_create_params.py | 20 +- .../capital/_financing_offer_list_params.py | 13 +- .../capital/_financing_offer_refill_params.py | 20 +- .../params/checkout/_session_create_params.py | 45 +- .../params/checkout/_session_list_params.py | 2 +- .../params/checkout/_session_modify_params.py | 16 +- .../params/checkout/_session_update_params.py | 16 +- .../crypto/_onramp_session_checkout_params.py | 4 +- .../crypto/_onramp_session_create_params.py | 12 +- .../crypto/_onramp_session_list_params.py | 2 +- .../_requested_session_confirm_params.py | 4 + .../_session_create_params.py | 7 +- .../_blocklist_entry_create_params.py | 4 +- .../identity/_blocklist_entry_list_params.py | 2 +- .../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 | 1789 +++++++++-------- .../issuing/_cardholder_modify_params.py | 1789 +++++++++-------- .../issuing/_cardholder_update_params.py | 1789 +++++++++-------- ...transaction_create_force_capture_params.py | 322 +-- ...ansaction_create_unlinked_refund_params.py | 322 +-- .../_account_evaluation_create_params.py | 4 +- .../_account_evaluation_modify_params.py | 19 +- .../_account_evaluation_update_params.py | 19 +- .../_customer_evaluation_create_params.py | 6 +- .../_customer_evaluation_modify_params.py | 2 +- .../_customer_evaluation_update_params.py | 2 +- .../params/radar/_value_list_create_params.py | 15 +- .../reporting/_report_run_create_params.py | 642 +----- .../params/tax/_calculation_create_params.py | 243 +-- stripe/params/tax/_form_list_params.py | 2 +- .../params/tax/_registration_create_params.py | 37 +- stripe/params/tax/_settings_modify_params.py | 2 +- stripe/params/tax/_settings_update_params.py | 2 +- .../_confirmation_token_create_params.py | 111 +- .../capital/_financing_offer_create_params.py | 20 +- .../capital/_financing_offer_refill_params.py | 20 +- .../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 +-- .../v2/billing/_contract_create_params.py | 4 + .../v2/billing/_contract_update_params.py | 30 +- .../v2/core/_batch_job_create_params.py | 181 +- stripe/radar/_payment_evaluation.py | 17 +- stripe/shared_payment/_granted_token.py | 19 +- stripe/tax/_calculation.py | 351 ++-- stripe/tax/_calculation_line_item.py | 55 +- stripe/tax/_registration.py | 280 ++- stripe/tax/_transaction.py | 298 +-- stripe/terminal/_reader.py | 444 ++-- stripe/v2/billing/_contract.py | 8 + stripe/v2/billing/_contract_service.py | 83 +- stripe/v2/billing/_intent_service.py | 31 +- stripe/v2/billing/_license_fee_service.py | 20 +- stripe/v2/billing/_rate_card_service.py | 2 + stripe/v2/billing/_service_action_service.py | 41 +- stripe/v2/billing/rate_cards/_rate_service.py | 10 +- 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 +- stripe/v2/tax/_manual_rule_service.py | 37 +- 231 files changed, 14228 insertions(+), 16651 deletions(-) rename stripe/billing/{_feedback_options.py => _feedback_option.py} (85%) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index c3a97bb1b..d760f732a 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -1e95a9c21695d1f28bf9bf64ed7c83a05749b1e8 \ No newline at end of file +871c3a5fe73531f5b73a53721d7eb4aac41c4530 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a4918c596..c5d380c0b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2396 \ No newline at end of file +v2408 \ No newline at end of file diff --git a/stripe/_account.py b/stripe/_account.py index 2adf9564b..a544939cb 100644 --- a/stripe/_account.py +++ b/stripe/_account.py @@ -225,369 +225,483 @@ 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. """ automatic_indirect_tax: Optional[ - Literal["active", "inactive", "pending"] + Union[Literal["active", "inactive", "pending"], str] ] """ The status of the automatic_indirect_tax capability of the account. """ - 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. """ - gopay_payments: Optional[Literal["active", "inactive", "pending"]] + gopay_payments: Optional[ + Union[Literal["active", "inactive", "pending"], str] + ] """ The status of the Gopay capability of the account, or whether the account can directly process Gopay payments. """ - 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. """ id_bank_transfer_payments: Optional[ - Literal["active", "inactive", "pending"] + Union[Literal["active", "inactive", "pending"], str] ] """ The status of the Indonesia Bank Transfer payments capability of the account, or whether the account can directly process Indonesia Bank Transfer charges. """ id_bank_transfer_payments_bca: Optional[ - Literal["active", "inactive", "pending"] + Union[Literal["active", "inactive", "pending"], str] ] """ The status of Bank BCA onboarding of the account. """ - 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. """ - paypal_payments: Optional[Literal["active", "inactive", "pending"]] + paypal_payments: Optional[ + Union[Literal["active", "inactive", "pending"], str] + ] """ The status of the PayPal payments capability of the account, or whether the account can directly process PayPal charges. """ - paypay_payments: Optional[Literal["active", "inactive", "pending"]] + paypay_payments: Optional[ + Union[Literal["active", "inactive", "pending"], str] + ] """ The status of the Paypay capability of the account, or whether the account can directly process Paypay payments. """ - 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. """ - qris_payments: Optional[Literal["active", "inactive", "pending"]] + qris_payments: Optional[ + Union[Literal["active", "inactive", "pending"], str] + ] """ The status of the Qris capability of the account, or whether the account can directly process Qris payments. """ - rechnung_payments: Optional[Literal["active", "inactive", "pending"]] + rechnung_payments: Optional[ + Union[Literal["active", "inactive", "pending"], str] + ] """ The status of the Rechnung capability of the account, or whether the account can directly process Rechnung payments. """ 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. """ - sequra_payments: Optional[Literal["active", "inactive", "pending"]] + sequra_payments: Optional[ + Union[Literal["active", "inactive", "pending"], str] + ] """ The status of the SeQura capability of the account, or whether the account can directly process SeQura payments. """ - shopeepay_payments: Optional[Literal["active", "inactive", "pending"]] + shopeepay_payments: Optional[ + Union[Literal["active", "inactive", "pending"], str] + ] """ The status of the ShopeePay capability of the account, or whether the account can directly process ShopeePay payments. """ - 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. """ stripe_balance_payments: Optional[ - Literal["active", "inactive", "pending"] + Union[Literal["active", "inactive", "pending"], str] ] """ The status of the stripe_balance payments capability of the account, or whether the account can directly process stripe_balance 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. """ - treasury_evolve: Optional[Literal["active", "inactive", "pending"]] + treasury_evolve: Optional[ + Union[Literal["active", "inactive", "pending"], str] + ] """ The status of the treasury_evolve capability of the account. """ treasury_fifth_third: Optional[ - Literal["active", "inactive", "pending"] + Union[Literal["active", "inactive", "pending"], str] ] """ The status of the treasury_fifth_third capability of the account. """ treasury_goldman_sachs: Optional[ - Literal["active", "inactive", "pending"] + Union[Literal["active", "inactive", "pending"], str] ] """ The status of the treasury_goldman_sachs capability of the account. """ - 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. """ @@ -959,7 +1073,7 @@ class Application(StripeObject): """ class Dashboard(StripeObject): - type: Literal["express", "full", "none"] + type: Union[Literal["express", "full", "none"], str] """ Whether this account has access to the full Stripe dashboard (`full`), to the Express dashboard (`express`), or to no dashboard (`none`). """ @@ -1006,7 +1120,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. """ @@ -1512,7 +1626,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/_application_fee.py b/stripe/_application_fee.py index b31f391aa..14011b766 100644 --- a/stripe/_application_fee.py +++ b/stripe/_application_fee.py @@ -138,7 +138,9 @@ class FundingSource(StripeObject): """ A list of refunds that have been applied to the fee. """ - settlement_type: Optional[Literal["gross_settled", "net_settled"]] + settlement_type: Optional[ + Union[Literal["gross_settled", "net_settled"], str] + ] """ Type of settlement for the application fee. One of `net_settled` or `gross_settled`. """ diff --git a/stripe/_balance_transaction.py b/stripe/_balance_transaction.py index afe06bd2a..1dc2cb784 100644 --- a/stripe/_balance_transaction.py +++ b/stripe/_balance_transaction.py @@ -159,57 +159,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 cd8efac97..c52943f0f 100644 --- a/stripe/_bank_account.py +++ b/stripe/_bank_account.py @@ -318,7 +318,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/_card.py b/stripe/_card.py index eb850283a..e264539a5 100644 --- a/stripe/_card.py +++ b/stripe/_card.py @@ -88,7 +88,9 @@ class Redaction(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 50e7ccd2d..b0dcc2c97 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -159,7 +159,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). @@ -222,7 +227,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`. """ @@ -444,7 +451,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` @@ -485,7 +494,7 @@ class Boleto(StripeObject): class Card(StripeObject): class AccountFunding(StripeObject): - status: Literal["disabled", "enabled"] + status: Union[Literal["disabled", "enabled"], str] """ Indicates whether or not this charge is a funding transaction. """ @@ -852,14 +861,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. @@ -1298,35 +1310,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, ] ] """ @@ -1340,36 +1355,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`. @@ -1482,55 +1502,61 @@ class IdBankTransfer(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, ] ] """ @@ -1745,7 +1771,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. @@ -1904,33 +1935,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, ] ] """ @@ -2301,7 +2335,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. diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index 3fa50a15f..afb8223a7 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -709,14 +709,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. @@ -948,35 +951,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, ] ] """ @@ -984,36 +990,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`. @@ -1060,55 +1071,61 @@ class IdBankTransfer(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, ] ] """ @@ -1533,7 +1550,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/_credit_note.py b/stripe/_credit_note.py index 7c73b0e28..3a82b6822 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 8246cf87a..1b1ae7dcd 100644 --- a/stripe/_credit_note_line_item.py +++ b/stripe/_credit_note_line_item.py @@ -74,7 +74,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. """ @@ -172,7 +172,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 3a88804c5..ca3900ef9 100644 --- a/stripe/_customer.py +++ b/stripe/_customer.py @@ -425,7 +425,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 a1e380b0b..2098fb616 100644 --- a/stripe/_customer_session.py +++ b/stripe/_customer_session.py @@ -26,6 +26,12 @@ 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 """ @@ -206,6 +212,10 @@ class Features(StripeObject): """ _inner_class_types = {"features": Features} + active_entitlements: ActiveEntitlements + """ + This hash contains whether the active entitlements is enabled. + """ buy_button: BuyButton """ This hash contains whether the buy button is enabled. @@ -235,6 +245,7 @@ class Features(StripeObject): This hash contains whether the Tax ID Element is enabled and the features it supports. """ _inner_class_types = { + "active_entitlements": ActiveEntitlements, "buy_button": BuyButton, "customer_portal": CustomerPortal, "customer_sheet": CustomerSheet, diff --git a/stripe/_event.py b/stripe/_event.py index 54ce14ad1..868c1c365 100644 --- a/stripe/_event.py +++ b/stripe/_event.py @@ -141,314 +141,317 @@ class Request(StripeObject): """ Information on the API request that triggers the event. """ - type: Literal[ - "account.application.authorized", - "account.application.deauthorized", - "account.external_account.created", - "account.external_account.deleted", - "account.external_account.updated", - "account.updated", - "account_notice.created", - "account_notice.updated", - "application_fee.created", - "application_fee.refund.updated", - "application_fee.refunded", - "balance.available", - "balance_settings.updated", - "billing.alert.recovered", - "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", - "capital.financing_offer.accepted", - "capital.financing_offer.accepted_other_offer", - "capital.financing_offer.canceled", - "capital.financing_offer.created", - "capital.financing_offer.expired", - "capital.financing_offer.fully_repaid", - "capital.financing_offer.paid_out", - "capital.financing_offer.rejected", - "capital.financing_offer.replacement_created", - "capital.financing_summary.line_of_credit_update", - "capital.financing_transaction.created", - "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.collection_paused", - "customer.subscription.collection_resumed", - "customer.subscription.created", - "customer.subscription.custom_event", - "customer.subscription.deleted", - "customer.subscription.paused", - "customer.subscription.pending_update_applied", - "customer.subscription.pending_update_expired", - "customer.subscription.price_migration_failed", - "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_inferred_balances", - "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", - "financial_connections.session.updated", - "fx_quote.expired", - "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.overpaid", - "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.detached", - "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_dispute_settlement_detail.created", - "issuing_dispute_settlement_detail.updated", - "issuing_fraud_liability_debit.created", - "issuing_personalization_design.activated", - "issuing_personalization_design.deactivated", - "issuing_personalization_design.rejected", - "issuing_personalization_design.updated", - "issuing_settlement.created", - "issuing_settlement.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.expired", - "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", - "privacy.redaction_job.canceled", - "privacy.redaction_job.created", - "privacy.redaction_job.ready", - "privacy.redaction_job.succeeded", - "privacy.redaction_job.validation_error", - "product.created", - "product.deleted", - "product.updated", - "promotion_code.created", - "promotion_code.updated", - "quote.accept_failed", - "quote.accepted", - "quote.accepting", - "quote.canceled", - "quote.created", - "quote.draft", - "quote.finalized", - "quote.reestimate_failed", - "quote.reestimated", - "quote.stale", - "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.price_migration_failed", - "subscription_schedule.released", - "subscription_schedule.updated", - "tax.form.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", + type: Union[ + Literal[ + "account.application.authorized", + "account.application.deauthorized", + "account.external_account.created", + "account.external_account.deleted", + "account.external_account.updated", + "account.updated", + "account_notice.created", + "account_notice.updated", + "application_fee.created", + "application_fee.refund.updated", + "application_fee.refunded", + "balance.available", + "balance_settings.updated", + "billing.alert.recovered", + "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", + "capital.financing_offer.accepted", + "capital.financing_offer.accepted_other_offer", + "capital.financing_offer.canceled", + "capital.financing_offer.created", + "capital.financing_offer.expired", + "capital.financing_offer.fully_repaid", + "capital.financing_offer.paid_out", + "capital.financing_offer.rejected", + "capital.financing_offer.replacement_created", + "capital.financing_summary.line_of_credit_update", + "capital.financing_transaction.created", + "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.collection_paused", + "customer.subscription.collection_resumed", + "customer.subscription.created", + "customer.subscription.custom_event", + "customer.subscription.deleted", + "customer.subscription.paused", + "customer.subscription.pending_update_applied", + "customer.subscription.pending_update_expired", + "customer.subscription.price_migration_failed", + "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_inferred_balances", + "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", + "financial_connections.session.updated", + "fx_quote.expired", + "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.overpaid", + "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.detached", + "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_dispute_settlement_detail.created", + "issuing_dispute_settlement_detail.updated", + "issuing_fraud_liability_debit.created", + "issuing_personalization_design.activated", + "issuing_personalization_design.deactivated", + "issuing_personalization_design.rejected", + "issuing_personalization_design.updated", + "issuing_settlement.created", + "issuing_settlement.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.expired", + "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", + "privacy.redaction_job.canceled", + "privacy.redaction_job.created", + "privacy.redaction_job.ready", + "privacy.redaction_job.succeeded", + "privacy.redaction_job.validation_error", + "product.created", + "product.deleted", + "product.updated", + "promotion_code.created", + "promotion_code.updated", + "quote.accept_failed", + "quote.accepted", + "quote.accepting", + "quote.canceled", + "quote.created", + "quote.draft", + "quote.finalized", + "quote.reestimate_failed", + "quote.reestimated", + "quote.stale", + "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.price_migration_failed", + "subscription_schedule.released", + "subscription_schedule.updated", + "tax.form.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, ] """ Description of the event (for example, `invoice.created` or `charge.refunded`). diff --git a/stripe/_gift_card_operation.py b/stripe/_gift_card_operation.py index d468605ca..f430f37af 100644 --- a/stripe/_gift_card_operation.py +++ b/stripe/_gift_card_operation.py @@ -269,18 +269,21 @@ class Balance(StripeObject): """ Details about a gift card reload void operation. """ - status: Literal["failed", "succeeded"] + status: Union[Literal["failed", "succeeded"], str] """ The status of the operation. """ - type: Literal[ - "activation", - "activation_void", - "balance_check", - "cashout", - "cashout_void", - "reload", - "reload_void", + type: Union[ + Literal[ + "activation", + "activation_void", + "balance_check", + "cashout", + "cashout_void", + "reload", + "reload_void", + ], + str, ] """ The type of operation performed. diff --git a/stripe/_invoice.py b/stripe/_invoice.py index b2ea3008e..6dd661ea2 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -158,7 +158,7 @@ class AmountsDue(StripeObject): """ Timestamp when the payment was paid. """ - status: Literal["open", "paid", "past_due"] + status: Union[Literal["open", "paid", "past_due"], str] """ The status of the payment, one of `open`, `paid`, or `past_due` """ @@ -315,125 +315,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` @@ -473,207 +476,210 @@ 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_institution_unavailable", - "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", - "sensitive_data_access_expired", - "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_collected_data_invalid", - "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", - "v2_account_disconnection_unsupported", - "v2_account_missing_configuration", + 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_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_institution_unavailable", + "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", + "sensitive_data_access_expired", + "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_collected_data_invalid", + "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", + "v2_account_disconnection_unsupported", + "v2_account_missing_configuration", + ], + str, ] ] """ @@ -765,16 +771,25 @@ 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` """ + class ManagedPayments(StripeObject): + enabled: bool + """ + Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session. + """ + class Parent(StripeObject): class BillingCadenceDetails(StripeObject): billing_cadence: str @@ -801,7 +816,10 @@ class ScheduleDetails(StripeObject): class SubscriptionDetails(StripeObject): class PauseCollection(StripeObject): behavior: Optional[ - Literal["keep_as_draft", "mark_uncollectible", "void"] + Union[ + Literal["keep_as_draft", "mark_uncollectible", "void"], + str, + ] ] """ The payment collection behavior for this subscription while paused. @@ -924,7 +942,9 @@ class CheckScan(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`. """ @@ -1093,7 +1113,7 @@ class WechatPay(StripeObject): The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. """ client: Optional[ - Literal["android", "ios", "mobile_web", "web"] + Union[Literal["android", "ios", "mobile_web", "web"], str] ] """ The client type that the end customer will pay from. @@ -1264,7 +1284,7 @@ class WechatPay(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. """ @@ -1493,7 +1513,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. """ @@ -1597,16 +1617,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, ] ] """ @@ -1674,7 +1697,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. """ @@ -1763,6 +1788,7 @@ class TaxRateDetails(StripeObject): """ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. """ + managed_payments: Optional[ManagedPayments] metadata: Optional[UntypedStripeObject[str]] """ 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. @@ -3445,6 +3471,7 @@ async def list_lines_async( "from_invoice": FromInvoice, "issuer": Issuer, "last_finalization_error": LastFinalizationError, + "managed_payments": ManagedPayments, "parent": Parent, "payment_settings": PaymentSettings, "rendering": Rendering, diff --git a/stripe/_invoice_item.py b/stripe/_invoice_item.py index ff395bbb1..f4c1cdd21 100644 --- a/stripe/_invoice_item.py +++ b/stripe/_invoice_item.py @@ -54,6 +54,12 @@ class InvoiceItem( OBJECT_NAME: ClassVar[Literal["invoiceitem"]] = "invoiceitem" + class ManagedPayments(StripeObject): + enabled: bool + """ + Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session. + """ + class Parent(StripeObject): class PricingPlanSubscriptionDetails(StripeObject): pricing_plan_subscription: str @@ -246,7 +252,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. """ @@ -313,7 +319,9 @@ 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[Literal["discounts", "pricing", "quantity"]]] + 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. """ @@ -329,6 +337,7 @@ class DiscountAmount(StripeObject): """ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. """ + managed_payments: Optional[ManagedPayments] margins: Optional[List[ExpandableField["Margin"]]] """ The margins which apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item. @@ -603,6 +612,7 @@ async def retrieve_async( return instance _inner_class_types = { + "managed_payments": ManagedPayments, "parent": Parent, "period": Period, "pricing": Pricing, diff --git a/stripe/_invoice_line_item.py b/stripe/_invoice_line_item.py index 5065245b0..a7e32a5d1 100644 --- a/stripe/_invoice_line_item.py +++ b/stripe/_invoice_line_item.py @@ -380,7 +380,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 cfa93ca77..536c699a3 100644 --- a/stripe/_mandate.py +++ b/stripe/_mandate.py @@ -40,7 +40,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`. """ @@ -93,8 +93,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 e259e4845..595e1fa27 100644 --- a/stripe/_object_classes.py +++ b/stripe/_object_classes.py @@ -69,9 +69,9 @@ "CreditBalanceTransaction", ), "billing.credit_grant": ("stripe.billing._credit_grant", "CreditGrant"), - "billing.feedback_options": ( - "stripe.billing._feedback_options", - "FeedbackOptions", + "billing.feedback_option": ( + "stripe.billing._feedback_option", + "FeedbackOption", ), "billing.meter": ("stripe.billing._meter", "Meter"), "billing.meter_event": ("stripe.billing._meter_event", "MeterEvent"), diff --git a/stripe/_order.py b/stripe/_order.py index 08c3dcb50..664497552 100644 --- a/stripe/_order.py +++ b/stripe/_order.py @@ -205,7 +205,9 @@ class Alipay(StripeObject): """ 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. """ @@ -247,8 +249,9 @@ class Card(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`. @@ -522,7 +525,10 @@ 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. @@ -814,125 +820,128 @@ class Address(StripeObject): class TaxDetails(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` @@ -942,7 +951,7 @@ class TaxId(StripeObject): The value of the tax ID. """ - tax_exempt: Literal["exempt", "none", "reverse"] + tax_exempt: Union[Literal["exempt", "none", "reverse"], str] """ Describes the purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`. """ diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index 4666ec1bb..896d19241 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -163,7 +163,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`. """ @@ -385,7 +387,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` """ @@ -533,17 +537,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. """ @@ -1043,35 +1047,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, ] ] """ @@ -1083,36 +1090,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`. @@ -1228,55 +1240,61 @@ class IdBankTransfer(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, ] ] """ @@ -1647,33 +1665,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, ] ] """ @@ -2038,7 +2059,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` diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 4c2cdbefd..e52135113 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -228,7 +228,7 @@ class Surcharge(StripeObject): Portion of the amount that corresponds to a surcharge. """ enforce_validation: Optional[ - Literal["automatic", "disabled", "enabled"] + Union[Literal["automatic", "disabled", "enabled"], str] ] """ Indicate whether to enforce validations on the surcharge amount. @@ -329,207 +329,210 @@ 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_institution_unavailable", - "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", - "sensitive_data_access_expired", - "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_collected_data_invalid", - "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", - "v2_account_disconnection_unsupported", - "v2_account_missing_configuration", + 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_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_institution_unavailable", + "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", + "sensitive_data_access_expired", + "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_collected_data_invalid", + "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", + "v2_account_disconnection_unsupported", + "v2_account_missing_configuration", + ], + str, ] ] """ @@ -621,11 +624,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` @@ -3575,7 +3581,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. """ @@ -3703,7 +3709,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. """ @@ -3715,7 +3721,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`. """ @@ -3771,7 +3779,9 @@ class Address(StripeObject): _inner_class_types = {"address": Address} capture_by: Optional[ - Literal["auth_expiry", "end_of_day", "target_delay"] + Union[ + Literal["auth_expiry", "end_of_day", "target_delay"], str + ] ] """ Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`. @@ -3796,20 +3806,23 @@ class Address(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, ] ] """ @@ -3948,7 +3961,9 @@ class Routing(StripeObject): aade_data: Optional[AadeData] capture_by: Optional[ - Literal["auth_expiry", "end_of_day", "target_delay"] + Union[ + Literal["auth_expiry", "end_of_day", "target_delay"], str + ] ] """ Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`. @@ -4087,7 +4102,9 @@ class TransactionVerificationOptions(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`. """ @@ -4895,7 +4912,7 @@ class Shopeepay(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. @@ -5588,15 +5605,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, ] ] """ @@ -5854,16 +5874,19 @@ 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", - "expired", - "processing", - "requires_action", - "requires_capture", - "requires_confirmation", - "requires_payment_method", - "requires_reauthorization", - "succeeded", + status: Union[ + Literal[ + "canceled", + "expired", + "processing", + "requires_action", + "requires_capture", + "requires_confirmation", + "requires_payment_method", + "requires_reauthorization", + "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 d7bcb761d..6379c46f3 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -72,7 +72,7 @@ class Redirect(StripeObject): class AutomaticSurcharge(StripeObject): calculation_basis: Optional[ - Literal["total_after_tax", "total_before_tax"] + Union[Literal["total_after_tax", "total_before_tax"], str] ] """ Determines which amount serves as the basis for calculating the surcharge. @@ -82,13 +82,13 @@ class AutomaticSurcharge(StripeObject): Indicates whether automatic surcharge is enabled for the payment link. """ provider: Optional[ - Literal["daikin", "interpayments", "proserv", "yeeld"] + Union[Literal["daikin", "interpayments", "proserv", "yeeld"], str] ] """ The surcharge provider used for this payment link. """ tax_behavior: Optional[ - Literal["exclusive", "inclusive", "unspecified"] + Union[Literal["exclusive", "inclusive", "unspecified"], str] ] """ Specifies whether the surcharge is considered inclusive or exclusive of taxes. @@ -117,7 +117,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. @@ -128,11 +128,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 1537ec509..ddd777682 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -657,14 +657,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. @@ -927,35 +930,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, ] ] """ @@ -963,36 +969,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`. @@ -1039,55 +1050,61 @@ class IdBankTransfer(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, ] ] """ @@ -1521,7 +1538,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 d97cf1e71..6593a7425 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -180,7 +180,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`. """ @@ -402,7 +404,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` """ @@ -550,17 +554,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. """ @@ -1060,35 +1064,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, ] ] """ @@ -1100,36 +1107,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`. @@ -1245,55 +1257,61 @@ class IdBankTransfer(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, ] ] """ @@ -1664,33 +1682,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, ] ] """ @@ -2055,7 +2076,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` 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 1a5b8b3fe..8edfdf8f1 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. @@ -206,7 +206,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. """ @@ -270,7 +270,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. """ @@ -278,7 +280,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. """ @@ -286,7 +288,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 5405232f3..719762e97 100644 --- a/stripe/_product.py +++ b/stripe/_product.py @@ -228,7 +228,7 @@ class TaxDetails(StripeObject): """ Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. """ - 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 32cb38c6c..84164c87a 100644 --- a/stripe/_quote.py +++ b/stripe/_quote.py @@ -227,7 +227,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`. """ @@ -485,19 +485,22 @@ class SubscriptionScheduleChanged(StripeObject): The ID of the subscription schedule that was released. """ type: Optional[ - Literal[ - "accept_failed_validations", - "bill_on_acceptance_invalid", - "billing_schedules_invalid", - "line_invalid", - "lines_invalid", - "marked_stale", - "subscription_canceled", - "subscription_changed", - "subscription_expired", - "subscription_schedule_canceled", - "subscription_schedule_changed", - "subscription_schedule_released", + Union[ + Literal[ + "accept_failed_validations", + "bill_on_acceptance_invalid", + "billing_schedules_invalid", + "line_invalid", + "lines_invalid", + "marked_stale", + "subscription_canceled", + "subscription_changed", + "subscription_expired", + "subscription_schedule_canceled", + "subscription_schedule_changed", + "subscription_schedule_released", + ], + str, ] ] """ @@ -649,7 +652,9 @@ class LineEndsAt(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. """ @@ -691,11 +696,14 @@ class LineStartsAt(StripeObject): """ Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. """ - type: Literal[ - "line_starts_at", - "pause_collection_start", - "quote_acceptance_date", - "timestamp", + type: Union[ + Literal[ + "line_starts_at", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ], + str, ] """ Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. @@ -704,7 +712,9 @@ class LineStartsAt(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`. """ @@ -735,12 +745,15 @@ class LineEndsAt(StripeObject): """ If specified, the billing schedule will apply until the specified timestamp. """ - type: Literal[ - "duration", - "line_ends_at", - "schedule_end", - "timestamp", - "upcoming_invoice", + type: Union[ + Literal[ + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ], + str, ] """ Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. @@ -777,7 +790,7 @@ class Prebilling(StripeObject): Describes the period to bill for upon accepting the quote. """ billing_behavior: Optional[ - Literal["prorate_on_next_phase", "prorate_up_front"] + Union[Literal["prorate_on_next_phase", "prorate_up_front"], str] ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -825,7 +838,7 @@ class Prebilling(StripeObject): If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`. """ proration_behavior: Optional[ - Literal["always_invoice", "create_prorations", "none"] + Union[Literal["always_invoice", "create_prorations", "none"], str] ] """ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations) when the quote is accepted. @@ -987,11 +1000,14 @@ class LineStartsAt(StripeObject): """ Use a precise Unix timestamp for prebilling to start. Must be earlier than `bill_until`. """ - type: Literal[ - "line_starts_at", - "pause_collection_start", - "quote_acceptance_date", - "timestamp", + type: Union[ + Literal[ + "line_starts_at", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ], + str, ] """ Describes how the billing schedule determines the start date. Possible values are `timestamp`, `relative`, `amendment_start`, `now`, `quote_acceptance_date`, `line_starts_at`, or `pause_collection_start`. @@ -1000,7 +1016,9 @@ class LineStartsAt(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`. """ @@ -1031,12 +1049,15 @@ class LineEndsAt(StripeObject): """ If specified, the billing schedule will apply until the specified timestamp. """ - type: Literal[ - "duration", - "line_ends_at", - "schedule_end", - "timestamp", - "upcoming_invoice", + type: Union[ + Literal[ + "duration", + "line_ends_at", + "schedule_end", + "timestamp", + "upcoming_invoice", + ], + str, ] """ Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. @@ -1071,7 +1092,7 @@ class LineEndsAt(StripeObject): Describes the period to bill for upon accepting the quote. """ billing_behavior: Optional[ - Literal["prorate_on_next_phase", "prorate_up_front"] + Union[Literal["prorate_on_next_phase", "prorate_up_front"], str] ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -1099,7 +1120,7 @@ class LineEndsAt(StripeObject): Configures how the subscription schedule handles billing for phase transitions when the quote is accepted. """ proration_behavior: Optional[ - Literal["always_invoice", "create_prorations", "none"] + Union[Literal["always_invoice", "create_prorations", "none"], str] ] """ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations) when the quote is accepted. @@ -1252,7 +1273,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/_quote_preview_invoice.py b/stripe/_quote_preview_invoice.py index ba44b1d79..6e390400b 100644 --- a/stripe/_quote_preview_invoice.py +++ b/stripe/_quote_preview_invoice.py @@ -100,7 +100,7 @@ class AmountsDue(StripeObject): """ Timestamp when the payment was paid. """ - status: Literal["open", "paid", "past_due"] + status: Union[Literal["open", "paid", "past_due"], str] """ The status of the payment, one of `open`, `paid`, or `past_due` """ @@ -271,125 +271,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` @@ -429,207 +432,210 @@ 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_institution_unavailable", - "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", - "sensitive_data_access_expired", - "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_collected_data_invalid", - "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", - "v2_account_disconnection_unsupported", - "v2_account_missing_configuration", + 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_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_institution_unavailable", + "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", + "sensitive_data_access_expired", + "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_collected_data_invalid", + "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", + "v2_account_disconnection_unsupported", + "v2_account_missing_configuration", + ], + str, ] ] """ @@ -721,16 +727,25 @@ 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` """ + class ManagedPayments(StripeObject): + enabled: bool + """ + Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session. + """ + class Parent(StripeObject): class BillingCadenceDetails(StripeObject): billing_cadence: str @@ -757,7 +772,10 @@ class ScheduleDetails(StripeObject): class SubscriptionDetails(StripeObject): class PauseCollection(StripeObject): behavior: Optional[ - Literal["keep_as_draft", "mark_uncollectible", "void"] + Union[ + Literal["keep_as_draft", "mark_uncollectible", "void"], + str, + ] ] """ The payment collection behavior for this subscription while paused. @@ -880,7 +898,9 @@ class CheckScan(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`. """ @@ -1049,7 +1069,7 @@ class WechatPay(StripeObject): The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. """ client: Optional[ - Literal["android", "ios", "mobile_web", "web"] + Union[Literal["android", "ios", "mobile_web", "web"], str] ] """ The client type that the end customer will pay from. @@ -1220,7 +1240,7 @@ class WechatPay(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. """ @@ -1449,7 +1469,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. """ @@ -1550,16 +1570,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, ] ] """ @@ -1623,7 +1646,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. """ @@ -1700,6 +1725,7 @@ class TaxRateDetails(StripeObject): """ If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. """ + managed_payments: Optional[ManagedPayments] metadata: Optional[UntypedStripeObject[str]] """ 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. @@ -1831,6 +1857,7 @@ class TaxRateDetails(StripeObject): "from_invoice": FromInvoice, "issuer": Issuer, "last_finalization_error": LastFinalizationError, + "managed_payments": ManagedPayments, "parent": Parent, "payment_settings": PaymentSettings, "rendering": Rendering, diff --git a/stripe/_quote_preview_subscription_schedule.py b/stripe/_quote_preview_subscription_schedule.py index c84797bba..101029612 100644 --- a/stripe/_quote_preview_subscription_schedule.py +++ b/stripe/_quote_preview_subscription_schedule.py @@ -43,7 +43,9 @@ class AppliesTo(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. """ @@ -75,7 +77,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`. """ @@ -224,7 +226,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). """ @@ -252,7 +254,7 @@ 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. """ phase_effective_at: Optional[ - Literal["billing_period_start", "phase_start"] + Union[Literal["billing_period_start", "phase_start"], str] ] """ Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. @@ -298,14 +300,17 @@ class Pause(StripeObject): class Settings(StripeObject): class BillFor(StripeObject): class OutstandingUsageThrough(StripeObject): - type: Literal["none", "pause_at"] + type: Union[Literal["none", "pause_at"], str] """ The type of outstanding usage billing behavior. """ class UnusedTimeFrom(StripeObject): - type: Literal[ - "item_current_period_start", "none", "pause_at" + type: Union[ + Literal[ + "item_current_period_start", "none", "pause_at" + ], + str, ] """ The type of unused time credit behavior. @@ -362,12 +367,18 @@ class Error(StripeObject): class Resume(StripeObject): class Settings(StripeObject): - billing_cycle_anchor: Literal["resume_at", "unchanged"] + billing_cycle_anchor: Union[ + Literal["resume_at", "unchanged"], str + ] """ The billing cycle anchor that applies when the subscription is resumed. """ - payment_behavior: Literal[ - "resume_on_payment_attempt", "resume_on_payment_success" + payment_behavior: Union[ + Literal[ + "resume_on_payment_attempt", + "resume_on_payment_success", + ], + str, ] """ Controls whether Stripe attempts payment on the resumption invoice and how that affects the subscription's status. @@ -864,7 +875,9 @@ class EndBehavior(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). """ @@ -873,7 +886,7 @@ class EndBehavior(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`. @@ -898,7 +911,9 @@ class EndBehavior(StripeObject): """ The stackable discounts that will be applied to the subscription on this phase. Subscription item discounts are applied before subscription discounts. """ - effective_at: Optional[Literal["billing_period_start", "phase_start"]] + effective_at: Optional[ + Union[Literal["billing_period_start", "phase_start"], str] + ] """ Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. """ @@ -926,8 +941,8 @@ class EndBehavior(StripeObject): """ 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). """ - 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`. @@ -992,7 +1007,7 @@ class Prebilling(StripeObject): """ applies_to: AppliesTo billing_behavior: Optional[ - Literal["prorate_on_next_phase", "prorate_up_front"] + Union[Literal["prorate_on_next_phase", "prorate_up_front"], str] ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -1078,8 +1093,9 @@ class Prebilling(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/_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 9f00c91ad..e7fd40753 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -70,7 +70,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` @@ -173,7 +175,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. """ @@ -296,55 +298,61 @@ class IdBankTransfer(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, ] ] """ @@ -438,7 +446,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` @@ -536,207 +546,210 @@ 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_institution_unavailable", - "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", - "sensitive_data_access_expired", - "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_collected_data_invalid", - "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", - "v2_account_disconnection_unsupported", - "v2_account_missing_configuration", + 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_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_institution_unavailable", + "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", + "sensitive_data_access_expired", + "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_collected_data_invalid", + "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", + "v2_account_disconnection_unsupported", + "v2_account_missing_configuration", + ], + str, ] ] """ @@ -828,11 +841,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` @@ -860,7 +876,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 3e588e805..618c41484 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -96,207 +96,210 @@ 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_institution_unavailable", - "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", - "sensitive_data_access_expired", - "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_collected_data_invalid", - "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", - "v2_account_disconnection_unsupported", - "v2_account_missing_configuration", + 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_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_institution_unavailable", + "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", + "sensitive_data_access_expired", + "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_collected_data_invalid", + "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", + "v2_account_disconnection_unsupported", + "v2_account_missing_configuration", + ], + str, ] ] """ @@ -388,11 +391,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` @@ -614,7 +620,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. """ @@ -630,7 +636,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`. """ @@ -656,20 +664,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, ] ] """ @@ -1144,7 +1155,7 @@ class FrMealVoucher(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`. @@ -1251,7 +1262,7 @@ class FrMealVoucher(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. @@ -1321,13 +1332,16 @@ class FrMealVoucher(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 3c646db09..3a40acfb2 100644 --- a/stripe/_source.py +++ b/stripe/_source.py @@ -590,27 +590,30 @@ 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", - "paypal", - "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", + "paypal", + "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 7dc4bfe64..9c0a1924c 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -38,7 +38,7 @@ from stripe._subscription_schedule import SubscriptionSchedule from stripe._tax_id import TaxId from stripe._tax_rate import TaxRate - from stripe.billing._feedback_options import FeedbackOptions + from stripe.billing._feedback_option import FeedbackOption from stripe.params._subscription_attach_cadence_params import ( SubscriptionAttachCadenceParams, ) @@ -137,7 +137,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. """ @@ -169,7 +171,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`. """ @@ -243,7 +245,7 @@ class CancellationDetails(StripeObject): """ The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user. """ - feedback_option: Optional[ExpandableField["FeedbackOptions"]] + 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. """ @@ -334,7 +336,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. """ @@ -417,20 +421,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, ] ] """ @@ -450,7 +457,9 @@ class CheckScan(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`. """ @@ -646,7 +655,7 @@ class WechatPay(StripeObject): The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. """ client: Optional[ - Literal["android", "ios", "mobile_web", "web"] + Union[Literal["android", "ios", "mobile_web", "web"], str] ] """ The client type that the end customer will pay from. @@ -818,7 +827,7 @@ class WechatPay(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`. """ @@ -832,6 +841,10 @@ class PendingUpdate(StripeObject): """ If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. """ + cancel_at_period_end: Optional[bool] + """ + Indicates whether this subscription should cancel at the end of the current period if the update is applied. + """ discount: Optional["Discount"] """ The pending subscription-level discount that will be applied when the pending update is applied. @@ -936,7 +949,9 @@ class TransferData(StripeObject): class TrialSettings(StripeObject): class EndBehavior(StripeObject): - billing_cycle_anchor: Optional[Literal["now", "unchanged"]] + billing_cycle_anchor: Optional[ + Union[Literal["now", "unchanged"], str] + ] """ Indicates how the subscription's billing cycle anchor is reset when a trial ends. If not set, the default is `now`. """ @@ -1002,7 +1017,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`. """ diff --git a/stripe/_subscription_schedule.py b/stripe/_subscription_schedule.py index 286b12afc..ec45143cc 100644 --- a/stripe/_subscription_schedule.py +++ b/stripe/_subscription_schedule.py @@ -65,7 +65,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. """ @@ -97,7 +99,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`. """ @@ -246,7 +248,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). """ @@ -274,7 +276,7 @@ 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. """ phase_effective_at: Optional[ - Literal["billing_period_start", "phase_start"] + Union[Literal["billing_period_start", "phase_start"], str] ] """ Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. @@ -320,14 +322,17 @@ class Pause(StripeObject): class Settings(StripeObject): class BillFor(StripeObject): class OutstandingUsageThrough(StripeObject): - type: Literal["none", "pause_at"] + type: Union[Literal["none", "pause_at"], str] """ The type of outstanding usage billing behavior. """ class UnusedTimeFrom(StripeObject): - type: Literal[ - "item_current_period_start", "none", "pause_at" + type: Union[ + Literal[ + "item_current_period_start", "none", "pause_at" + ], + str, ] """ The type of unused time credit behavior. @@ -384,12 +389,18 @@ class Error(StripeObject): class Resume(StripeObject): class Settings(StripeObject): - billing_cycle_anchor: Literal["resume_at", "unchanged"] + billing_cycle_anchor: Union[ + Literal["resume_at", "unchanged"], str + ] """ The billing cycle anchor that applies when the subscription is resumed. """ - payment_behavior: Literal[ - "resume_on_payment_attempt", "resume_on_payment_success" + payment_behavior: Union[ + Literal[ + "resume_on_payment_attempt", + "resume_on_payment_success", + ], + str, ] """ Controls whether Stripe attempts payment on the resumption invoice and how that affects the subscription's status. @@ -886,7 +897,9 @@ class EndBehavior(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). """ @@ -895,7 +908,7 @@ class EndBehavior(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`. @@ -920,7 +933,9 @@ class EndBehavior(StripeObject): """ The stackable discounts that will be applied to the subscription on this phase. Subscription item discounts are applied before subscription discounts. """ - effective_at: Optional[Literal["billing_period_start", "phase_start"]] + effective_at: Optional[ + Union[Literal["billing_period_start", "phase_start"], str] + ] """ Configures how the subscription schedule handles billing for phase transitions. Possible values are `phase_start` (default) or `billing_period_start`. `phase_start` bills based on the current state of the subscription, ignoring changes scheduled in future phases. `billing_period_start` bills predictively for upcoming phase transitions within the current billing cycle, including pricing changes and service period adjustments that will occur before the next invoice. """ @@ -948,8 +963,8 @@ class EndBehavior(StripeObject): """ 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). """ - 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`. @@ -1013,7 +1028,7 @@ class Prebilling(StripeObject): ID of the Connect Application that created the schedule. """ billing_behavior: Optional[ - Literal["prorate_on_next_phase", "prorate_up_front"] + Union[Literal["prorate_on_next_phase", "prorate_up_front"], str] ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -1099,8 +1114,9 @@ class Prebilling(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/_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 8d5194149..2e5de879d 100644 --- a/stripe/billing/__init__.py +++ b/stripe/billing/__init__.py @@ -38,8 +38,8 @@ from stripe.billing._credit_grant_service import ( CreditGrantService as CreditGrantService, ) - from stripe.billing._feedback_options import ( - FeedbackOptions as FeedbackOptions, + from stripe.billing._feedback_option import ( + FeedbackOption as FeedbackOption, ) from stripe.billing._meter import Meter as Meter from stripe.billing._meter_event import MeterEvent as MeterEvent @@ -88,7 +88,7 @@ ), "CreditGrant": ("stripe.billing._credit_grant", False), "CreditGrantService": ("stripe.billing._credit_grant_service", False), - "FeedbackOptions": ("stripe.billing._feedback_options", False), + "FeedbackOption": ("stripe.billing._feedback_option", 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_options.py b/stripe/billing/_feedback_option.py similarity index 85% rename from stripe/billing/_feedback_options.py rename to stripe/billing/_feedback_option.py index 53a50e80d..c656596c3 100644 --- a/stripe/billing/_feedback_options.py +++ b/stripe/billing/_feedback_option.py @@ -5,13 +5,13 @@ from typing_extensions import Literal -class FeedbackOptions(StripeObject): +class FeedbackOption(StripeObject): """ A resource for the feedback options model (for custom cancellation reasons) """ - OBJECT_NAME: ClassVar[Literal["billing.feedback_options"]] = ( - "billing.feedback_options" + OBJECT_NAME: ClassVar[Literal["billing.feedback_option"]] = ( + "billing.feedback_option" ) class StatusTransitions(StripeObject): @@ -32,7 +32,7 @@ class StatusTransitions(StripeObject): """ 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_options"] + object: Literal["billing.feedback_option"] """ String representing the object's type. Objects of the same type share the same value. """ diff --git a/stripe/billing_portal/_configuration.py b/stripe/billing_portal/_configuration.py index eaa717b9c..af85f62e6 100644 --- a/stripe/billing_portal/_configuration.py +++ b/stripe/billing_portal/_configuration.py @@ -12,7 +12,7 @@ if TYPE_CHECKING: from stripe._application import Application - from stripe.billing._feedback_options import FeedbackOptions + from stripe.billing._feedback_option import FeedbackOption from stripe.params.billing_portal._configuration_create_params import ( ConfigurationCreateParams, ) @@ -100,7 +100,7 @@ class CancellationReason(StripeObject): Whether the feature is enabled. """ feedback_options: Optional[ - List[ExpandableField["FeedbackOptions"]] + List[ExpandableField["FeedbackOption"]] ] """ The IDs of custom feedback options configured for this cancellation reason. @@ -133,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`. @@ -188,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). """ @@ -206,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 57c69dd94..452caebd4 100644 --- a/stripe/billing_portal/_session.py +++ b/stripe/billing_portal/_session.py @@ -100,6 +100,12 @@ class CouponOffer(StripeObject): """ _inner_class_types = {"retention": Retention} + class SubscriptionPause(StripeObject): + subscription: str + """ + The ID of the subscription to be paused. + """ + class SubscriptionUpdate(StripeObject): subscription: str """ @@ -154,6 +160,10 @@ class Item(StripeObject): """ Configuration when `flow.type=subscription_cancel`. """ + subscription_pause: Optional[SubscriptionPause] + """ + Configuration when `flow.type=subscription_pause`. + """ subscription_update: Optional[SubscriptionUpdate] """ Configuration when `flow.type=subscription_update`. @@ -167,6 +177,7 @@ class Item(StripeObject): "customer_update", "payment_method_update", "subscription_cancel", + "subscription_pause", "subscription_update", "subscription_update_confirm", ], @@ -179,6 +190,7 @@ class Item(StripeObject): "after_completion": AfterCompletion, "customer_update": CustomerUpdate, "subscription_cancel": SubscriptionCancel, + "subscription_pause": SubscriptionPause, "subscription_update": SubscriptionUpdate, "subscription_update_confirm": SubscriptionUpdateConfirm, } diff --git a/stripe/capital/_financing_offer.py b/stripe/capital/_financing_offer.py index 36af69950..e8e2175ec 100644 --- a/stripe/capital/_financing_offer.py +++ b/stripe/capital/_financing_offer.py @@ -115,13 +115,16 @@ class OfferedTerms(StripeObject): Time at which the offer was created. Given in seconds since unix epoch. """ disclaimer_variant: Optional[ - Literal[ - "celtic_us_loan", - "fundbox_au_financing", - "youlend_de_financing", - "youlend_fr_financing", - "youlend_uk_mca", - "youlend_us_mca", + Union[ + Literal[ + "celtic_us_loan", + "fundbox_au_financing", + "youlend_de_financing", + "youlend_fr_financing", + "youlend_uk_mca", + "youlend_us_mca", + ], + str, ] ] """ @@ -187,7 +190,9 @@ class OfferedTerms(StripeObject): """ The current status of the offer. """ - type: Optional[Literal["cash_advance", "fixed_term_loan", "flex_loan"]] + type: Optional[ + Union[Literal["cash_advance", "fixed_term_loan", "flex_loan"], str] + ] """ See [financing_type](https://docs.stripe.com/api/capital/connect_financing_object#financing_offer_object-financing_type). """ diff --git a/stripe/capital/_financing_summary.py b/stripe/capital/_financing_summary.py index 9f6ac1bb4..b653bc214 100644 --- a/stripe/capital/_financing_summary.py +++ b/stripe/capital/_financing_summary.py @@ -55,13 +55,16 @@ class CurrentRepaymentInterval(StripeObject): The chronologically current repayment interval for the financing offer. """ disclaimer_variant: Optional[ - Literal[ - "celtic_us_loan", - "fundbox_au_financing", - "youlend_de_financing", - "youlend_fr_financing", - "youlend_uk_mca", - "youlend_us_mca", + Union[ + Literal[ + "celtic_us_loan", + "fundbox_au_financing", + "youlend_de_financing", + "youlend_fr_financing", + "youlend_uk_mca", + "youlend_us_mca", + ], + str, ] ] """ diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index b34760ce9..ee1f9d71d 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -108,7 +108,7 @@ class Recovery(StripeObject): class AutomaticSurcharge(StripeObject): calculation_basis: Optional[ - Literal["total_after_tax", "total_before_tax"] + Union[Literal["total_after_tax", "total_before_tax"], str] ] """ Determines which amount serves as the basis for calculating the surcharge. @@ -118,17 +118,19 @@ class AutomaticSurcharge(StripeObject): Indicates whether automatic surcharge is enabled for the session. """ provider: Optional[ - Literal["daikin", "interpayments", "proserv", "yeeld"] + Union[Literal["daikin", "interpayments", "proserv", "yeeld"], str] ] """ The surcharge provider used for this session. """ - status: Optional[Literal["complete", "failed", "requires_input"]] + status: Optional[ + Union[Literal["complete", "failed", "requires_input"], str] + ] """ The status of the most recent surcharge calculation for this session. """ tax_behavior: Optional[ - Literal["exclusive", "inclusive", "unspecified"] + Union[Literal["exclusive", "inclusive", "unspecified"], str] ] """ Specifies whether the surcharge is considered inclusive or exclusive of taxes. @@ -177,7 +179,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`. """ @@ -191,7 +193,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`. """ @@ -204,7 +206,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`. """ @@ -308,125 +310,128 @@ class Address(StripeObject): _inner_class_types = {"address": Address} 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` @@ -466,7 +471,7 @@ class TaxId(StripeObject): } 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. @@ -478,7 +483,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. @@ -489,13 +494,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. """ @@ -578,15 +583,18 @@ class Boleto(StripeObject): class Card(StripeObject): class Wallet(StripeObject): - type: Literal[ - "amex_express_checkout", - "apple_pay", - "google_pay", - "link", - "masterpass", - "meta_pay", - "samsung_pay", - "visa_checkout", + type: Union[ + Literal[ + "amex_express_checkout", + "apple_pay", + "google_pay", + "link", + "masterpass", + "meta_pay", + "samsung_pay", + "visa_checkout", + ], + str, ] """ The type of the wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, `meta_pay`, or `link`. @@ -614,7 +622,9 @@ class Wallet(StripeObject): *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* """ - funding: Literal["credit", "debit", "prepaid", "unknown"] + funding: Union[ + Literal["credit", "debit", "prepaid", "unknown"], str + ] """ Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. """ @@ -920,125 +930,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` @@ -1073,7 +1086,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. """ @@ -1179,7 +1192,7 @@ class Item(StripeObject): """ 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`. """ @@ -1544,11 +1557,14 @@ 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, ] ] ] @@ -1556,7 +1572,7 @@ class Restrictions(StripeObject): 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[Literal["credit", "debit", "prepaid"]] + List[Union[Literal["credit", "debit", "prepaid"], str]] ] """ Card funding types to block for this Checkout Session. Supported values are `credit`, `debit`, and `prepaid`. @@ -1648,7 +1664,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`. """ @@ -2392,7 +2410,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 """ @@ -2508,7 +2526,9 @@ class WechatPay(StripeObject): class Permissions(StripeObject): class Update(StripeObject): - line_items: Optional[Literal["client_only", "server_only"]] + line_items: Optional[ + Union[Literal["client_only", "server_only"], str] + ] """ Determines which entity is allowed to update the line items. @@ -2516,7 +2536,9 @@ class Update(StripeObject): When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API. """ - shipping_details: Optional[Literal["client_only", "server_only"]] + shipping_details: Optional[ + Union[Literal["client_only", "server_only"], str] + ] """ Determines which entity is allowed to update the shipping details. @@ -2529,7 +2551,9 @@ class Update(StripeObject): """ Permissions for updating the Checkout Session. """ - update_line_items: Optional[Literal["client_only", "server_only"]] + update_line_items: Optional[ + Union[Literal["client_only", "server_only"], str] + ] """ Determines which entity is allowed to update the line items. @@ -2538,7 +2562,7 @@ class Update(StripeObject): When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API. """ 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. @@ -3286,7 +3310,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 @@ -3360,7 +3384,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/crypto/_onramp_session.py b/stripe/crypto/_onramp_session.py index f34cfb789..0eda2e8eb 100644 --- a/stripe/crypto/_onramp_session.py +++ b/stripe/crypto/_onramp_session.py @@ -128,6 +128,7 @@ class DestinationTags(StripeObject): "matic", "sol", "usdc", + "usdt", "wld", "xlm", ], @@ -141,7 +142,15 @@ class DestinationTags(StripeObject): destination_currency: Optional[ Union[ Literal[ - "avax", "btc", "eth", "matic", "sol", "usdc", "wld", "xlm" + "avax", + "btc", + "eth", + "matic", + "sol", + "usdc", + "usdt", + "wld", + "xlm", ], str, ] diff --git a/stripe/financial_connections/_session.py b/stripe/financial_connections/_session.py index 1e979a20f..659c85fa1 100644 --- a/stripe/financial_connections/_session.py +++ b/stripe/financial_connections/_session.py @@ -84,7 +84,7 @@ class Filters(StripeObject): """ class Hosted(StripeObject): - delivery_method: Optional[Literal["email", "url"]] + delivery_method: Optional[Union[Literal["email", "url"], str]] """ How the user enters the hosted flow. You can only use the values `email` and `url` if you provide `relink_options`. """ diff --git a/stripe/identity/_blocklist_entry.py b/stripe/identity/_blocklist_entry.py index 4c1c12102..599976292 100644 --- a/stripe/identity/_blocklist_entry.py +++ b/stripe/identity/_blocklist_entry.py @@ -5,7 +5,7 @@ from stripe._list_object import ListObject from stripe._listable_api_resource import ListableAPIResource 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: @@ -71,7 +71,7 @@ class BlocklistEntry( """ The current status of the BlocklistEntry. """ - type: Literal["document", "selfie"] + type: Union[Literal["document", "selfie"], str] """ The type of BlocklistEntry. """ diff --git a/stripe/issuing/_authorization.py b/stripe/issuing/_authorization.py index 4eda9f6ad..ebe6e646d 100644 --- a/stripe/issuing/_authorization.py +++ b/stripe/issuing/_authorization.py @@ -998,6 +998,55 @@ class HoldAmount(StripeObject): """ class HoldAmountDetails(StripeObject): + class EstimatedFee(StripeObject): + currency: str + """ + Three-letter ISO currency code. + """ + value: int + """ + The amount in the smallest currency unit. + """ + + class EstimatedFeeDetail(StripeObject): + class Amount(StripeObject): + currency: str + """ + Three-letter ISO currency code. + """ + value: int + """ + The amount in the smallest currency unit. + """ + + class ChargedBy(StripeObject): + class Application(StripeObject): + feature_name: str + """ + Human-readable product name. + """ + + application: Optional[Application] + """ + Details for a fee charged by a Connect application. + """ + type: str + """ + The type of entity that charged this fee. + """ + _inner_class_types = {"application": Application} + + amount: Amount + charged_by: ChargedBy + type: str + """ + The category of this fee. + """ + _inner_class_types = { + "amount": Amount, + "charged_by": ChargedBy, + } + class Network(StripeObject): currency: str """ @@ -1018,12 +1067,25 @@ class Reserve(StripeObject): The amount in the smallest currency unit. """ + estimated_fee: Optional[EstimatedFee] + """ + Advisory estimate of total fees for this authorization request. + """ + estimated_fee_details: Optional[List[EstimatedFeeDetail]] + """ + Per-fee-type breakdown of the estimated fees for this authorization request. + """ network: Network reserve: Optional[Reserve] """ The reserve amount held for this authorization. Present for certain MCCs that may have overcaptures. """ - _inner_class_types = {"network": Network, "reserve": Reserve} + _inner_class_types = { + "estimated_fee": EstimatedFee, + "estimated_fee_details": EstimatedFeeDetail, + "network": Network, + "reserve": Reserve, + } amount: int """ @@ -1095,6 +1157,55 @@ class HoldAmount(StripeObject): """ class HoldAmountDetails(StripeObject): + class EstimatedFee(StripeObject): + currency: str + """ + Three-letter ISO currency code. + """ + value: int + """ + The amount in the smallest currency unit. + """ + + class EstimatedFeeDetail(StripeObject): + class Amount(StripeObject): + currency: str + """ + Three-letter ISO currency code. + """ + value: int + """ + The amount in the smallest currency unit. + """ + + class ChargedBy(StripeObject): + class Application(StripeObject): + feature_name: str + """ + Human-readable product name. + """ + + application: Optional[Application] + """ + Details for a fee charged by a Connect application. + """ + type: str + """ + The type of entity that charged this fee. + """ + _inner_class_types = {"application": Application} + + amount: Amount + charged_by: ChargedBy + type: str + """ + The category of this fee. + """ + _inner_class_types = { + "amount": Amount, + "charged_by": ChargedBy, + } + class Network(StripeObject): currency: str """ @@ -1115,12 +1226,25 @@ class Reserve(StripeObject): The amount in the smallest currency unit. """ + estimated_fee: Optional[EstimatedFee] + """ + Advisory estimate of total fees for this authorization request. + """ + estimated_fee_details: Optional[List[EstimatedFeeDetail]] + """ + Per-fee-type breakdown of the estimated fees for this authorization request. + """ network: Network reserve: Optional[Reserve] """ The reserve amount held for this authorization. Present for certain MCCs that may have overcaptures. """ - _inner_class_types = {"network": Network, "reserve": Reserve} + _inner_class_types = { + "estimated_fee": EstimatedFee, + "estimated_fee_details": EstimatedFeeDetail, + "network": Network, + "reserve": Reserve, + } class NetworkData(StripeObject): class TraceId(StripeObject): diff --git a/stripe/issuing/_card.py b/stripe/issuing/_card.py index fb1fe56c7..95c63a6a4 100644 --- a/stripe/issuing/_card.py +++ b/stripe/issuing/_card.py @@ -262,6 +262,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", @@ -558,331 +887,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, ] ] ] @@ -894,309 +900,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 d71368a9c..17ed7d679 100644 --- a/stripe/issuing/_cardholder.py +++ b/stripe/issuing/_cardholder.py @@ -205,6 +205,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", @@ -501,331 +830,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, ] ] ] @@ -837,309 +843,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/_settlement.py b/stripe/issuing/_settlement.py index 668879592..da76337ba 100644 --- a/stripe/issuing/_settlement.py +++ b/stripe/issuing/_settlement.py @@ -47,7 +47,7 @@ class Settlement(StripeObject): """ The total net amount required to settle with the network. """ - network: Literal["maestro", "mastercard", "visa"] + network: Union[Literal["maestro", "mastercard", "visa"], str] """ The card network for this settlement report. One of ["visa", "maestro", "mastercard"] """ diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index ba69b51cc..8497c8cc8 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -1548,6 +1548,7 @@ InvoiceCreateParamsDiscountDiscountEndDuration as InvoiceCreateParamsDiscountDiscountEndDuration, InvoiceCreateParamsFromInvoice as InvoiceCreateParamsFromInvoice, InvoiceCreateParamsIssuer as InvoiceCreateParamsIssuer, + InvoiceCreateParamsManagedPayments as InvoiceCreateParamsManagedPayments, InvoiceCreateParamsPaymentSettings as InvoiceCreateParamsPaymentSettings, InvoiceCreateParamsPaymentSettingsPaymentMethodOptions as InvoiceCreateParamsPaymentSettingsPaymentMethodOptions, InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit as InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit, @@ -1739,6 +1740,7 @@ InvoiceItemCreateParamsDiscount as InvoiceItemCreateParamsDiscount, InvoiceItemCreateParamsDiscountDiscountEnd as InvoiceItemCreateParamsDiscountDiscountEnd, InvoiceItemCreateParamsDiscountDiscountEndDuration as InvoiceItemCreateParamsDiscountDiscountEndDuration, + InvoiceItemCreateParamsManagedPayments as InvoiceItemCreateParamsManagedPayments, InvoiceItemCreateParamsPeriod as InvoiceItemCreateParamsPeriod, InvoiceItemCreateParamsPriceData as InvoiceItemCreateParamsPriceData, InvoiceItemCreateParamsPricing as InvoiceItemCreateParamsPricing, @@ -10874,6 +10876,10 @@ "stripe.params._invoice_create_params", False, ), + "InvoiceCreateParamsManagedPayments": ( + "stripe.params._invoice_create_params", + False, + ), "InvoiceCreateParamsPaymentSettings": ( "stripe.params._invoice_create_params", False, @@ -11595,6 +11601,10 @@ "stripe.params._invoice_item_create_params", False, ), + "InvoiceItemCreateParamsManagedPayments": ( + "stripe.params._invoice_item_create_params", + False, + ), "InvoiceItemCreateParamsPeriod": ( "stripe.params._invoice_item_create_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 2476a6bde..9b5a1a969 100644 --- a/stripe/params/_account_create_params.py +++ b/stripe/params/_account_create_params.py @@ -94,7 +94,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. """ @@ -1775,7 +1775,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. """ @@ -2421,7 +2421,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`. """ @@ -2434,15 +2436,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 2dca502f1..051a59aa6 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. """ @@ -51,11 +51,11 @@ class AccountLinkCreateParamsCollectionOptions(TypedDict): """ Specifies whether the platform collects external account information from connected accounts during Connect Onboarding. When set to `true`, the platform only collects external account information if the connected account has capabilities which require it. Some capabilities, such as `treasury`, don't require external account collection. When set to `false`, external account collection is skipped. Defaults to `true`. """ - 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_update_params.py b/stripe/params/_account_update_params.py index 342909cea..e6896d126 100644 --- a/stripe/params/_account_update_params.py +++ b/stripe/params/_account_update_params.py @@ -1713,7 +1713,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. """ @@ -2369,7 +2369,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`. """ @@ -2382,15 +2384,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 e5777a73a..3e5b41009 100644 --- a/stripe/params/_charge_modify_params.py +++ b/stripe/params/_charge_modify_params.py @@ -48,7 +48,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 dc401664b..3471577f9 100644 --- a/stripe/params/_charge_update_params.py +++ b/stripe/params/_charge_update_params.py @@ -47,7 +47,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 ab48b94f6..d281929f9 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -614,36 +614,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. @@ -651,36 +622,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. @@ -715,28 +689,7 @@ class ConfirmationTokenCreateParamsPaymentMethodDataIdBankTransfer(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/_coupon_create_params.py b/stripe/params/_coupon_create_params.py index 5eaff264a..ef0785f51 100644 --- a/stripe/params/_coupon_create_params.py +++ b/stripe/params/_coupon_create_params.py @@ -101,7 +101,7 @@ class CouponCreateParamsScript(TypedDict): class CouponCreateParamsServicePeriod(TypedDict): - interval: Literal["day", "month", "week", "year"] + interval: Union[Literal["day", "month", "week", "year"], str] """ Specifies coupon frequency. Either `day`, `week`, `month` or `year`. """ 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_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/_external_account_create_params.py b/stripe/params/_external_account_create_params.py index e4f2ddf1d..4eb92683c 100644 --- a/stripe/params/_external_account_create_params.py +++ b/stripe/params/_external_account_create_params.py @@ -55,7 +55,7 @@ class ExternalAccountCreateParamsBankAccount(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/_external_account_list_params.py b/stripe/params/_external_account_list_params.py index 150de5801..5ecdc1153 100644 --- a/stripe/params/_external_account_list_params.py +++ b/stripe/params/_external_account_list_params.py @@ -17,7 +17,7 @@ class ExternalAccountListParams(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/_external_account_update_params.py b/stripe/params/_external_account_update_params.py index f23779b09..eca7d995b 100644 --- a/stripe/params/_external_account_update_params.py +++ b/stripe/params/_external_account_update_params.py @@ -11,12 +11,14 @@ class ExternalAccountUpdateParams(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/_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 24f8f084a..2a41b4623 100644 --- a/stripe/params/_invoice_add_lines_params.py +++ b/stripe/params/_invoice_add_lines_params.py @@ -160,7 +160,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 454e466ac..942f6c8af 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -32,7 +32,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`. @@ -107,6 +107,10 @@ class InvoiceCreateParams(RequestOptions): """ The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. """ + managed_payments: NotRequired["InvoiceCreateParamsManagedPayments"] + """ + Settings for Managed Payments for this invoice. + """ metadata: NotRequired[ "Literal['']|Dict[str, str]|UntypedStripeObject[str]" ] @@ -276,6 +280,13 @@ class InvoiceCreateParamsIssuer(TypedDict): """ +class InvoiceCreateParamsManagedPayments(TypedDict): + enabled: NotRequired[bool] + """ + Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution. + """ + + class InvoiceCreateParamsPaymentSettings(TypedDict): default_mandate: NotRequired["Literal['']|str"] """ @@ -636,7 +647,12 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -682,7 +698,7 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay( """ The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. """ - client: NotRequired[Literal["android", "ios", "mobile_web", "web"]] + client: NotRequired["Literal['android', 'ios', 'mobile_web', 'web']|str"] """ The client type that the end customer will pay from. """ @@ -690,7 +706,7 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay( 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. @@ -710,7 +726,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 @@ -752,7 +768,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`. """ @@ -833,7 +851,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 ce1a5ce82..c74da4d7b 100644 --- a/stripe/params/_invoice_create_preview_params.py +++ b/stripe/params/_invoice_create_preview_params.py @@ -117,7 +117,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`. """ @@ -206,124 +208,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` @@ -495,7 +500,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. """ @@ -588,7 +595,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. """ @@ -621,7 +630,7 @@ class InvoiceCreatePreviewParamsScheduleDetails(TypedDict): Changes to apply to the phases of the subscription schedule, in the order provided. """ billing_behavior: NotRequired[ - Literal["prorate_on_next_phase", "prorate_up_front"] + "Literal['prorate_on_next_phase', 'prorate_up_front']|str" ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -644,7 +653,7 @@ class InvoiceCreatePreviewParamsScheduleDetails(TypedDict): """ Object representing the subscription schedule's default settings. """ - 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. """ @@ -1568,7 +1577,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. """ @@ -1630,7 +1639,7 @@ class InvoiceCreatePreviewParamsScheduleDetailsBillingScheduleBillUntil( class InvoiceCreatePreviewParamsScheduleDetailsBillingScheduleBillUntilDuration( TypedDict, ): - interval: Literal["day", "month", "week", "year"] + interval: Union[Literal["day", "month", "week", "year"], str] """ Specifies billing duration. Either `day`, `week`, `month` or `year`. """ @@ -1642,7 +1651,7 @@ class InvoiceCreatePreviewParamsScheduleDetailsBillingScheduleBillUntilDuration( class InvoiceCreatePreviewParamsScheduleDetailsDefaultSettings(TypedDict): phase_effective_at: NotRequired[ - Literal["billing_period_start", "phase_start"] + "Literal['billing_period_start', 'phase_start']|str" ] """ Configures how the subscription schedule handles billing for phase transitions. @@ -1666,7 +1675,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). """ @@ -1677,7 +1688,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. @@ -1710,7 +1721,9 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhase(TypedDict): """ The number of intervals the phase should last. If set, `end_date` must not be set. """ - effective_at: NotRequired[Literal["billing_period_start", "phase_start"]] + effective_at: NotRequired[ + "Literal['billing_period_start', 'phase_start']|str" + ] """ Configures how the subscription schedule handles billing for phase transitions. """ @@ -1930,7 +1943,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. """ @@ -2100,7 +2115,7 @@ class InvoiceCreatePreviewParamsScheduleDetailsPhaseDiscountSettingsServicePerio 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`. """ @@ -2331,7 +2346,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. """ @@ -2348,7 +2365,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`. """ @@ -2468,7 +2485,7 @@ class InvoiceCreatePreviewParamsScheduleDetailsPrebillingBillUntilDuration( 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`. """ @@ -2568,7 +2585,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. """ @@ -2630,7 +2647,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`. """ @@ -2854,7 +2871,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. """ @@ -2871,7 +2890,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`. """ @@ -2918,7 +2937,7 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillFor(TypedDict): class InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForOutstandingUsageThrough( TypedDict, ): - type: Literal["none", "now"] + type: Union[Literal["none", "now"], str] """ When to bill metered usage in the current period. """ @@ -2927,7 +2946,7 @@ class InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForOutstandingUsageT class InvoiceCreatePreviewParamsSubscriptionDetailsPauseBillForUnusedTimeFrom( TypedDict, ): - type: Literal["item_current_period_start", "none", "now"] + type: Union[Literal["item_current_period_start", "none", "now"], str] """ When to credit for unused time. """ diff --git a/stripe/params/_invoice_item_create_params.py b/stripe/params/_invoice_item_create_params.py index d167a1630..cd92a3765 100644 --- a/stripe/params/_invoice_item_create_params.py +++ b/stripe/params/_invoice_item_create_params.py @@ -44,6 +44,10 @@ class InvoiceItemCreateParams(RequestOptions): """ The ID of an existing invoice to add this invoice item to. For subscription invoices, when left blank, the invoice item will be added to the next upcoming scheduled invoice. For standalone invoices, the invoice item won't be automatically added unless you pass `pending_invoice_item_behavior: 'include'` when creating the invoice. This is useful when adding invoice items in response to an invoice.created webhook. You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice. """ + managed_payments: NotRequired["InvoiceItemCreateParamsManagedPayments"] + """ + Settings for Managed Payments for this invoice item. + """ margins: NotRequired[List[str]] """ The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item. @@ -78,7 +82,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. """ @@ -141,6 +147,13 @@ class InvoiceItemCreateParamsDiscountDiscountEndDuration(TypedDict): """ +class InvoiceItemCreateParamsManagedPayments(TypedDict): + enabled: NotRequired[bool] + """ + Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution. + """ + + class InvoiceItemCreateParamsPeriod(TypedDict): end: int """ @@ -161,7 +174,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 d8040b73c..a2a09c294 100644 --- a/stripe/params/_invoice_item_modify_params.py +++ b/stripe/params/_invoice_item_modify_params.py @@ -58,7 +58,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. """ @@ -141,7 +143,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 f31edc898..df0fcdfcf 100644 --- a/stripe/params/_invoice_item_update_params.py +++ b/stripe/params/_invoice_item_update_params.py @@ -57,7 +57,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. """ @@ -140,7 +142,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 94003923b..7cbc5c4cb 100644 --- a/stripe/params/_invoice_line_item_update_params.py +++ b/stripe/params/_invoice_line_item_update_params.py @@ -144,7 +144,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 3f7d0393f..43d99151d 100644 --- a/stripe/params/_invoice_list_params.py +++ b/stripe/params/_invoice_list_params.py @@ -11,7 +11,7 @@ class InvoiceListParams(RequestOptions): Only return invoices for the cadence specified by this billing cadence ID. """ 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 0c06875f0..e59238d0e 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -32,7 +32,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. @@ -601,7 +601,12 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -647,7 +652,7 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay( """ The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. """ - client: NotRequired[Literal["android", "ios", "mobile_web", "web"]] + client: NotRequired["Literal['android', 'ios', 'mobile_web', 'web']|str"] """ The client type that the end customer will pay from. """ @@ -655,7 +660,7 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay( 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. @@ -675,7 +680,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 @@ -717,7 +722,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`. """ @@ -798,7 +805,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 4e8f1a50c..2518c0f28 100644 --- a/stripe/params/_invoice_update_lines_params.py +++ b/stripe/params/_invoice_update_lines_params.py @@ -164,7 +164,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 d9cb7c150..ff59ec95c 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -31,7 +31,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. @@ -600,7 +600,12 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinanci """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -646,7 +651,7 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay( """ The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. """ - client: NotRequired[Literal["android", "ios", "mobile_web", "web"]] + client: NotRequired["Literal['android', 'ios', 'mobile_web', 'web']|str"] """ The client type that the end customer will pay from. """ @@ -654,7 +659,7 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay( 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. @@ -674,7 +679,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 @@ -716,7 +721,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`. """ @@ -797,7 +804,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/_order_create_params.py b/stripe/params/_order_create_params.py index 51faf7664..589434d01 100644 --- a/stripe/params/_order_create_params.py +++ b/stripe/params/_order_create_params.py @@ -207,7 +207,9 @@ class OrderCreateParamsLineItemPriceData(TypedDict): Use this to implement a variable-pricing model in your integration. This is required if `product_data` is not specified. """ - 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. """ @@ -2177,7 +2179,9 @@ class OrderCreateParamsShippingCostShippingRateData(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`. """ @@ -2256,7 +2260,9 @@ class OrderCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions( """ 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`. """ @@ -2305,7 +2311,9 @@ class OrderCreateParamsShippingDetailsAddress(TypedDict): class OrderCreateParamsTaxDetails(TypedDict): - tax_exempt: NotRequired["Literal['']|Literal['exempt', 'none', 'reverse']"] + tax_exempt: NotRequired[ + "Literal['']|Literal['exempt', 'none', 'reverse']|str" + ] """ The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`. """ @@ -2316,124 +2324,127 @@ class OrderCreateParamsTaxDetails(TypedDict): class OrderCreateParamsTaxDetailsTaxId(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/_order_modify_params.py b/stripe/params/_order_modify_params.py index 2f03a0701..c10cb506e 100644 --- a/stripe/params/_order_modify_params.py +++ b/stripe/params/_order_modify_params.py @@ -213,7 +213,9 @@ class OrderModifyParamsLineItemPriceData(TypedDict): Use this to implement a variable-pricing model in your integration. This is required if `product_data` is not specified. """ - 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. """ @@ -2187,7 +2189,9 @@ class OrderModifyParamsShippingCostShippingRateData(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`. """ @@ -2266,7 +2270,9 @@ class OrderModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions( """ 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`. """ @@ -2315,7 +2321,9 @@ class OrderModifyParamsShippingDetailsAddress(TypedDict): class OrderModifyParamsTaxDetails(TypedDict): - tax_exempt: NotRequired["Literal['']|Literal['exempt', 'none', 'reverse']"] + tax_exempt: NotRequired[ + "Literal['']|Literal['exempt', 'none', 'reverse']|str" + ] """ The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`. """ @@ -2326,124 +2334,127 @@ class OrderModifyParamsTaxDetails(TypedDict): class OrderModifyParamsTaxDetailsTaxId(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/_order_update_params.py b/stripe/params/_order_update_params.py index 672939aae..02432d379 100644 --- a/stripe/params/_order_update_params.py +++ b/stripe/params/_order_update_params.py @@ -212,7 +212,9 @@ class OrderUpdateParamsLineItemPriceData(TypedDict): Use this to implement a variable-pricing model in your integration. This is required if `product_data` is not specified. """ - 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. """ @@ -2186,7 +2188,9 @@ class OrderUpdateParamsShippingCostShippingRateData(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`. """ @@ -2265,7 +2269,9 @@ class OrderUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions( """ 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`. """ @@ -2314,7 +2320,9 @@ class OrderUpdateParamsShippingDetailsAddress(TypedDict): class OrderUpdateParamsTaxDetails(TypedDict): - tax_exempt: NotRequired["Literal['']|Literal['exempt', 'none', 'reverse']"] + tax_exempt: NotRequired[ + "Literal['']|Literal['exempt', 'none', 'reverse']|str" + ] """ The purchaser's tax exemption status. One of `none`, `exempt`, or `reverse`. """ @@ -2325,124 +2333,127 @@ class OrderUpdateParamsTaxDetails(TypedDict): class OrderUpdateParamsTaxDetailsTaxId(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/_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 8766ff916..7aa0d13af 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -174,7 +174,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). """ @@ -656,7 +656,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`. """ @@ -3357,36 +3357,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. @@ -3394,36 +3365,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. @@ -3458,28 +3432,7 @@ class PaymentIntentConfirmParamsPaymentMethodDataIdBankTransfer(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. @@ -4474,7 +4427,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsBoleto(TypedDict): class PaymentIntentConfirmParamsPaymentMethodOptionsCard(TypedDict): capture_by: NotRequired[ - Literal["auth_expiry", "end_of_day", "target_delay"] + "Literal['auth_expiry', 'end_of_day', 'target_delay']|str" ] """ Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`. @@ -4524,21 +4477,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. @@ -4684,7 +4623,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. """ @@ -4696,7 +4635,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`. """ @@ -4882,7 +4821,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptio class PaymentIntentConfirmParamsPaymentMethodOptionsCardPresent(TypedDict): capture_by: NotRequired[ - Literal["auth_expiry", "end_of_day", "target_delay"] + "Literal['auth_expiry', 'end_of_day', 'target_delay']|str" ] """ Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`. @@ -7357,7 +7296,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnec """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -7388,7 +7332,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`. """ @@ -7419,7 +7365,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 3b4e83428..8b2379a9c 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -287,7 +287,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). """ @@ -814,7 +814,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`. """ @@ -3493,36 +3493,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. @@ -3530,36 +3501,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. @@ -3594,28 +3568,7 @@ class PaymentIntentCreateParamsPaymentMethodDataIdBankTransfer(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. @@ -4608,7 +4561,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsBoleto(TypedDict): class PaymentIntentCreateParamsPaymentMethodOptionsCard(TypedDict): capture_by: NotRequired[ - Literal["auth_expiry", "end_of_day", "target_delay"] + "Literal['auth_expiry', 'end_of_day', 'target_delay']|str" ] """ Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`. @@ -4658,21 +4611,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. @@ -4814,7 +4753,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. """ @@ -4826,7 +4765,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`. """ @@ -5010,7 +4949,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOption class PaymentIntentCreateParamsPaymentMethodOptionsCardPresent(TypedDict): capture_by: NotRequired[ - Literal["auth_expiry", "end_of_day", "target_delay"] + "Literal['auth_expiry', 'end_of_day', 'target_delay']|str" ] """ Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`. @@ -7485,7 +7424,12 @@ class PaymentIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnect """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -7516,7 +7460,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`. """ @@ -7547,7 +7493,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 c4c5cfb15..8858e4270 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -3336,36 +3336,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. @@ -3373,36 +3344,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. @@ -3437,28 +3411,7 @@ class PaymentIntentModifyParamsPaymentMethodDataIdBankTransfer(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. @@ -4451,7 +4404,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsBoleto(TypedDict): class PaymentIntentModifyParamsPaymentMethodOptionsCard(TypedDict): capture_by: NotRequired[ - Literal["auth_expiry", "end_of_day", "target_delay"] + "Literal['auth_expiry', 'end_of_day', 'target_delay']|str" ] """ Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`. @@ -4501,21 +4454,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. @@ -4657,7 +4596,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. """ @@ -4669,7 +4608,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`. """ @@ -4853,7 +4792,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOption class PaymentIntentModifyParamsPaymentMethodOptionsCardPresent(TypedDict): capture_by: NotRequired[ - Literal["auth_expiry", "end_of_day", "target_delay"] + "Literal['auth_expiry', 'end_of_day', 'target_delay']|str" ] """ Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`. @@ -7328,7 +7267,12 @@ class PaymentIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnect """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -7359,7 +7303,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`. """ @@ -7390,7 +7336,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 a53072736..4622feca4 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -3335,36 +3335,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. @@ -3372,36 +3343,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. @@ -3436,28 +3410,7 @@ class PaymentIntentUpdateParamsPaymentMethodDataIdBankTransfer(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. @@ -4450,7 +4403,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsBoleto(TypedDict): class PaymentIntentUpdateParamsPaymentMethodOptionsCard(TypedDict): capture_by: NotRequired[ - Literal["auth_expiry", "end_of_day", "target_delay"] + "Literal['auth_expiry', 'end_of_day', 'target_delay']|str" ] """ Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`. @@ -4500,21 +4453,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. @@ -4656,7 +4595,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. """ @@ -4668,7 +4607,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`. """ @@ -4852,7 +4791,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsCardThreeDSecureNetworkOption class PaymentIntentUpdateParamsPaymentMethodOptionsCardPresent(TypedDict): capture_by: NotRequired[ - Literal["auth_expiry", "end_of_day", "target_delay"] + "Literal['auth_expiry', 'end_of_day', 'target_delay']|str" ] """ Controls when funds are captured from the customer's account when `capture_method` is `automatic_delayed`. @@ -7327,7 +7266,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnect """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -7358,7 +7302,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`. """ @@ -7389,7 +7335,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 ef406d7ae..bf4bf1410 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -254,7 +254,7 @@ class PaymentLinkCreateParamsAfterCompletionRedirect(TypedDict): class PaymentLinkCreateParamsAutomaticSurcharge(TypedDict): calculation_basis: NotRequired[ - Literal["total_after_tax", "total_before_tax"] + "Literal['total_after_tax', 'total_before_tax']|str" ] """ Determines which amount serves as the basis for calculating the surcharge. @@ -263,7 +263,9 @@ class PaymentLinkCreateParamsAutomaticSurcharge(TypedDict): """ Set to `true` to calculate surcharge automatically using the customer's card details and location. """ - tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]] + tax_behavior: NotRequired[ + "Literal['exclusive', 'inclusive', 'unspecified']|str" + ] """ Specifies whether the surcharge is considered inclusive or exclusive of taxes. """ @@ -548,7 +550,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. @@ -614,7 +616,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. """ @@ -673,7 +677,7 @@ class PaymentLinkCreateParamsLineItemPriceDataProductDataTaxDetails(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 604557d11..88212cd57 100644 --- a/stripe/params/_payment_link_modify_params.py +++ b/stripe/params/_payment_link_modify_params.py @@ -459,7 +459,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. diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py index 65c61aae3..6e9a85e56 100644 --- a/stripe/params/_payment_link_update_params.py +++ b/stripe/params/_payment_link_update_params.py @@ -458,7 +458,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. diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py index 96a1448d0..58a622ae8 100644 --- a/stripe/params/_payment_method_create_params.py +++ b/stripe/params/_payment_method_create_params.py @@ -498,36 +498,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. @@ -535,36 +506,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. @@ -599,28 +573,7 @@ class PaymentMethodCreateParamsIdBankTransfer(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 4ff55f758..cdf68a865 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 43205cb25..5b98f77a4 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. """ @@ -62,7 +62,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. """ @@ -99,7 +101,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. """ @@ -227,7 +231,7 @@ class PriceCreateParamsProductDataTaxDetails(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`. """ @@ -243,7 +247,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 725fb12f7..aede4f11e 100644 --- a/stripe/params/_price_modify_params.py +++ b/stripe/params/_price_modify_params.py @@ -44,7 +44,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. """ @@ -61,7 +63,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 d52f23a72..dead461ba 100644 --- a/stripe/params/_price_update_params.py +++ b/stripe/params/_price_update_params.py @@ -43,7 +43,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. """ @@ -60,7 +62,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 015afd891..219506454 100644 --- a/stripe/params/_product_create_params.py +++ b/stripe/params/_product_create_params.py @@ -73,7 +73,7 @@ class ProductCreateParams(RequestOptions): """ Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location. """ - 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. """ @@ -112,7 +112,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. """ @@ -133,7 +135,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. """ @@ -217,7 +221,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 662e81dea..42b8ce2f4 100644 --- a/stripe/params/_quote_create_params.py +++ b/stripe/params/_quote_create_params.py @@ -25,7 +25,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`. @@ -320,7 +320,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. """ @@ -335,7 +337,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`. """ @@ -1115,7 +1117,7 @@ class QuoteCreateParamsSubscriptionData(TypedDict): Describes the period to bill for upon accepting the quote. """ billing_behavior: NotRequired[ - Literal["prorate_on_next_phase", "prorate_up_front"] + "Literal['prorate_on_next_phase', 'prorate_up_front']|str" ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -1169,7 +1171,7 @@ class QuoteCreateParamsSubscriptionData(TypedDict): If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`. """ proration_behavior: NotRequired[ - Literal["always_invoice", "create_prorations", "none"] + "Literal['always_invoice', 'create_prorations', 'none']|str" ] """ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`. @@ -1312,7 +1314,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. """ @@ -1361,11 +1363,14 @@ class QuoteCreateParamsSubscriptionDataBillingScheduleBillFrom(TypedDict): """ A precise Unix timestamp. """ - type: Literal[ - "line_starts_at", - "pause_collection_start", - "quote_acceptance_date", - "timestamp", + type: Union[ + Literal[ + "line_starts_at", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ], + str, ] """ The type of method to specify the `bill_from` time. @@ -1462,7 +1467,7 @@ class QuoteCreateParamsSubscriptionDataOverride(TypedDict): Describes the period to bill for upon accepting the quote. """ billing_behavior: NotRequired[ - Literal["prorate_on_next_phase", "prorate_up_front"] + "Literal['prorate_on_next_phase', 'prorate_up_front']|str" ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -1492,7 +1497,7 @@ class QuoteCreateParamsSubscriptionDataOverride(TypedDict): Configures how the subscription schedule handles billing for phase transitions when the quote is accepted. """ proration_behavior: NotRequired[ - Literal["always_invoice", "create_prorations", "none"] + "Literal['always_invoice', 'create_prorations', 'none']|str" ] """ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`. @@ -1689,11 +1694,14 @@ class QuoteCreateParamsSubscriptionDataOverrideBillingScheduleBillFrom( """ A precise Unix timestamp. """ - type: Literal[ - "line_starts_at", - "pause_collection_start", - "quote_acceptance_date", - "timestamp", + type: Union[ + Literal[ + "line_starts_at", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ], + str, ] """ The type of method to specify the `bill_from` time. diff --git a/stripe/params/_quote_modify_params.py b/stripe/params/_quote_modify_params.py index ffc12ea35..08720720a 100644 --- a/stripe/params/_quote_modify_params.py +++ b/stripe/params/_quote_modify_params.py @@ -25,7 +25,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`. @@ -305,7 +305,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. """ @@ -320,7 +322,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`. """ @@ -1108,7 +1110,7 @@ class QuoteModifyParamsSubscriptionData(TypedDict): Describes the period to bill for upon accepting the quote. """ billing_behavior: NotRequired[ - Literal["prorate_on_next_phase", "prorate_up_front"] + "Literal['prorate_on_next_phase', 'prorate_up_front']|str" ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -1154,7 +1156,7 @@ class QuoteModifyParamsSubscriptionData(TypedDict): If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`. """ proration_behavior: NotRequired[ - Literal["always_invoice", "create_prorations", "none"] + "Literal['always_invoice', 'create_prorations', 'none']|str" ] """ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`. @@ -1330,11 +1332,14 @@ class QuoteModifyParamsSubscriptionDataBillingScheduleBillFrom(TypedDict): """ A precise Unix timestamp. """ - type: Literal[ - "line_starts_at", - "pause_collection_start", - "quote_acceptance_date", - "timestamp", + type: Union[ + Literal[ + "line_starts_at", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ], + str, ] """ The type of method to specify the `bill_from` time. @@ -1431,7 +1436,7 @@ class QuoteModifyParamsSubscriptionDataOverride(TypedDict): Describes the period to bill for upon accepting the quote. """ billing_behavior: NotRequired[ - Literal["prorate_on_next_phase", "prorate_up_front"] + "Literal['prorate_on_next_phase', 'prorate_up_front']|str" ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -1461,7 +1466,7 @@ class QuoteModifyParamsSubscriptionDataOverride(TypedDict): Configures how the subscription schedule handles billing for phase transitions when the quote is accepted. """ proration_behavior: NotRequired[ - Literal["always_invoice", "create_prorations", "none"] + "Literal['always_invoice', 'create_prorations', 'none']|str" ] """ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`. @@ -1658,11 +1663,14 @@ class QuoteModifyParamsSubscriptionDataOverrideBillingScheduleBillFrom( """ A precise Unix timestamp. """ - type: Literal[ - "line_starts_at", - "pause_collection_start", - "quote_acceptance_date", - "timestamp", + type: Union[ + Literal[ + "line_starts_at", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ], + str, ] """ The type of method to specify the `bill_from` time. diff --git a/stripe/params/_quote_update_params.py b/stripe/params/_quote_update_params.py index fce92ab84..6f8d25acd 100644 --- a/stripe/params/_quote_update_params.py +++ b/stripe/params/_quote_update_params.py @@ -24,7 +24,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`. @@ -304,7 +304,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. """ @@ -319,7 +321,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`. """ @@ -1107,7 +1109,7 @@ class QuoteUpdateParamsSubscriptionData(TypedDict): Describes the period to bill for upon accepting the quote. """ billing_behavior: NotRequired[ - Literal["prorate_on_next_phase", "prorate_up_front"] + "Literal['prorate_on_next_phase', 'prorate_up_front']|str" ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -1153,7 +1155,7 @@ class QuoteUpdateParamsSubscriptionData(TypedDict): If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`. """ proration_behavior: NotRequired[ - Literal["always_invoice", "create_prorations", "none"] + "Literal['always_invoice', 'create_prorations', 'none']|str" ] """ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`. @@ -1329,11 +1331,14 @@ class QuoteUpdateParamsSubscriptionDataBillingScheduleBillFrom(TypedDict): """ A precise Unix timestamp. """ - type: Literal[ - "line_starts_at", - "pause_collection_start", - "quote_acceptance_date", - "timestamp", + type: Union[ + Literal[ + "line_starts_at", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ], + str, ] """ The type of method to specify the `bill_from` time. @@ -1430,7 +1435,7 @@ class QuoteUpdateParamsSubscriptionDataOverride(TypedDict): Describes the period to bill for upon accepting the quote. """ billing_behavior: NotRequired[ - Literal["prorate_on_next_phase", "prorate_up_front"] + "Literal['prorate_on_next_phase', 'prorate_up_front']|str" ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -1460,7 +1465,7 @@ class QuoteUpdateParamsSubscriptionDataOverride(TypedDict): Configures how the subscription schedule handles billing for phase transitions when the quote is accepted. """ proration_behavior: NotRequired[ - Literal["always_invoice", "create_prorations", "none"] + "Literal['always_invoice', 'create_prorations', 'none']|str" ] """ Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations). When creating a subscription, valid values are `create_prorations` or `none`. @@ -1657,11 +1662,14 @@ class QuoteUpdateParamsSubscriptionDataOverrideBillingScheduleBillFrom( """ A precise Unix timestamp. """ - type: Literal[ - "line_starts_at", - "pause_collection_start", - "quote_acceptance_date", - "timestamp", + type: Union[ + Literal[ + "line_starts_at", + "pause_collection_start", + "quote_acceptance_date", + "timestamp", + ], + str, ] """ The type of method to specify the `bill_from` time. diff --git a/stripe/params/_refund_create_params.py b/stripe/params/_refund_create_params.py index cb98af0b4..d2cf8b7bc 100644 --- a/stripe/params/_refund_create_params.py +++ b/stripe/params/_refund_create_params.py @@ -51,7 +51,7 @@ class RefundCreateParams(RequestOptions): The identifier of the PaymentRecord 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 6897c474b..dcf04c86d 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -187,7 +187,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`. """ @@ -755,36 +755,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. @@ -792,36 +763,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. @@ -856,28 +830,7 @@ class SetupIntentConfirmParamsPaymentMethodDataIdBankTransfer(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. @@ -1345,21 +1298,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. @@ -1386,7 +1325,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. """ @@ -1402,7 +1341,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`. """ @@ -1819,7 +1758,12 @@ class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnecti """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -1850,7 +1794,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`. """ @@ -1881,7 +1827,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 e64afb96d..48c931280 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -339,7 +339,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`. """ @@ -899,36 +899,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. @@ -936,36 +907,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. @@ -1000,28 +974,7 @@ class SetupIntentCreateParamsPaymentMethodDataIdBankTransfer(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. @@ -1489,21 +1442,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. @@ -1528,7 +1467,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. """ @@ -1544,7 +1483,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`. """ @@ -1959,7 +1898,12 @@ class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectio """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -1990,7 +1934,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`. """ @@ -2021,7 +1967,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 afdf22fe7..fd404ed37 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -629,36 +629,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. @@ -666,36 +637,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. @@ -730,28 +704,7 @@ class SetupIntentModifyParamsPaymentMethodDataIdBankTransfer(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. @@ -1219,21 +1172,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. @@ -1258,7 +1197,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. """ @@ -1274,7 +1213,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`. """ @@ -1689,7 +1628,12 @@ class SetupIntentModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectio """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -1720,7 +1664,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`. """ @@ -1751,7 +1697,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 ea5c5af86..b1104abcf 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -628,36 +628,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. @@ -665,36 +636,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. @@ -729,28 +703,7 @@ class SetupIntentUpdateParamsPaymentMethodDataIdBankTransfer(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. @@ -1218,21 +1171,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. @@ -1257,7 +1196,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. """ @@ -1273,7 +1212,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`. """ @@ -1688,7 +1627,12 @@ class SetupIntentUpdateParamsPaymentMethodOptionsUsBankAccountFinancialConnectio """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -1719,7 +1663,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`. """ @@ -1750,7 +1696,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_create_params.py b/stripe/params/_subscription_create_params.py index 22d13b212..08156cc82 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -67,7 +67,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`. @@ -137,12 +137,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. @@ -319,7 +314,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. """ @@ -390,7 +387,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. """ @@ -442,7 +439,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`. """ @@ -806,7 +803,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. """ @@ -821,7 +820,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`. """ @@ -1045,21 +1044,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. @@ -1276,7 +1261,12 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -1322,14 +1312,14 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsWechatPay( """ The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. """ - client: NotRequired[Literal["android", "ios", "mobile_web", "web"]] + client: NotRequired["Literal['android', 'ios', 'mobile_web', 'web']|str"] """ The client type that the end customer will pay from. """ 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`. """ @@ -1369,7 +1359,7 @@ class SubscriptionCreateParamsTrialSettings(TypedDict): class SubscriptionCreateParamsTrialSettingsEndBehavior(TypedDict): - billing_cycle_anchor: NotRequired[Literal["now", "unchanged"]] + billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"] """ Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`. """ diff --git a/stripe/params/_subscription_item_create_params.py b/stripe/params/_subscription_item_create_params.py index 1321b2e30..3f7399a27 100644 --- a/stripe/params/_subscription_item_create_params.py +++ b/stripe/params/_subscription_item_create_params.py @@ -33,12 +33,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`. @@ -224,7 +219,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. """ @@ -239,7 +236,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 bf157e03b..0397d8bd4 100644 --- a/stripe/params/_subscription_item_modify_params.py +++ b/stripe/params/_subscription_item_modify_params.py @@ -39,12 +39,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`. @@ -222,7 +217,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. """ @@ -237,7 +234,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 e2e12b118..bdc94a039 100644 --- a/stripe/params/_subscription_item_update_params.py +++ b/stripe/params/_subscription_item_update_params.py @@ -38,12 +38,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`. @@ -221,7 +216,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. """ @@ -236,7 +233,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 b3a0978b2..3214aa76e 100644 --- a/stripe/params/_subscription_list_params.py +++ b/stripe/params/_subscription_list_params.py @@ -15,7 +15,7 @@ class SubscriptionListParams(RequestOptions): Filter for subscriptions that have the specified billing cadence. """ 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 82abee5b5..b7ab37798 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -26,7 +26,7 @@ class SubscriptionModifyParams(RequestOptions): """ The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence. """ - 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). """ @@ -59,7 +59,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`. @@ -123,12 +123,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`. @@ -307,7 +302,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. """ @@ -389,7 +386,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`. """ @@ -776,7 +773,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. """ @@ -791,7 +790,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`. """ @@ -802,7 +801,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. """ @@ -1015,21 +1016,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. @@ -1246,7 +1233,12 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -1292,14 +1284,14 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsWechatPay( """ The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. """ - client: NotRequired[Literal["android", "ios", "mobile_web", "web"]] + client: NotRequired["Literal['android', 'ios', 'mobile_web', 'web']|str"] """ The client type that the end customer will pay from. """ 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`. """ @@ -1339,7 +1331,7 @@ class SubscriptionModifyParamsTrialSettings(TypedDict): class SubscriptionModifyParamsTrialSettingsEndBehavior(TypedDict): - billing_cycle_anchor: NotRequired[Literal["now", "unchanged"]] + billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"] """ Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`. """ diff --git a/stripe/params/_subscription_pause_params.py b/stripe/params/_subscription_pause_params.py index b031397b2..8bd4a447e 100644 --- a/stripe/params/_subscription_pause_params.py +++ b/stripe/params/_subscription_pause_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, TypedDict @@ -42,14 +42,14 @@ class SubscriptionPauseParamsBillFor(TypedDict): class SubscriptionPauseParamsBillForOutstandingUsageThrough(TypedDict): - type: Literal["none", "now"] + type: Union[Literal["none", "now"], str] """ When to bill metered usage in the current period. """ class SubscriptionPauseParamsBillForUnusedTimeFrom(TypedDict): - type: Literal["item_current_period_start", "none", "now"] + type: Union[Literal["item_current_period_start", "none", "now"], str] """ When to credit for unused time. """ diff --git a/stripe/params/_subscription_resume_params.py b/stripe/params/_subscription_resume_params.py index 8b77f68ce..49c365aca 100644 --- a/stripe/params/_subscription_resume_params.py +++ b/stripe/params/_subscription_resume_params.py @@ -15,7 +15,7 @@ class SubscriptionResumeParams(RequestOptions): Specifies which fields in the response should be expanded. """ payment_behavior: NotRequired[ - Literal["resume_on_payment_attempt", "resume_on_payment_success"] + "Literal['resume_on_payment_attempt', 'resume_on_payment_success']|str" ] """ Controls whether Stripe attempts payment on the resumption invoice in the resume request, and how payment on that invoice affects the subscription's status. The default is `resume_on_payment_attempt`. diff --git a/stripe/params/_subscription_schedule_create_params.py b/stripe/params/_subscription_schedule_create_params.py index a6347040c..2800827ad 100644 --- a/stripe/params/_subscription_schedule_create_params.py +++ b/stripe/params/_subscription_schedule_create_params.py @@ -9,7 +9,7 @@ class SubscriptionScheduleCreateParams(RequestOptions): billing_behavior: NotRequired[ - Literal["prorate_on_next_phase", "prorate_up_front"] + "Literal['prorate_on_next_phase', 'prorate_up_front']|str" ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -92,7 +92,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. """ @@ -146,7 +146,7 @@ class SubscriptionScheduleCreateParamsBillingScheduleBillUntil(TypedDict): class SubscriptionScheduleCreateParamsBillingScheduleBillUntilDuration( TypedDict, ): - interval: Literal["day", "month", "week", "year"] + interval: Union[Literal["day", "month", "week", "year"], str] """ Specifies billing duration. Either `day`, `week`, `month` or `year`. """ @@ -167,7 +167,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). """ @@ -178,7 +180,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. @@ -202,7 +204,7 @@ class SubscriptionScheduleCreateParamsDefaultSettings(TypedDict): The account on behalf of which to charge, for each of the associated subscription's invoices. """ phase_effective_at: NotRequired[ - Literal["billing_period_start", "phase_start"] + "Literal['billing_period_start', 'phase_start']|str" ] """ Configures how the subscription schedule handles billing for phase transitions. @@ -393,7 +395,7 @@ class SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillFor( class SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough( TypedDict, ): - type: NotRequired[Literal["none", "pause_at"]] + type: NotRequired["Literal['none', 'pause_at']|str"] """ Determines whether to collect metered usage accrued up to the pause date. """ @@ -402,7 +404,9 @@ class SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForOutstandi class SubscriptionScheduleCreateParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom( TypedDict, ): - type: NotRequired[Literal["item_current_period_start", "none", "pause_at"]] + type: NotRequired[ + "Literal['item_current_period_start', 'none', 'pause_at']|str" + ] """ Determines which point in the billing period unused time is credited from. """ @@ -441,7 +445,7 @@ class SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAt(TypedDict): class SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAtDuration( TypedDict, ): - interval: Literal["day", "month", "week", "year"] + interval: Union[Literal["day", "month", "week", "year"], str] """ The time unit for the resume duration. One of `day`, `week`, `month`, or `year`. """ @@ -452,12 +456,12 @@ class SubscriptionScheduleCreateParamsPauseScheduleResumeResumeAtDuration( class SubscriptionScheduleCreateParamsPauseScheduleResumeSettings(TypedDict): - billing_cycle_anchor: NotRequired[Literal["resume_at", "unchanged"]] + billing_cycle_anchor: NotRequired["Literal['resume_at', 'unchanged']|str"] """ Controls the billing cycle anchor when the subscription resumes. """ payment_behavior: NotRequired[ - Literal["resume_on_payment_attempt", "resume_on_payment_success"] + "Literal['resume_on_payment_attempt', 'resume_on_payment_success']|str" ] """ Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_success`. @@ -487,7 +491,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). """ @@ -498,7 +504,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. @@ -529,7 +535,9 @@ class SubscriptionScheduleCreateParamsPhase(TypedDict): """ The number of intervals the phase should last. If set, `end_date` must not be set. """ - effective_at: NotRequired[Literal["billing_period_start", "phase_start"]] + effective_at: NotRequired[ + "Literal['billing_period_start', 'phase_start']|str" + ] """ Configures how the subscription schedule handles billing for phase transitions. """ @@ -733,7 +741,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. """ @@ -895,7 +905,7 @@ class SubscriptionScheduleCreateParamsPhaseDiscountSettingsServicePeriodAnchorCo 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`. """ @@ -1141,7 +1151,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. """ @@ -1156,7 +1168,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 0e8683dde..3887cfaf6 100644 --- a/stripe/params/_subscription_schedule_modify_params.py +++ b/stripe/params/_subscription_schedule_modify_params.py @@ -9,7 +9,7 @@ class SubscriptionScheduleModifyParams(RequestOptions): billing_behavior: NotRequired[ - Literal["prorate_on_next_phase", "prorate_up_front"] + "Literal['prorate_on_next_phase', 'prorate_up_front']|str" ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -114,7 +114,7 @@ class SubscriptionScheduleModifyParamsBillingScheduleBillUntil(TypedDict): class SubscriptionScheduleModifyParamsBillingScheduleBillUntilDuration( TypedDict, ): - interval: Literal["day", "month", "week", "year"] + interval: Union[Literal["day", "month", "week", "year"], str] """ Specifies billing duration. Either `day`, `week`, `month` or `year`. """ @@ -135,7 +135,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). """ @@ -146,7 +148,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. @@ -170,7 +172,7 @@ class SubscriptionScheduleModifyParamsDefaultSettings(TypedDict): The account on behalf of which to charge, for each of the associated subscription's invoices. """ phase_effective_at: NotRequired[ - Literal["billing_period_start", "phase_start"] + "Literal['billing_period_start', 'phase_start']|str" ] """ Configures how the subscription schedule handles billing for phase transitions. @@ -365,7 +367,7 @@ class SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillFor( class SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough( TypedDict, ): - type: NotRequired[Literal["none", "pause_at"]] + type: NotRequired["Literal['none', 'pause_at']|str"] """ Determines whether to collect metered usage accrued up to the pause date. """ @@ -374,7 +376,9 @@ class SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForOutstandi class SubscriptionScheduleModifyParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom( TypedDict, ): - type: NotRequired[Literal["item_current_period_start", "none", "pause_at"]] + type: NotRequired[ + "Literal['item_current_period_start', 'none', 'pause_at']|str" + ] """ Determines which point in the billing period unused time is credited from. """ @@ -415,7 +419,7 @@ class SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAt(TypedDict): class SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAtDuration( TypedDict, ): - interval: Literal["day", "month", "week", "year"] + interval: Union[Literal["day", "month", "week", "year"], str] """ The time unit for the resume duration. One of `day`, `week`, `month`, or `year`. """ @@ -426,12 +430,12 @@ class SubscriptionScheduleModifyParamsPauseScheduleResumeResumeAtDuration( class SubscriptionScheduleModifyParamsPauseScheduleResumeSettings(TypedDict): - billing_cycle_anchor: NotRequired[Literal["resume_at", "unchanged"]] + billing_cycle_anchor: NotRequired["Literal['resume_at', 'unchanged']|str"] """ Controls the billing cycle anchor when the subscription resumes. """ payment_behavior: NotRequired[ - Literal["resume_on_payment_attempt", "resume_on_payment_success"] + "Literal['resume_on_payment_attempt', 'resume_on_payment_success']|str" ] """ Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_success`. @@ -461,7 +465,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). """ @@ -472,7 +478,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. @@ -503,7 +509,9 @@ class SubscriptionScheduleModifyParamsPhase(TypedDict): """ The number of intervals the phase should last. If set, `end_date` must not be set. """ - effective_at: NotRequired[Literal["billing_period_start", "phase_start"]] + effective_at: NotRequired[ + "Literal['billing_period_start', 'phase_start']|str" + ] """ Configures how the subscription schedule handles billing for phase transitions. """ @@ -711,7 +719,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. """ @@ -873,7 +883,7 @@ class SubscriptionScheduleModifyParamsPhaseDiscountSettingsServicePeriodAnchorCo 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`. """ @@ -1119,7 +1129,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. """ @@ -1134,7 +1146,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 283e4de81..396b4d81e 100644 --- a/stripe/params/_subscription_schedule_update_params.py +++ b/stripe/params/_subscription_schedule_update_params.py @@ -8,7 +8,7 @@ class SubscriptionScheduleUpdateParams(TypedDict): billing_behavior: NotRequired[ - Literal["prorate_on_next_phase", "prorate_up_front"] + "Literal['prorate_on_next_phase', 'prorate_up_front']|str" ] """ Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front. @@ -113,7 +113,7 @@ class SubscriptionScheduleUpdateParamsBillingScheduleBillUntil(TypedDict): class SubscriptionScheduleUpdateParamsBillingScheduleBillUntilDuration( TypedDict, ): - interval: Literal["day", "month", "week", "year"] + interval: Union[Literal["day", "month", "week", "year"], str] """ Specifies billing duration. Either `day`, `week`, `month` or `year`. """ @@ -134,7 +134,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). """ @@ -145,7 +147,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. @@ -169,7 +171,7 @@ class SubscriptionScheduleUpdateParamsDefaultSettings(TypedDict): The account on behalf of which to charge, for each of the associated subscription's invoices. """ phase_effective_at: NotRequired[ - Literal["billing_period_start", "phase_start"] + "Literal['billing_period_start', 'phase_start']|str" ] """ Configures how the subscription schedule handles billing for phase transitions. @@ -364,7 +366,7 @@ class SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillFor( class SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForOutstandingUsageThrough( TypedDict, ): - type: NotRequired[Literal["none", "pause_at"]] + type: NotRequired["Literal['none', 'pause_at']|str"] """ Determines whether to collect metered usage accrued up to the pause date. """ @@ -373,7 +375,9 @@ class SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForOutstandi class SubscriptionScheduleUpdateParamsPauseSchedulePauseSettingsBillForUnusedTimeFrom( TypedDict, ): - type: NotRequired[Literal["item_current_period_start", "none", "pause_at"]] + type: NotRequired[ + "Literal['item_current_period_start', 'none', 'pause_at']|str" + ] """ Determines which point in the billing period unused time is credited from. """ @@ -414,7 +418,7 @@ class SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAt(TypedDict): class SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAtDuration( TypedDict, ): - interval: Literal["day", "month", "week", "year"] + interval: Union[Literal["day", "month", "week", "year"], str] """ The time unit for the resume duration. One of `day`, `week`, `month`, or `year`. """ @@ -425,12 +429,12 @@ class SubscriptionScheduleUpdateParamsPauseScheduleResumeResumeAtDuration( class SubscriptionScheduleUpdateParamsPauseScheduleResumeSettings(TypedDict): - billing_cycle_anchor: NotRequired[Literal["resume_at", "unchanged"]] + billing_cycle_anchor: NotRequired["Literal['resume_at', 'unchanged']|str"] """ Controls the billing cycle anchor when the subscription resumes. """ payment_behavior: NotRequired[ - Literal["resume_on_payment_attempt", "resume_on_payment_success"] + "Literal['resume_on_payment_attempt', 'resume_on_payment_success']|str" ] """ Controls whether Stripe attempts payment on the resumption invoice and how payment affects the subscription's status. The default is `resume_on_payment_success`. @@ -460,7 +464,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). """ @@ -471,7 +477,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. @@ -502,7 +508,9 @@ class SubscriptionScheduleUpdateParamsPhase(TypedDict): """ The number of intervals the phase should last. If set, `end_date` must not be set. """ - effective_at: NotRequired[Literal["billing_period_start", "phase_start"]] + effective_at: NotRequired[ + "Literal['billing_period_start', 'phase_start']|str" + ] """ Configures how the subscription schedule handles billing for phase transitions. """ @@ -710,7 +718,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. """ @@ -872,7 +882,7 @@ class SubscriptionScheduleUpdateParamsPhaseDiscountSettingsServicePeriodAnchorCo 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`. """ @@ -1118,7 +1128,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. """ @@ -1133,7 +1145,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 bbe09b244..273e86dbe 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -25,7 +25,7 @@ class SubscriptionUpdateParams(TypedDict): """ The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence. """ - 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). """ @@ -58,7 +58,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`. @@ -122,12 +122,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`. @@ -306,7 +301,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. """ @@ -388,7 +385,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`. """ @@ -775,7 +772,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. """ @@ -790,7 +789,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`. """ @@ -801,7 +800,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. """ @@ -1014,21 +1015,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. @@ -1245,7 +1232,12 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFi """ permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -1291,14 +1283,14 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsWechatPay( """ The app ID registered with WeChat Pay. Only required when client is `ios` or `android`. """ - client: NotRequired[Literal["android", "ios", "mobile_web", "web"]] + client: NotRequired["Literal['android', 'ios', 'mobile_web', 'web']|str"] """ The client type that the end customer will pay from. """ 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`. """ @@ -1338,7 +1330,7 @@ class SubscriptionUpdateParamsTrialSettings(TypedDict): class SubscriptionUpdateParamsTrialSettingsEndBehavior(TypedDict): - billing_cycle_anchor: NotRequired[Literal["now", "unchanged"]] + billing_cycle_anchor: NotRequired["Literal['now', 'unchanged']|str"] """ Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`. """ 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 34fb7ed72..0333c6b23 100644 --- a/stripe/params/_token_create_params.py +++ b/stripe/params/_token_create_params.py @@ -775,7 +775,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. """ @@ -783,7 +783,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 01736caa4..b4e0c2cf4 100644 --- a/stripe/params/_transfer_create_params.py +++ b/stripe/params/_transfer_create_params.py @@ -40,7 +40,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 6ad1c852b..7a587179c 100644 --- a/stripe/params/_webhook_endpoint_create_params.py +++ b/stripe/params/_webhook_endpoint_create_params.py @@ -8,134 +8,7 @@ class WebhookEndpointCreateParams(RequestOptions): api_version: NotRequired[ - Literal[ - "2011-01-01", - "2011-06-21", - "2011-06-28", - "2011-08-01", - "2011-09-15", - "2011-11-17", - "2012-02-23", - "2012-03-25", - "2012-06-18", - "2012-06-28", - "2012-07-09", - "2012-09-24", - "2012-10-26", - "2012-11-07", - "2013-02-11", - "2013-02-13", - "2013-07-05", - "2013-08-12", - "2013-08-13", - "2013-10-29", - "2013-12-03", - "2014-01-31", - "2014-03-13", - "2014-03-28", - "2014-05-19", - "2014-06-13", - "2014-06-17", - "2014-07-22", - "2014-07-26", - "2014-08-04", - "2014-08-20", - "2014-09-08", - "2014-10-07", - "2014-11-05", - "2014-11-20", - "2014-12-08", - "2014-12-17", - "2014-12-22", - "2015-01-11", - "2015-01-26", - "2015-02-10", - "2015-02-16", - "2015-02-18", - "2015-03-24", - "2015-04-07", - "2015-06-15", - "2015-07-07", - "2015-07-13", - "2015-07-28", - "2015-08-07", - "2015-08-19", - "2015-09-03", - "2015-09-08", - "2015-09-23", - "2015-10-01", - "2015-10-12", - "2015-10-16", - "2016-02-03", - "2016-02-19", - "2016-02-22", - "2016-02-23", - "2016-02-29", - "2016-03-07", - "2016-06-15", - "2016-07-06", - "2016-10-19", - "2017-01-27", - "2017-02-14", - "2017-04-06", - "2017-05-25", - "2017-06-05", - "2017-08-15", - "2017-12-14", - "2018-01-23", - "2018-02-05", - "2018-02-06", - "2018-02-28", - "2018-05-21", - "2018-07-27", - "2018-08-23", - "2018-09-06", - "2018-09-24", - "2018-10-31", - "2018-11-08", - "2019-02-11", - "2019-02-19", - "2019-03-14", - "2019-05-16", - "2019-08-14", - "2019-09-09", - "2019-10-08", - "2019-10-17", - "2019-11-05", - "2019-12-03", - "2020-03-02", - "2020-08-27", - "2022-08-01", - "2022-11-15", - "2023-08-16", - "2023-10-16", - "2024-04-10", - "2024-06-20", - "2024-09-30.acacia", - "2024-10-28.acacia", - "2024-11-20.acacia", - "2024-12-18.acacia", - "2025-01-27.acacia", - "2025-02-24.acacia", - "2025-03-01.dashboard", - "2025-03-31.basil", - "2025-04-30.basil", - "2025-05-28.basil", - "2025-06-30.basil", - "2025-07-30.basil", - "2025-08-27.basil", - "2025-09-30.clover", - "2025-10-29.clover", - "2025-11-17.clover", - "2025-12-15.clover", - "2026-01-28.clover", - "2026-02-25.clover", - "2026-03-25.dahlia", - "2026-04-22.dahlia", - "2026-05-27.dahlia", - "2026-06-24.dahlia", - "2026-07-29.dahlia", - ] + "Literal['2011-01-01', '2011-06-21', '2011-06-28', '2011-08-01', '2011-09-15', '2011-11-17', '2012-02-23', '2012-03-25', '2012-06-18', '2012-06-28', '2012-07-09', '2012-09-24', '2012-10-26', '2012-11-07', '2013-02-11', '2013-02-13', '2013-07-05', '2013-08-12', '2013-08-13', '2013-10-29', '2013-12-03', '2014-01-31', '2014-03-13', '2014-03-28', '2014-05-19', '2014-06-13', '2014-06-17', '2014-07-22', '2014-07-26', '2014-08-04', '2014-08-20', '2014-09-08', '2014-10-07', '2014-11-05', '2014-11-20', '2014-12-08', '2014-12-17', '2014-12-22', '2015-01-11', '2015-01-26', '2015-02-10', '2015-02-16', '2015-02-18', '2015-03-24', '2015-04-07', '2015-06-15', '2015-07-07', '2015-07-13', '2015-07-28', '2015-08-07', '2015-08-19', '2015-09-03', '2015-09-08', '2015-09-23', '2015-10-01', '2015-10-12', '2015-10-16', '2016-02-03', '2016-02-19', '2016-02-22', '2016-02-23', '2016-02-29', '2016-03-07', '2016-06-15', '2016-07-06', '2016-10-19', '2017-01-27', '2017-02-14', '2017-04-06', '2017-05-25', '2017-06-05', '2017-08-15', '2017-12-14', '2018-01-23', '2018-02-05', '2018-02-06', '2018-02-28', '2018-05-21', '2018-07-27', '2018-08-23', '2018-09-06', '2018-09-24', '2018-10-31', '2018-11-08', '2019-02-11', '2019-02-19', '2019-03-14', '2019-05-16', '2019-08-14', '2019-09-09', '2019-10-08', '2019-10-17', '2019-11-05', '2019-12-03', '2020-03-02', '2020-08-27', '2022-08-01', '2022-11-15', '2023-08-16', '2023-10-16', '2024-04-10', '2024-06-20', '2024-09-30.acacia', '2024-10-28.acacia', '2024-11-20.acacia', '2024-12-18.acacia', '2025-01-27.acacia', '2025-02-24.acacia', '2025-03-01.dashboard', '2025-03-31.basil', '2025-04-30.basil', '2025-05-28.basil', '2025-06-30.basil', '2025-07-30.basil', '2025-08-27.basil', '2025-09-30.clover', '2025-10-29.clover', '2025-11-17.clover', '2025-12-15.clover', '2026-01-28.clover', '2026-02-25.clover', '2026-03-25.dahlia', '2026-04-22.dahlia', '2026-05-27.dahlia', '2026-06-24.dahlia', '2026-07-29.dahlia']|str" ] """ Events sent to this endpoint will be generated with this Stripe Version instead of your account's default Stripe Version. diff --git a/stripe/params/billing/_alert_list_notifications_params.py b/stripe/params/billing/_alert_list_notifications_params.py index 4dabf26a7..901558bcd 100644 --- a/stripe/params/billing/_alert_list_notifications_params.py +++ b/stripe/params/billing/_alert_list_notifications_params.py @@ -6,7 +6,7 @@ class AlertListNotificationsParams(RequestOptions): - action: NotRequired[Literal["recovered", "triggered"]] + action: NotRequired["Literal['recovered', 'triggered']|str"] """ Filter results to only include triggered or recovered notifications. """ diff --git a/stripe/params/billing/_alert_notification_list_params.py b/stripe/params/billing/_alert_notification_list_params.py index 3e351aa48..b338cb4a5 100644 --- a/stripe/params/billing/_alert_notification_list_params.py +++ b/stripe/params/billing/_alert_notification_list_params.py @@ -5,7 +5,7 @@ class AlertNotificationListParams(TypedDict): - action: NotRequired[Literal["recovered", "triggered"]] + action: NotRequired["Literal['recovered', 'triggered']|str"] """ Filter results to only include triggered or recovered notifications. """ diff --git a/stripe/params/billing/analytics/_meter_usage_retrieve_params.py b/stripe/params/billing/analytics/_meter_usage_retrieve_params.py index ce6bf647a..cada40975 100644 --- a/stripe/params/billing/analytics/_meter_usage_retrieve_params.py +++ b/stripe/params/billing/analytics/_meter_usage_retrieve_params.py @@ -28,612 +28,14 @@ class MeterUsageRetrieveParams(RequestOptions): The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries. """ 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" ] """ The timezone to use for the start and end times. Defaults to UTC if not specified. """ - value_grouping_window: NotRequired[Literal["day", "hour", "month", "week"]] + value_grouping_window: NotRequired[ + "Literal['day', 'hour', 'month', 'week']|str" + ] """ Specifies what granularity to use when aggregating meter usage events. If not specified, a single event would be returned for the specified time range. """ diff --git a/stripe/params/billing_portal/_configuration_create_params.py b/stripe/params/billing_portal/_configuration_create_params.py index 9ae894d2a..2f83b4e14 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. @@ -170,7 +170,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 +191,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..83dedb8c9 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. @@ -161,7 +161,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 +182,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..d248f1d66 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. @@ -160,7 +160,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 +181,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/capital/_financing_offer_create_params.py b/stripe/params/capital/_financing_offer_create_params.py index 82fbc1672..8c0cf1b2a 100644 --- a/stripe/params/capital/_financing_offer_create_params.py +++ b/stripe/params/capital/_financing_offer_create_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 @@ -18,24 +18,14 @@ class FinancingOfferCreateParams(RequestOptions): """ Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. """ - financing_type: Literal["cash_advance", "fixed_term_loan", "flex_loan"] + financing_type: Union[ + Literal["cash_advance", "fixed_term_loan", "flex_loan"], str + ] """ The type of financing offer. """ status: NotRequired[ - Literal[ - "accepted", - "accepted_other_offer", - "canceled", - "completed", - "delivered", - "expired", - "fully_repaid", - "paid_out", - "rejected", - "replaced", - "undelivered", - ] + "Literal['accepted', 'accepted_other_offer', 'canceled', 'completed', 'delivered', 'expired', 'fully_repaid', 'paid_out', 'rejected', 'replaced', 'undelivered']|str" ] """ The status of the financing offer. diff --git a/stripe/params/capital/_financing_offer_list_params.py b/stripe/params/capital/_financing_offer_list_params.py index 9ff4ba5cb..a59810333 100644 --- a/stripe/params/capital/_financing_offer_list_params.py +++ b/stripe/params/capital/_financing_offer_list_params.py @@ -31,18 +31,7 @@ class FinancingOfferListParams(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[ - "accepted", - "canceled", - "completed", - "delivered", - "expired", - "fully_repaid", - "paid_out", - "rejected", - "revoked", - "undelivered", - ] + "Literal['accepted', 'canceled', 'completed', 'delivered', 'expired', 'fully_repaid', 'paid_out', 'rejected', 'revoked', 'undelivered']|str" ] """ limit list to offers with given status diff --git a/stripe/params/capital/_financing_offer_refill_params.py b/stripe/params/capital/_financing_offer_refill_params.py index c78448268..55042c718 100644 --- a/stripe/params/capital/_financing_offer_refill_params.py +++ b/stripe/params/capital/_financing_offer_refill_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 @@ -18,24 +18,14 @@ class FinancingOfferRefillParams(RequestOptions): """ Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. """ - financing_type: Literal["cash_advance", "fixed_term_loan", "flex_loan"] + financing_type: Union[ + Literal["cash_advance", "fixed_term_loan", "flex_loan"], str + ] """ The type of financing offer """ status: NotRequired[ - Literal[ - "accepted", - "accepted_other_offer", - "canceled", - "completed", - "delivered", - "expired", - "fully_repaid", - "paid_out", - "rejected", - "replaced", - "undelivered", - ] + "Literal['accepted', 'accepted_other_offer', 'canceled', 'completed', 'delivered', 'expired', 'fully_repaid', 'paid_out', 'rejected', 'replaced', 'undelivered']|str" ] """ The status of the financing offer diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index a4bfbf3ef..cb81e5d98 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -489,7 +489,7 @@ class SessionCreateParamsAfterExpirationRecovery(TypedDict): class SessionCreateParamsAutomaticSurcharge(TypedDict): calculation_basis: NotRequired[ - Literal["total_after_tax", "total_before_tax"] + "Literal['total_after_tax', 'total_before_tax']|str" ] """ Determines which amount serves as the basis for calculating the surcharge. @@ -498,7 +498,9 @@ class SessionCreateParamsAutomaticSurcharge(TypedDict): """ Set to `true` to calculate surcharge automatically using the customer's card details and location. """ - tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]] + tax_behavior: NotRequired[ + "Literal['exclusive', 'inclusive', 'unspecified']|str" + ] """ Specifies whether the surcharge is considered inclusive or exclusive of taxes. """ @@ -911,7 +913,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. @@ -1019,7 +1021,7 @@ class SessionCreateParamsItemSubscriptionBillingMode(TypedDict): class SessionCreateParamsItemSubscriptionBillingModeFlexible(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. """ @@ -1061,7 +1063,9 @@ class SessionCreateParamsItemSubscriptionItemPriceData(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. """ @@ -1122,7 +1126,7 @@ class SessionCreateParamsItemSubscriptionItemPriceDataProductDataTaxDetails( class SessionCreateParamsItemSubscriptionItemPriceDataRecurring(TypedDict): - interval: Literal["day", "month", "week", "year"] + interval: Union[Literal["day", "month", "week", "year"], str] """ Specifies billing frequency. Either `day`, `week`, `month` or `year`. """ @@ -1133,7 +1137,7 @@ class SessionCreateParamsItemSubscriptionItemPriceDataRecurring(TypedDict): class SessionCreateParamsItemSubscriptionPendingInvoiceItemInterval(TypedDict): - interval: Literal["day", "month", "week", "year"] + interval: Union[Literal["day", "month", "week", "year"], str] """ Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. """ @@ -1222,7 +1226,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. """ @@ -1281,7 +1287,7 @@ class SessionCreateParamsLineItemPriceDataProductDataTaxDetails(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`. """ @@ -2884,7 +2890,12 @@ class SessionCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections( ): permissions: NotRequired[ List[ - Literal["balances", "ownership", "payment_method", "transactions"] + Union[ + Literal[ + "balances", "ownership", "payment_method", "transactions" + ], + str, + ] ] ] """ @@ -2913,7 +2924,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 """ @@ -3310,7 +3321,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`. """ @@ -3391,7 +3404,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`. """ @@ -3511,7 +3526,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. """ @@ -3538,7 +3553,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 c8cd12d93..f2bdbba1f 100644 --- a/stripe/params/checkout/_session_modify_params.py +++ b/stripe/params/checkout/_session_modify_params.py @@ -265,7 +265,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. """ @@ -324,7 +326,7 @@ class SessionModifyParamsLineItemPriceDataProductDataTaxDetails(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`. """ @@ -372,7 +374,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`. """ @@ -453,7 +457,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`. """ @@ -503,7 +509,7 @@ class SessionModifyParamsSubscriptionDataInvoiceSettingsIssuer(TypedDict): class SessionModifyParamsSubscriptionDataPendingInvoiceItemInterval(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_update_params.py b/stripe/params/checkout/_session_update_params.py index 7b14816f4..c75b99272 100644 --- a/stripe/params/checkout/_session_update_params.py +++ b/stripe/params/checkout/_session_update_params.py @@ -264,7 +264,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. """ @@ -323,7 +325,7 @@ class SessionUpdateParamsLineItemPriceDataProductDataTaxDetails(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`. """ @@ -371,7 +373,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`. """ @@ -452,7 +456,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`. """ @@ -502,7 +508,7 @@ class SessionUpdateParamsSubscriptionDataInvoiceSettingsIssuer(TypedDict): class SessionUpdateParamsSubscriptionDataPendingInvoiceItemInterval(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/crypto/_onramp_session_checkout_params.py b/stripe/params/crypto/_onramp_session_checkout_params.py index 91abb8647..750eb55fc 100644 --- a/stripe/params/crypto/_onramp_session_checkout_params.py +++ b/stripe/params/crypto/_onramp_session_checkout_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, TypedDict @@ -42,7 +42,7 @@ class OnrampSessionCheckoutParamsMandateDataCustomerAcceptance(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`. """ diff --git a/stripe/params/crypto/_onramp_session_create_params.py b/stripe/params/crypto/_onramp_session_create_params.py index e22019465..87613b92a 100644 --- a/stripe/params/crypto/_onramp_session_create_params.py +++ b/stripe/params/crypto/_onramp_session_create_params.py @@ -26,7 +26,15 @@ class OnrampSessionCreateParams(RequestOptions): List[ Union[ Literal[ - "avax", "btc", "eth", "matic", "sol", "usdc", "wld", "xlm" + "avax", + "btc", + "eth", + "matic", + "sol", + "usdc", + "usdt", + "wld", + "xlm", ], str, ] @@ -39,7 +47,7 @@ class OnrampSessionCreateParams(RequestOptions): * When set, it must be a non-empty array where all values in the array are valid cryptocurrencies. You can use it to lock users to a specific cryptocurrency by passing a single value array. Users **cannot** override this parameter. """ destination_currency: NotRequired[ - "Literal['avax', 'btc', 'eth', 'matic', 'sol', 'usdc', 'wld', 'xlm']|str" + "Literal['avax', 'btc', 'eth', 'matic', 'sol', 'usdc', 'usdt', 'wld', 'xlm']|str" ] """ The default destination cryptocurrency. diff --git a/stripe/params/crypto/_onramp_session_list_params.py b/stripe/params/crypto/_onramp_session_list_params.py index db1e1314c..c34568b38 100644 --- a/stripe/params/crypto/_onramp_session_list_params.py +++ b/stripe/params/crypto/_onramp_session_list_params.py @@ -11,7 +11,7 @@ class OnrampSessionListParams(RequestOptions): Only return onramp sessions that were created during the given date interval. """ destination_currency: NotRequired[ - "Literal['avax', 'btc', 'eth', 'matic', 'sol', 'usdc', 'wld', 'xlm']|str" + "Literal['avax', 'btc', 'eth', 'matic', 'sol', 'usdc', 'usdt', 'wld', 'xlm']|str" ] """ The destination cryptocurrency to filter by. diff --git a/stripe/params/delegated_checkout/_requested_session_confirm_params.py b/stripe/params/delegated_checkout/_requested_session_confirm_params.py index 02c887d4f..b8363ca12 100644 --- a/stripe/params/delegated_checkout/_requested_session_confirm_params.py +++ b/stripe/params/delegated_checkout/_requested_session_confirm_params.py @@ -39,6 +39,10 @@ class RequestedSessionConfirmParams(RequestOptions): """ Risk details/signals associated with the requested session """ + shared_payment_issued_token: NotRequired[str] + """ + A SharedPaymentIssuedToken (`spt_...`) previously issued to this buyer. Mutually exclusive with `payment_method` and `payment_method_data`. + """ use_stripe_sdk: NotRequired[bool] """ Set to true when using Stripe.js, iOS, or Android client-side SDKs to handle next actions. diff --git a/stripe/params/financial_connections/_session_create_params.py b/stripe/params/financial_connections/_session_create_params.py index d74f466f0..78e1fdcf3 100644 --- a/stripe/params/financial_connections/_session_create_params.py +++ b/stripe/params/financial_connections/_session_create_params.py @@ -31,7 +31,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. @@ -122,7 +125,7 @@ class SessionCreateParamsFilters(TypedDict): class SessionCreateParamsHosted(TypedDict): - delivery_method: NotRequired[Literal["email", "url"]] + delivery_method: NotRequired["Literal['email', 'url']|str"] """ How the user should enter the hosted flow. The values `email` and `url` can only be used if `relink_options` is provided. """ diff --git a/stripe/params/identity/_blocklist_entry_create_params.py b/stripe/params/identity/_blocklist_entry_create_params.py index 21d8037b3..fdd1963e0 100644 --- a/stripe/params/identity/_blocklist_entry_create_params.py +++ b/stripe/params/identity/_blocklist_entry_create_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,7 +10,7 @@ class BlocklistEntryCreateParams(RequestOptions): """ When true, the created BlocklistEntry will be used to retroactively unverify matching verifications. """ - entry_type: Literal["document", "selfie"] + entry_type: Union[Literal["document", "selfie"], str] """ The type of blocklist entry to be created. """ diff --git a/stripe/params/identity/_blocklist_entry_list_params.py b/stripe/params/identity/_blocklist_entry_list_params.py index 162ada8ad..512eb0ed4 100644 --- a/stripe/params/identity/_blocklist_entry_list_params.py +++ b/stripe/params/identity/_blocklist_entry_list_params.py @@ -30,7 +30,7 @@ class BlocklistEntryListParams(RequestOptions): """ Only return blocklist entries with the specified status. """ - type: NotRequired[Literal["document", "selfie"]] + type: NotRequired["Literal['document', 'selfie']|str"] """ Only return blocklist entries of the specified type. """ diff --git a/stripe/params/issuing/_authorization_capture_params.py b/stripe/params/issuing/_authorization_capture_params.py index 001cb8960..4b3ceb325 100644 --- a/stripe/params/issuing/_authorization_capture_params.py +++ b/stripe/params/issuing/_authorization_capture_params.py @@ -79,9 +79,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`. @@ -93,7 +91,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`. @@ -241,28 +239,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 fcd56e67b..b6a7b25c0 100644 --- a/stripe/params/issuing/_authorization_create_params.py +++ b/stripe/params/issuing/_authorization_create_params.py @@ -106,9 +106,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`. @@ -120,7 +118,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`. @@ -202,28 +200,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`. @@ -276,302 +259,7 @@ class AuthorizationCreateParamsHealthcare(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 34d166899..c39bf49b8 100644 --- a/stripe/params/issuing/_card_create_params.py +++ b/stripe/params/issuing/_card_create_params.py @@ -193,309 +193,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, ] ] ] @@ -507,309 +510,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, ] ] ] @@ -835,302 +841,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 eb72afa6c..b182debf3 100644 --- a/stripe/params/issuing/_card_modify_params.py +++ b/stripe/params/issuing/_card_modify_params.py @@ -140,309 +140,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, ] ] ] @@ -454,309 +457,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, ] ] ] @@ -782,302 +788,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 a95d34b5e..cabb908df 100644 --- a/stripe/params/issuing/_card_update_params.py +++ b/stripe/params/issuing/_card_update_params.py @@ -139,309 +139,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, ] ] ] @@ -453,309 +456,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, ] ] ] @@ -781,302 +787,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 bddd00510..1fa8fa867 100644 --- a/stripe/params/issuing/_cardholder_create_params.py +++ b/stripe/params/issuing/_cardholder_create_params.py @@ -195,309 +195,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, ] ] ] @@ -509,309 +512,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, ] ] ] @@ -841,302 +847,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 edfa5efa2..4cbbc0ad5 100644 --- a/stripe/params/issuing/_cardholder_modify_params.py +++ b/stripe/params/issuing/_cardholder_modify_params.py @@ -190,309 +190,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, ] ] ] @@ -504,309 +507,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, ] ] ] @@ -836,302 +842,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 8e637b039..de224f69e 100644 --- a/stripe/params/issuing/_cardholder_update_params.py +++ b/stripe/params/issuing/_cardholder_update_params.py @@ -189,309 +189,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, ] ] ] @@ -503,309 +506,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, ] ] ] @@ -835,302 +841,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 cab19f113..73c92a93f 100644 --- a/stripe/params/issuing/_transaction_create_force_capture_params.py +++ b/stripe/params/issuing/_transaction_create_force_capture_params.py @@ -43,302 +43,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. @@ -441,9 +146,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`. @@ -455,7 +158,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`. @@ -605,28 +308,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 8803e157b..fc9391f73 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. @@ -432,9 +137,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`. @@ -446,7 +149,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`. @@ -598,28 +301,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/_account_evaluation_create_params.py b/stripe/params/radar/_account_evaluation_create_params.py index 0740dfdb9..9d386156b 100644 --- a/stripe/params/radar/_account_evaluation_create_params.py +++ b/stripe/params/radar/_account_evaluation_create_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, TypedDict @@ -20,7 +20,7 @@ class AccountEvaluationCreateParams(RequestOptions): """ Event payload for registration_initiated. """ - type: Literal["login_initiated", "registration_initiated"] + type: Union[Literal["login_initiated", "registration_initiated"], str] """ The type of evaluation requested. """ diff --git a/stripe/params/radar/_account_evaluation_modify_params.py b/stripe/params/radar/_account_evaluation_modify_params.py index a7d1d24c7..a39d3cb17 100644 --- a/stripe/params/radar/_account_evaluation_modify_params.py +++ b/stripe/params/radar/_account_evaluation_modify_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, TypedDict @@ -30,11 +30,14 @@ class AccountEvaluationModifyParams(RequestOptions): """ Event payload for registration_succeeded. """ - type: Literal[ - "login_failed", - "login_succeeded", - "registration_failed", - "registration_succeeded", + type: Union[ + Literal[ + "login_failed", + "login_succeeded", + "registration_failed", + "registration_succeeded", + ], + str, ] """ The type of event to report. @@ -42,7 +45,7 @@ class AccountEvaluationModifyParams(RequestOptions): class AccountEvaluationModifyParamsLoginFailed(TypedDict): - reason: Literal["other", "suspected_account_sharing"] + reason: Union[Literal["other", "suspected_account_sharing"], str] """ The reason why this login failed. """ @@ -56,7 +59,7 @@ class AccountEvaluationModifyParamsLoginSucceeded(TypedDict): class AccountEvaluationModifyParamsRegistrationFailed(TypedDict): - reason: Literal["other", "suspected_multi_accounting"] + reason: Union[Literal["other", "suspected_multi_accounting"], str] """ The reason why this registration failed. """ diff --git a/stripe/params/radar/_account_evaluation_update_params.py b/stripe/params/radar/_account_evaluation_update_params.py index 93a957538..4a050a3fe 100644 --- a/stripe/params/radar/_account_evaluation_update_params.py +++ b/stripe/params/radar/_account_evaluation_update_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 @@ -29,11 +29,14 @@ class AccountEvaluationUpdateParams(TypedDict): """ Event payload for registration_succeeded. """ - type: Literal[ - "login_failed", - "login_succeeded", - "registration_failed", - "registration_succeeded", + type: Union[ + Literal[ + "login_failed", + "login_succeeded", + "registration_failed", + "registration_succeeded", + ], + str, ] """ The type of event to report. @@ -41,7 +44,7 @@ class AccountEvaluationUpdateParams(TypedDict): class AccountEvaluationUpdateParamsLoginFailed(TypedDict): - reason: Literal["other", "suspected_account_sharing"] + reason: Union[Literal["other", "suspected_account_sharing"], str] """ The reason why this login failed. """ @@ -55,7 +58,7 @@ class AccountEvaluationUpdateParamsLoginSucceeded(TypedDict): class AccountEvaluationUpdateParamsRegistrationFailed(TypedDict): - reason: Literal["other", "suspected_multi_accounting"] + reason: Union[Literal["other", "suspected_multi_accounting"], str] """ The reason why this registration failed. """ diff --git a/stripe/params/radar/_customer_evaluation_create_params.py b/stripe/params/radar/_customer_evaluation_create_params.py index 5eac85b64..af883f2b4 100644 --- a/stripe/params/radar/_customer_evaluation_create_params.py +++ b/stripe/params/radar/_customer_evaluation_create_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, TypedDict @@ -10,7 +10,7 @@ class CustomerEvaluationCreateParams(RequestOptions): """ Array of context entries for the evaluation. """ - event_type: Literal["login", "registration"] + event_type: Union[Literal["login", "registration"], str] """ The type of evaluation event. """ @@ -33,7 +33,7 @@ class CustomerEvaluationCreateParamsEvaluationContext(TypedDict): """ Customer details context. """ - type: Literal["client_details", "customer_details"] + type: Union[Literal["client_details", "customer_details"], str] """ The type of context entry. """ diff --git a/stripe/params/radar/_customer_evaluation_modify_params.py b/stripe/params/radar/_customer_evaluation_modify_params.py index d737733ac..394796d8b 100644 --- a/stripe/params/radar/_customer_evaluation_modify_params.py +++ b/stripe/params/radar/_customer_evaluation_modify_params.py @@ -14,7 +14,7 @@ class CustomerEvaluationModifyParams(RequestOptions): """ Specifies which fields in the response should be expanded. """ - status: NotRequired[Literal["allowed", "blocked", "restricted"]] + status: NotRequired["Literal['allowed', 'blocked', 'restricted']|str"] """ The outcome status of the evaluation: allowed, restricted, or blocked. """ diff --git a/stripe/params/radar/_customer_evaluation_update_params.py b/stripe/params/radar/_customer_evaluation_update_params.py index be8c3329c..695992da8 100644 --- a/stripe/params/radar/_customer_evaluation_update_params.py +++ b/stripe/params/radar/_customer_evaluation_update_params.py @@ -13,7 +13,7 @@ class CustomerEvaluationUpdateParams(TypedDict): """ Specifies which fields in the response should be expanded. """ - status: NotRequired[Literal["allowed", "blocked", "restricted"]] + status: NotRequired["Literal['allowed', 'blocked', 'restricted']|str"] """ The outcome status of the evaluation: allowed, restricted, or blocked. """ 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/_calculation_create_params.py b/stripe/params/tax/_calculation_create_params.py index fae170d1b..ed2737932 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/_form_list_params.py b/stripe/params/tax/_form_list_params.py index e7e1a243c..055b02386 100644 --- a/stripe/params/tax/_form_list_params.py +++ b/stripe/params/tax/_form_list_params.py @@ -43,7 +43,7 @@ class FormListParamsPayee(TypedDict): """ The external reference to the payee whose forms will be retrieved. """ - type: NotRequired[Literal["account", "external_reference"]] + type: NotRequired["Literal['account', 'external_reference']|str"] """ Specifies the payee type. Either `account` or `external_reference`. """ diff --git a/stripe/params/tax/_registration_create_params.py b/stripe/params/tax/_registration_create_params.py index 2c58715ca..a3ff7e09d 100644 --- a/stripe/params/tax/_registration_create_params.py +++ b/stripe/params/tax/_registration_create_params.py @@ -1900,23 +1900,26 @@ class RegistrationCreateParamsCountryOptionsUs(TypedDict): """ Options for the tourism tax registration. """ - type: Literal[ - "admissions_tax", - "attendance_tax", - "entertainment_tax", - "gross_receipts_tax", - "home_rule_tax", - "hospitality_tax", - "local_amusement_tax", - "local_lease_tax", - "luxury_tax", - "mass_transit_parking_tax", - "parking_tax", - "resort_tax", - "state_communications_tax", - "state_retail_delivery_fee", - "state_sales_tax", - "tourism_tax", + type: Union[ + Literal[ + "admissions_tax", + "attendance_tax", + "entertainment_tax", + "gross_receipts_tax", + "home_rule_tax", + "hospitality_tax", + "local_amusement_tax", + "local_lease_tax", + "luxury_tax", + "mass_transit_parking_tax", + "parking_tax", + "resort_tax", + "state_communications_tax", + "state_retail_delivery_fee", + "state_sales_tax", + "tourism_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 4bed35765..51aa98c3e 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -613,36 +613,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. @@ -650,36 +621,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. @@ -714,28 +688,7 @@ class ConfirmationTokenCreateParamsPaymentMethodDataIdBankTransfer(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/capital/_financing_offer_create_params.py b/stripe/params/test_helpers/capital/_financing_offer_create_params.py index 9e4ecf182..07a6264a6 100644 --- a/stripe/params/test_helpers/capital/_financing_offer_create_params.py +++ b/stripe/params/test_helpers/capital/_financing_offer_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 @@ -17,24 +17,14 @@ class FinancingOfferCreateParams(TypedDict): """ Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. """ - financing_type: Literal["cash_advance", "fixed_term_loan", "flex_loan"] + financing_type: Union[ + Literal["cash_advance", "fixed_term_loan", "flex_loan"], str + ] """ The type of financing offer. """ status: NotRequired[ - Literal[ - "accepted", - "accepted_other_offer", - "canceled", - "completed", - "delivered", - "expired", - "fully_repaid", - "paid_out", - "rejected", - "replaced", - "undelivered", - ] + "Literal['accepted', 'accepted_other_offer', 'canceled', 'completed', 'delivered', 'expired', 'fully_repaid', 'paid_out', 'rejected', 'replaced', 'undelivered']|str" ] """ The status of the financing offer. diff --git a/stripe/params/test_helpers/capital/_financing_offer_refill_params.py b/stripe/params/test_helpers/capital/_financing_offer_refill_params.py index c0a40cd38..48a61191b 100644 --- a/stripe/params/test_helpers/capital/_financing_offer_refill_params.py +++ b/stripe/params/test_helpers/capital/_financing_offer_refill_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 @@ -17,24 +17,14 @@ class FinancingOfferRefillParams(TypedDict): """ Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. """ - financing_type: Literal["cash_advance", "fixed_term_loan", "flex_loan"] + financing_type: Union[ + Literal["cash_advance", "fixed_term_loan", "flex_loan"], str + ] """ The type of financing offer """ status: NotRequired[ - Literal[ - "accepted", - "accepted_other_offer", - "canceled", - "completed", - "delivered", - "expired", - "fully_repaid", - "paid_out", - "rejected", - "replaced", - "undelivered", - ] + "Literal['accepted', 'accepted_other_offer', 'canceled', 'completed', 'delivered', 'expired', 'fully_repaid', 'paid_out', 'rejected', 'replaced', 'undelivered']|str" ] """ The status of the financing offer diff --git a/stripe/params/test_helpers/issuing/_authorization_capture_params.py b/stripe/params/test_helpers/issuing/_authorization_capture_params.py index a396965d6..ec76fa5ed 100644 --- a/stripe/params/test_helpers/issuing/_authorization_capture_params.py +++ b/stripe/params/test_helpers/issuing/_authorization_capture_params.py @@ -78,9 +78,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`. @@ -92,7 +90,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`. @@ -240,28 +238,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 f997afb7c..f14fd77b8 100644 --- a/stripe/params/test_helpers/issuing/_authorization_create_params.py +++ b/stripe/params/test_helpers/issuing/_authorization_create_params.py @@ -105,9 +105,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`. @@ -119,7 +117,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`. @@ -201,28 +199,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`. @@ -275,302 +258,7 @@ class AuthorizationCreateParamsHealthcare(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 4d2b92c42..f2b75c37d 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 @@ -42,302 +42,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. @@ -440,9 +145,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`. @@ -454,7 +157,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`. @@ -604,28 +307,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 ac89c3b23..e54b20e7d 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. @@ -431,9 +136,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`. @@ -445,7 +148,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`. @@ -597,28 +300,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/billing/_contract_create_params.py b/stripe/params/v2/billing/_contract_create_params.py index 1da87d4c9..d750c9648 100644 --- a/stripe/params/v2/billing/_contract_create_params.py +++ b/stripe/params/v2/billing/_contract_create_params.py @@ -383,6 +383,10 @@ class ContractCreateParamsPricingOverride(TypedDict): """ A user-provided lookup key to reference this pricing override. """ + metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] + """ + Set of key-value pairs. + """ multiply_pricing: NotRequired[ "ContractCreateParamsPricingOverrideMultiplyPricing" ] diff --git a/stripe/params/v2/billing/_contract_update_params.py b/stripe/params/v2/billing/_contract_update_params.py index 5616d8fe9..bf14f83e0 100644 --- a/stripe/params/v2/billing/_contract_update_params.py +++ b/stripe/params/v2/billing/_contract_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, Union +from typing import Dict, List, Optional, Union from typing_extensions import Literal, NotRequired, TypedDict @@ -23,6 +23,12 @@ class ContractUpdateParams(TypedDict): """ Additional fields to include in the response. """ + metadata: NotRequired[ + "Dict[str, Optional[str]]|UntypedStripeObject[Optional[str]]" + ] + """ + Set of key-value pairs. + """ pricing_line_actions: NotRequired[ List["ContractUpdateParamsPricingLineAction"] ] @@ -254,6 +260,12 @@ class ContractUpdateParamsPricingLineActionUpdate(TypedDict): """ The id of the pricing line. """ + metadata: NotRequired[ + "Dict[str, Optional[str]]|UntypedStripeObject[Optional[str]]" + ] + """ + Metadata mutations to apply to the pricing line. + """ pricing: NotRequired["ContractUpdateParamsPricingLineActionUpdatePricing"] """ Updated pricing configuration. @@ -434,9 +446,11 @@ class ContractUpdateParamsPricingLineActionUpdatePricingPriceDetailsPricingOverr """ Updated lookup key. """ - metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] + metadata: NotRequired[ + "Dict[str, Optional[str]]|UntypedStripeObject[Optional[str]]" + ] """ - Metadata for the pricing override. + Metadata mutations to apply to the pricing override. """ starts_at: NotRequired[ "ContractUpdateParamsPricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateStartsAt" @@ -537,6 +551,10 @@ class ContractUpdateParamsPricingOverrideActionAdd(TypedDict): """ A lookup key for the pricing override. """ + metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] + """ + Metadata for the pricing override. + """ multiply_pricing: NotRequired[ "ContractUpdateParamsPricingOverrideActionAddMultiplyPricing" ] @@ -640,6 +658,12 @@ class ContractUpdateParamsPricingOverrideActionUpdate(TypedDict): """ The ID of the pricing override. """ + metadata: NotRequired[ + "Dict[str, Optional[str]]|UntypedStripeObject[Optional[str]]" + ] + """ + Metadata mutations to apply to the pricing override. + """ starts_at: NotRequired[ "ContractUpdateParamsPricingOverrideActionUpdateStartsAt" ] diff --git a/stripe/params/v2/core/_batch_job_create_params.py b/stripe/params/v2/core/_batch_job_create_params.py index 67e38f2c0..61545e98e 100644 --- a/stripe/params/v2/core/_batch_job_create_params.py +++ b/stripe/params/v2/core/_batch_job_create_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 +from typing import Dict, Union from typing_extensions import Literal, NotRequired, TypedDict @@ -31,94 +31,97 @@ class BatchJobCreateParamsEndpoint(TypedDict): """ The HTTP method to use when calling the endpoint. """ - path: Literal[ - "/v1/accounts/:account", - "/v1/accounts", - "/v1/accounts/:account", - "/v1/coupons", - "/v1/coupons/:coupon", - "/v1/coupons/:coupon", - "/v1/credit_notes", - "/v1/customers/:customer", - "/v1/customers/:customer", - "/v1/customers", - "/v1/customers/:customer/discount", - "/v1/customers/:customer/funding_instructions", - "/v1/customers/:customer/subscriptions", - "/v1/customers/:customer/subscriptions", - "/v1/customers/:customer/subscriptions/:subscription_exposed_id", - "/v1/customers/:customer/subscriptions/:subscription_exposed_id/discount", - "/v1/customers/:customer/bank_accounts", - "/v1/customers/:customer/bank_accounts/:id", - "/v1/customers/:customer/bank_accounts/:id", - "/v1/customers/:customer/bank_accounts/:id/verify", - "/v1/customers/:customer/cards", - "/v1/customers/:customer/cards/:id", - "/v1/customers/:customer/cards/:id", - "/v1/customers/:customer/tax_ids", - "/v1/customers/:customer/sources", - "/v1/customers/:customer/sources/:id", - "/v1/customers/:customer/sources/:id", - "/v1/customers/:customer/sources/:id/verify", - "/v1/customers/:customer/balance_transactions", - "/v1/customers/:customer/balance_transactions/:transaction", - "/v1/customers/:customer/cash_balance", - "/v1/customer_sessions", - "/v1/disputes/:dispute/close", - "/v1/invoices", - "/v1/invoices/:invoice", - "/v1/invoices/:invoice", - "/v1/invoices/:invoice/pay", - "/v1/invoices/:invoice/send", - "/v1/invoices/:invoice/void", - "/v1/invoices/:invoice/finalize", - "/v1/invoices/:invoice/mark_uncollectible", - "/v1/invoices/:invoice/update_lines", - "/v1/invoices/:invoice/add_lines", - "/v1/invoices/:invoice/remove_lines", - "/v1/invoices/create_preview", - "/v1/invoices/:invoice/lines/:line_item_id", - "/v1/invoiceitems", - "/v1/invoiceitems/:invoiceitem", - "/v1/invoiceitems/:invoiceitem", - "/v1/invoice_rendering_templates/:template/archive", - "/v1/invoice_rendering_templates/:template/unarchive", - "/v1/payment_methods/:payment_method/attach", - "/v1/prices", - "/v1/prices/:price", - "/v1/products", - "/v1/products/:id", - "/v1/products/:id", - "/v1/products/:product/features", - "/v1/products/:product/features/:id", - "/v1/promotion_codes", - "/v1/promotion_codes/:promotion_code", - "/v1/radar/value_list_items", - "/v1/refunds", - "/v1/refunds/:refund/cancel", - "/v1/subscriptions/:subscription_exposed_id", - "/v1/subscriptions/:subscription_exposed_id", - "/v1/subscriptions/:subscription/migrate", - "/v1/subscriptions", - "/v1/subscriptions/:subscription/resume", - "/v1/subscriptions/:subscription/pause", - "/v1/subscription_items", - "/v1/subscription_items/:item", - "/v1/subscription_items/:item", - "/v1/subscription_schedules", - "/v1/subscription_schedules/:schedule", - "/v1/subscription_schedules/:schedule/cancel", - "/v1/subscription_schedules/:schedule/release", - "/v1/tax/registrations", - "/v1/tax/registrations/:id", - "/v1/tax/settings", - "/v1/tax/transactions/create_reversal", - "/v1/tax_ids", - "/v1/tax_ids/:id", - "/v1/customers/:customer/tax_ids", - "/v1/customers/:customer/tax_ids/:id", - "/v1/tax_rates", - "/v1/tax_rates/:tax_rate", + path: Union[ + Literal[ + "/v1/accounts/:account", + "/v1/accounts", + "/v1/accounts/:account", + "/v1/coupons", + "/v1/coupons/:coupon", + "/v1/coupons/:coupon", + "/v1/credit_notes", + "/v1/customers/:customer", + "/v1/customers/:customer", + "/v1/customers", + "/v1/customers/:customer/discount", + "/v1/customers/:customer/funding_instructions", + "/v1/customers/:customer/subscriptions", + "/v1/customers/:customer/subscriptions", + "/v1/customers/:customer/subscriptions/:subscription_exposed_id", + "/v1/customers/:customer/subscriptions/:subscription_exposed_id/discount", + "/v1/customers/:customer/bank_accounts", + "/v1/customers/:customer/bank_accounts/:id", + "/v1/customers/:customer/bank_accounts/:id", + "/v1/customers/:customer/bank_accounts/:id/verify", + "/v1/customers/:customer/cards", + "/v1/customers/:customer/cards/:id", + "/v1/customers/:customer/cards/:id", + "/v1/customers/:customer/tax_ids", + "/v1/customers/:customer/sources", + "/v1/customers/:customer/sources/:id", + "/v1/customers/:customer/sources/:id", + "/v1/customers/:customer/sources/:id/verify", + "/v1/customers/:customer/balance_transactions", + "/v1/customers/:customer/balance_transactions/:transaction", + "/v1/customers/:customer/cash_balance", + "/v1/customer_sessions", + "/v1/disputes/:dispute/close", + "/v1/invoices", + "/v1/invoices/:invoice", + "/v1/invoices/:invoice", + "/v1/invoices/:invoice/pay", + "/v1/invoices/:invoice/send", + "/v1/invoices/:invoice/void", + "/v1/invoices/:invoice/finalize", + "/v1/invoices/:invoice/mark_uncollectible", + "/v1/invoices/:invoice/update_lines", + "/v1/invoices/:invoice/add_lines", + "/v1/invoices/:invoice/remove_lines", + "/v1/invoices/create_preview", + "/v1/invoices/:invoice/lines/:line_item_id", + "/v1/invoiceitems", + "/v1/invoiceitems/:invoiceitem", + "/v1/invoiceitems/:invoiceitem", + "/v1/invoice_rendering_templates/:template/archive", + "/v1/invoice_rendering_templates/:template/unarchive", + "/v1/payment_methods/:payment_method/attach", + "/v1/prices", + "/v1/prices/:price", + "/v1/products", + "/v1/products/:id", + "/v1/products/:id", + "/v1/products/:product/features", + "/v1/products/:product/features/:id", + "/v1/promotion_codes", + "/v1/promotion_codes/:promotion_code", + "/v1/radar/value_list_items", + "/v1/refunds", + "/v1/refunds/:refund/cancel", + "/v1/subscriptions/:subscription_exposed_id", + "/v1/subscriptions/:subscription_exposed_id", + "/v1/subscriptions/:subscription/migrate", + "/v1/subscriptions", + "/v1/subscriptions/:subscription/resume", + "/v1/subscriptions/:subscription/pause", + "/v1/subscription_items", + "/v1/subscription_items/:item", + "/v1/subscription_items/:item", + "/v1/subscription_schedules", + "/v1/subscription_schedules/:schedule", + "/v1/subscription_schedules/:schedule/cancel", + "/v1/subscription_schedules/:schedule/release", + "/v1/tax/registrations", + "/v1/tax/registrations/:id", + "/v1/tax/settings", + "/v1/tax/transactions/create_reversal", + "/v1/tax_ids", + "/v1/tax_ids/:id", + "/v1/customers/:customer/tax_ids", + "/v1/customers/:customer/tax_ids/:id", + "/v1/tax_rates", + "/v1/tax_rates/:tax_rate", + ], + str, ] """ The path of the endpoint to run this batch job against. diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py index 0e3dc3910..cc9b24909 100644 --- a/stripe/radar/_payment_evaluation.py +++ b/stripe/radar/_payment_evaluation.py @@ -536,13 +536,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/shared_payment/_granted_token.py b/stripe/shared_payment/_granted_token.py index 5227bee1a..9d0a5f90e 100644 --- a/stripe/shared_payment/_granted_token.py +++ b/stripe/shared_payment/_granted_token.py @@ -287,14 +287,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. diff --git a/stripe/tax/_calculation.py b/stripe/tax/_calculation.py index f4bc1a9dc..418f35b5c 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,31 +274,34 @@ class TaxRateDetails(StripeObject): """ The tax rate percentage as a string. For example, 8.5% is represented as "8.5". """ - tax_type: Literal[ - "admissions_tax", - "amusement_tax", - "attendance_tax", - "communications_tax", - "entertainment_tax", - "gross_receipts_tax", - "gst", - "hospitality_tax", - "hst", - "igst", - "jct", - "lease_tax", - "luxury_tax", - "mass_transit_parking_tax", - "parking_tax", - "pst", - "qst", - "resort_tax", - "retail_delivery_fee", - "rst", - "sales_tax", - "service_tax", - "tourism_tax", - "vat", + tax_type: Union[ + Literal[ + "admissions_tax", + "amusement_tax", + "attendance_tax", + "communications_tax", + "entertainment_tax", + "gross_receipts_tax", + "gst", + "hospitality_tax", + "hst", + "igst", + "jct", + "lease_tax", + "luxury_tax", + "mass_transit_parking_tax", + "parking_tax", + "pst", + "qst", + "resort_tax", + "retail_delivery_fee", + "rst", + "sales_tax", + "service_tax", + "tourism_tax", + "vat", + ], + str, ] """ The tax type, such as `vat` or `sales_tax`. @@ -306,7 +312,9 @@ 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", "performance"] + sourcing: Union[ + Literal["destination", "origin", "performance"], str + ] """ Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address). """ @@ -407,31 +415,34 @@ class FlatAmount(StripeObject): State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). """ tax_type: Optional[ - Literal[ - "admissions_tax", - "amusement_tax", - "attendance_tax", - "communications_tax", - "entertainment_tax", - "gross_receipts_tax", - "gst", - "hospitality_tax", - "hst", - "igst", - "jct", - "lease_tax", - "luxury_tax", - "mass_transit_parking_tax", - "parking_tax", - "pst", - "qst", - "resort_tax", - "retail_delivery_fee", - "rst", - "sales_tax", - "service_tax", - "tourism_tax", - "vat", + Union[ + Literal[ + "admissions_tax", + "amusement_tax", + "attendance_tax", + "communications_tax", + "entertainment_tax", + "gross_receipts_tax", + "gst", + "hospitality_tax", + "hst", + "igst", + "jct", + "lease_tax", + "luxury_tax", + "mass_transit_parking_tax", + "parking_tax", + "pst", + "qst", + "resort_tax", + "retail_delivery_fee", + "rst", + "sales_tax", + "service_tax", + "tourism_tax", + "vat", + ], + str, ] ] """ diff --git a/stripe/tax/_calculation_line_item.py b/stripe/tax/_calculation_line_item.py index 45d6202e5..2b49a484f 100644 --- a/stripe/tax/_calculation_line_item.py +++ b/stripe/tax/_calculation_line_item.py @@ -70,31 +70,34 @@ class TaxRateDetails(StripeObject): """ The tax rate percentage as a string. For example, 8.5% is represented as "8.5". """ - tax_type: Literal[ - "admissions_tax", - "amusement_tax", - "attendance_tax", - "communications_tax", - "entertainment_tax", - "gross_receipts_tax", - "gst", - "hospitality_tax", - "hst", - "igst", - "jct", - "lease_tax", - "luxury_tax", - "mass_transit_parking_tax", - "parking_tax", - "pst", - "qst", - "resort_tax", - "retail_delivery_fee", - "rst", - "sales_tax", - "service_tax", - "tourism_tax", - "vat", + tax_type: Union[ + Literal[ + "admissions_tax", + "amusement_tax", + "attendance_tax", + "communications_tax", + "entertainment_tax", + "gross_receipts_tax", + "gst", + "hospitality_tax", + "hst", + "igst", + "jct", + "lease_tax", + "luxury_tax", + "mass_transit_parking_tax", + "parking_tax", + "pst", + "qst", + "resort_tax", + "retail_delivery_fee", + "rst", + "sales_tax", + "service_tax", + "tourism_tax", + "vat", + ], + str, ] """ The tax type, such as `vat` or `sales_tax`. @@ -105,7 +108,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", "performance"] + sourcing: Union[Literal["destination", "origin", "performance"], 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 2ef2b2a4b..ac77c57b1 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"] @@ -1139,23 +1328,26 @@ class TourismTax(StripeObject): """ state_sales_tax: Optional[StateSalesTax] tourism_tax: Optional[TourismTax] - type: Literal[ - "admissions_tax", - "attendance_tax", - "entertainment_tax", - "gross_receipts_tax", - "home_rule_tax", - "hospitality_tax", - "local_amusement_tax", - "local_lease_tax", - "luxury_tax", - "mass_transit_parking_tax", - "parking_tax", - "resort_tax", - "state_communications_tax", - "state_retail_delivery_fee", - "state_sales_tax", - "tourism_tax", + type: Union[ + Literal[ + "admissions_tax", + "attendance_tax", + "entertainment_tax", + "gross_receipts_tax", + "home_rule_tax", + "hospitality_tax", + "local_amusement_tax", + "local_lease_tax", + "luxury_tax", + "mass_transit_parking_tax", + "parking_tax", + "resort_tax", + "state_communications_tax", + "state_retail_delivery_fee", + "state_sales_tax", + "tourism_tax", + ], + str, ] """ Type of registration in the US. diff --git a/stripe/tax/_transaction.py b/stripe/tax/_transaction.py index 0b0383896..d78af822e 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,31 +283,34 @@ class TaxRateDetails(StripeObject): """ The tax rate percentage as a string. For example, 8.5% is represented as "8.5". """ - tax_type: Literal[ - "admissions_tax", - "amusement_tax", - "attendance_tax", - "communications_tax", - "entertainment_tax", - "gross_receipts_tax", - "gst", - "hospitality_tax", - "hst", - "igst", - "jct", - "lease_tax", - "luxury_tax", - "mass_transit_parking_tax", - "parking_tax", - "pst", - "qst", - "resort_tax", - "retail_delivery_fee", - "rst", - "sales_tax", - "service_tax", - "tourism_tax", - "vat", + tax_type: Union[ + Literal[ + "admissions_tax", + "amusement_tax", + "attendance_tax", + "communications_tax", + "entertainment_tax", + "gross_receipts_tax", + "gst", + "hospitality_tax", + "hst", + "igst", + "jct", + "lease_tax", + "luxury_tax", + "mass_transit_parking_tax", + "parking_tax", + "pst", + "qst", + "resort_tax", + "retail_delivery_fee", + "rst", + "sales_tax", + "service_tax", + "tourism_tax", + "vat", + ], + str, ] """ The tax type, such as `vat` or `sales_tax`. @@ -315,7 +321,9 @@ 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", "performance"] + sourcing: Union[ + Literal["destination", "origin", "performance"], 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 d865e3cce..86ebb8c83 100644 --- a/stripe/terminal/_reader.py +++ b/stripe/terminal/_reader.py @@ -114,207 +114,210 @@ 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_institution_unavailable", - "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", - "sensitive_data_access_expired", - "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_collected_data_invalid", - "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", - "v2_account_disconnection_unsupported", - "v2_account_missing_configuration", + 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_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_institution_unavailable", + "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", + "sensitive_data_access_expired", + "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_collected_data_invalid", + "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", + "v2_account_disconnection_unsupported", + "v2_account_missing_configuration", + ], + str, ] ] """ @@ -404,11 +407,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` @@ -575,13 +581,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. @@ -800,7 +809,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. @@ -1058,7 +1072,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/v2/billing/_contract.py b/stripe/v2/billing/_contract.py index 5864503a8..a70de4235 100644 --- a/stripe/v2/billing/_contract.py +++ b/stripe/v2/billing/_contract.py @@ -146,6 +146,10 @@ class StartsAt(StripeObject): """ The user-provided lookup key for this override. """ + metadata: Optional[UntypedStripeObject[str]] + """ + Set of key-value pairs. + """ overwrite_price: Optional[OverwritePrice] """ Details for an overwrite_price override. @@ -294,6 +298,10 @@ class StartsAt(StripeObject): """ The user-provided lookup key for the pricing override. """ + metadata: Optional[UntypedStripeObject[str]] + """ + Set of key-value pairs. + """ multiply_pricing: Optional[MultiplyPricing] """ Details for a multiply_pricing override. diff --git a/stripe/v2/billing/_contract_service.py b/stripe/v2/billing/_contract_service.py index e484922a0..4e7252d50 100644 --- a/stripe/v2/billing/_contract_service.py +++ b/stripe/v2/billing/_contract_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 @@ -118,7 +119,20 @@ def create( "post", "/v2/billing/contracts", base_address="api", - params=params, + params=_coerce_v2_params( + params, + { + "pricing_lines": { + "pricing": { + "price_details": { + "quantity_changes": { + "set": "decimal_string", + }, + }, + }, + }, + }, + ), options=options, ), ) @@ -137,7 +151,20 @@ async def create_async( "post", "/v2/billing/contracts", base_address="api", - params=params, + params=_coerce_v2_params( + params, + { + "pricing_lines": { + "pricing": { + "price_details": { + "quantity_changes": { + "set": "decimal_string", + }, + }, + }, + }, + }, + ), options=options, ), ) @@ -237,7 +264,31 @@ def update( "post", "/v2/billing/contracts/{id}".format(id=sanitize_id(id)), base_address="api", - params=params, + params=_coerce_v2_params( + params, + { + "pricing_line_actions": { + "add": { + "pricing": { + "price_details": { + "quantity_changes": { + "set": "decimal_string", + }, + }, + }, + }, + "update": { + "pricing": { + "price_details": { + "quantity_changes": { + "set": "decimal_string", + }, + }, + }, + }, + }, + }, + ), options=options, ), ) @@ -257,7 +308,31 @@ async def update_async( "post", "/v2/billing/contracts/{id}".format(id=sanitize_id(id)), base_address="api", - params=params, + params=_coerce_v2_params( + params, + { + "pricing_line_actions": { + "add": { + "pricing": { + "price_details": { + "quantity_changes": { + "set": "decimal_string", + }, + }, + }, + }, + "update": { + "pricing": { + "price_details": { + "quantity_changes": { + "set": "decimal_string", + }, + }, + }, + }, + }, + }, + ), options=options, ), ) diff --git a/stripe/v2/billing/_intent_service.py b/stripe/v2/billing/_intent_service.py index 868b6b0bc..e3d81ef54 100644 --- a/stripe/v2/billing/_intent_service.py +++ b/stripe/v2/billing/_intent_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,20 @@ def create( "post", "/v2/billing/intents", base_address="api", - params=params, + params=_coerce_v2_params( + params, + { + "actions": { + "apply": { + "invoice_discount_rule": { + "percent_off": { + "percent_off": "decimal_string", + }, + }, + }, + }, + }, + ), options=options, ), ) @@ -129,7 +143,20 @@ async def create_async( "post", "/v2/billing/intents", base_address="api", - params=params, + params=_coerce_v2_params( + params, + { + "actions": { + "apply": { + "invoice_discount_rule": { + "percent_off": { + "percent_off": "decimal_string", + }, + }, + }, + }, + }, + ), options=options, ), ) diff --git a/stripe/v2/billing/_license_fee_service.py b/stripe/v2/billing/_license_fee_service.py index 5b617f579..0422edab5 100644 --- a/stripe/v2/billing/_license_fee_service.py +++ b/stripe/v2/billing/_license_fee_service.py @@ -109,7 +109,10 @@ def create( base_address="api", params=_coerce_v2_params( params, - {"transform_quantity": {"divide_by": "int64_string"}}, + { + "tiers": {"up_to_decimal": "decimal_string"}, + "transform_quantity": {"divide_by": "int64_string"}, + }, ), options=options, ), @@ -131,7 +134,10 @@ async def create_async( base_address="api", params=_coerce_v2_params( params, - {"transform_quantity": {"divide_by": "int64_string"}}, + { + "tiers": {"up_to_decimal": "decimal_string"}, + "transform_quantity": {"divide_by": "int64_string"}, + }, ), options=options, ), @@ -194,7 +200,10 @@ def update( base_address="api", params=_coerce_v2_params( params, - {"transform_quantity": {"divide_by": "int64_string"}}, + { + "tiers": {"up_to_decimal": "decimal_string"}, + "transform_quantity": {"divide_by": "int64_string"}, + }, ), options=options, ), @@ -217,7 +226,10 @@ async def update_async( base_address="api", params=_coerce_v2_params( params, - {"transform_quantity": {"divide_by": "int64_string"}}, + { + "tiers": {"up_to_decimal": "decimal_string"}, + "transform_quantity": {"divide_by": "int64_string"}, + }, ), options=options, ), diff --git a/stripe/v2/billing/_rate_card_service.py b/stripe/v2/billing/_rate_card_service.py index 713db8f79..0e2f14f7a 100644 --- a/stripe/v2/billing/_rate_card_service.py +++ b/stripe/v2/billing/_rate_card_service.py @@ -247,6 +247,7 @@ def modify_rates( params, { "rates_to_create": { + "tiers": {"up_to_decimal": "decimal_string"}, "transform_quantity": { "divide_by": "int64_string" }, @@ -278,6 +279,7 @@ async def modify_rates_async( params, { "rates_to_create": { + "tiers": {"up_to_decimal": "decimal_string"}, "transform_quantity": { "divide_by": "int64_string" }, diff --git a/stripe/v2/billing/_service_action_service.py b/stripe/v2/billing/_service_action_service.py index 0cfd59d5d..ca1bcf389 100644 --- a/stripe/v2/billing/_service_action_service.py +++ b/stripe/v2/billing/_service_action_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 @@ -34,7 +35,25 @@ def create( "post", "/v2/billing/service_actions", base_address="api", - params=params, + params=_coerce_v2_params( + params, + { + "credit_grant": { + "amount": { + "custom_pricing_unit": { + "value": "decimal_string", + }, + }, + }, + "credit_grant_per_tenant": { + "amount": { + "custom_pricing_unit": { + "value": "decimal_string", + }, + }, + }, + }, + ), options=options, ), ) @@ -53,7 +72,25 @@ async def create_async( "post", "/v2/billing/service_actions", base_address="api", - params=params, + params=_coerce_v2_params( + params, + { + "credit_grant": { + "amount": { + "custom_pricing_unit": { + "value": "decimal_string", + }, + }, + }, + "credit_grant_per_tenant": { + "amount": { + "custom_pricing_unit": { + "value": "decimal_string", + }, + }, + }, + }, + ), options=options, ), ) diff --git a/stripe/v2/billing/rate_cards/_rate_service.py b/stripe/v2/billing/rate_cards/_rate_service.py index bbc33a70f..8ba462a6a 100644 --- a/stripe/v2/billing/rate_cards/_rate_service.py +++ b/stripe/v2/billing/rate_cards/_rate_service.py @@ -90,7 +90,10 @@ def create( base_address="api", params=_coerce_v2_params( params, - {"transform_quantity": {"divide_by": "int64_string"}}, + { + "tiers": {"up_to_decimal": "decimal_string"}, + "transform_quantity": {"divide_by": "int64_string"}, + }, ), options=options, ), @@ -116,7 +119,10 @@ async def create_async( base_address="api", params=_coerce_v2_params( params, - {"transform_quantity": {"divide_by": "int64_string"}}, + { + "tiers": {"up_to_decimal": "decimal_string"}, + "transform_quantity": {"divide_by": "int64_string"}, + }, ), options=options, ), 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/stripe/v2/tax/_manual_rule_service.py b/stripe/v2/tax/_manual_rule_service.py index 82a422ec0..06124daa4 100644 --- a/stripe/v2/tax/_manual_rule_service.py +++ b/stripe/v2/tax/_manual_rule_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 @@ -79,7 +80,14 @@ def create( "post", "/v2/tax/manual_rules", base_address="api", - params=params, + params=_coerce_v2_params( + params, + { + "scheduled_tax_rates": { + "rates": {"percentage": "decimal_string"}, + }, + }, + ), options=options, ), ) @@ -98,7 +106,14 @@ async def create_async( "post", "/v2/tax/manual_rules", base_address="api", - params=params, + params=_coerce_v2_params( + params, + { + "scheduled_tax_rates": { + "rates": {"percentage": "decimal_string"}, + }, + }, + ), options=options, ), ) @@ -158,7 +173,14 @@ def update( "post", "/v2/tax/manual_rules/{id}".format(id=sanitize_id(id)), base_address="api", - params=params, + params=_coerce_v2_params( + params, + { + "scheduled_tax_rates": { + "rates": {"percentage": "decimal_string"}, + }, + }, + ), options=options, ), ) @@ -178,7 +200,14 @@ async def update_async( "post", "/v2/tax/manual_rules/{id}".format(id=sanitize_id(id)), base_address="api", - params=params, + params=_coerce_v2_params( + params, + { + "scheduled_tax_rates": { + "rates": {"percentage": "decimal_string"}, + }, + }, + ), options=options, ), )